Resource Base
Table of contents

DeskewMode

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.

Candidate Mode List

  • DM_PERSPECTIVE_CORRECTION

DM_PERSPECTIVE_CORRECTION

Deskew the document by applying perspective correction process. This mode has the following arguments for further customizing.

Setting Methods

As JSON Parameter

DeskewMode as a JSON parameter is a JSON Object defined as below.

Parent Json Object Key Name Key Value
ImageParameter DeskewMode A JSON Object defined as below
Key Name Key Value Description
Mode Any one in Candidate Mode List as string (Required) Specifies a mode for deskewing.
ContentDirection A number from value range of ContentDirection (Optional) Sets the Argument ContentDirection.

JSON Parameter Example

{
    "DeskewMode": {
        "Mode": "DM_PERSPECTIVE_CORRECTION", 
        "ContentDirection": 0
    }
}

Candidate Argument List

ContentDirection

Sets the direction of the document to be normalized.

Value Type Value Range Default Value Valid For
int [0, 2] 0 DM_PERSPECTIVE_CORRECTION

Remarks

  • 0: Direction unknown.
  • 1: Vertical direction.
  • 2: Horizontal direction.

This page is compatible for:

Version 1.0

Is this page helpful?

YesYes NoNo

In this article:

latest version

    • Latest version(2.2.10)
    • Version 2.x
      • Version 2.2.0
      • Version 2.0.21
      • Version 2.0.20
      • Version 2.0.11
      • Version 2.0.10
      • Version 2.0.0
    • Version 1.x
      • Version 1.0.21
      • Version 1.0.20
      • Version 1.0.12
      • Version 1.0.11
      • Version 1.0.10
      • Version 1.0.0
    Change +
    © 2003–2024 Dynamsoft. All rights reserved.
    Privacy Statement / Site Map / Home / Purchase / Support