Search Results for

    Show / Hide Table of Contents

    Class OcrImageInput

    OCR input based on image data

    Inheritance
    System.Object
    OcrInputBase
    OcrImageInput
    Implements
    IOcrInput
    System.IDisposable
    Inherited Members
    OcrInputBase.Finalize()
    OcrInputBase.FinalizePdfOnlyImages(OcrResult, OcrResult[], Byte[])
    OcrInputBase.FinalizePdfLegacy(OcrResult, OcrResult[], List<>)
    OcrInputBase.Combine_HOCR(OcrResult, OcrResult[])
    OcrInputBase.Dispose()
    OcrInputBase.SaveAsImages(String, OcrInput.ImageType)
    OcrInputBase.HighlightTextAndSaveAsImages(IronTesseract, String, ResultHighlightType)
    OcrInputBase.FindTextRegion(Double, Int32, Boolean, Boolean)
    OcrInputBase.FindMultipleTextRegions(Double, Int32, Boolean, Boolean)
    OcrInputBase.StampCropRectangleAndSaveAs(CropRectangle, Color, String, OcrInput.ImageType)
    OcrInputBase.ApplyMultipleFilters(OcrFilters, Double, Int32, Int32, Int32, Boolean, Nullable<Int32>)
    OcrInputBase.WithTitle(String)
    OcrInputBase.Scale(Int32, Boolean)
    OcrInputBase.EnhanceResolution(Int32)
    OcrInputBase.EnhanceResolution(, Int32)
    OcrInputBase.AdaptiveThreshold(Nullable<Single>)
    OcrInputBase.Rotate(Double)
    OcrInputBase.Binarize()
    OcrInputBase.ToGrayScale()
    OcrInputBase.Sharpen()
    OcrInputBase.ReplaceColor(Color, Color, Int32)
    OcrInputBase.SelectTextColor(Color, Int32)
    OcrInputBase.SelectTextColors(IEnumerable<Color>, Int32)
    OcrInputBase.Contrast(Single)
    OcrInputBase.DeNoise(Boolean)
    OcrInputBase.Despeckle(Boolean)
    OcrInputBase.Invert(Boolean)
    OcrInputBase.Erode(Boolean)
    OcrInputBase.Open(Boolean)
    OcrInputBase.Close(Boolean)
    OcrInputBase.HoughTransformStraighten(Int32)
    OcrInputBase.Deskew(Int32)
    OcrInputBase.Scale(Int32, Int32, Boolean)
    OcrInputBase.Dilate(Boolean)
    OcrInputBase.GetPages()
    OcrInputBase.RemovePages(IEnumerable<Int32>)
    OcrInputBase.RemovePage(Int32)
    OcrInputBase.PageCount()
    OcrInputBase.TargetDPI
    OcrInputBase.Title
    Namespace: IronOcr
    Assembly: IronOcr.dll
    Syntax
    public class OcrImageInput : OcrInputBase, IOcrInput, IDisposable

    Constructors

    OcrImageInput(AnyBitmap, Nullable<Int32>, CropRectangle, String)

    Create a new OCR image input from the specified AnyBitmap

    Declaration
    public OcrImageInput(AnyBitmap Bitmap, Nullable<int> Dpi = null, CropRectangle ContentArea = null, string Title = null)
    Parameters
    Type Name Description
    IronSoftware.Drawing.AnyBitmap Bitmap

    Image

    System.Nullable<System.Int32> Dpi

    Desired DPI

    IronSoftware.Drawing.CropRectangle ContentArea

    Desired crop area

    System.String Title

    Title

    OcrImageInput(Byte[], Nullable<Int32>, CropRectangle, String)

    Create a new OCR image input from the specified byte array

    Declaration
    public OcrImageInput(byte[] Bytes, Nullable<int> Dpi = null, CropRectangle ContentArea = null, string Title = null)
    Parameters
    Type Name Description
    System.Byte[] Bytes

    Image data

    System.Nullable<System.Int32> Dpi

    Desired DPI

    IronSoftware.Drawing.CropRectangle ContentArea

    Desired crop area

    System.String Title

    Title

    OcrImageInput(Stream, Nullable<Int32>, CropRectangle, String)

    Create a new OCR image input from the specified stream

    Declaration
    public OcrImageInput(Stream Stream, Nullable<int> Dpi = null, CropRectangle ContentArea = null, string Title = null)
    Parameters
    Type Name Description
    System.IO.Stream Stream

    Image data stream

    System.Nullable<System.Int32> Dpi

    Desired DPI

    IronSoftware.Drawing.CropRectangle ContentArea

    Desired crop area

    System.String Title

    Title

    OcrImageInput(String, Nullable<Int32>, CropRectangle, String)

    Create a new OCR image input from the specified path

    Declaration
    public OcrImageInput(string Path, Nullable<int> Dpi = null, CropRectangle ContentArea = null, string Title = null)
    Parameters
    Type Name Description
    System.String Path

    Image file path

    System.Nullable<System.Int32> Dpi

    Desired DPI

    IronSoftware.Drawing.CropRectangle ContentArea

    Desired crop area

    System.String Title

    Title

    Implements

    IOcrInput
    System.IDisposable

    Inherited members

    Finalize()
    FinalizePdfOnlyImages(OcrResult, OcrResult[], Byte[])
    IronOcr.OcrInputBase.FinalizePdfLegacy(IronOcr.OcrResult, IronOcr.OcrResult[], System.Collections.Generic.List<>)
    Combine_HOCR(OcrResult, OcrResult[])
    Dispose()
    SaveAsImages(String, OcrInput.ImageType)
    HighlightTextAndSaveAsImages(IronTesseract, String, ResultHighlightType)
    FindTextRegion(Double, Int32, Boolean, Boolean)
    FindMultipleTextRegions(Double, Int32, Boolean, Boolean)
    StampCropRectangleAndSaveAs(CropRectangle, Color, String, OcrInput.ImageType)
    ApplyMultipleFilters(OcrFilters, Double, Int32, Int32, Int32, Boolean, Nullable<Int32>)
    WithTitle(String)
    Scale(Int32, Boolean)
    EnhanceResolution(Int32)
    IronOcr.OcrInputBase.EnhanceResolution(, System.Int32)
    AdaptiveThreshold(Nullable<Single>)
    Rotate(Double)
    Binarize()
    ToGrayScale()
    Sharpen()
    ReplaceColor(Color, Color, Int32)
    SelectTextColor(Color, Int32)
    SelectTextColors(IEnumerable<Color>, Int32)
    Contrast(Single)
    DeNoise(Boolean)
    Despeckle(Boolean)
    Invert(Boolean)
    Erode(Boolean)
    Open(Boolean)
    Close(Boolean)
    HoughTransformStraighten(Int32)
    Deskew(Int32)
    Scale(Int32, Int32, Boolean)
    Dilate(Boolean)
    GetPages()
    RemovePages(IEnumerable<Int32>)
    RemovePage(Int32)
    PageCount()
    TargetDPI
    Title
    ☀
    ☾
    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.