OCR speed and threading

Discussions about machine vision support in GdPicture.
Post Reply
Posts: 8
Joined: Sun Oct 16, 2016 4:35 pm

OCR speed and threading

Post by stammd » Thu Jan 19, 2017 7:45 pm

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?


User avatar
Site Admin
Posts: 5858
Joined: Tue Oct 17, 2006 10:48 pm
Location: France

Re: OCR speed and threading

Post by Loïc » Sun Jan 22, 2017 12:00 pm


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,


Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests