Skip to content

Latest commit

 

History

History
26 lines (18 loc) · 1.16 KB

ocrresult_textangle.md

File metadata and controls

26 lines (18 loc) · 1.16 KB
-api-id -api-type -api-device-family-note
P:Windows.Media.Ocr.OcrResult.TextAngle
winrt property
xbox

Windows.Media.Ocr.OcrResult.TextAngle

-description

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

-property-value

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.

-remarks

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.

Example of text angle in an image

-examples

-see-also