13 #include <sys/types.h>
16 typedef uint32_t Pixcol;
17 #define PSPIXCOL(priscan) priscan##32
20 const char *s; /* valid until next call to ocr() */
21 int l,r; /* column numbers */
22 unsigned ctxmap; /* match context index */
25 typedef const struct OcrCellTypeInfo *OcrCellType;
26 extern const struct OcrCellTypeInfo ocr_celltype_text;
27 extern const struct OcrCellTypeInfo ocr_celltype_number;
29 typedef struct OcrReader OcrReader;
30 OcrReader *ocr_init(int h);
32 OcrResultGlyph *ocr(OcrReader *rd, OcrCellType, int w, Pixcol cols[]);
33 /* return value is array terminated by {0,-1,-1}
34 * array is valid until next call to ocr()
37 void debug_flush(void);
39 #define eassert assert
42 const char *get_vardir(void);