Class OcrResult.OcrResultTextElement
An abstract class representing discovered OCR DOM text elements such as OcrResult.Character, OcrResult.Word, OcrResult.Line, OcrResult.Paragraph ...
Inheritance
System.Object
OcrResult.OcrResultTextElement
Implements
IronSoftware.IDocumentTextObject
IronSoftware.IBoundedDocumentObject
IronSoftware.IDocumentObject
IronSoftware.IBounded
IronSoftware.ITransformable
IronSoftware.IColored
System.ICloneable
Inherited Members
Namespace: IronOcr
Assembly: IronOcr.dll
Syntax
public abstract class OcrResultTextElement : OcrResult.OcrResultElement, IDocumentTextObject, IBoundedDocumentObject, IDocumentObject, IBounded, ITransformable, IColored, ICloneable
Constructors
OcrResultTextElement()
Declaration
protected OcrResultTextElement()
Properties
Bottom
Declaration
public double Bottom { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Double |
BoundingBox
Declaration
public RectangleF BoundingBox { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Drawing.RectangleF |
Color
Declaration
public Color Color { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Drawing.Color |
Confidence
OCR statistical accuracy confidence as an average of every character within this object.
1 = 100%, 0 = 0%
Declaration
public virtual double Confidence { get; }
Property Value
| Type | Description |
|---|---|
| System.Double |
Contents
Declaration
public string Contents { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String |
Left
Declaration
public double Left { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Double |
Matrix
Declaration
public MatrixStruct Matrix { get; }
Property Value
| Type | Description |
|---|---|
| IronSoftware.MatrixStruct |
ObjNum
Declaration
public uint ObjNum { get; set; }
Property Value
| Type | Description |
|---|---|
| System.UInt32 |
PageIndex
Declaration
public uint PageIndex { get; set; }
Property Value
| Type | Description |
|---|---|
| System.UInt32 |
PdfDocumentId
Declaration
public IDocumentId PdfDocumentId { get; set; }
Property Value
| Type | Description |
|---|---|
| IronSoftware.IDocumentId |
Right
Declaration
public double Right { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Double |
Scale
Declaration
public PointF Scale { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Drawing.PointF |
Text
The full text of this OcrResultElement as a string. This is truncated when the product is unlicensed.
Declaration
public string Text { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String |
TextDirection
The direction text was read in: such as 'Left to Right' or 'Top to Bottom'.
Declaration
public OcrResult.TextFlow TextDirection { get; }
Property Value
| Type | Description |
|---|---|
| OcrResult.TextFlow |
Top
Declaration
public double Top { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Double |
Translate
Declaration
public PointF Translate { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Drawing.PointF |
Methods
Clone()
Declaration
public object Clone()
Returns
| Type | Description |
|---|---|
| System.Object |
ToString()
Full OCR text discovered within this object.
A synonym of Text
.Declaration
public override string ToString()
Returns
| Type | Description |
|---|---|
| System.String |
Implements
IronSoftware.IDocumentTextObject
IronSoftware.IBoundedDocumentObject
IronSoftware.IDocumentObject
IronSoftware.IBounded
IronSoftware.ITransformable
IronSoftware.IColored
System.ICloneable