# OcrEngineCatalog

Explicit registry for optional OCR providers.

Class 

`OfficeIMO.Ocr`

**Namespace**

`OfficeIMO.Ocr`

**Assembly**

`OfficeIMO.Ocr`

**Source revision**

`be6c300e4ab1` with working tree changes

**Source**

[OcrEngineCatalog.cs:39](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Ocr/OcrEngineCatalog.cs#L39)

**Modifiers**

sealed

Explicit registry for optional OCR providers. The core package performs no ambient scanning and carries no provider runtime dependency; hosts decide which provider instances or assemblies are trusted.

## Inheritance

- object
- OcrEngineCatalog

## Usage

Explore 1 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

- Method [OcrEngineCatalog.Register](/api/ocr/officeimo-ocr-ocrenginecatalog/#method-register-officeimo-ocr-iocrengineprovider)

Filter members 

Show inherited

## Constructors

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

[OcrEngineCatalog.cs:39](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Ocr/OcrEngineCatalog.cs#L39)

## Methods

`public IOcrEngine Create(string id, IReadOnlyDictionary<string, string>? options = null)` [#](#method-create-string-collections-generic-ireadonlydictionary-system-string-system-string)

[OcrEngineCatalog.cs:71](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Ocr/OcrEngineCatalog.cs#L71)

Creates a selected provider engine from caller-owned scalar options.

Parameters

**id string required**

**options System.Collections.Generic.IReadOnlyDictionary<string, string>? = null optional**

Returns

`IOcrEngine`

`public IReadOnlyList<OcrEngineDescriptor> Discover()` [#](#method-discover)

[OcrEngineCatalog.cs:61](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Ocr/OcrEngineCatalog.cs#L61)

Returns immutable descriptors ordered by stable identifier.

Returns

`IReadOnlyList<OcrEngineDescriptor>`

`public OcrEngineCatalog Register(IOcrEngineProvider provider)` [#](#method-register-officeimo-ocr-iocrengineprovider)

[OcrEngineCatalog.cs:45](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Ocr/OcrEngineCatalog.cs#L45)

Registers a provider. Identifiers are unique without regard to case.

Parameters

**provider OfficeIMO.Ocr.IOcrEngineProvider required**

Returns

`OcrEngineCatalog`

## 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:46D30D4AA2677C2BCADE68D271A1950BAB4D4F9204D87F37C237117578A404EA -->
