OcrResult.TextAngle Property

Definition

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

public:
 property IReference<double> ^ TextAngle { IReference<double> ^ get(); };
IReference<double> TextAngle();
public System.Nullable<double> TextAngle { get; }
var iReference = ocrResult.textAngle;
Public ReadOnly Property TextAngle As Nullable(Of Double)

Property Value

IReference<Double>

Nullable<Double>

IReference<double>

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

Applies to