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
 Multiple langages for OCR
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

jalbrecht

20 Posts

Posted - May 21 2024 :  07:54:29  Show Profile  Reply
Hi all,

Is it possible and/or usefull to have more than one "traineddata" files?

I have document pages that are 50% in ENG and 50% in FRA.

Best regards.

xequte

38608 Posts

Posted - May 21 2024 :  19:10:56  Show Profile  Reply
Sure. You can do it as follows:

var
  langs: TIEVisionVectorString;
langs := IEVisionLib.createVectorString();
langs.push_back( IEOCRLanguageList[ OCR_English_language ].Code );  // load English
langs.push_back( IEOCRLanguageList[ OCR_Italian_language ].Code );  // load Italian
m_OCR := IEVisionLib.createOCR( '', langs );
str := m_OCR.recognize(ImageEnView1.IEBitmap.GetIEVisionImage(), IEVisionRect(0, 0, 0, 0)).c_str();

https://www.imageen.com/help/TIEVisionLibrary.createOCR.html

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