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?