# OfficeDocumentOcrEnrichmentExtensions

Helpers for merging external OCR provider output into OfficeIMO read results.

Class 

`OfficeIMO.Reader`

**Namespace**

`OfficeIMO.Reader`

**Assembly**

`OfficeIMO.Reader.Ocr`

**Source revision**

`063fe3ee9839` with working tree changes

**Source**

[OfficeDocumentOcrEnrichment.cs:127](https://github.com/EvotecIT/OfficeIMO/blob/063fe3ee9839db87940fc9ed8ae72f1f44b10982/OfficeIMO.Reader.Ocr/OfficeDocumentOcrEnrichment.cs#L127)

**Modifiers**

static

Helpers for merging external OCR provider output into OfficeIMO read results.

## Inheritance

- object
- OfficeDocumentOcrEnrichmentExtensions

Filter members 

Show inherited

## Methods

`public static OfficeDocumentOcrEnrichmentResult ApplyOcrResults(OfficeDocumentReadResult result, IEnumerable<OfficeDocumentOcrTextResult> ocrResults, OfficeDocumentOcrEnrichmentOptions? options = null)` [#](#method-applyocrresults-officeimo-reader-officedocumentreadresult-collections-generic-ienumerable-officeimo-reader-officedocumentocrtextresult-officeimo-reader-officedocumentocrenrichmentoptions)

[OfficeDocumentOcrEnrichment.cs:127](https://github.com/EvotecIT/OfficeIMO/blob/063fe3ee9839db87940fc9ed8ae72f1f44b10982/OfficeIMO.Reader.Ocr/OfficeDocumentOcrEnrichment.cs#L127)

Applies recognized OCR text to a document read result without requiring the core reader to run an OCR engine.

Parameters

**result OfficeIMO.Reader.OfficeDocumentReadResult required**

Source read result containing OCR candidates.

**ocrResults System.Collections.Generic.IEnumerable<OfficeIMO.Reader.OfficeDocumentOcrTextResult> required**

Recognized OCR text keyed by candidate identifier.

**options OfficeIMO.Reader.OfficeDocumentOcrEnrichmentOptions? = null optional**

Optional enrichment behavior.

Returns

`OfficeDocumentOcrEnrichmentResult` An enriched read result plus observable merge counters.

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