# OcrEngineExecution

A validated, immutable identity and capability snapshot for one configured OCR engine instance.

Class 

`OfficeIMO.Ocr`

**Namespace**

`OfficeIMO.Ocr`

**Assembly**

`OfficeIMO.Ocr`

**Source revision**

`063fe3ee9839` with working tree changes

**Source**

[OcrEngineExecution.cs:34](https://github.com/EvotecIT/OfficeIMO/blob/063fe3ee9839db87940fc9ed8ae72f1f44b10982/OfficeIMO.Ocr/OcrEngineExecution.cs#L34)

**Modifiers**

sealed

A validated, immutable identity and capability snapshot for one configured OCR engine instance.

## Inheritance

- object
- OcrEngineExecution

## Remarks

Create one execution for a logical document operation and reuse it for every candidate. This prevents mutable provider properties from changing provenance or concurrency behavior partway through the operation.

## 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 [OcrEngineRunner.CreateExecution](/api/ocr/officeimo-ocr-ocrenginerunner/#method-createexecution-officeimo-ocr-iocrengine)

Filter members 

Show inherited

## Methods

RecognizeAsync 2 overloads

`public Task<OcrResult> RecognizeAsync(OcrRequest request, TimeSpan timeout, CancellationToken cancellationToken = default)` [#](#method-recognizeasync-officeimo-ocr-ocrrequest-timespan-threading-cancellationtoken)

[OcrEngineExecution.cs:34](https://github.com/EvotecIT/OfficeIMO/blob/063fe3ee9839db87940fc9ed8ae72f1f44b10982/OfficeIMO.Ocr/OcrEngineExecution.cs#L34)

Recognizes one raster payload under the shared timeout and concurrency policy.

Parameters

**request OfficeIMO.Ocr.OcrRequest required**

**timeout System.TimeSpan required**

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

Returns

`Task<OcrResult>`

`public Task<OcrResult> RecognizeAsync(OcrRequest request, TimeSpan timeout, OcrResultCaptureLimits captureLimits, CancellationToken cancellationToken)` [#](#method-recognizeasync-officeimo-ocr-ocrrequest-timespan-officeimo-ocr-ocrresultcapturelimits-threading-cancellationtoken)

[OcrEngineExecution.cs:42](https://github.com/EvotecIT/OfficeIMO/blob/063fe3ee9839db87940fc9ed8ae72f1f44b10982/OfficeIMO.Ocr/OcrEngineExecution.cs#L42)

Recognizes a raster payload while bounding the owned result snapshot.

Parameters

**request OfficeIMO.Ocr.OcrRequest required**

**timeout System.TimeSpan required**

**captureLimits OfficeIMO.Ocr.OcrResultCaptureLimits required**

**cancellationToken System.Threading.CancellationToken required**

Returns

`Task<OcrResult>`

`public Task<OcrResult> RecognizeAttachedAsync(OcrRequest request, TimeSpan timeout, OcrResultCaptureLimits captureLimits, CancellationToken cancellationToken = default)` [#](#method-recognizeattachedasync-officeimo-ocr-ocrrequest-timespan-officeimo-ocr-ocrresultcapturelimits-threading-cancellationtoken)

[OcrEngineExecution.cs:54](https://github.com/EvotecIT/OfficeIMO/blob/063fe3ee9839db87940fc9ed8ae72f1f44b10982/OfficeIMO.Ocr/OcrEngineExecution.cs#L54)

Recognizes a bounded payload while keeping the caller attached to provider cleanup.

Parameters

**request OfficeIMO.Ocr.OcrRequest required**

**timeout System.TimeSpan required**

**captureLimits OfficeIMO.Ocr.OcrResultCaptureLimits required**

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

Returns

`Task<OcrResult>`

## 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 Id { get; }` [#](#property-id)

[OcrEngineExecution.cs:20](https://github.com/EvotecIT/OfficeIMO/blob/063fe3ee9839db87940fc9ed8ae72f1f44b10982/OfficeIMO.Ocr/OcrEngineExecution.cs#L20)

Validated provider identifier captured when this execution was created.

`public OcrEngineCapabilities Capabilities { get; }` [#](#property-capabilities)

[OcrEngineExecution.cs:23](https://github.com/EvotecIT/OfficeIMO/blob/063fe3ee9839db87940fc9ed8ae72f1f44b10982/OfficeIMO.Ocr/OcrEngineExecution.cs#L23)

Independent copy of the capabilities captured when this execution was created.

<!-- PowerForge markdown artifact sha256:048F0ABF2B583266998ED91715193AE627C205C98B8F45206BABB5674366F76F -->
