ScaleDownThreshold

Sets the threshold value an image can be scaled down to. If the shorter edge size is larger than the given value, the library will calculate the required height and width of the barcode image and shrink the image to that size before localization. Otherwise, it will perform barcode localization on the original image.

Presence

Optional

Type

Int

Values

[512, 0x7fffffff]

Default Value

2300

Remarks

If you have an image whose shorter edge size is larger than the given value and the barcode is a small part on it, you can set this value to be larger than the shorter edge of this image.

If you have an image whose shorter edge size is larger than the given value and the barcode is clear and big, you can set this value to a smaller one than the default value.

The larger the value is, the slower the localization will be.

Example

{
    "ScaleDownThreshold": 3400,
}

results matching ""

    No results matching ""