ImageEn, unit ievision

TIEVisionOCR.getTextAngle

TIEVisionOCR.getTextAngle


Declaration

function getTextAngle(): single; overload; safecall;
function getTextAngle(image: TIEVisionImage): single; overload; safecall;


Description

Returns text angle (orientation) in radians.
First overload takes last processed image as input.
Second overload takes the specified image as input.

Parameter Description
image Source image.

See also: getOrientation


Example

// detect orientation
angle := OCR.getTextAngle(image) * 180 / PI;
ImageEnView1.IEBitmap.Origin := ieboBOTTOMLEFT;
ImageEnView1.Proc.Rotate(-angle);