摘要 |
PROBLEM TO BE SOLVED: To obtain a binary image having no noise interrupting recognition even on a background image. SOLUTION: The density image of an original to be threshold processed is inputted (S1) and stored (S2). Then a certain pixel is noticed and whether the pixel is the edge of a character or a ruled line or not is judged (S3). The pixel value on a binary image of the pixel judged as the edge is determined (S4) and stored. These operations are repeated for all pixels on the original image (S5) and all connection components of pixels other than edges are found out (S6). Pixels brought into contact with the periphery of a certain connection component and having already determined pixel values are noticed and the numbers of black pixels and white pixels are respectively counted (S7). The numbers of black and white pixels are mutually compared (S8), and when the number of black pixels is larger, the whole connection component is registered as black pixels (S10). In the other case, the whole connection component is registered as white pixels (S9). The operation is repeated for all connection components (S11), and finally a binary image is generated (S12) and outputted (S13).
|