Resource Base
Table of contents

LineExtractionModes

LineExtractionModes specifies the algorithm used to extract lines.

It consists of one or both of the following modes, with each mode representing a different way to extract lines.

Candidate Mode List

  • LEM_GENERAL
  • LEM_MARGIN_BASED

LEM_GENERAL

Extracts lines using the general algorithm.

LEM_MARGIN_BASED

Extracts lines based on the margin between the document content and the document border. Once the margin is found, the location of the document border is then calculated.

margin

Extracts Lines Based on Margin

Setting Methods

As JSON Parameter

LineExtractionModes as a JSON parameter is a JSON Object array defined as below.

Parent Json Object Key Name Key Value
ImageParameter LineExtractionModes A JSON Object array while each Object is defined as below
Key Name Key Value Description
Mode Any one in Candidate Mode List as string (Required) Specifies a mode for line extraction.

Default Value

{
    "LineExtractionModes": [
        {
            "Mode": "LEM_GENERAL" 
        }
    ]
}

JSON Parameter Example

{
    "LineExtractionModes": [
        {
            "Mode": "LEM_GENERAL"
        },
        {
            "Mode": "LEM_MARGIN_BASED" 
        }
    ]
}

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