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
Save Password
Forgot your Password?

 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 How to add other languages to the OCR?
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  


34 Posts

Posted - Jan 05 2019 :  10:41:25  Show Profile  Reply
I found the source OCR can only recognize English characters.
And I found a sentences in the OCR source code " cmbLanguage.Items.Add(IEOCRLanguageList[OCR_English_language].DisplayName);"
My questions and request is :
Could somebody tell me how to add other language to the OCR, such as simple Chinese?
Thanks a lot.


5342 Posts

Posted - Jan 05 2019 :  14:30:54  Show Profile  Reply
Hi Yuanyi

Download the OCR languages from:

Copy the Simplified or Traditional Chinese TrainedData file to the same folder as your EXE and call as follows:

sLanguage := 'chi_sim'; // Simplified Chinese
if FileExists( IncludeTrailingPathDelimiter( ExtractFilePath( Application.ExeName )) + sLanguage + '.traineddata' ) = False then
raise Exception.create( 'Language file not found' );
OCR := IEVisionLib.createOCR( sLanguage )

More Info:

Also, if you try the OCR demo from Demos\IEVision\OCR\. It will automatically support (show as an option) any language files found in the same folder as the demo exe.

Xequte Software
Go to Top of Page


34 Posts

Posted - Jan 10 2019 :  00:05:52  Show Profile  Reply
Thanks a lot!
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To: