Search Results for

    Show / Hide Table of Contents

    Class ShellExecutor

    Inheritance
    System.Object
    ShellExecutor
    Namespace: DynamicTesseract
    Assembly: IronOcr.dll
    Syntax
    public static class ShellExecutor : Object

    ShellExecutor is the internal helper IronOCR uses to run an external process while setting up or driving its native Tesseract tooling. It wraps the work of launching a command-line program and waiting for it to finish, so the surrounding loader code does not repeat process-handling boilerplate.

    The type exposes one static method, ExecuteCommand, which takes the program to run as fileName, the command-line arguments to pass it, and an optional expected exitCode that defaults to 0. The call runs the process to completion and treats a return code other than the expected value as a failure, surfacing it to the caller. Because the class is static, there is nothing to instantiate. This is plumbing for the engine's native setup rather than a recognition API, so most projects never call it directly and instead work through IronOCR's higher-level reading methods. The IronTesseract how-to walks through configuring and running the engine.

    Methods

    ExecuteCommand(String, String, Int32)

    Declaration
    public static void ExecuteCommand(string fileName, string arguments, int exitCode = 0)
    Parameters
    Type Name Description
    System.String fileName
    System.String arguments
    System.Int32 exitCode
    ☀
    ☾
    Downloads
    • Download with Nuget
    • Start for Free
    In This Article
    Back to top
    Install with Nuget