# OCRBlockDimUnitType

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) > [Enums](https://developer.m-files.com/APIs/gRPC-API/Reference/Enums/index.md)

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

OCRBlockDimUnit enumeration.

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

<a id="values"></a>

## Values

| Name | Number | Description |
|---|---|---|
| <a id="v-OCRBLOCK_DIM_UNIT_TYPE_PIXELS"></a>`OCRBLOCK_DIM_UNIT_TYPE_PIXELS` | 0 | Pixels. |
| <a id="v-OCRBLOCK_DIM_UNIT_TYPE_MILLIMETERS_X10"></a>`OCRBLOCK_DIM_UNIT_TYPE_MILLIMETERS_X10` | 1 | Millimeters multiplied by 10  (1/10 mm precision). |
| <a id="v-OCRBLOCK_DIM_UNIT_TYPE_INCHES_X100"></a>`OCRBLOCK_DIM_UNIT_TYPE_INCHES_X100` | 2 | Inches multiplied by 100 (1/100 inch precision). |

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

## Used in fields

- [`OCRBlock.dimension_unit`](https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/MFiles.OCRBlock/index.md#f-dimension_unit): Defines the unit of the block rectangle dimensions. Default is pixels.
- [`OCRBlockResult.dimension_unit`](https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/MFiles.OCRBlockResult/index.md#f-dimension_unit): Defines the unit of the block rectangle dimensions. Default is pixels.
