windows of 1 values with a proportion of 1 to 0 valued pixels being less than about 1 16 then the window is labeled as a line graphics window if there are no 1 valued pixels in the window then window is labeled as an empty window if there are only 1 valued pixels then the window is labeled as a binary picture window black the output of block 440 is applied to block 450 where the label attached by block 440 to each window is reviewed based on the 8 nearest neighbors of each window and corrected if necessary as in block 420 individual windows are corrected so neighboring windows that have the same label form regions with an expected shape and size that is appropriate to the particular page being analyzed usually rectangular known a priori by domain information lastly the gray scale output of block 420 and the output of block 440 are combined and formatted in block 460 to form the 34 plane 2 34 output of block 302 and in block 470 to form the mask for ocr block 303 thus block 302 identifies the unrecognized segments in the scanned image and develops a template that instructs ocr block 303 to ignore certain areas of the image block 303 which follows block 302 is a conventional ocr block e g calera rs 9000 and it identifies the characters of frame 105 the combined output of image segmentation block 302 and ocr block 303 forms frame 106 the output of block 303 is.