API Reference

Class

TesseractOcrEngineOptions

Namespace OfficeIMO.Ocr.Tesseract
Assembly OfficeIMO.Ocr.Tesseract
Modifiers sealed

Configures the optional Tesseract command-line OCR engine.

Inheritance

  • Object
  • TesseractOcrEngineOptions

Usage

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

Accepted by parameters

Constructors

Methods

public TesseractOcrEngineOptions Clone() #
Returns: TesseractOcrEngineOptions

Creates an independent options snapshot.

Properties

public String ExecutablePath { get; set; } #

Optional executable path or name. Leave null for environment, PATH, and known-location discovery. Direct engine construction uses tesseract when no resolved path is supplied.

public String Language { get; set; } #

Default Tesseract language expression, such as eng or eng+pol.

public String TessdataDirectory { get; set; } #

Optional tessdata directory passed through --tessdata-dir.

public Nullable<Int32> EngineMode { get; set; } #

Optional OCR engine mode from 0 through 3.

public Nullable<Int32> PageSegmentationMode { get; set; } #

Optional page segmentation mode from 0 through 13.

public Nullable<Int32> Dpi { get; set; } #

Optional input DPI passed through --dpi.

public IReadOnlyList<String> AdditionalArguments { get; set; } #

Additional direct Tesseract arguments inserted before the explicit TSV output setting.

public String TemporaryDirectory { get; set; } #

Optional parent directory for isolated per-request temporary folders.

public TimeSpan Timeout { get; set; } #

Maximum recognition process duration. Defaults to two minutes.

public Int64 MaxOutputBytes { get; set; } #

Maximum TSV result size. Defaults to 32 MiB.

public Int64 MaxInputBytes { get; set; } #

Maximum input payload size accepted by direct engine calls. Defaults to 25 MiB.

public Int32 MaxProcessOutputCharacters { get; set; } #

Maximum retained process output characters.

public Boolean KeepTemporaryFiles { get; set; } #

Whether isolated temporary files are retained after recognition.