DeskewMode
Parameter DeskewMode
specifies the method in which the deskew process way used to apply the deskew process on the target normalized image. It consisits one of one following candidate modes, each mode represents an implement.
Example
{
"DeskewMode" :
{
"ContentDirection" : 0,
"Mode" : "DM_PERSPECTIVE_CORRECTION"
},
}
Parameter Summary
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 DM_PERSPECTIVE_CORRECTION |
|
Default Value ["DM_PERSPECTIVE_CORRECTION"] |
|
ContentDirection (Optional) |
Description Sets the Argument ContentDirection. |
Type int |
|
Range [0,2] |
|
Default Value 0 |
|
Remarks Only available for "DM_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" : "DM_PERSPECTIVE_CORRECTION"
}
}
Candidate Modes Introduction
DM_PERSPECTIVE_CORRECTION
Deskew the document by applying perspective correction process.