Table of contents

LineAssemblyMode

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

Example

{
    "LineAssemblyMode":
    {
        "Mode": "LAM_GENERAL",
        "Sensitivity": 3
    }
}

Parameter Summary

Parameter LineAssemblyMode 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
LAM_GENERAL
Default Value
LAM_GENERAL
Sensitivity
(Optional)
Description
Sets the sensitivity used for short line assembling. A larger value means the library will take more effort to assemble short lines.
Type
int
Range
[1, 9]
Valid For

LAM_GENERAL

Default Setting

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

{
    "LineAssemblyMode":
    [
        {
            "Mode": "LAM_GENERAL",
            "Sensitivity": 6
        }
    ]
}

Candidate Modes Introduction

LAM_GENERAL

Assemble 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: