ImageEn, unit ievision

TIEVisionOCR.langLoaded

TIEVisionOCR.langLoaded


Declaration

function langLoaded(): bool32; safecall;


Description

Returns True if the OCR object has been successfully initialized and the specified language(s) have been loaded.


Example

// create OCR object
m_OCR := IEVisionLib.createOCR( PAnsiChar(AnsiString( 'eng' )), ievOCRDefault );

// Check language files are available
if m_OCR.langLoaded() = False then
  raise Exception.create( 'Language is not loaded!' );

memo1.Lines.Text := m_OCR.recognize( ImageEnView1.IEBitmap.GetIEVisionImage(), IEVisionRect( ImageEnView1.SelectedRect )).c_str();