next up previous contents index
Next: Block types Up: Modules API Previous: imageFilter   Contents   Index


blockFinder

The objective of this module type is to divide the image in a number of blocks. A block is a set of pixels that are part of the original image, whose contents are all of the same type. Examples: a picture, a text column, a mathematical expression, a title.

You must take care to avoid recognizing what should be only one block into more than one. Sometimes that's perfectly fine: for example, if a picture is recognized as two blocks, as long as they don't intersect each other, the only price to pay is to have two image files saved instead of only one; or if a text column is divided in half, along the horizontal, the output is likely to not take notice. But if the column is divided along the vertical, you may have a bad output. It's easier to say than to do, but a warning never hurts.

The prototype of a blockFinder function is:

void gocr_blockFinder ( gocrImage *img, void *v );



Subsections
next up previous contents index
Next: Block types Up: Modules API Previous: imageFilter   Contents   Index
root 2002-02-17