Class OcrResult.Block
Represents a block of text containing zero or more paragraphs.
Implements
IronSoftware.IDocumentTextObject
IronSoftware.IDocumentObject
IronSoftware.IBounded
IronSoftware.IColored
IronSoftware.ITransformable
Inherited Members
Namespace: IronOcr
Assembly: IronOcr.dll
Syntax
public class Block : OcrResult.OcrResultTextElement, IDocumentTextObject, IDocumentObject, IBounded, IColored, ITransformable
Properties
BlockNumber
A unique ID for this Block within its OcrResult object. The first block will be numbered 1.
Declaration
public int BlockNumber { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
BlockType
A string representation of the type of block.
See https://github.com/charlesw/tesseract/blob/master/src/Tesseract/PolyBlockType.cs
Declaration
public string BlockType { get; }
Property Value
Type | Description |
---|---|
System.String |
Characters
Every character of text within this block - in order.
Declaration
public OcrResult.Character[] Characters { get; }
Property Value
Type | Description |
---|---|
OcrResult.Character[] |
Lines
Every line of text within this block.
Declaration
public OcrResult.Line[] Lines { get; }
Property Value
Type | Description |
---|---|
OcrResult.Line[] |
Paragraphs
Every paragraph of text within this block.
Declaration
public OcrResult.Paragraph[] Paragraphs { get; }
Property Value
Type | Description |
---|---|
OcrResult.Paragraph[] |
Words
Every word of text within this block - in order.
Declaration
public OcrResult.Word[] Words { get; }
Property Value
Type | Description |
---|---|
OcrResult.Word[] |
Implements
IronSoftware.IDocumentTextObject
IronSoftware.IDocumentObject
IronSoftware.IBounded
IronSoftware.IColored
IronSoftware.ITransformable