# OCRBlockResult

Location: [gRPC API](https://developer.m-files.com/APIs/gRPC-API/index.md) > [Reference](https://developer.m-files.com/APIs/gRPC-API/Reference/index.md) > [Messages](https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/index.md)

HTML version: https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/MFiles.OCRBlockResult/

Struct for describing the OCR result for an OCR block.

- **Full name:** `MFiles.OCRBlockResult`
- **Proto file:** [`mfiles/structs.proto`](https://developer.m-files.com/APIs/gRPC-API/downloads/proto/mfiles/structs.proto)

<a id="fields"></a>

## Fields

| Field | Type | Number | Description |
|---|---|---|---|
| <a id="f-id"></a>`id` | `int32` | 1 | Id of the OCR block. Negative value if there was no request block. |
| <a id="f-dimension_unit"></a>`dimension_unit` | [`OCRBlockDimUnitType`](https://developer.m-files.com/APIs/gRPC-API/Reference/Enums/MFiles.OCRBlockDimUnitType/index.md) | 2 | Defines the unit of the block rectangle dimensions. Default is pixels. Values: `OCRBLOCK_DIM_UNIT_TYPE_PIXELS` (0), `OCRBLOCK_DIM_UNIT_TYPE_MILLIMETERS_X10` (1), `OCRBLOCK_DIM_UNIT_TYPE_INCHES_X100` (2). |
| <a id="f-left"></a>`left` | `uint32` | 3 | Distance from the left of the image. |
| <a id="f-top"></a>`top` | `uint32` | 4 | Distance from the top of the image. |
| <a id="f-width"></a>`width` | `uint32` | 5 | Width of the block rectangle. |
| <a id="f-height"></a>`height` | `uint32` | 6 | Height of the block rectangle. |
| <a id="f-confidence"></a>`confidence` | `int32` | 7 | Confidence level (0 = most confident, 255 = least confident). |
| <a id="f-page"></a>`page` | `uint32` | 8 | One-based number of the page on which this result was recognized. 0 means no recognition. |
| <a id="f-value"></a>`value` | [`TypedValue`](https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/MFiles.TypedValue/index.md) | 9 | The recognized value. |

<a id="used-in-fields"></a>

## Used in fields

- [`OCRPageResult.blocks`](https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/MFiles.OCRPageResult/index.md#f-blocks): An array of OCR block results.
