Search Results for

    Show / Hide Table of Contents

    Class OcrImageInput

    OCR input based on image data

    Inheritance
    System.Object
    OcrInputBase
    OcrImageInput
    Implements
    System.IDisposable
    Inherited Members
    OcrInputBase.Finalize()
    OcrInputBase.Dispose()
    OcrInputBase.SaveAsImages(String, AnyBitmap.ImageFormat)
    OcrInputBase.HighlightTextAndSaveAsImages(IronTesseract, String, ResultHighlightType)
    OcrInputBase.FindTextRegion()
    OcrInputBase.FindMultipleTextRegions()
    OcrInputBase.StampCropRectanglesAndSaveAs(Rectangle[], Color, String, AnyBitmap.ImageFormat)
    OcrInputBase.StampCropRectangleAndSaveAs(Rectangle, Color, String, AnyBitmap.ImageFormat)
    OcrInputBase.StampCropRectangle(OcrInput, Rectangle, Color)
    OcrInputBase.StampCropRectangles(OcrInput, Rectangle[], Color)
    OcrInputBase.ApplyMultipleFilters(OcrFilters, Double, Int32, Int32, Int32, Boolean, Nullable<Int32>)
    OcrInputBase.WithTitle(String)
    OcrInputBase.Scale(Int32, Boolean)
    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.DetectPageOrientation(OrientationDetectionMode)
    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, IDisposable

    Constructors

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

    Create a new OCR image input from the specified AnyBitmap

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

    Image

    System.Nullable<System.Int32> Dpi

    Desired DPI

    IronSoftware.Drawing.Rectangle ContentArea

    Desired crop area

    System.String Title

    Title

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

    Create a new OCR image input from the specified byte array

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

    Image data

    System.Nullable<System.Int32> Dpi

    Desired DPI

    IronSoftware.Drawing.Rectangle ContentArea

    Desired crop area

    System.String Title

    Title

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

    Create a new OCR image input from the specified stream

    Declaration
    public OcrImageInput(Stream Stream, Nullable<int> Dpi = null, Rectangle 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.Rectangle ContentArea

    Desired crop area

    System.String Title

    Title

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

    Create a new OCR image input from the specified path

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

    Image file path

    System.Nullable<System.Int32> Dpi

    Desired DPI

    IronSoftware.Drawing.Rectangle ContentArea

    Desired crop area

    System.String Title

    Title

    Implements

    System.IDisposable

    Inherited members

    Finalize()
    Dispose()
    SaveAsImages(String, AnyBitmap.ImageFormat)
    HighlightTextAndSaveAsImages(IronTesseract, String, ResultHighlightType)
    FindTextRegion()
    FindMultipleTextRegions()
    StampCropRectanglesAndSaveAs(Rectangle[], Color, String, AnyBitmap.ImageFormat)
    StampCropRectangleAndSaveAs(Rectangle, Color, String, AnyBitmap.ImageFormat)
    StampCropRectangle(OcrInput, Rectangle, Color)
    StampCropRectangles(OcrInput, Rectangle[], Color)
    ApplyMultipleFilters(OcrFilters, Double, Int32, Int32, Int32, Boolean, Nullable<Int32>)
    WithTitle(String)
    Scale(Int32, Boolean)
    EnhanceResolution(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)
    DetectPageOrientation(OrientationDetectionMode)
    Scale(Int32, Int32, Boolean)
    Dilate(Boolean)
    GetPages()
    RemovePages(IEnumerable<Int32>)
    RemovePage(Int32)
    PageCount()
    TargetDPI
    Title
    ☀
    ☾
    Downloads
    • Download with Nuget
    • Start for Free
    In This Article
    Back to top
    Install with Nuget
    IronOCR_for_dotnet_log2o
    Blue key in circleGet started for FREE
    No credit card required
    Test in a live environment

    Test in production without watermarks.
    Works wherever you need it to.

    Fully-functional product

    Get 30 days of fully functional product.
    Have it up and running in minutes.

    24/5 technical support

    Full access to our support engineering team during your product trial

    Grey key in circleGet started for FREE
    The trial form was submitted successfully.
    Calendar in circleBook Free Live Demo
    No contact, no card details, no commitments Book a 30-minute, personal demo.
    Here's what to expect:

    A live demo of our product and its key features

    Get project specific feature recommendations

    All your questions are answered to make sure you have all the information you need. (No commitment whatsoever.)

    Grey key in circleBook Free Live Demo
    Your booking has been completed Check your e-mail for confirmation
    Support Team Member 6 related to The C# PDF Library Support Team Member 14 related to The C# PDF Library Support Team Member 4 related to The C# PDF Library Support Team Member 2 related to The C# PDF Library
    Online 24/5
    Need help? Our sales team would be glad to help you.
    Try the Enterprise Trial
    ironpdf_for_dotnet_log2o
    Key in blue circle
    Get your free 30-day Trial Key instantly.
    bullet_checkedNo credit card or account creation required
    Key in blue circle
    Get your free 30-day Trial Key instantly.
    Blue key in circleNo credit card or account creation required
    Green Check in orange circle
    The trial form was submitted successfully.
    badge_greencheck_in_yellowcircle
    Thank you for starting a trial

    Please check your email for the trial license key.

    If you don’t receive an email, please start a live chat or email support@ironsoftware.com

    Install with NuGet
    View Licensing
    • Logo Aetna
    • Logo NASA
    • Logo GE
    • Logo Porsche
    • Logo USDA
    • Logo Qatar
    Join Millions of Engineers who’ve tried IronOCR