# OcrRecognitionAttempt

One caller-configured recognition variant. All variants receive the same raster and coordinate frame.

Class 

`OfficeIMO.Ocr`

**Namespace**

`OfficeIMO.Ocr`

**Assembly**

`OfficeIMO.Ocr`

**Source revision**

`ba882f6b0d07` with working tree changes

**Source**

[AdaptiveOcrModels.cs:6](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Ocr/AdaptiveOcrModels.cs#L6)

**Modifiers**

sealed

One caller-configured recognition variant. All variants receive the same raster and coordinate frame.

## Inheritance

- object
- OcrRecognitionAttempt

## 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.

### Accepted by parameters 1

- Constructor [AdaptiveOcrEngine.AdaptiveOcrEngine](/api/ocr/officeimo-ocr-adaptiveocrengine/#constructor-ctor-string-collections-generic-ireadonlylist-officeimo-ocr-ocrrecognitionattempt-officeimo-ocr-ocrreviewpolicy-nullable-system-timespan-int32-int32-int64) parameter `attempts`

Filter members 

Show inherited

## Constructors

`public OcrRecognitionAttempt(string name, IOcrEngine engine)` [#](#constructor-ctor-string-officeimo-ocr-iocrengine)

[AdaptiveOcrModels.cs:6](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Ocr/AdaptiveOcrModels.cs#L6)

Creates a named variant such as psm-6. Engines remain caller-owned.

Parameters

**name string required**

**engine OfficeIMO.Ocr.IOcrEngine required**

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

[AdaptiveOcrModels.cs:15](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Ocr/AdaptiveOcrModels.cs#L15)

Content-free variant identifier.

`public IOcrEngine Engine { get; }` [#](#property-engine)

[AdaptiveOcrModels.cs:17](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Ocr/AdaptiveOcrModels.cs#L17)

Configured engine. The adaptive engine captures its identity and capabilities at construction.

<!-- PowerForge markdown artifact sha256:0DEAE0A32B0CB31D1CA4DC65BFA9B85ED44BE2249381183513141132011A9E92 -->
