# TesseractRuntime

Dependency-free discovery for an installed Tesseract command-line runtime.

Class 

`OfficeIMO.Ocr.Tesseract`

**Namespace**

`OfficeIMO.Ocr.Tesseract`

**Assembly**

`OfficeIMO.Ocr.Tesseract`

**Source revision**

`063fe3ee9839` with working tree changes

**Source**

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

**Modifiers**

static

Dependency-free discovery for an installed Tesseract command-line runtime.

## Inheritance

- object
- TesseractRuntime

Filter members 

Show inherited

## Methods

`public static TesseractRuntimeInfo Discover(string? executablePath = null)` [#](#method-discover-string)

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

Finds an installed Tesseract executable or throws with platform-specific installation guidance.

Parameters

**executablePath string? = null optional**

Returns

`TesseractRuntimeInfo`

`public static string GetInstallationCommand()` [#](#method-getinstallationcommand)

[TesseractRuntime.cs:80](https://github.com/EvotecIT/OfficeIMO/blob/063fe3ee9839db87940fc9ed8ae72f1f44b10982/OfficeIMO.Ocr.Tesseract/TesseractRuntime.cs#L80)

Returns only the example package-manager command, allowing hosts to localize the surrounding instructions.

Returns

`string`

`public static string GetInstallationHint()` [#](#method-getinstallationhint)

[TesseractRuntime.cs:71](https://github.com/EvotecIT/OfficeIMO/blob/063fe3ee9839db87940fc9ed8ae72f1f44b10982/OfficeIMO.Ocr.Tesseract/TesseractRuntime.cs#L71)

Returns a concise installation command for the current operating system.

Returns

`string`

`public static bool TryDiscover(string? executablePath, out TesseractRuntimeInfo? runtime)` [#](#method-trydiscover-string-officeimo-ocr-tesseract-tesseractruntimeinfo)

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

Attempts to find an installed Tesseract executable without starting a process.

Parameters

**executablePath string? required**

**runtime OfficeIMO.Ocr.Tesseract.TesseractRuntimeInfo? required**

Returns

`bool`

## 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?`

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