Class OneOcrWord
Default implementation of IOCRWord for OneOCR engine results.
Implements
Inherited Members
Namespace: Zaya.OCR.Impl.OneOcr.Models
Assembly: Zaya.OCR.Impl.OneOcr.dll
Syntax
public sealed class OneOcrWord : IOCRWord
Constructors
| Edit this page View SourceOneOcrWord(string, BoundingBox, double)
Initializes a new instance of the OneOcrWord class.
Declaration
public OneOcrWord(string text, BoundingBox bounds, double confidence)
Parameters
| Type | Name | Description |
|---|---|---|
| string | text | The recognized text. |
| BoundingBox | bounds | The oriented bounding box in the image. |
| double | confidence | The confidence score (0.0 to 1.0). |
Properties
| Edit this page View SourceBounds
Gets the oriented bounding box of the word in the image.
Declaration
public BoundingBox Bounds { get; }
Property Value
| Type | Description |
|---|---|
| BoundingBox |
Confidence
Gets the confidence of the word recognition (0.0 to 1.0).
Declaration
public double Confidence { get; }
Property Value
| Type | Description |
|---|---|
| double |
Text
Gets the recognized text of the word.
Declaration
public string Text { get; }
Property Value
| Type | Description |
|---|---|
| string |