ProcessOcrEngineOptions
OfficeIMO.Ocr.Process
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
- Constructor ProcessOcrEngine.ProcessOcrEngine
Constructors
public ProcessOcrEngineOptions() #Inherited Methods
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.