# ProcessOcrProtocol

JSON helpers and schema constants for the external OCR process protocol.

Class 

`OfficeIMO.Ocr.Process`

**Namespace**

`OfficeIMO.Ocr.Process`

**Assembly**

`OfficeIMO.Ocr.Process`

**Source revision**

`063fe3ee9839` with working tree changes

**Source**

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

**Modifiers**

static

JSON helpers and schema constants for the external OCR process protocol.

## Inheritance

- object
- ProcessOcrProtocol

Filter members 

Show inherited

## Methods

`public static OcrResult DeserializeResult(string json)` [#](#method-deserializeresult-string)

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

Deserializes an engine result from the process response file.

Parameters

**json string required**

Returns

`OcrResult`

`public static string SerializeRequest(ProcessOcrRequest request, bool indented = false)` [#](#method-serializerequest-officeimo-ocr-process-processocrrequest-boolean)

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

Serializes a process request using camel-case properties and string enum values.

Parameters

**request OfficeIMO.Ocr.Process.ProcessOcrRequest required**

**indented bool = false optional**

Returns

`string`

`public static string SerializeResult(OcrResult result, bool indented = false)` [#](#method-serializeresult-officeimo-ocr-ocrresult-boolean)

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

Serializes an engine result suitable for the process response file.

Parameters

**result OfficeIMO.Ocr.OcrResult required**

**indented bool = false optional**

Returns

`string`

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

## Fields

`public const string RequestSchemaId` [#](#field-requestschemaid)

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

Request schema identifier.

Value: `officeimo.ocr.process-request`

`public const string ResponseSchemaId` [#](#field-responseschemaid)

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

Response schema identifier.

Value: `officeimo.ocr.process-response`

`public const int Version` [#](#field-version)

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

Current protocol version.

Value: `2`

<!-- PowerForge markdown artifact sha256:6172436B67E32852AF60AB50C2633019D082169475F9175D6EC0F682427ABCA1 -->
