OcrWord OcrWord OcrWord OcrWord Class

Definition

Represents a single word in a line of text recognized by the OCR engine and returned as part of the OcrLine.

public : sealed class OcrWord : IOcrWordpublic sealed class OcrWord : IOcrWordPublic NotInheritable Class OcrWord Implements IOcrWord// You can use this class in JavaScript.
Attributes
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0 - for Xbox, see UWP features that aren't yet supported on Xbox)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

Remarks

When you call the RecognizeAsync method of the OcrEngine class, the method returns an OcrResult object. The OcrResult contains a collection of OcrLine objects, which you access through the Lines property of the OcrResult. Each OcrLine object contains a collection of OcrWord objects, which you access through the Words property of each OcrLine.

Properties

BoundingRect BoundingRect BoundingRect BoundingRect

Gets the position and size in pixels of the recognized word from the top left corner of image when the value of TextAngle property is 0 (zero).

public : Rect BoundingRect { get; }public Rect BoundingRect { get; }Public ReadOnly Property BoundingRect As Rect// You can use this property in JavaScript.
Value
Rect Rect Rect Rect

The position and size in pixels of the recognized word from the top left corner of image when the value of TextAngle property is 0 (zero).

Remarks

When the value of the TextAngle property is not null, the values of the Left and Top properties of BoundingBox are calculated from the rotated image.

Text Text Text Text

Gets the text of the recognized word.

public : PlatForm::String Text { get; }public string Text { get; }Public ReadOnly Property Text As string// You can use this property in JavaScript.
Value
PlatForm::String string string string

The text of the recognized word.