Next: Using UNICODE©
Up: Modules API
Previous: Setting attributes
  Contents
  Index
charRecognizer
This is the core of the OCRing. This module, using some ingenious
algorithm, must be able to find that the bitmap it processed is a
certain character. Prototype:
-
- void gocr_charRecognizer ( gocrImage *pix, gocrBox *b, void *v );
pix is an image of the framed character, whose structure
gocrImage is described in section
.
There are two reasons to prefer to access pix than the get/setData:
first, the former is much smaller, and will be entirely in the processor's
cache, therefore being accessed much more quickly; second, the former
starts on 0, while you'll have to add b->x0 and b->y0 to the latter.
Of course, you may still use the set/getData functions.
Subsections
root
2002-02-17