ImageEn, unit ievision

TIEVisionLibrary.createVectorString

TIEVisionLibrary.createVectorString


Declaration

function createVectorString(): TIEVisionVectorString; overload; safecall;
function createVectorString(src: TIEVisionVectorString): TIEVisionVectorString; overload; safecall;


Description

Create a vector (list) of strings.
Second overload creates a clone of specified vector of strings.

Parameter Description
src Vector to clone


Example

OCR with multiple languages:

var
  langs: TIEVisionVectorString;
begin
  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 );
  str := m_OCR.recognize(ImageEnView1.IEBitmap.GetIEVisionImage(), IEVisionRect(0, 0, 0, 0)).c_str();
end;