Dev Center
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.

How-to Guides - Enable Scale Up for Barcode Recognition

For some barcodes with small module size, Dynamsoft Barcode Reader SDK will automatically enlarge the barcode to a proper size before recognition.

Since version 7.3, Dynamsoft Barcode Reader SDK provides PublicRuntimeSettings->ScaleUpModes with arguments - ModuleSizeThreshold, AcuteAngleWithXThreshold and TargetModuleSize APIs which allow you to set the custom rules for scaling up. To enable it, you need to set PublicRuntimeSettings->ScaleUpModes to SUM_LINEAR_INTERPOLATION or SUM_NEAREST_NEIGHBOUR_INTERPOLATION, then set the rest parameters.

If the module size of the barcode < ModuleSizeThreshold and the acute angle with X of the barcode > AcuteAngleWithXThreshold, the barcode will be enlarged to N times (N=1,2,3…) till N * modulesize >= TargetModuleSize.

Example

Condition: ModuleSizeThreshold = 4, AcuteAngleWithXThreshold = 30, TargetModuleSize = 4

Scale Up Example Image

Result:

The module size of the barcode in the image is 2, which is smaller than ModuleSizeThreshold, and the acute angle is larger than AcuteAngleWithXThreshold, so our library will perform scaling up operation. After scaling up, the barcode is enlarged to 2 times since 2 * modulesize >= TargetModuleSize.

For more information about enabling scale up mode, please see ScaleUpModes and How to Set Scale Up Modes.

This page is compatible for:

Version 7.5.0

Is this page helpful?

YesYes NoNo

latest version

    • Latest version
    • Version 10.x
      • Version 10.2.0
      • Version 10.0.21
      • Version 10.0.20
      • Version 10.0.10
      • Version 10.0.0
    • Version 9.x
      • Version 9.6.42
      • Version 9.6.40
      • Version 9.6.33
      • Version 9.6.32
      • Version 9.6.31
      • Version 9.6.30
      • Version 9.6.20
      • Version 9.6.10
      • Version 9.6.0
      • Version 9.4.0
      • Version 9.2.0
      • Version 9.0.0
    • Version 8.x
      • Version 8.8.0
      • Version 8.6.0
      • Version 8.4.0
      • Version 8.2.0
      • Version 8.1.2
      • Version 8.1.0
      • Version 8.0.0
    • Version 7.x
      • Version 7.6.0
      • Version 7.5.0
    Change +