Class OcrResult.Character
Represents a single character (char) of text.
Inheritance
System.Object
OcrResult.Character
Implements
IronSoftware.IDocumentTextObject
IronSoftware.IBounded
IronSoftware.IColored
IronSoftware.ITransformable
IronSoftware.IDocumentCharacter
IronSoftware.IDocumentObject
Inherited Members
Namespace: IronOcr
Assembly: IronOcr.dll
Syntax
public class Character : OcrResult.OcrResultTextElement, IDocumentTextObject, IBounded, IColored, ITransformable, IDocumentCharacter, IDocumentObject
Fields
Block
The block of text containing this character.
Declaration
public OcrResult.Block Block
Field Value
Type | Description |
---|---|
OcrResult.Block |
Line
The line of text containing this character.
Declaration
public OcrResult.Line Line
Field Value
Type | Description |
---|---|
OcrResult.Line |
Paragraph
The paragraph of text containing this character.
Declaration
public OcrResult.Paragraph Paragraph
Field Value
Type | Description |
---|---|
OcrResult.Paragraph |
Word
The word containing this character.
Declaration
public OcrResult.Word Word
Field Value
Type | Description |
---|---|
OcrResult.Word |
Properties
Angle
Declaration
public double Angle { get; set; }
Property Value
Type | Description |
---|---|
System.Double |
CharacterNumber
A unique ID number for this character within the document. The first character will be 1.
Declaration
public int CharacterNumber { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
Choices
A list of alternative words choices and their statistical relevance.
Declaration
public OcrResult.Choice[] Choices { get; }
Property Value
Type | Description |
---|---|
OcrResult.Choice[] |
Font
Detailed font information for this character. May only be visible using TesseractOnly.
Declaration
public OcrResult.OcrFont Font { get; }
Property Value
Type | Description |
---|---|
OcrResult.OcrFont |
LooseBottom
Declaration
public double LooseBottom { get; set; }
Property Value
Type | Description |
---|---|
System.Double |
LooseLeft
Declaration
public double LooseLeft { get; set; }
Property Value
Type | Description |
---|---|
System.Double |
LooseRight
Declaration
public double LooseRight { get; set; }
Property Value
Type | Description |
---|---|
System.Double |
LooseTop
Declaration
public double LooseTop { get; set; }
Property Value
Type | Description |
---|---|
System.Double |
Methods
ToChar()
Converts this object to a System.Char
Declaration
public char ToChar()
Returns
Type | Description |
---|---|
System.Char | A single character |
ToString()
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String |
Overrides
Implements
IronSoftware.IDocumentTextObject
IronSoftware.IBounded
IronSoftware.IColored
IronSoftware.ITransformable
IronSoftware.IDocumentCharacter
IronSoftware.IDocumentObject