OCR speed and threading

Discussions about Tesseract OCR integration in GdPicture.
Post Reply
stammd
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?

David

User avatar
Loïc
Site Admin
Posts: 5601
Joined: Tue Oct 17, 2006 10:48 pm
Location: France
Contact:

Re: OCR speed and threading

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

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).


http://guides.gdpicture.com/content/web ... nt32).html

With best regards,

Loïc

Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests