# ProcessOcrEngineOptions

Configures the generic JSON file-protocol OCR process engine.

Class 

`OfficeIMO.Ocr.Process`

**Namespace**

`OfficeIMO.Ocr.Process`

**Assembly**

`OfficeIMO.Ocr.Process`

**Source revision**

`063fe3ee9839` with working tree changes

**Source**

[ProcessOcrEngineOptions.cs:8](https://github.com/EvotecIT/OfficeIMO/blob/063fe3ee9839db87940fc9ed8ae72f1f44b10982/OfficeIMO.Ocr.Process/ProcessOcrEngineOptions.cs#L8)

**Modifiers**

sealed

Configures the generic JSON file-protocol OCR process engine.

## Inheritance

- object
- ProcessOcrEngineOptions

## Guides & Samples

Authored walkthroughs and practical samples linked to this API.

- [Charts, Barcodes, OCR and Provenance](/docs/foundations/) Guide
  
  Add ChartForgeX charts, Mermaid diagrams and CodeGlyphX barcodes to documents, recognize text with OCR engines, and verify C2PA Content Credentials.

## 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](/api/ocr-process/officeimo-ocr-process-processocrengine/#constructor-ctor-officeimo-ocr-process-processocrengineoptions) parameter `options`

Filter members 

Show inherited

## Constructors

`public ProcessOcrEngineOptions()` [#](#constructor-ctor)

[ProcessOcrEngineOptions.cs:8](https://github.com/EvotecIT/OfficeIMO/blob/063fe3ee9839db87940fc9ed8ae72f1f44b10982/OfficeIMO.Ocr.Process/ProcessOcrEngineOptions.cs#L8)

## Inherited Methods

`public virtual bool Equals(object? obj)` [#](#method-equals-object)

Inherited from object

Parameters

**obj object? required**

Returns

`bool`

`public virtual int GetHashCode()` [#](#method-gethashcode)

Inherited from object

Returns

`int`

`public Type GetType()` [#](#method-gettype)

Inherited from object

Returns

`Type`

`public virtual string? ToString()` [#](#method-tostring)

Inherited from object

Returns

`string?`

## Properties

`public string FileName { get; set; }` [#](#property-filename)

[ProcessOcrEngineOptions.cs:8](https://github.com/EvotecIT/OfficeIMO/blob/063fe3ee9839db87940fc9ed8ae72f1f44b10982/OfficeIMO.Ocr.Process/ProcessOcrEngineOptions.cs#L8)

Direct executable path or name. Required.

`public IReadOnlyList<string> Arguments { get; set; }` [#](#property-arguments)

[ProcessOcrEngineOptions.cs:14](https://github.com/EvotecIT/OfficeIMO/blob/063fe3ee9839db87940fc9ed8ae72f1f44b10982/OfficeIMO.Ocr.Process/ProcessOcrEngineOptions.cs#L14)

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

`public string Id { get; set; }` [#](#property-id)

[ProcessOcrEngineOptions.cs:20](https://github.com/EvotecIT/OfficeIMO/blob/063fe3ee9839db87940fc9ed8ae72f1f44b10982/OfficeIMO.Ocr.Process/ProcessOcrEngineOptions.cs#L20)

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

`public string? WorkingDirectory { get; set; }` [#](#property-workingdirectory)

[ProcessOcrEngineOptions.cs:23](https://github.com/EvotecIT/OfficeIMO/blob/063fe3ee9839db87940fc9ed8ae72f1f44b10982/OfficeIMO.Ocr.Process/ProcessOcrEngineOptions.cs#L23)

Optional working directory for the executable.

`public IReadOnlyDictionary<string, string> EnvironmentVariables { get; set; }` [#](#property-environmentvariables)

[ProcessOcrEngineOptions.cs:26](https://github.com/EvotecIT/OfficeIMO/blob/063fe3ee9839db87940fc9ed8ae72f1f44b10982/OfficeIMO.Ocr.Process/ProcessOcrEngineOptions.cs#L26)

Optional environment values applied to the child process.

`public string? TemporaryDirectory { get; set; }` [#](#property-temporarydirectory)

[ProcessOcrEngineOptions.cs:29](https://github.com/EvotecIT/OfficeIMO/blob/063fe3ee9839db87940fc9ed8ae72f1f44b10982/OfficeIMO.Ocr.Process/ProcessOcrEngineOptions.cs#L29)

Optional parent directory for isolated per-request temporary folders.

`public TimeSpan Timeout { get; set; }` [#](#property-timeout)

[ProcessOcrEngineOptions.cs:32](https://github.com/EvotecIT/OfficeIMO/blob/063fe3ee9839db87940fc9ed8ae72f1f44b10982/OfficeIMO.Ocr.Process/ProcessOcrEngineOptions.cs#L32)

Maximum process duration. Defaults to two minutes.

`public long MaxOutputBytes { get; set; }` [#](#property-maxoutputbytes)

[ProcessOcrEngineOptions.cs:35](https://github.com/EvotecIT/OfficeIMO/blob/063fe3ee9839db87940fc9ed8ae72f1f44b10982/OfficeIMO.Ocr.Process/ProcessOcrEngineOptions.cs#L35)

Maximum JSON response size. Defaults to 16 MiB.

`public long MaxInputBytes { get; set; }` [#](#property-maxinputbytes)

[ProcessOcrEngineOptions.cs:38](https://github.com/EvotecIT/OfficeIMO/blob/063fe3ee9839db87940fc9ed8ae72f1f44b10982/OfficeIMO.Ocr.Process/ProcessOcrEngineOptions.cs#L38)

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

`public int MaxProcessOutputCharacters { get; set; }` [#](#property-maxprocessoutputcharacters)

[ProcessOcrEngineOptions.cs:41](https://github.com/EvotecIT/OfficeIMO/blob/063fe3ee9839db87940fc9ed8ae72f1f44b10982/OfficeIMO.Ocr.Process/ProcessOcrEngineOptions.cs#L41)

Maximum retained standard-output and standard-error characters.

`public bool KeepTemporaryFiles { get; set; }` [#](#property-keeptemporaryfiles)

[ProcessOcrEngineOptions.cs:44](https://github.com/EvotecIT/OfficeIMO/blob/063fe3ee9839db87940fc9ed8ae72f1f44b10982/OfficeIMO.Ocr.Process/ProcessOcrEngineOptions.cs#L44)

Whether isolated temporary files are retained after recognition.

`public OcrEngineCapabilities Capabilities { get; set; }` [#](#property-capabilities)

[ProcessOcrEngineOptions.cs:47](https://github.com/EvotecIT/OfficeIMO/blob/063fe3ee9839db87940fc9ed8ae72f1f44b10982/OfficeIMO.Ocr.Process/ProcessOcrEngineOptions.cs#L47)

Capabilities advertised by the external protocol implementation.

<!-- PowerForge markdown artifact sha256:77D60E5144B413FA3C66E3CABDA09680E862C79272C1B738199FD4695E0C390C -->
