Page 1 of 1

OCRTesseractDoOCR not threadsafe?

Posted: Thu Feb 04, 2010 6:46 pm
by ejurschi
I am trying to integrate some ocr functionality into a multithreaded job processing software. Without the ocr everything is stable and threadsafe.

OCRTesseractDoOCR is working fine sequentially (while using only 1 thread), but with 2 threads and more it crashes with an access violation in gdocrplug.tesseract.dll. (Windows 7-64, Delphi 7).

So: Is OCRTesseractDoOCR not threadsafe?

Btw, I am impressed with GdPicture ActiveX, good work!

Greetings from Berlin
Erwin Jurschitza

Re: OCRTesseractDoOCR not threadsafe?

Posted: Thu Feb 04, 2010 7:11 pm
by Loïc
Hi,

Tesseract OCR engine is not yet thread-safe. You can use it in a single thread mode only.

Work is in progress to release a multi-thread engine :)

Kind regards,

Loïc

Re: OCRTesseractDoOCR not threadsafe?

Posted: Thu Feb 04, 2010 7:26 pm
by ejurschi
Good news, thank you!
OCRing without using all cores of a machine is well, like 1995 :-)