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
 OCR: How I can use 2 languages simultaneously?

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
ForumReader Posted - Feb 18 2020 : 01:11:32
Hello.
What if I have 2 languages in text?
For example 80% of text in English and other 20% in Russian.
I have both "trained" engine, but how I can connect it? :\
5   L A T E S T    R E P L I E S    (Newest First)
xequte Posted - Feb 20 2020 : 15:37:45
Hi

Yes, it seems to fail if the path is not specified. We will investigate. It works when I call:
...
m_OCR := IEVisionLib.createOCR( PAnsiChar(AnsiString(langPath)), langs );

Nigel
Xequte Software
www.imageen.com
ForumReader Posted - Feb 20 2020 : 11:24:37
Full project (in zip):
https://mega.nz/#!FJwzlIAa!_NZDNGrO7mKGzr7kISRiEUmDGGjvMDSxjppnkdZPjDQ

But you can easy reproduce this error replacing in OCR demo string:

// create OCR object
// m_OCR := IEVisionLib.createOCR(PAnsiChar(AnsiString(langPath)), PAnsiChar(AnsiString(langCode)), TIEVisionOCREngine(cmbEngine.ItemIndex));

TO:

langs := IEVisionLib.createVectorString();
langs.push_back( IEOCRLanguageList[ OCR_English_language ].Code ); // load English
langs.push_back( IEOCRLanguageList[ OCR_Russian_Language ].Code ); // load Italian
m_OCR := IEVisionLib.createOCR( '', langs );

and press Recognize :(
Please help.
xequte Posted - Feb 20 2020 : 04:56:10
Please email us the sample files that reproduce this.

Nigel
Xequte Software
www.imageen.com
ForumReader Posted - Feb 19 2020 : 04:33:25
I add this part of code to default demo. Of course, change Italian to OCR_Russian_Language.

Both "eng" and "rus" trained datafile in exe directory.

When I press "recognize" - get Access violation in ievision.dll at string
memo1.Lines.Text := m_OCR.recognize(ImageEnView1.IEBitmap ...

But original demo works well with "rus" or "eng" in rotation :\
Please help :(
xequte Posted - Feb 18 2020 : 14:17:37
Hi

Multiple languages can be supported 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 );


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

Nigel
Xequte Software
www.imageen.com