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 add other languages to the 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
zhengyuanyi27 Posted - Jan 05 2019 : 10:41:25
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
2   L A T E S T    R E P L I E S    (Newest First)
zhengyuanyi27 Posted - Jan 10 2019 : 00:05:52
Thanks a lot!
xequte Posted - Jan 05 2019 : 14:30:54
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/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