# IOcrEngine

Recognizes text and layout from one bounded raster payload.

Interface 

`OfficeIMO.Ocr`

**Namespace**

`OfficeIMO.Ocr`

**Assembly**

`OfficeIMO.Ocr`

**Source revision**

`063fe3ee9839` with working tree changes

**Source**

[IOcrEngine.cs:4](https://github.com/EvotecIT/OfficeIMO/blob/063fe3ee9839db87940fc9ed8ae72f1f44b10982/OfficeIMO.Ocr/IOcrEngine.cs#L4)

**Modifiers**

abstract

Recognizes text and layout from one bounded raster payload.

## Guides & Samples

Authored walkthroughs and practical samples linked to this API.

- [Charts, Barcodes, OCR and Provenance](/docs/foundations/) Guide
  
  Add ChartForgeX charts, Mermaid diagrams and CodeGlyphX barcodes to documents, recognize text with OCR engines, and verify C2PA Content Credentials.

## Usage

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

- Method [IOcrEngineProvider.Create](/api/ocr/officeimo-ocr-iocrengineprovider/#method-create-collections-generic-ireadonlydictionary-system-string-system-string)
- Method [OcrEngineCatalog.Create](/api/ocr/officeimo-ocr-ocrenginecatalog/#method-create-string-collections-generic-ireadonlydictionary-system-string-system-string)
- Property [OcrRecognitionAttempt.Engine](/api/ocr/officeimo-ocr-ocrrecognitionattempt/#property-engine)

### Accepted by parameters 4

- Method [OcrEngineRunner.CreateExecution](/api/ocr/officeimo-ocr-ocrenginerunner/#method-createexecution-officeimo-ocr-iocrengine) parameter `engine`
- Method [OcrEngineRunner.GetValidatedEngineId](/api/ocr/officeimo-ocr-ocrenginerunner/#method-getvalidatedengineid-officeimo-ocr-iocrengine) parameter `engine`
- Method [OcrEngineRunner.RecognizeAsync](/api/ocr/officeimo-ocr-ocrenginerunner/#method-recognizeasync-officeimo-ocr-iocrengine-officeimo-ocr-ocrrequest-timespan-threading-cancellationtoken) parameter `engine`
- Constructor [OcrRecognitionAttempt.OcrRecognitionAttempt](/api/ocr/officeimo-ocr-ocrrecognitionattempt/#constructor-ctor-string-officeimo-ocr-iocrengine) parameter `engine`

Filter members 

Show inherited

## Methods

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

Recognizes text and optional detailed spans from one raster payload.

Parameters

**request OfficeIMO.Ocr.OcrRequest required**

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

Returns

`Task<OcrResult>`

## Properties

`public abstract string Id { get; }` [#](#property-id)

Stable provider identifier used in diagnostics and provenance. The value must remain unchanged for the lifetime of this configured engine instance, and the untrimmed value must not exceed [OcrEngineRunner.MaximumEngineIdCharacters](/api/ocr/officeimo-ocr-ocrenginerunner/) characters.

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

Stable capabilities exposed by this configured engine instance.

<!-- PowerForge markdown artifact sha256:9D47D2262BFFD9F304CA5B4DDECD92B4BA751D69DC2B0A2DF7DAE0A82ABE0B86 -->
