41 OcrImage(
const uchar* p,
const QRect& _r,
int _s) : image((uint*)p), r(_r), stride(_s) {}
43 bool dot(
int x,
int y)
const {
44 return (*(image + (y * stride) + (x / 32))) & (0x1 << (x % 32));
53 tesseract::TessBaseAPI*
tess;
OcrImage(const uchar *p, const QRect &_r, int _s)
Definition: ocr.h:41
uint * image
Definition: ocr.h:36
QRect r
Definition: ocr.h:37
Definition: aeolus.cpp:26
bool dot(int x, int y) const
Definition: ocr.h:43
int stride
Definition: ocr.h:38
tesseract::TessBaseAPI * tess
Definition: ocr.h:53
OcrImage()
Definition: ocr.h:40