OCRTesseractDoOCR not threadsafe?

Discussions about machine vision support in GdPicture.
Post Reply
ejurschi
Posts: 4
Joined: Tue Feb 02, 2010 10:28 pm

OCRTesseractDoOCR not threadsafe?

Post by ejurschi » Thu Feb 04, 2010 6:46 pm

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

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

Re: OCRTesseractDoOCR not threadsafe?

Post by Loïc » Thu Feb 04, 2010 7:11 pm

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

ejurschi
Posts: 4
Joined: Tue Feb 02, 2010 10:28 pm

Re: OCRTesseractDoOCR not threadsafe?

Post by ejurschi » Thu Feb 04, 2010 7:26 pm

Good news, thank you!
OCRing without using all cores of a machine is well, like 1995 :-)

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests