X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~yarrgweb/git?a=blobdiff_plain;f=pctb%2Focr.h;h=d9a25f7a790da26812b5352a5d397f4c94e18352;hb=024dcba9bc55d02e5c05100ed65f8d64a1eb3bbf;hp=b77a56f8905f5269cddedc4d33de783490ece33a;hpb=d3eaa28d304c5b0639bc0f7e29b3285317d5c1e7;p=ypp-sc-tools.db-test.git diff --git a/pctb/ocr.h b/pctb/ocr.h index b77a56f..d9a25f7 100644 --- a/pctb/ocr.h +++ b/pctb/ocr.h @@ -11,8 +11,18 @@ #include #include #include +#include + #include #include +#include + + +typedef struct { + int w,h; + char d[]; +} CanonImage; + typedef uint32_t Pixcol; #define PSPIXCOL(priscan) priscan##32 @@ -42,8 +52,15 @@ void debug_flush(void); const char *get_vardir(void); +CanonImage *file_read_image(FILE *f); +int main_test(void); + +#define MAX_PAGES 100 +extern CanonImage *page_images[MAX_PAGES]; +extern int npages; + -/* #define DEBUG_RECTANGLES */ -/* #define DEBUG_OCR */ +#define DEBUG_RECTANGLES +// #define DEBUG_OCR #endif /*OCR_H*/