Need better scanning performance?
DeskewImageStage
DeskewImageStage de-skews the quadrilateral to transform it into a rectangle. In JSON, it is represented as a Stage object with "Stage": "SST_DESKEW_IMAGE".
JSON Structure
Location in template:
DocumentNormalizerTaskSettingOptions[i]
└── SectionArray[j] (Section object)
└── StageArray[k] (Stage object where Stage = "SST_DESKEW_IMAGE")
Parent object: StageArray within DocumentDeskewingSection
Example:
{
"Stage": "SST_DESKEW_IMAGE",
"DeskewMode": {
"ContentDirection": 0,
"Mode": "DSM_PERSPECTIVE_CORRECTION"
},
"PageSize": [-1, -1]
}
- This snippet shows a Stage object configured for deskewing images.
- To use it, add this object to the
StageArraywithin a DocumentDeskewingSection.- For the complete JSON structure, see:
Parameters
Stage
Specifies the stage type. Fixed value: SST_DESKEW_IMAGE.
| Parameter Details |
|---|
| Type string |
| Required Yes |
Default Value"SST_DESKEW_IMAGE" |
DeskewMode
Specifies the method in which the deskew process is applied to the target image. See DeskewMode for details.
PageSize
Sets the page size (width by height in pixels) of the image after deskew process. See PageSize for details.