# TesseractLanguageDataOptions

Controls opt-in provisioning of immutable, checksum-verified Tesseract language data.

Class 

`OfficeIMO.Ocr.Tesseract`

**Namespace**

`OfficeIMO.Ocr.Tesseract`

**Assembly**

`OfficeIMO.Ocr.Tesseract`

**Source revision**

`063fe3ee9839` with working tree changes

**Source**

[TesseractLanguageData.cs:16](https://github.com/EvotecIT/OfficeIMO/blob/063fe3ee9839db87940fc9ed8ae72f1f44b10982/OfficeIMO.Ocr.Tesseract/TesseractLanguageData.cs#L16)

**Modifiers**

sealed

Controls opt-in provisioning of immutable, checksum-verified Tesseract language data.

## Inheritance

- object
- TesseractLanguageDataOptions

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

### Returned or exposed by 1

- Property [TesseractOcrSessionOptions.LanguageData](/api/ocr-tesseract/officeimo-ocr-tesseract-tesseractocrsessionoptions/#property-languagedata)

### Accepted by parameters 1

- Method [TesseractLanguageData.EnsureAsync](/api/ocr-tesseract/officeimo-ocr-tesseract-tesseractlanguagedata/#method-ensureasync-string-officeimo-ocr-tesseract-tesseractlanguagedataoptions-threading-cancellationtoken) parameter `options`

Filter members 

Show inherited

## Constructors

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

[TesseractLanguageData.cs:16](https://github.com/EvotecIT/OfficeIMO/blob/063fe3ee9839db87940fc9ed8ae72f1f44b10982/OfficeIMO.Ocr.Tesseract/TesseractLanguageData.cs#L16)

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

[TesseractLanguageData.cs:10](https://github.com/EvotecIT/OfficeIMO/blob/063fe3ee9839db87940fc9ed8ae72f1f44b10982/OfficeIMO.Ocr.Tesseract/TesseractLanguageData.cs#L10)

Optional cache root. A versioned per-user OfficeIMO cache is used by default.

`public HttpClient? HttpClient { get; set; }` [#](#property-httpclient)

[TesseractLanguageData.cs:13](https://github.com/EvotecIT/OfficeIMO/blob/063fe3ee9839db87940fc9ed8ae72f1f44b10982/OfficeIMO.Ocr.Tesseract/TesseractLanguageData.cs#L13)

Optional caller-owned HTTP client, useful for proxy configuration and deterministic tests.

`public long MaxBytesPerLanguage { get; set; }` [#](#property-maxbytesperlanguage)

[TesseractLanguageData.cs:16](https://github.com/EvotecIT/OfficeIMO/blob/063fe3ee9839db87940fc9ed8ae72f1f44b10982/OfficeIMO.Ocr.Tesseract/TesseractLanguageData.cs#L16)

Maximum downloaded bytes for one trained-data file. Defaults to 32 MiB.

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