X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~yarrgweb/git?p=ypp-sc-tools.main.git;a=blobdiff_plain;f=pctb%2Focr.h;h=a03f1f508dfc5e350f589a9a458c8b138a1783e7;hp=d08ae15ba8b0878a990b0a135e39fbf84cdbb0e9;hb=5a2c03e2e4f52b8329f45cf67afc3edec1f2c65b;hpb=8787ee59f6840de63bac432b516a30d0dfe22c84 diff --git a/pctb/ocr.h b/pctb/ocr.h index d08ae15..a03f1f5 100644 --- a/pctb/ocr.h +++ b/pctb/ocr.h @@ -19,17 +19,17 @@ typedef uint32_t Pixcol; typedef struct { const char *s; /* valid until next call to ocr() */ int l,r; /* column numbers */ - int ctx; /* match context index */ + unsigned ctxmap; /* match context index */ } OcrResultGlyph; -typedef const struct OcrGlyphContextDeveloperInfo *OcrCellContext; -extern const struct OcrGlyphContextDeveloperInfo *ocr_celltype_text; -extern const struct OcrGlyphContextDeveloperInfo *ocr_celltype_number; +typedef const struct OcrCellTypeInfo *OcrCellType; +extern const struct OcrCellTypeInfo ocr_celltype_text; +extern const struct OcrCellTypeInfo ocr_celltype_number; typedef struct OcrReader OcrReader; OcrReader *ocr_init(int h); -OcrResultGlyph *ocr(OcrReader *rd, int w, Pixcol cols[]); +OcrResultGlyph *ocr(OcrReader *rd, OcrCellType, int w, Pixcol cols[]); /* return value is array terminated by {0,-1,-1} * array is valid until next call to ocr() */