Smart Binarization

binary_graphicGoal: Converting all grayscale or color documents into black and white image.

Principle: Optimizing the thresholding quality according to the context