# ShortlineDetectionMode

Parameter `ShortlineDetectionMode` is for controlling how to detect the shortlines.

## JSON Structure

**Location in template:**
```
ImageParameterOptions[i]
    └── ApplicableStages[j] (Stage object where Stage = "SST_DETECT_SHORTLINES")
        └── ShortlineDetectionMode
```

**Parent object:** [DetectShortLinesStage](https://www.dynamsoft.com/capture-vision/docs/core/parameters/reference/image-parameter/stage-detect-shortlines.md)

**Example:**

```json
{
    "ShortlineDetectionMode": {
        "Mode": "SDM_GENERAL",
        "Sensitivity": 3
    }
}
```

> [!NOTE]
> - This snippet shows only the `ShortlineDetectionMode` parameter.
> - To use it, embed this parameter within a [DetectShortLinesStage](https://www.dynamsoft.com/capture-vision/docs/core/parameters/reference/image-parameter/stage-detect-shortlines.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 `ShortlineDetectionMode` object includes the following parameters:

### Mode

Specifies the shortline detection mode to use.

| Mode Parameter Details |
| :--------------------- |
| **Type**<br>*String* |
| **Value Range**<br>"SDM_GENERAL" |
| **Default Value**<br>"SDM_GENERAL" |

### Sensitivity

Specifies the sensitivity level used for shortline detection. A higher value means the algorithm will be more sensitive when detecting short lines.

| Sensitivity Parameter Details |
| :---------------------------- |
| **Type**<br>*int* |
| **Value Range**<br>[1, 9] |
| **Default Value**<br>3 for BarcodeReader Task<br>6 for DocumentNormalizer Task |
| **Valid For**<br>"SDM_GENERAL" |
