# ProcessOcrRequest

Portable request file written for an external OCR process.

Class 

`OfficeIMO.Ocr.Process`

**Namespace**

`OfficeIMO.Ocr.Process`

**Assembly**

`OfficeIMO.Ocr.Process`

**Source revision**

`063fe3ee9839` with working tree changes

**Source**

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

**Modifiers**

sealed

Portable request file written for an external OCR process.

## Inheritance

- object
- ProcessOcrRequest

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

- Method [ProcessOcrProtocol.SerializeRequest](/api/ocr-process/officeimo-ocr-process-processocrprotocol/#method-serializerequest-officeimo-ocr-process-processocrrequest-boolean) parameter `request`

Filter members 

Show inherited

## Constructors

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

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

## 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 SchemaId { get; set; }` [#](#property-schemaid)

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

Protocol schema identifier.

`public int SchemaVersion { get; set; }` [#](#property-schemaversion)

[ProcessOcrProtocol.cs:12](https://github.com/EvotecIT/OfficeIMO/blob/063fe3ee9839db87940fc9ed8ae72f1f44b10982/OfficeIMO.Ocr.Process/ProcessOcrProtocol.cs#L12)

Protocol schema version.

`public OcrOperation Operation { get; set; }` [#](#property-operation)

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

`JsonIgnore(Condition = 2)`

Requested operation. Absent for text recognition to preserve existing version-2 bridges; orientation requires an explicitly capable bridge.

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

[ProcessOcrProtocol.cs:17](https://github.com/EvotecIT/OfficeIMO/blob/063fe3ee9839db87940fc9ed8ae72f1f44b10982/OfficeIMO.Ocr.Process/ProcessOcrProtocol.cs#L17)

Caller-owned recognition candidate identifier.

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

[ProcessOcrProtocol.cs:19](https://github.com/EvotecIT/OfficeIMO/blob/063fe3ee9839db87940fc9ed8ae72f1f44b10982/OfficeIMO.Ocr.Process/ProcessOcrProtocol.cs#L19)

Caller-defined candidate kind.

`public string MediaType { get; set; }` [#](#property-mediatype)

[ProcessOcrProtocol.cs:21](https://github.com/EvotecIT/OfficeIMO/blob/063fe3ee9839db87940fc9ed8ae72f1f44b10982/OfficeIMO.Ocr.Process/ProcessOcrProtocol.cs#L21)

Input media type.

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

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

Original or synthetic file name.

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

[ProcessOcrProtocol.cs:25](https://github.com/EvotecIT/OfficeIMO/blob/063fe3ee9839db87940fc9ed8ae72f1f44b10982/OfficeIMO.Ocr.Process/ProcessOcrProtocol.cs#L25)

Stable source artifact identifier.

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

[ProcessOcrProtocol.cs:27](https://github.com/EvotecIT/OfficeIMO/blob/063fe3ee9839db87940fc9ed8ae72f1f44b10982/OfficeIMO.Ocr.Process/ProcessOcrProtocol.cs#L27)

Source path or logical name.

`public int? PageNumber { get; set; }` [#](#property-pagenumber)

[ProcessOcrProtocol.cs:29](https://github.com/EvotecIT/OfficeIMO/blob/063fe3ee9839db87940fc9ed8ae72f1f44b10982/OfficeIMO.Ocr.Process/ProcessOcrProtocol.cs#L29)

One-based source page or frame number.

`public int? PixelWidth { get; set; }` [#](#property-pixelwidth)

[ProcessOcrProtocol.cs:31](https://github.com/EvotecIT/OfficeIMO/blob/063fe3ee9839db87940fc9ed8ae72f1f44b10982/OfficeIMO.Ocr.Process/ProcessOcrProtocol.cs#L31)

Raster width in pixels.

`public int? PixelHeight { get; set; }` [#](#property-pixelheight)

[ProcessOcrProtocol.cs:33](https://github.com/EvotecIT/OfficeIMO/blob/063fe3ee9839db87940fc9ed8ae72f1f44b10982/OfficeIMO.Ocr.Process/ProcessOcrProtocol.cs#L33)

Raster height in pixels.

`public string InputPath { get; set; }` [#](#property-inputpath)

[ProcessOcrProtocol.cs:35](https://github.com/EvotecIT/OfficeIMO/blob/063fe3ee9839db87940fc9ed8ae72f1f44b10982/OfficeIMO.Ocr.Process/ProcessOcrProtocol.cs#L35)

Absolute path to the materialized input payload.

`public string OutputPath { get; set; }` [#](#property-outputpath)

[ProcessOcrProtocol.cs:37](https://github.com/EvotecIT/OfficeIMO/blob/063fe3ee9839db87940fc9ed8ae72f1f44b10982/OfficeIMO.Ocr.Process/ProcessOcrProtocol.cs#L37)

Absolute path where the process must write an OcrResult response.

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

[ProcessOcrProtocol.cs:39](https://github.com/EvotecIT/OfficeIMO/blob/063fe3ee9839db87940fc9ed8ae72f1f44b10982/OfficeIMO.Ocr.Process/ProcessOcrProtocol.cs#L39)

Requested language expression.

`public OcrRegion? Region { get; set; }` [#](#property-region)

[ProcessOcrProtocol.cs:41](https://github.com/EvotecIT/OfficeIMO/blob/063fe3ee9839db87940fc9ed8ae72f1f44b10982/OfficeIMO.Ocr.Process/ProcessOcrProtocol.cs#L41)

Source region represented by the payload.

`public OcrCoordinateUnit RegionCoordinateUnit { get; set; }` [#](#property-regioncoordinateunit)

[ProcessOcrProtocol.cs:43](https://github.com/EvotecIT/OfficeIMO/blob/063fe3ee9839db87940fc9ed8ae72f1f44b10982/OfficeIMO.Ocr.Process/ProcessOcrProtocol.cs#L43)

Coordinate unit used by [ProcessOcrRequest.Region](/api/ocr-process/officeimo-ocr-process-processocrrequest/).

`public IReadOnlyDictionary<string, string> ProviderOptions { get; set; }` [#](#property-provideroptions)

[ProcessOcrProtocol.cs:45](https://github.com/EvotecIT/OfficeIMO/blob/063fe3ee9839db87940fc9ed8ae72f1f44b10982/OfficeIMO.Ocr.Process/ProcessOcrProtocol.cs#L45)

Provider-specific scalar options.

<!-- PowerForge markdown artifact sha256:142384FC36F365E9A024A140BE39BBCB6B43F324F193EAFD662C233B9D664334 -->
