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
    Inherited Members
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ToString()
    System.Object.ReferenceEquals(System.Object, System.Object)
    Namespace: IronOcr
    Assembly: IronOcr.dll
    Syntax
    public abstract class OcrResultElement

    Constructors

    OcrResultElement()

    Declaration
    protected OcrResultElement()

    Properties

    Height

    Height in Pixels

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

    Location

    Returns a System.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
    System.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 Bitmap ToBitmap(OcrInput Input)
    Parameters
    Type Name Description
    OcrInput Input

    The OcrInput document that was read by IronTesseract

    Returns
    Type Description
    System.Drawing.Bitmap

    A System.Drawing.Bitmap which should be disposed.

    ☀
    ☾
    In This Article
    Back to top
    Install with Nuget