ImageEn for Delphi and C++ Builder ImageEn for Delphi and C++ Builder

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 IEVision

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

View 
UserName:
Password:
Format  Bold Italicized Underline  Align Left Centered Align Right  Horizontal Rule  Insert Hyperlink   Browse for an image to attach to your post Browse for a zip to attach to your post Insert Code  Insert Quote Insert List
   
Message 

 

Emoji
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Black Eye [B)]
Frown [:(] Shocked [:0] Angry [:(!] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
win568 Posted - Dec 03 2012 : 05:26:09
Hi Guys

We need a version of IEVision were we can execute the CreateOCR Function several times. We use it to extract text from images in a multithreaded environment. Is this possible ??
3   L A T E S T    R E P L I E S    (Newest First)
fab Posted - Dec 14 2012 : 04:22:53
At the moment the OCR engine is not thread-safe. Only one TIEVisionOCR can work for each thread.
win568 Posted - Dec 03 2012 : 14:04:13
Hi Nigel

Thank you for your reply. My Problem is that i cannot serialize it. The OCR recognition will be executed in several threads. When the User selects a file in the GUI, a thread will be executed to extract the text. When the User selects an Other file, a Second Thread will be executed. In this Case the recognition can work parallel.

That is my Problem. Ehen the Second Thread will be executed, i got an exception
xequte Posted - Dec 03 2012 : 13:06:41
Hi

You can create it as often as you like, just ensure you null it between calls:

e_OCR := IEVisionLib.createOCR(':ENG');
e_OCR.recognize(ivw.IEBitmap.GetIEVisionImage(),IEVisionRect(ocrrect.x, ocrrect.y, ocrrect.width, ocrrect.height)).c_str();
e_OCR := nil;

e_OCR := IEVisionLib.createOCR('swedish');
e_OCR.recognize(ivw.IEBitmap.GetIEVisionImage(),IEVisionRect(ocrrect.x, ocrrect.y, ocrrect.width, ocrrect.height)).c_str();
e_OCR := nil;

e_OCR := IEVisionLib.createOCR('german');
e_OCR.recognize(ivw.IEBitmap.GetIEVisionImage(),IEVisionRect(ocrrect.x, ocrrect.y, ocrrect.width, ocrrect.height)).c_str();
e_OCR := nil;



Nigel
Xequte Software
www.xequte.com
nigel@xequte.com