# TesseractOcrEngineOptions

Configures the optional Tesseract command-line OCR engine.

Class 

`OfficeIMO.Ocr.Tesseract`

**Namespace**

`OfficeIMO.Ocr.Tesseract`

**Assembly**

`OfficeIMO.Ocr.Tesseract`

**Source revision**

`063fe3ee9839` with working tree changes

**Source**

[TesseractOcrEngineOptions.cs:12](https://github.com/EvotecIT/OfficeIMO/blob/063fe3ee9839db87940fc9ed8ae72f1f44b10982/OfficeIMO.Ocr.Tesseract/TesseractOcrEngineOptions.cs#L12)

**Modifiers**

sealed

Configures the optional Tesseract command-line OCR engine.

## Inheritance

- object
- TesseractOcrEngineOptions

## 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 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](/api/ocr-tesseract/officeimo-ocr-tesseract-tesseractocrengineoptions/#method-clone)
- Property [TesseractOcrSessionOptions.Engine](/api/ocr-tesseract/officeimo-ocr-tesseract-tesseractocrsessionoptions/#property-engine)

### Accepted by parameters 2

- Constructor [TesseractOcrEngine.TesseractOcrEngine](/api/ocr-tesseract/officeimo-ocr-tesseract-tesseractocrengine/#constructor-ctor-officeimo-ocr-tesseract-tesseractocrengineoptions) parameter `options`
- Method [TesseractOcrEngine.CreateDefault](/api/ocr-tesseract/officeimo-ocr-tesseract-tesseractocrengine/#method-createdefault-officeimo-ocr-tesseract-tesseractocrengineoptions) parameter `options`

Filter members 

Show inherited

## Constructors

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

[TesseractOcrEngineOptions.cs:12](https://github.com/EvotecIT/OfficeIMO/blob/063fe3ee9839db87940fc9ed8ae72f1f44b10982/OfficeIMO.Ocr.Tesseract/TesseractOcrEngineOptions.cs#L12)

## Methods

`public TesseractOcrEngineOptions Clone()` [#](#method-clone)

[TesseractOcrEngineOptions.cs:48](https://github.com/EvotecIT/OfficeIMO/blob/063fe3ee9839db87940fc9ed8ae72f1f44b10982/OfficeIMO.Ocr.Tesseract/TesseractOcrEngineOptions.cs#L48)

Creates an independent options snapshot.

Returns

`TesseractOcrEngineOptions`

## 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? ExecutablePath { get; set; }` [#](#property-executablepath)

[TesseractOcrEngineOptions.cs:9](https://github.com/EvotecIT/OfficeIMO/blob/063fe3ee9839db87940fc9ed8ae72f1f44b10982/OfficeIMO.Ocr.Tesseract/TesseractOcrEngineOptions.cs#L9)

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; }` [#](#property-language)

[TesseractOcrEngineOptions.cs:12](https://github.com/EvotecIT/OfficeIMO/blob/063fe3ee9839db87940fc9ed8ae72f1f44b10982/OfficeIMO.Ocr.Tesseract/TesseractOcrEngineOptions.cs#L12)

Default Tesseract language expression, such as eng or eng+pol.

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

[TesseractOcrEngineOptions.cs:15](https://github.com/EvotecIT/OfficeIMO/blob/063fe3ee9839db87940fc9ed8ae72f1f44b10982/OfficeIMO.Ocr.Tesseract/TesseractOcrEngineOptions.cs#L15)

Optional tessdata directory passed through --tessdata-dir.

`public int? EngineMode { get; set; }` [#](#property-enginemode)

[TesseractOcrEngineOptions.cs:18](https://github.com/EvotecIT/OfficeIMO/blob/063fe3ee9839db87940fc9ed8ae72f1f44b10982/OfficeIMO.Ocr.Tesseract/TesseractOcrEngineOptions.cs#L18)

Optional OCR engine mode from 0 through 3.

`public int? PageSegmentationMode { get; set; }` [#](#property-pagesegmentationmode)

[TesseractOcrEngineOptions.cs:21](https://github.com/EvotecIT/OfficeIMO/blob/063fe3ee9839db87940fc9ed8ae72f1f44b10982/OfficeIMO.Ocr.Tesseract/TesseractOcrEngineOptions.cs#L21)

Optional page segmentation mode from 0 through 13.

`public int? Dpi { get; set; }` [#](#property-dpi)

[TesseractOcrEngineOptions.cs:24](https://github.com/EvotecIT/OfficeIMO/blob/063fe3ee9839db87940fc9ed8ae72f1f44b10982/OfficeIMO.Ocr.Tesseract/TesseractOcrEngineOptions.cs#L24)

Optional input DPI passed through --dpi.

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

[TesseractOcrEngineOptions.cs:27](https://github.com/EvotecIT/OfficeIMO/blob/063fe3ee9839db87940fc9ed8ae72f1f44b10982/OfficeIMO.Ocr.Tesseract/TesseractOcrEngineOptions.cs#L27)

Additional direct Tesseract arguments inserted before the explicit TSV output setting.

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

[TesseractOcrEngineOptions.cs:30](https://github.com/EvotecIT/OfficeIMO/blob/063fe3ee9839db87940fc9ed8ae72f1f44b10982/OfficeIMO.Ocr.Tesseract/TesseractOcrEngineOptions.cs#L30)

Optional parent directory for isolated per-request temporary folders.

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

[TesseractOcrEngineOptions.cs:33](https://github.com/EvotecIT/OfficeIMO/blob/063fe3ee9839db87940fc9ed8ae72f1f44b10982/OfficeIMO.Ocr.Tesseract/TesseractOcrEngineOptions.cs#L33)

Maximum recognition process duration. Defaults to two minutes.

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

[TesseractOcrEngineOptions.cs:36](https://github.com/EvotecIT/OfficeIMO/blob/063fe3ee9839db87940fc9ed8ae72f1f44b10982/OfficeIMO.Ocr.Tesseract/TesseractOcrEngineOptions.cs#L36)

Maximum TSV result size. Defaults to 32 MiB.

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

[TesseractOcrEngineOptions.cs:39](https://github.com/EvotecIT/OfficeIMO/blob/063fe3ee9839db87940fc9ed8ae72f1f44b10982/OfficeIMO.Ocr.Tesseract/TesseractOcrEngineOptions.cs#L39)

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

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

[TesseractOcrEngineOptions.cs:42](https://github.com/EvotecIT/OfficeIMO/blob/063fe3ee9839db87940fc9ed8ae72f1f44b10982/OfficeIMO.Ocr.Tesseract/TesseractOcrEngineOptions.cs#L42)

Maximum retained process output characters.

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

[TesseractOcrEngineOptions.cs:45](https://github.com/EvotecIT/OfficeIMO/blob/063fe3ee9839db87940fc9ed8ae72f1f44b10982/OfficeIMO.Ocr.Tesseract/TesseractOcrEngineOptions.cs#L45)

Whether isolated temporary files are retained after recognition.

<!-- PowerForge markdown artifact sha256:51207B79E13363DE8A14D9D8BE34E68DB705B72C7EF806A2CDB1E652A157C5F2 -->
