OcrResult Class

Definition

Contains the results of Optical Character Recognition (OCR).

public ref class OcrResult sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class OcrResult final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class OcrResult
Public NotInheritable Class OcrResult
Inheritance
Object Platform::Object IInspectable OcrResult
Attributes

Windows requirements

Device family
Windows 10 (introduced in 10.0.10240.0 - for Xbox, see UWP features that aren't yet supported on Xbox)
API contract
Windows.Foundation.UniversalApiContract (introduced in v1.0)

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

Lines

Gets the collection of OcrLine objects that represents the lines of text detected in the image by the RecognizeAsync method.

Text

Gets the recognized text.

TextAngle

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

Applies to

See also