# HeadModuleRatio

`HeadModuleRatio` defines the module count and module size ratio of the barcode head section.

## JSON Structure

**Location in template:**
```
BarcodeFormatSpecificationOptions[i]
    └── HeadModuleRatio
```

**Parent object:** [BarcodeFormatSpecification](https://www.dynamsoft.com/capture-vision/docs/core/parameters/file/auxiliary/barcode-format-specification.md) object

**Example:**

```json
{
    "HeadModuleRatio": "211412"
}
```

> [!NOTE]
> - This snippet shows only the `HeadModuleRatio` parameter.
> - To use it, embed this parameter within a [BarcodeFormatSpecification](https://www.dynamsoft.com/capture-vision/docs/core/parameters/file/auxiliary/barcode-format-specification.md) object.
> - For the complete JSON structure, see:
>   - [Full JSON Structure](https://www.dynamsoft.com/capture-vision/docs/core/parameters/file/index.md#full-json-structure)
>   - [Minimal Valid JSON](https://www.dynamsoft.com/capture-vision/docs/core/parameters/file/index.md#minimal-valid-json-example)

## Parameter Details

The structure of the `HeadModuleRatio` is shown as follow:

| HeadModuleRatio  Parameter Details |
| :--------------------------------- |
| **Type**<br>*string* |
| **Range**<br>N/A |
| **Default Value**<br> "" |

**Remarks**

- The length of the string indicates the count of the barcode head section.
- The number in the string expresses the ratio relationship between the modules.

### Default Settings

If the `HeadModuleRatio` is not configured in your template file, the following settings will be used as the default settings.

```json
{
    "HeadModuleRatio": ""
}
```
