摘要 |
Image binarization methods and devices for converting a grayscale image into a black and white binary image are provided. The grayscale image is divided into sub-images dynamically created from pixel to pixel containing a given pixel as well as neighboring pixels. The color value of the pixels in the sub-image is averaged and the threshold between the given pixel and the average color value is determined. Therefore, at a certain color value, this given pixel is converted to white and at another color value the pixel is converted black. The foregoing is effectuated pixel by pixel in a dynamic fashion evaluating each pixel relative to its neighboring pixels in order to produce a binary image. A small sub-image provides greater clarity whereas a large sub-image gives a better broad view. In an image having a border surrounding characters, a smaller sub-image is used for the characters and the larger sub-image is used for the border thereby providing two binary images. The border in the image obtained for the characters is removed to be combined with the image obtained for a clear border.
|