# OcrResult

Recognition output returned by an OCR engine.

Class 

`OfficeIMO.Ocr`

**Namespace**

`OfficeIMO.Ocr`

**Assembly**

`OfficeIMO.Ocr`

**Source revision**

`063fe3ee9839` with working tree changes

**Source**

[OcrModels.cs:119](https://github.com/EvotecIT/OfficeIMO/blob/063fe3ee9839db87940fc9ed8ae72f1f44b10982/OfficeIMO.Ocr/OcrModels.cs#L119)

**Modifiers**

sealed

Recognition output returned by an OCR engine.

## Inheritance

- object
- OcrResult

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

- Method [AdaptiveOcrEngine.RecognizeAsync](/api/ocr/officeimo-ocr-adaptiveocrengine/#method-recognizeasync-officeimo-ocr-ocrrequest-threading-cancellationtoken)
- Property [AdaptiveOcrResult.Result](/api/ocr/officeimo-ocr-adaptiveocrresult/#property-result)
- Method [DelegateOcrEngine.RecognizeAsync](/api/ocr/officeimo-ocr-delegateocrengine/#method-recognizeasync-officeimo-ocr-ocrrequest-threading-cancellationtoken)
- Method [IOcrEngine.RecognizeAsync](/api/ocr/officeimo-ocr-iocrengine/#method-recognizeasync-officeimo-ocr-ocrrequest-threading-cancellationtoken)
- Method [OcrEngineExecution.RecognizeAsync](/api/ocr/officeimo-ocr-ocrengineexecution/#method-recognizeasync-officeimo-ocr-ocrrequest-timespan-threading-cancellationtoken)
- Method [OcrEngineExecution.RecognizeAttachedAsync](/api/ocr/officeimo-ocr-ocrengineexecution/#method-recognizeattachedasync-officeimo-ocr-ocrrequest-timespan-officeimo-ocr-ocrresultcapturelimits-threading-cancellationtoken)
- Method [OcrEngineRunner.RecognizeAsync](/api/ocr/officeimo-ocr-ocrenginerunner/#method-recognizeasync-officeimo-ocr-iocrengine-officeimo-ocr-ocrrequest-timespan-threading-cancellationtoken)

### Accepted by parameters 2

- Constructor [DelegateOcrEngine.DelegateOcrEngine](/api/ocr/officeimo-ocr-delegateocrengine/#constructor-ctor-string-func-officeimo-ocr-ocrrequest-system-threading-cancellationtoken-system-threading-tasks-task-officeimo-ocr-ocrresult-officeimo-ocr-ocrenginecapabilities) parameter `recognizeAsync`
- Method [OcrReviewPolicy.Assess](/api/ocr/officeimo-ocr-ocrreviewpolicy/#method-assess-officeimo-ocr-ocrresult) parameter `result`

Filter members 

Show inherited

## Constructors

`public OcrResult()` [#](#constructor-ctor)

[OcrModels.cs:119](https://github.com/EvotecIT/OfficeIMO/blob/063fe3ee9839db87940fc9ed8ae72f1f44b10982/OfficeIMO.Ocr/OcrModels.cs#L119)

## 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 OcrReviewEvidence? Review { get; internal set; }` [#](#property-review)

[OcrModels.cs:114](https://github.com/EvotecIT/OfficeIMO/blob/063fe3ee9839db87940fc9ed8ae72f1f44b10982/OfficeIMO.Ocr/OcrModels.cs#L114)

Immutable adaptive review evidence, when recognition compared or assessed configured variants.

`public OcrOrientationResult? Orientation { get; set; }` [#](#property-orientation)

[OcrModels.cs:117](https://github.com/EvotecIT/OfficeIMO/blob/063fe3ee9839db87940fc9ed8ae72f1f44b10982/OfficeIMO.Ocr/OcrModels.cs#L117)

Optional orientation evidence returned by an orientation-detection operation.

`public string Text { get; set; }` [#](#property-text)

[OcrModels.cs:119](https://github.com/EvotecIT/OfficeIMO/blob/063fe3ee9839db87940fc9ed8ae72f1f44b10982/OfficeIMO.Ocr/OcrModels.cs#L119)

Recognized plain text in source reading order.

`public double? Confidence { get; set; }` [#](#property-confidence)

[OcrModels.cs:122](https://github.com/EvotecIT/OfficeIMO/blob/063fe3ee9839db87940fc9ed8ae72f1f44b10982/OfficeIMO.Ocr/OcrModels.cs#L122)

Overall normalized confidence from zero through one, when available.

`public string? Language { get; set; }` [#](#property-language)

[OcrModels.cs:125](https://github.com/EvotecIT/OfficeIMO/blob/063fe3ee9839db87940fc9ed8ae72f1f44b10982/OfficeIMO.Ocr/OcrModels.cs#L125)

Detected or requested language identifier, when available.

`public string? Provider { get; set; }` [#](#property-provider)

[OcrModels.cs:128](https://github.com/EvotecIT/OfficeIMO/blob/063fe3ee9839db87940fc9ed8ae72f1f44b10982/OfficeIMO.Ocr/OcrModels.cs#L128)

Provider identifier reported by the engine.

`public string? Model { get; set; }` [#](#property-model)

[OcrModels.cs:131](https://github.com/EvotecIT/OfficeIMO/blob/063fe3ee9839db87940fc9ed8ae72f1f44b10982/OfficeIMO.Ocr/OcrModels.cs#L131)

Provider model, engine, or trained-data identifier, when available.

`public int OmittedSpanCount { get; internal set; }` [#](#property-omittedspancount)

[OcrModels.cs:134](https://github.com/EvotecIT/OfficeIMO/blob/063fe3ee9839db87940fc9ed8ae72f1f44b10982/OfficeIMO.Ocr/OcrModels.cs#L134)

Number of provider spans omitted by the runner's retention limit.

`public int OmittedDiagnosticCount { get; internal set; }` [#](#property-omitteddiagnosticcount)

[OcrModels.cs:137](https://github.com/EvotecIT/OfficeIMO/blob/063fe3ee9839db87940fc9ed8ae72f1f44b10982/OfficeIMO.Ocr/OcrModels.cs#L137)

Number of provider diagnostics omitted by the runner's retention limit.

`public IReadOnlyList<OcrTextSpan> Spans { get; set; }` [#](#property-spans)

[OcrModels.cs:140](https://github.com/EvotecIT/OfficeIMO/blob/063fe3ee9839db87940fc9ed8ae72f1f44b10982/OfficeIMO.Ocr/OcrModels.cs#L140)

Optional line, word, and character spans in provider reading order.

`public IReadOnlyList<OcrDiagnostic> Diagnostics { get; set; }` [#](#property-diagnostics)

[OcrModels.cs:143](https://github.com/EvotecIT/OfficeIMO/blob/063fe3ee9839db87940fc9ed8ae72f1f44b10982/OfficeIMO.Ocr/OcrModels.cs#L143)

Structured provider diagnostics produced during recognition.

<!-- PowerForge markdown artifact sha256:43BAB6431F3A245D8CB4202405C54C6347C8BD31098D9E219C121D6608663089 -->
