Table of contents

QuadrilateralDetectionModes

Parameter QuadrilateralDetectionModes controls the quadrilateral detection process on an image. It currently includes only one mode.

Example

{
    "QuadrilateralDetectionModes": [
        {
            "Mode": "QDM_GENERAL",
            "MinQuadrilateralAreaRatio" : 30
        }
    ]
}

Parameter Summary

QuadrilateralDetectionModes consist one or more mode objects. Each mode object contains a candidate mode and other mode arguments.

Mode Arguments

Mode Argument Name Mode Argument Summary
Mode
(Required)
Description
Specifies a mode for quadrilateral detection.
Type
String
Candidate Mode List
QDM_GENERAL
QDM_SKIP
Default Value
["QDM_GENERAL"]
MinQuadrilateralAreaRatio
(Optional)
Description
The minimum ratio between the target document area and the total image area. Only those exceeding this value will be outputted (measured in percentages).
Type
Int
Value Range
[0,100]
Default Value
0, indicates the use of automatic exclusion logic to filter out small quads. When this value is changed to anything other than 0, the automatic filtering logic will be disabled.

Default Setting

If the QuadrilateralDetectionModes is not configured in your template file, the following setting will be used as the default setting.

{
    "QuadrilateralDetectionModes" : 
    [
        {
            "Mode" : "QDM_GENERAL",
            "MinQuadrilateralAreaRatio" : 0
        }
    ]
}

Candidate Modes Introduction

QDM_GENERAL

Detects quadrilateral(s) using the general algorithm.

QDM_SKIP

Skip quadrilateral(s) detection.

This page is compatible for:

Is this page helpful?

YesYes NoNo

In this article: