Tessnet2 C# Multi Threading

96 views
Skip to first unread message

Daniela Borgmann

unread,
Nov 17, 2015, 5:02:01 AM11/17/15
to tesseract-ocr
Hi!

I am currently using tessnet2 for ocr processing of multiple images. As the amount of images to be processed is quite high, I tried to add some threading into my ocr implementation (using Task.Factory in C#). 
Unfortunately I get an AccessViolationException of the tessnet2 dll - is there a possibility to use tessnet2 in the context of multithreading, and is there a newer version of tessnet2? Currently I'm using version 02SEP09.

Thanks in advance and best regards,
Daniela

Rich Taylor

unread,
Nov 17, 2015, 2:00:13 PM11/17/15
to tesseract-ocr
I'm not sure how you are building the Tesseract code for use with C#...

But, a while back I traced and "fixed" one part of the code which was causing an
AccessViolationException.  The fix was to disable Microsoft compiler optimization
during one part of the image processing.  This problem was aggravated by multiple
threads, but I was also able to reproduce it with a single thread sometimes.

So, if you're building Tesseract using Microsoft's compiler then look up my fixes.

-= Rich Taylor
Reply all
Reply to author
Forward
0 new messages