OcrLine OcrLine OcrLine OcrLine Class

Definition

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

public : sealed class OcrLine : IOcrLinepublic sealed class OcrLine : IOcrLinePublic NotInheritable Class OcrLine Implements IOcrLine// 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

Text Text Text Text

Gets the text of the recognized line.

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 line.

Words Words Words Words

Gets the collection of OcrWord objects that represents the words detected in the current line of text by the RecognizeAsync method.

public : IVectorView<OcrWord> Words { get; }public IReadOnlyList<OcrWord> Words { get; }Public ReadOnly Property Words As IReadOnlyList<OcrWord>// You can use this property in JavaScript.
Value
IVectorView<OcrWord> IReadOnlyList<OcrWord> IReadOnlyList<OcrWord> IReadOnlyList<OcrWord>

The collection of OcrWord objects that represents the words detected in the current line of text by the RecognizeAsync method.