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 add other languages to the OCR?
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

zhengyuanyi27

32 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.
Yuanyi

xequte

4897 Posts

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

Download the OCR languages from:

http://www.imageen.com/files/Reg/IEVision_OCR/IEVision_AllLanguages.zip

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: https://www.imageen.com/help/ImageEn/TIEVisionLibrary.createOCR.html


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.



Nigel
Xequte Software
www.imageen.com
Go to Top of Page

zhengyuanyi27

32 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: