TesseractOcrEngineOptions
OfficeIMO.Ocr.Tesseract
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.
Returned or exposed by 2
- Method TesseractOcrEngineOptions.Clone
- Property TesseractOcrSessionOptions.Engine
Accepted by parameters 2
- Constructor TesseractOcrEngine.TesseractOcrEngine
- Method TesseractOcrEngine.CreateDefault
Constructors
public TesseractOcrEngineOptions() #Methods
public TesseractOcrEngineOptions Clone() #Creates an independent options snapshot.
Returns
TesseractOcrEngineOptionsInherited Methods
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.