Share via


OcrWord クラス

定義

OCR エンジンによって認識され、 OcrLine の一部として返されるテキスト行内の 1 つの単語を表します。

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
継承
Object Platform::Object IInspectable OcrWord
属性

Windows の要件

デバイス ファミリ
Windows 10 (10.0.10240.0 - for Xbox, see UWP features that aren't yet supported on Xbox で導入)
API contract
Windows.Foundation.UniversalApiContract (v1.0 で導入)

注釈

OcrEngine クラスの RecognizeAsync メソッドを呼び出すと、 メソッドは OcrResult オブジェクトを返します。 OcrResult には、OcrResultLines プロパティを使用してアクセスする OcrLine オブジェクトのコレクションが含まれています。 各 OcrLine オブジェクトには OcrWord オブジェクトのコレクションが含まれており、各 OcrLineWords プロパティを使用してアクセスできます。

プロパティ

BoundingRect

TextAngle プロパティの値が 0 (ゼロ) の場合に、画像の左上隅から認識された単語の位置とサイズをピクセル単位で取得します。

Text

認識された単語のテキストを取得します。

適用対象