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
 How to change language in OCR ?

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
Bo.Palmblad Posted - Aug 31 2012 : 23:39:45
I can't figure out how to be able to change language from say ENLISH to "german" between two OCR scans? This should be happening during RUNTIME, scanning any language is no problem!!

No matter how I do it, I just can't make it work. I always get a crash of different kind.

Anyone that have a suggestion..

/Bosse

after this i found a solution..........

ChDir(MainPath); // Ensure that path is program dir
Screen.Cursor := crHourglass;

// Setup language i want right now
Case AdvOfficeRadioGroup1.ItemIndex of
0 : e_OCR := IEVisionLib.createOCR(':ENG'); // english language
1 : e_OCR := IEVisionLib.createOCR('swedish'); // english language
2 : e_OCR := IEVisionLib.createOCR('german'); // english language
End;

// perform OCR, as done in example!!
SetOCRParams();
ocrrect := ImageEnVect1.SelectedRect;
memo1.Lines.Text := e_OCR.recognize(ImageEnVect1.IEBitmap.GetIEVisionImage(),IEVisionRect(ocrrect.x, ocrrect.y, ocrrect.width, ocrrect.height)).c_str();
e_OCR:=nil;

Regards Bosse
1   L A T E S T    R E P L I E S    (Newest First)
xequte Posted - Sep 06 2012 : 15:03:29
Thanks Bosse,

We'll improve the example code in the documentation.



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