typedef struct {
const char *s; /* valid until next call to ocr() */
int l,r; /* column numbers */
- int ctxi; /* match context index */
+ int match; /* match context index */
+ unsigned ctxmap; /* possible match contexts */
} OcrResultGlyph;
typedef struct OcrReader OcrReader;
OcrReader *ocr_init(int h);
+void ocr_showcharsets(void);
OcrResultGlyph *ocr(OcrReader *rd, OcrCellType, int w, Pixcol cols[]);
/* return value is array terminated by {0,-1,-1}