# TesseractOcrSessionOptions

Configures automatic Tesseract discovery and optional trained-data provisioning.

Class 

`OfficeIMO.Ocr.Tesseract`

**Namespace**

`OfficeIMO.Ocr.Tesseract`

**Assembly**

`OfficeIMO.Ocr.Tesseract`

**Source revision**

`063fe3ee9839` with working tree changes

**Source**

[TesseractOcrSessionOptions.cs:6](https://github.com/EvotecIT/OfficeIMO/blob/063fe3ee9839db87940fc9ed8ae72f1f44b10982/OfficeIMO.Ocr.Tesseract/TesseractOcrSessionOptions.cs#L6)

**Modifiers**

sealed

Configures automatic Tesseract discovery and optional trained-data provisioning.

## Inheritance

- object
- TesseractOcrSessionOptions

## 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 2 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 2

- Method [TesseractOcr.CreateSessionAsync](/api/ocr-tesseract/officeimo-ocr-tesseract-tesseractocr/#method-createsessionasync-officeimo-ocr-tesseract-tesseractocrsessionoptions-threading-cancellationtoken) parameter `options`
- Method [TesseractOcr.RecognizeFileAsync](/api/ocr-tesseract/officeimo-ocr-tesseract-tesseractocr/#method-recognizefileasync-string-officeimo-ocr-tesseract-tesseractocrsessionoptions-threading-cancellationtoken) parameter `options`

Filter members 

Show inherited

## Constructors

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

[TesseractOcrSessionOptions.cs:6](https://github.com/EvotecIT/OfficeIMO/blob/063fe3ee9839db87940fc9ed8ae72f1f44b10982/OfficeIMO.Ocr.Tesseract/TesseractOcrSessionOptions.cs#L6)

## 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 TesseractOcrLanguage Languages { get; set; }` [#](#property-languages)

[TesseractOcrSessionOptions.cs:6](https://github.com/EvotecIT/OfficeIMO/blob/063fe3ee9839db87940fc9ed8ae72f1f44b10982/OfficeIMO.Ocr.Tesseract/TesseractOcrSessionOptions.cs#L6)

Discoverable languages to recognize. Combine values with |; English is the default.

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

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

Advanced raw Tesseract language expression for caller-installed custom trained-data models. When set, this overrides [TesseractOcrSessionOptions.Languages](/api/ocr-tesseract/officeimo-ocr-tesseract-tesseractocrsessionoptions/).

`public TesseractOcrEngineOptions Engine { get; set; }` [#](#property-engine)

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

Advanced Tesseract process, timeout, and resource limits.

`public TesseractLanguageDataOptions LanguageData { get; set; }` [#](#property-languagedata)

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

Checksum-pinned language-data cache and transport configuration.

`public bool ProvisionMissingLanguageData { get; set; }` [#](#property-provisionmissinglanguagedata)

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

Downloads checksum-pinned curated language data when a requested language is missing.

<!-- PowerForge markdown artifact sha256:F3A04339B3D25C3C30EEDE41CF9982F44645515594B501B5D9A28035FF747174 -->
