Topics   All   MacOS (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Deprecated   Guides   Examples   Videos
New in version: 12.2   12.3   12.4   12.5   13.0   13.1   13.2   13.3   13.4   13.5    Statistic    FMM    Blog  

WindowsOCR.TextAngle

Gets the clockwise rotation of the recognized text, in degrees, around the center of the image.

Component Version macOS Windows Linux Server iOS SDK
WindowsOCR 13.1 ❌ No ✅ Yes ❌ No ✅ Yes, on Windows ❌ No
MBS( "WindowsOCR.TextAngle"; OCR )   More

Parameters

Parameter Description Example
OCR The reference number of the ocr engine. $ocr

Result

Returns number or error.

Description

Gets the clockwise rotation of the recognized text, in degrees, around the center of the image.
Can be called after you recognised some text.

The clockwise rotation of the recognized text, in degrees, around the center of the image. If the angle of the text can't be detected, the value of this property is null. If the image contains text at different angles, only part of the text will be recognized correctly.

Use the TextAngle property to overlay recognition results correctly on the original image. If the value of the TextAngle property is not null or 0 (zero), then to overlay the recognized text correctly on the original image, you either have to rotate the original image by the detected angle in a counter-clockwise direction, or rotate the recognized text by the detected angle in a clockwise direction.

Blog Entries

This function checks for a license.

Created 22nd January 2023, last changed 22nd January 2023


WindowsOCR.Text - WindowsScript.AddCode

💬 Ask a question or report a problem