Resource Base
Table of contents

Thanks for downloading Dynamsoft Barcode Reader Package!

Your download will start shortly. If your download does not begin, click here to retry.

ImageParameter Object | LocalizationModes

LocalizationModes

Mode Properties

LocalizationModes is a parameter for setting the mode for localization algorithms. It consisits of one or more LocalizationMode items and each item has its own arguments. The array index represents the priority of the item. The smaller index is, the higher priority is.

Value Type Value Range Default Value
string array or LocalizationMode array “LM_SKIP”
“LM_AUTO”
“LM_CONNECTED_BLOCKS”
“LM_STATISTICS”
“LM_LINES”
“LM_SCAN_DIRECTLY”
“LM_STATISTICS_MARKS”
“LM_STATISTICS_POSTAL_CODE”
[“LM_CONNECTED_BLOCKS”, “LM_SCAN_DIRECTLY”, “LM_STATISTICS”, “LM_LINES”, “LM_SKIP”, “LM_SKIP”, “LM_SKIP”, “LM_SKIP”]

See Also :
LocalizationMode Enumeration

Mode Arguments

ScanStride

Sets the stride in pixels between scans when searching for barcodes.

Value Type Value Range Default Value
int [0, 0x7fffffff] 0

Remarks

  • 0: automatically set by the library.
  • When the set value is greater than half the width or height of the current image, the actual processing is 0.
ScanDirection

Sets the scan direction when searching barcode.

Value Type Value Range Default Value
int [0, 2] 0

Remarks

  • 0: Both vertical and horizontal direction.
  • 1: Vertical direction.
  • 2: Horizontal direction.
LibraryFileName

Sets the file name of the library to load dynamically.

Value Type Value Range Default Value Valid For
string A string value representing file name. ”” All LocalizationMode items except LM_SKIP and LM_AUTO

Remarks
The library must be in the same place with Dynamsoft Barcode Reader Library.

LibraryParameters

Sets the parameters passed to the library to load dynamically.

Value Type Value Range Default Value Valid For
string A string value representing parameters. ”” All LocalizationMode items except LM_SKIP and LM_AUTO

Setting Methods

As JSON Parameter

LocalizationModes as a JSON parameter is a JSON Object array. Each JSON Object has several keys for setting the mode and the value of arguments. The array index decides the priority for localization algorithms. Default values will be used if there is no manual setting.

Json Object Json Parameter Name Value Type
ImageParameter LocalizationModes JSON Object Array

Json Parameter Example

{
    "LocalizationModes": [
        {
            "Mode": "LM_SCAN_DIRECTLY",
            "ScanStride": 5
        },
        {
            "Mode": "LM_STATISTICS"
        }
    ]
}

 

As PublicRuntimeSettings Member

LocalizationModes as a member of PublicRuntimeSettings struct is a LocalizationMode array for setting the modes and the priority for localization algorithms. Default value will be used if there is no manual setting.

Struct Struct Member Name Value Type
PublicRuntimeSettings localizationModes LocalizationMode[8]

Remarks
GetModeArgument and SetModeArgument need to be called for getting or setting the value of arguments.

See Also

This page is compatible for:

Version 7.5.0

Is this page helpful?

YesYes NoNo

latest version

  • Latest version
  • Version 8.6.0
  • Version 8.4.0
  • Version 8.2.5
  • Version 8.2.3
  • Version 8.2.1
  • Version 8.2.0
  • Version 8.1.3
  • Version 8.1.2
  • Version 8.1.0
  • Version 8.0.0
  • Version 7.6.0
  • Version 7.5.0
Change +
© 2003–2021 Dynamsoft. All rights reserved.
Privacy Statement / Site Map / Home / Purchase / Support