Search Results for

    Show / Hide Table of Contents

    Class OcrResult.OcrResultElement

    Lowest level of abstract OcrResult DOM element. All result objects extend from this including OcrResult.Barcode, OcrResult.Character, OcrResult.Word, OcrResult.Line, OcrResult.Paragraph ...

    Inheritance
    System.Object
    OcrResult.OcrResultElement
    OcrResult.Barcode
    OcrResult.OcrResultTextElement
    Namespace: IronOcr
    Assembly: IronOcr.dll
    Syntax
    public abstract class OcrResultElement : Object

    Constructors

    OcrResultElement()

    Declaration
    protected OcrResultElement()

    Properties

    Height

    Height in Pixels

    Declaration
    public int Height { get; }
    Property Value
    Type Description
    System.Int32

    Location

    Returns a IronSoftware.Drawing.Rectangle of the location and size of this element within an OCR page. Units are pixels and reference locations on the source image.

    Declaration
    public Rectangle Location { get; }
    Property Value
    Type Description
    IronSoftware.Drawing.Rectangle

    Width

    Width in Pixels

    Declaration
    public int Width { get; }
    Property Value
    Type Description
    System.Int32

    X

    Position of this OCR Results object on the source image (page) in pixels counted from the left edge.

    Declaration
    public int X { get; }
    Property Value
    Type Description
    System.Int32

    Y

    Position of this OCR Results object on the source image (page) in pixels counted down from the top edge.

    Declaration
    public int Y { get; }
    Property Value
    Type Description
    System.Int32

    Methods

    ToBitmap(OcrInput)

    Returns an image of this element.

    Declaration
    public AnyBitmap ToBitmap(OcrInput Input)
    Parameters
    Type Name Description
    OcrInput Input

    The OcrInput document that was read by IronTesseract

    Returns
    Type Description
    IronSoftware.Drawing.AnyBitmap

    A IronSoftware.Drawing.AnyBitmap.

    ☀
    ☾
    Downloads
    • Download with Nuget
    • Start for Free
    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.