TIEVisionOCR.getTextAngle
Declaration
function getTextAngle(): single; overload; safecall;
function getTextAngle(image: TIEVisionImage): single; overload; safecall;
Description
Returns the 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:
getOrientationExample
// detect orientation
angle := OCR.getTextAngle(image) * 180 / PI;
ImageEnView1.IEBitmap.Origin := ieboBOTTOMLEFT;
ImageEnView1.Proc.Rotate(-angle);