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 | ScaleUpModes

ScaleUpModes

Mode Properties

ScaleUpModes is an array that consists of one or more ScaleUpMode items. Each mode represents a sampling method of scale-up. Each mode has its own arguments. The array index represents the priority of the sampling methods. A smaller index means higher priority. This API is typically used for linear and 2D barcodes with small module sizes.

Value Type Value Range Default Value
string array or ScaleUpMode array “SUM_SKIP”
“SUM_AUTO”
“SUM_LINEAR_INTERPOLATION”
“SUM_NEAREST_NEIGHBOUR_INTERPOLATION”
[“SUM_AUTO”, “SUM_SKIP”, “SUM_SKIP”, “SUM_SKIP”, “SUM_SKIP”, “SUM_SKIP”, “SUM_SKIP”, “SUM_SKIP”]

See Also :
ScaleUpMode Enumeration

Mode Arguments

If the module size of the barcode is smaller than the ModuleSizeThreshold and the acute angle with X of the barcode is larger than the AcuteAngleWithXThreshold, the barcode will be enlarged by a scale factor of N (N=1,2,3…) till N * modulesize >= TargetModuleSize.

AcuteAngleWithXThreshold

Sets the minimum acute angle threshold for scale-up

Value Type Value Range Default Value
int [-1, 90] -1

Remarks
-1: means automatically set by the library.

ModuleSizeThreshold

Sets the minimum module size threshold for scale-up

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

Remarks
0: means automatically set by the library.

TargetModuleSize

Sets the target module size for scale-up

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

Remarks
0: means automatically set by the library.

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 ScaleUpMode items except SUM_SKIP and SUM_AUTO

Remarks
The library must be in the same place as 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 ScaleUpMode items except SUM_SKIP and SUM_AUTO

Setting Methods

As JSON Parameter

ScaleUpModes 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 the mode to control the sampling methods of scale-up for linear barcodes with small module sizes. Default values will be used if there is no manual setting.

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

Json Parameter Example

{
    "ScaleUpModes": [
        {
            "Mode": "SUM_AUTO",
            "AcuteAngleWithXThreshold": 20, 
            "ModuleSizeThreshold": 1,
            "TargetModuleSize": 5
        }
]
}

 

As PublicRuntimeSettings Member

ScaleUpModes as a member of PublicRuntimeSettings struct is a ScaleUpMode array for setting the modes and the priority to control the sampling methods of scale-up for linear barcodes with small module sizes. Default value will be used if there is no manual setting.

Struct Struct Member Name Value Type
PublicRuntimeSettings scaleUpModes ScaleUpMode[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