# ResistDeformationStage

`ResistDeformationStage` applies preprocessing techniques to reduce image deformation and improve barcode recognition accuracy. In JSON, it is represented as a Stage object with `"Stage": "SST_RESIST_DEFORMATION"`.

## JSON Structure

**Location in template:**
```
BarcodeReaderTaskSettingOptions[i]
    └── SectionArray[j] (Section object)
        └── StageArray[k] (Stage object where Stage = "SST_RESIST_DEFORMATION")
```

**Parent object:** [StageArray](https://www.dynamsoft.com/capture-vision/docs/core/parameters/reference/barcode-reader-task-settings/section-barcode-decoding.md#stagearray) within [BarcodeDecodingSection](https://www.dynamsoft.com/capture-vision/docs/core/parameters/reference/barcode-reader-task-settings/section-barcode-decoding.md)

**Example:**

```json
{
    "Stage": "SST_RESIST_DEFORMATION",
    "DeformationResistingModes": [
        {
            "Mode": "DRM_SKIP"
        }
    ]
}
```

> [!NOTE]
> - This snippet shows a Stage object configured for deformation resistance.
> - To use it, add this object to the `StageArray` within a [BarcodeDecodingSection](https://www.dynamsoft.com/capture-vision/docs/core/parameters/reference/barcode-reader-task-settings/section-barcode-decoding.md).
> - For the complete JSON structure, see:
>   - [Full JSON Structure](https://www.dynamsoft.com/capture-vision/docs/core/parameters/reference/index.md#full-json-structure)
>   - [Minimal Valid JSON](https://www.dynamsoft.com/capture-vision/docs/core/parameters/reference/index.md#minimal-valid-json-example)

## Parameters

### Stage

Specifies the stage type. Fixed value: `SST_RESIST_DEFORMATION`.

### DeformationResistingModes

Defines how to handle distorted and deformed barcodes. See [`DeformationResistingModes`](https://www.dynamsoft.com/capture-vision/docs/core/parameters/reference/barcode-reader-task-settings/deformation-resisting-modes.md) for details. 

