Search Results for

    Show / Hide Table of Contents

    Class OcrInputFilterWizard

    OcrInputFilterWizard provides a brute-force filter assessment tool to try filter combinations within IronOCR to get the highest IronTesseract confidence.

    Simply call the Run(String, out String, out Double, IronTesseract) method with a image filepath, and optionally a Tesseract.

    Out variables include the result of the best combination's read, and the best confidence.

    Example use: var results = OcrInputFilterWizard.Run("img.png", out string text, out double confidence);

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

    Methods

    Run(String, IronTesseract)

    This method applies a brute-force filter assessment tool to try filter combinations within IronOCR to get the highest IronTesseract confidence.

    Example use: OcrInputFilterWizard.Run("img.png");

    Please note that this is a debug method which is CPU-intensive. When using a large PDF it may be wise to only scan a single page rather than the whole document.

    Declaration
    public static string Run(string filePath, IronTesseract tesseract = null)
    Parameters
    Type Name Description
    System.String filePath

    Relative or Absolute filepath to image to run wizard on.

    IronTesseract tesseract

    Optional Tesseract to include. Can be used if multiple languages need to be read.

    Returns
    Type Description
    System.String

    Code to use to reproduce the best confidence result as a multi-line string.

    Run(String, out Double, IronTesseract)

    This method applies a brute-force filter assessment tool to try filter combinations within IronOCR to get the highest IronTesseract confidence.

    Out variables include the result of the best confidence.

    Example use: OcrInputFilterWizard.Run("img.png", out double confidence);

    Please note that this is a debug method which is CPU-intensive. When using a large PDF it may be wise to only scan a single page rather than the whole document.

    Declaration
    public static string Run(string filePath, out double ironOcrConfidence, IronTesseract tesseract = null)
    Parameters
    Type Name Description
    System.String filePath

    Relative or Absolute filepath to image to run wizard on.

    System.Double ironOcrConfidence

    Out-variable of confidence of the best read result from Tesseract itself.

    IronTesseract tesseract

    Optional Tesseract to include. Can be used if multiple languages need to be read.

    Returns
    Type Description
    System.String

    Code to use to reproduce the best confidence result as a multi-line string.

    Run(String, out String, IronTesseract)

    This method applies a brute-force filter assessment tool to try filter combinations within IronOCR to get the highest IronTesseract confidence.

    Out variables include the result of the best combination's read text.

    Example use: OcrInputFilterWizard.Run("img.png", out string bestReadResult);

    Please note that this is a debug method which is CPU-intensive. When using a large PDF it may be wise to only scan a single page rather than the whole document.

    Declaration
    public static string Run(string filePath, out string bestReadResult, IronTesseract tesseract = null)
    Parameters
    Type Name Description
    System.String filePath

    Relative or Absolute filepath to image to run wizard on.

    System.String bestReadResult

    Out-variable of the best filter combination Tesseract string read result.

    IronTesseract tesseract

    Optional Tesseract to include. Can be used if multiple languages need to be read.

    Returns
    Type Description
    System.String

    Code to use to reproduce the best confidence result as a multi-line string.

    Run(String, out String, out Double, IronTesseract)

    This method applies a brute-force filter assessment tool to try filter combinations within IronOCR to get the highest IronTesseract confidence.

    Out variables include the result of the best combination's read text, and the best confidence.

    Example use: OcrInputFilterWizard.Run("img.png", out string text, out double confidence);

    Please note that this is a debug method which is CPU-intensive. When using a large PDF it may be wise to only scan a single page rather than the whole document.

    Declaration
    public static string Run(string filePath, out string bestReadResult, out double ironOcrConfidence, IronTesseract tesseract = null)
    Parameters
    Type Name Description
    System.String filePath

    Relative or Absolute filepath to image to run wizard on.

    System.String bestReadResult

    Out-variable of the best filter combination Tesseract string read result.

    System.Double ironOcrConfidence

    Out-variable of confidence of the best read result from Tesseract itself.

    IronTesseract tesseract

    Optional Tesseract to include. Can be used if multiple languages need to be read.

    Returns
    Type Description
    System.String

    Code to use to reproduce the best confidence result as a multi-line string.

    ☀
    ☾
    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.