# TesseractLanguageData

Curated, immutable Tesseract fast-language provisioning for the default OfficeIMO languages.

Class 

`OfficeIMO.Ocr.Tesseract`

**Namespace**

`OfficeIMO.Ocr.Tesseract`

**Assembly**

`OfficeIMO.Ocr.Tesseract`

**Source revision**

`063fe3ee9839` with working tree changes

**Source**

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

**Modifiers**

static

Curated, immutable Tesseract fast-language provisioning for the default OfficeIMO languages.

## Inheritance

- object
- TesseractLanguageData

Filter members 

Show inherited

## Methods

`public static Task<TesseractLanguageDataResult> EnsureAsync(string languageExpression = "eng", TesseractLanguageDataOptions? options = null, CancellationToken cancellationToken = default)` [#](#method-ensureasync-string-officeimo-ocr-tesseract-tesseractlanguagedataoptions-threading-cancellationtoken)

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

Ensures every language in a Tesseract expression such as eng+pol exists in a private versioned cache. Network access occurs only for missing or corrupt files and every payload must match the built-in SHA-256 digest.

Parameters

**languageExpression string = "eng" optional**

**options OfficeIMO.Ocr.Tesseract.TesseractLanguageDataOptions? = null optional**

**cancellationToken System.Threading.CancellationToken = default optional**

Returns

`Task<TesseractLanguageDataResult>`

## 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 static string Version { get; }` [#](#property-version)

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

Immutable tessdata_fast commit used by the built-in catalog.

`public static IReadOnlyList<string> SupportedLanguages { get; }` [#](#property-supportedlanguages)

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

Language identifiers available through the checksum-pinned built-in catalog.

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