Search Results for

    Show / Hide Table of Contents

    Class OpenCvClient

    Client layer for OpenCV interop

    Inheritance
    System.Object
    OpenCvClient
    Namespace: IronOcr
    Assembly: IronOcr.dll
    Syntax
    public class OpenCvClient : Object

    Properties

    Instance

    OpenCvClient Instance

    Declaration
    public static OpenCvClient Instance { get; }
    Property Value
    Type Description
    OpenCvClient

    Methods

    Dispose()

    Dispose OpenCvClient

    Declaration
    public virtual void Dispose()

    Finalize()

    Dispose OpenCvClient

    Declaration
    protected override void Finalize()

    FindTextRegion(Image, Double, Int32, Boolean, Boolean)

    Find first region of Text in image using OpenCV

    Declaration
    public Rectangle FindTextRegion(Image bitmap, double scale, int dilation_amount, bool binarize, bool invert)
    Parameters
    Type Name Description
    SixLabors.ImageSharp.Image bitmap

    Source image.

    System.Double scale

    Resolution scale factor. Image width and height will be multiplied by this value.

    System.Int32 dilation_amount

    Dilation amount, in pixels. Text areas width and height will be increased by this value.

    System.Boolean binarize

    True to convert the image to black and white, False otherwise

    System.Boolean invert

    True to invert image colors when binarizing, False otherwise

    Returns
    Type Description
    IronSoftware.Drawing.Rectangle

    FindTextRegions(Image, Double, Int32, Boolean, Boolean)

    Find all regions of Text in image using OpenCV

    Declaration
    public List<Rectangle> FindTextRegions(Image bitmap, double scale, int dilation_amount, bool binarize, bool invert)
    Parameters
    Type Name Description
    SixLabors.ImageSharp.Image bitmap

    Source image.

    System.Double scale

    Resolution scale factor. Image width and height will be multiplied by this value.

    System.Int32 dilation_amount

    Dilation amount, in pixels. Text areas width and height will be increased by this value.

    System.Boolean binarize

    True to convert the image to black and white, False otherwise

    System.Boolean invert

    True to invert image colors when binarizing, False otherwise

    Returns
    Type Description
    System.Collections.Generic.List<IronSoftware.Drawing.Rectangle>

    OpenCvClientInit()

    Initilize OpenCvClient

    Declaration
    protected virtual void OpenCvClientInit()
    ☀
    ☾
    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.