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

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
Forum membership is Free!  Click Join to sign-up
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 How to change language in OCR ?
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

Bo.Palmblad

Sweden
1 Posts

Posted - Aug 31 2012 :  23:39:45  Show Profile  Reply
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

xequte

38610 Posts

Posted - Sep 06 2012 :  15:03:29  Show Profile  Reply
Thanks Bosse,

We'll improve the example code in the documentation.



Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: