# DocumentDeskewingSection

`DocumentDeskewingSection` corrects perspective distortion by deskewing the document. In JSON, it is represented as a Section object with `"Section": "ST_DOCUMENT_DESKEWING"`.

## JSON Structure

**Location in template:**
```
DocumentNormalizerTaskSettingOptions[i]
    └── SectionArray[j] (Section object where Section = "ST_DOCUMENT_DESKEWING")
```

**Parent object:** [SectionArray](https://www.dynamsoft.com/capture-vision/docs/core/parameters/reference/document-normalizer-task-settings/section-array.md)

**Example:**

```json
{
    "Section": "ST_DOCUMENT_DESKEWING",
    "ImageParameterName": "ip_ddnDefault",
    "StageArray": [
        {
            "Stage": "SST_DESKEW_IMAGE"
        }
    ]
}
```

> [!NOTE]
> - This snippet shows a Section object configured for document deskewing.
> - To use it, add this object to the [SectionArray](https://www.dynamsoft.com/capture-vision/docs/core/parameters/reference/document-normalizer-task-settings/section-array.md) of a [DocumentNormalizerTaskSetting](https://www.dynamsoft.com/capture-vision/docs/core/parameters/file/task-settings/document-normalizer-task-settings.md).
> - 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)

## Parameters

### Section

Specifies the section type. Fixed value: `ST_DOCUMENT_DESKEWING`.

| Parameter Details |
| :------------- |
| **Type**<br>*string* |
| **Required**<br>Yes |
| **Default Value**<br>`"ST_DOCUMENT_DESKEWING"` |

### ImageParameterName

Specifies the name of an [ImageParameter](https://www.dynamsoft.com/capture-vision/docs/core/parameters/file/image-parameter.md) object to apply in the stages of this section.

| Parameter Details |
| :------------- |
| **Type**<br>*string* |
| **Range**<br>Must be the name of an [ImageParameter](https://www.dynamsoft.com/capture-vision/docs/core/parameters/file/image-parameter.md) object defined under `ImageParameterOptions` |
| **Default Value**<br>`""` |

### StageArray

Specifies the stage objects within this section. The `DocumentDeskewingSection` consists of the following stages:

| Stage | Description |
|-------|-------------|
| [DeskewImageStage](https://www.dynamsoft.com/capture-vision/docs/core/parameters/reference/document-normalizer-task-settings/stage-deskew-image.md) (`SST_DESKEW_IMAGE`) | Deskews the quadrilateral to transform it into a rectangle. |
