Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

ProcessOcrEngineOptions

OfficeIMO.Ocr.Process

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

Configures the generic JSON file-protocol OCR process engine.

Inheritance

  • object
  • ProcessOcrEngineOptions

Usage

Explore 1 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 1

Constructors

public ProcessOcrEngineOptions() #

Properties

public string FileName { get; set; } #

Direct executable path or name. Required.

public IReadOnlyList<string> Arguments { get; set; } #

Argument templates. Supported placeholders are {request}, {input}, {output}, {language}, {candidateId}, {sourceId}, and {pageNumber}.

public string Id { get; set; } #

Stable engine identifier. Defaults to process; the untrimmed value must not exceed OcrEngineRunner.MaximumEngineIdCharacters characters.

public string? WorkingDirectory { get; set; } #

Optional working directory for the executable.

public IReadOnlyDictionary<string, string> EnvironmentVariables { get; set; } #

Optional environment values applied to the child process.

public string? TemporaryDirectory { get; set; } #

Optional parent directory for isolated per-request temporary folders.

public TimeSpan Timeout { get; set; } #

Maximum process duration. Defaults to two minutes.

public long MaxOutputBytes { get; set; } #

Maximum JSON response size. Defaults to 16 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 standard-output and standard-error characters.

public bool KeepTemporaryFiles { get; set; } #

Whether isolated temporary files are retained after recognition.

public OcrEngineCapabilities Capabilities { get; set; } #

Capabilities advertised by the external protocol implementation.