when to use ProcessPage

25 views
Skip to first unread message

Neha Mittal

unread,
May 29, 2017, 4:58:37 AM5/29/17
to tesseract-ocr
The way I have been using tesseract so far is 
p_ocr_obj = new tesseract::TessBaseAPI();
 p_ocr_obj->Init(...);
p_ocr_obj->SetImage( ... );
p_ocr_obj->GetUTF8Text();

For some images, tesseract takes more than a minute to give a result. Not sure why but I was thinking that maybe I can set a timeout when calling the tesseract api. 
I see the function ProcessPage where I can give a timeout value. 
So my question is, what what does ProcessPage actually do? Is the functionality different from what I already have?

Is there any other way to set a timeout for tesseract?
Reply all
Reply to author
Forward
0 new messages