Image binarization is a difficult task for documents with text over textured or shaded backgrounds, poor contrast, and/or considerable noise. Current optical character recognition (OCR) and document analysis technology do not handle such documents well. We have developed a simple yet effective algorithm for document image clean-up and binarization. The algorithm consists of two basic steps. In the first step, the input image is smoothed using a low-pass filter. The smoothing operation enhances the text relative to any background texture. This is because background texture normally has higher frequency than text does. The smoothing operation also removes speckle noise. In the second step, the intensity histogram of the smoothed image is computed and a threshold automatically selected as follows. For black text, the first peak of the histogram corresponds to text. Thresholding the image at the value of the valley between the first and second peaks of the histogram binarizes the image well. In order to reliably identify the valley, the histogram is smoothed by a low-pass filter before the threshold is computed. The algorithm has been applied to some 50 images from a wide variety of source: digitized video frames, photos, newspapers, advertisements in magazines or sales flyers, personal checks, etc. There are 21820 characters and 4406 words in these images. 91 percent of the characters and 86 percent of the words are successfully cleaned up and binarized. A commercial OCR was applied to the binarized text when it consisted of fonts which were OCR recognizable. The recognition rate was 84 percent for the characters and 77 percent for the words.
[1]
Azriel Rosenfeld,et al.
Histogram concavity analysis as an aid in threshold selection
,
1983,
IEEE Transactions on Systems, Man, and Cybernetics.
[2]
Sargur N. Srihari,et al.
Document Image Binarization Based on Texture Features
,
1997,
IEEE Trans. Pattern Anal. Mach. Intell..
[3]
Azriel Rosenfeld,et al.
Histogram modification for threshold selection
,
1977
.
[4]
N. Otsu.
A threshold selection method from gray level histograms
,
1979
.
[5]
Mohamed S. Kamel,et al.
Extraction of Binary Character/Graphics Images from Grayscale Document Images
,
1993,
CVGIP Graph. Model. Image Process..
[6]
Qin-Zhong Ye,et al.
On minimum error thresholding and its implementations
,
1988,
Pattern Recognit. Lett..
[7]
Andrew K. C. Wong,et al.
A new method for gray-level picture thresholding using the entropy of the histogram
,
1985,
Comput. Vis. Graph. Image Process..
[8]
Edward M. Riseman,et al.
Finding text in images
,
1997,
DL '97.