initwithlanguage

24 views
Skip to first unread message

flavie lancereau

unread,
Oct 30, 2009, 12:39:29 PM10/30/09
to tesseract-ocr
are arguments of TessBaseAPI::InitWithLanguage efficient for ocr ?

i do a c++ program which clean image then call for tesseract. Result
are completely different between calling terressarct with : system
("tesseract ...") and call TessBaseAPI .

rthomas

unread,
Oct 31, 2009, 12:30:30 AM10/31/09
to tesseract-ocr
The process do a thresholding on the image, the library doesn't.

Rémi

On Oct 30, 5:39 pm, flavie lancereau <lancereau.fla...@gmail.com>
wrote:

flavie lancereau

unread,
Nov 1, 2009, 5:11:22 AM11/1/09
to tesser...@googlegroups.com
i do a threshold too before calling tesserac but this can be my problem thank you. I will try to add otsu threshold in my program (i have see that tesseract use that threshold)


2009/10/31 rthomas <remi....@gmail.com>

flavie lancereau

unread,
Nov 3, 2009, 9:11:03 AM11/3/09
to tesseract-ocr
i found my problem it was the use of opencv buffer
so if people want to use opencv then tesseract you can use buffer as
follow :
text = TessBaseAPI::TesseractRect((unsigned char*)img->imageData,img-
>depth/8,img->widthStep,0,0,img->width,img->height);
text = TessBaseAPI::TesseractRectBoxes((unsigned char*)img-
>imageData,img->depth/8,img->widthStep,0,0,img->width,img->height,img-
>height);
where img is an IplImage for opencv

did someone know how to mask output error : "Using substitute bounding
box at ..." ?

On 1 nov, 11:11, flavie lancereau <lancereau.fla...@gmail.com> wrote:
> i do a threshold too before calling tesserac but this can be my problem
> thank you. I will try to add otsu threshold in my program (i have see that
> tesseract use that threshold)
>
> 2009/10/31 rthomas <remi.tho...@gmail.com>

flavie lancereau

unread,
Nov 24, 2009, 9:02:55 AM11/24/09
to tesseract-ocr
ok i answer myself
on ubuntu when calling my program i use 2>/dev/null error messages
will not appear
Reply all
Reply to author
Forward
0 new messages