OcrResult.TextAngle Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
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.