Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

TesseractOcrEngineOptions

OfficeIMO.Ocr.Tesseract

Namespace
OfficeIMO.Ocr.Tesseract
Assembly
OfficeIMO.Ocr.Tesseract
Source revision
063fe3ee9839 with working tree changes
Modifiers
sealed

Configures the optional Tesseract command-line OCR engine.

Inheritance

  • object
  • TesseractOcrEngineOptions

Usage

Explore 4 API references to this type

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

Accepted by parameters 2

Constructors

public TesseractOcrEngineOptions() #

Methods

public TesseractOcrEngineOptions Clone() #

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 int? EngineMode { get; set; } #

Optional OCR engine mode from 0 through 3.

public int? PageSegmentationMode { get; set; } #

Optional page segmentation mode from 0 through 13.

public int? 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 long MaxOutputBytes { get; set; } #

Maximum TSV result size. Defaults to 32 MiB.

public long MaxInputBytes { get; set; } #

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

public int MaxProcessOutputCharacters { get; set; } #

Maximum retained process output characters.

public bool KeepTemporaryFiles { get; set; } #

Whether isolated temporary files are retained after recognition.