Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

OcrWord Class

Definition

Namespace:
Windows.Media.Ocr

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.

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

public ref class OcrWord 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 OcrWord 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 OcrWord
Public NotInheritable Class OcrWord
Inheritance
Object Platform::Object IInspectable OcrWord
Attributes

Windows requirements

Requirements Description
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

Name Description
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).

Text

Gets the text of the recognized word.

Applies to


Feedback

Was this page helpful?