ImageEn, unit iexBitmaps

TIEBitmap.GetIEVisionImage

TIEBitmap.GetIEVisionImage


Declaration


function GetIEVisionImage(): TIEVisionImage;


Description


Creates a TIEVisionImage container for the current image.
This method can convert the image to a different pixel format and origin if necessary.

Note: GetIEVisionImage will make the following changes to your image:
- TIEBitmap.Origin changes to ieboTOPLEFT
- If image has an 8 bit palette then TIEBitmap.PixelFormat changes to ie24RGB


Example


// perform OCR (English language is the default) of "input.tiff"
ImageEnView1.IO.LoadFromFile('input.tiff');
str := IEVisionLib.createOCR().recognize(ImageEnView1.IEBitmap.GetIEVisionImage(), IEVisionRect(0, 0, 0, 0)).c_str();