2 * ocr.c forms a mostly-self-contained bit
3 * so we put its declarations in this separate file
23 typedef uint32_t Pixcol;
24 #define PSPIXCOL(priscan) priscan##32
27 const char *s; /* valid until next call to ocr() */
28 int l,r; /* column numbers */
29 unsigned ctxmap; /* match context index */
33 typedef const struct OcrCellTypeInfo *OcrCellType;
34 extern const struct OcrCellTypeInfo ocr_celltype_text;
35 extern const struct OcrCellTypeInfo ocr_celltype_number;
36 const char *ocr_celltype_name(OcrCellType ct);
39 typedef struct OcrReader OcrReader;
40 OcrReader *ocr_init(int h);
42 OcrResultGlyph *ocr(OcrReader *rd, OcrCellType, int w, Pixcol cols[]);
43 /* return value is array terminated by {0,-1,-1}
44 * array is valid until next call to ocr()