I have a loop that calls SetImage() and GetUTF8Text() once for each 
iteration of the loop. 

I have found that when I call tesseract::TessBaseAPI *api = new tesseract::
TessBaseAPI() and api->End() at the beginning and end of the loop, I 
actually get about .1 second improvement in time performance than if I only 
init and end tesseract once. 

Why would this counterintuitive thing happen? Based on these timings I'm 
assuming the process of clearing the contents of the previous call must be 
significantly slower than reinitializing tesseract, but this would still be 
quite counterintuitive.

-- 
You received this message because you are subscribed to the Google Groups 
"tesseract-ocr" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/tesseract-ocr.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tesseract-ocr/8beb6468-9dcd-4c42-9d67-dabd5bedc377%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to