Search Results for

    Show / Hide Table of Contents

    Class OcrResult.Block

    Represents a block of text containing zero or more paragraphs.

    Inheritance
    System.Object
    OcrResult.OcrResultElement
    OcrResult.OcrResultTextElement
    OcrResult.Block
    Inherited Members
    OcrResult.OcrResultTextElement.ToString()
    OcrResult.OcrResultTextElement.TextDirection
    OcrResult.OcrResultTextElement.Text
    OcrResult.OcrResultTextElement.Confidence
    OcrResult.OcrResultElement.ToBitmap(OcrInput)
    OcrResult.OcrResultElement.Width
    OcrResult.OcrResultElement.Height
    OcrResult.OcrResultElement.X
    OcrResult.OcrResultElement.Y
    OcrResult.OcrResultElement.Location
    Namespace: IronOcr
    Assembly: IronOcr.dll
    Syntax
    public class Block : OcrResult.OcrResultTextElement

    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[]

    Inherited members

    ToString()
    TextDirection
    Text
    Confidence
    ToBitmap(OcrInput)
    Width
    Height
    X
    Y
    Location
    ☀
    ☾
    Downloads
    • Download with Nuget
    • Free 30-Day Trial Key
    In This Article
    Back to top
    Install with Nuget
    Want to deploy IronOCR to a live project for FREE?
    What’s included?
    30 days of fully-functional product
    Test and share in a live environment
    No watermarks in production
    Get your free 30-day Trial Key instantly.
    No credit card or account creation required
    Your Trial License Key has been emailed to you.
    Download IronOCR free to apply
    your Trial Licenses Key
    Install with NuGet View Licenses
    Licenses from $499. Have a question? Get in touch.