# ProcessOcrEngine

Runs an external executable that implements the OfficeIMO OCR JSON file protocol.

Class 

`OfficeIMO.Ocr.Process`

**Namespace**

`OfficeIMO.Ocr.Process`

**Assembly**

`OfficeIMO.Ocr.Process`

**Source revision**

`063fe3ee9839` with working tree changes

**Source**

[ProcessOcrEngine.cs:10](https://github.com/EvotecIT/OfficeIMO/blob/063fe3ee9839db87940fc9ed8ae72f1f44b10982/OfficeIMO.Ocr.Process/ProcessOcrEngine.cs#L10)

**Implements**

`IOcrEngine`

**Modifiers**

sealed

Runs an external executable that implements the OfficeIMO OCR JSON file protocol.

## Inheritance

- object
- ProcessOcrEngine

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

Filter members 

Show inherited

## Constructors

`public ProcessOcrEngine(ProcessOcrEngineOptions options)` [#](#constructor-ctor-officeimo-ocr-process-processocrengineoptions)

[ProcessOcrEngine.cs:10](https://github.com/EvotecIT/OfficeIMO/blob/063fe3ee9839db87940fc9ed8ae72f1f44b10982/OfficeIMO.Ocr.Process/ProcessOcrEngine.cs#L10)

Creates a process-backed OCR engine from an immutable option snapshot.

Parameters

**options OfficeIMO.Ocr.Process.ProcessOcrEngineOptions required**

## Methods

`public async 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>`

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

[ProcessOcrEngine.cs:15](https://github.com/EvotecIT/OfficeIMO/blob/063fe3ee9839db87940fc9ed8ae72f1f44b10982/OfficeIMO.Ocr.Process/ProcessOcrEngine.cs#L15)

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

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

[ProcessOcrEngine.cs:18](https://github.com/EvotecIT/OfficeIMO/blob/063fe3ee9839db87940fc9ed8ae72f1f44b10982/OfficeIMO.Ocr.Process/ProcessOcrEngine.cs#L18)

Stable capabilities exposed by this configured engine instance.

<!-- PowerForge markdown artifact sha256:6C54F8B09D4E890482F6CBF55E08CC902D1CBDA5B8FFB1917FB5D0429D7F4DCB -->
