Need better scanning performance?
DeskewMode
DeskewMode specifies the method in which the deskew process is applied to the target image. It consists of one of the following candidate modes, each mode represents an implementation.
JSON Structure
Location in template:
DocumentNormalizerTaskSettingOptions[i]
└── SectionArray[j] (Section object)
└── StageArray[k] (Stage object where Stage = "SST_DESKEW_IMAGE")
└── DeskewMode
Parent object: DeskewImageStage
Example:
{
"DeskewMode": {
"ContentDirection": 0,
"Mode": "DSM_PERSPECTIVE_CORRECTION"
}
}
- This snippet shows only the
DeskewModeparameter.- To use it, embed this parameter within a DeskewImageStage object in the complete JSON structure.
- For the complete JSON structure, see:
Parameter Details
DeskewMode is defined with a object that contains two mode arguments, Mode and ContentDirection.
Mode Arguments
| Mode Argument Name | Mode Argument Summary |
|---|---|
| Mode (Required) |
Description Specifies a mode for deskewing. |
| Type String |
|
| Candidate Mode List DSM_PERSPECTIVE_CORRECTION |
|
| Default Value ["DSM_PERSPECTIVE_CORRECTION"] |
|
| ContentDirection (Optional) |
Description Sets the Argument ContentDirection. |
| Type int |
|
| Range [0,2] |
|
| Default Value 0 |
|
| Remarks Only available for "DSM_PERSPECTIVE_CORRECTION". 0: Direction unknown. 1: Vertical direction. 2: Horizontal direction. |
Default Setting
If the DeskewMode is not configured in your template file, the following setting will be used as the default setting.
{
"DeskewMode" :
{
"ContentDirection" : 0,
"Mode" : "DSM_PERSPECTIVE_CORRECTION"
}
}
Candidate Mode Introductions
DSM_PERSPECTIVE_CORRECTION
Deskew the document by applying perspective correction process.