Page 1 of 1

OCR speed and threading

Posted: Thu Jan 19, 2017 7:45 pm
by stammd
In using the OCRTesseractDoOCR() method I see it does not take a threading argument like OcrPages() does. Is there any way to enable OCRTesseractDoOCR() to take full advantage of the hardware cores available on a server to speed the processing?

I am seeing times of 7-9 seconds per page to do the OCRTesseractDoOCR() call. Is this normal?

David

Re: OCR speed and threading

Posted: Sun Jan 22, 2017 12:00 pm
by Loïc
Hello,

No it is not possible. The only way to use multi-threading is to run different ocr processes asynchronously. This is what OcrPages does. You can also decrease the processing time by
setting the number of passes: Use 0 for automatic (default value). Use 1 to obtain the best speed. Use 2 to favor accuracy (slower).


https://www.gdpicture.com/guides/gdpicture/web ... nt32).html

With best regards,

Loïc