Table of contents

ShortLineDetectionMode

Parameter ShortLineDetectionMode determines how to detect the short lines. For tasks like document detection, short line is very important and usually requires a stronger detection sensitivity to ensure enough short lines are captured.

Example

{
    "ShortlineDetectionMode":
    {
        "Mode": "SDM_GENERAL",
        "Sensitivity": 3
    }
}

Parameter Summary

Parameter ShortlineDetectionMode includes a mode arguments shown as follow:

Mode Arguments

Mode Argument Name Mode Argument Summary
Mode
(Required)
Description
Any one in Candidate Mode List as string
Type
String
Candidate Mode List
SDM_GENERAL
Default Value
SDM_GENERAL
Sensitivity
(Optional)
Description
Sets the sensitivity used for short line detection. A larger value means the library will take more effort to detect short lines.
Type
int
Range
[1, 9]
Valid For

SDM_GENERAL

Default Setting

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

{
    "ShortlineDetectionMode":
    [
        {
            "Mode": "SDM_GENERAL",
            "Sensitivity": 6
        }
    ]
}

Candidate Modes Introduction

SDM_GENERAL

Detects short lines using the general algorithm. This mode has the following arguments for further customization.

Available Mode Arguments:

  • Sensitivity

Is this page helpful?

YesYes NoNo

In this article: