Decode Unreadable Barcodes with Dynamsoft Barcode Reader's Custom Scan Parameters

< Back

Blurry QR Codes and Barcodes

Issue:

Blurry QR codes and barcodes pose a significant challenge to effective scanning. The images of the codes may be taken in low resolution or motion.

Solution:

There are some parameters we can adjust to improve the reading rate.

  1. Set the deblurLevel to 9 (0 - 9) so that it will try to spend extra effort to read blurred barcodes.
  2. Set the ExpectedBarcodesCount to a higher value like 999 so that it will try all the available image processing methods.
  3. Set ImagePreprocessingModes to preprocess the image.
  4. Set ScaleUpModes to scale up modules if their size is too small.

JSON Template:

{
  "ImageParameter": {
    "BarcodeFormatIds": [
      "BF_ALL"
    ],
    "BarcodeFormatIds_2": [
      "BF2_NULL"
    ],
    "DeblurLevel": 9,
    "Description": "",
    "ExpectedBarcodesCount": 999,
    "ImagePreprocessingModes": [
      {
        "LibraryFileName": "",
        "LibraryParameters": "",
        "Mode": "IPM_GENERAL"
      },
      {
        "LibraryFileName": "",
        "LibraryParameters": "",
        "Mode": "IPM_GRAY_EQUALIZE",
        "Sensitivity": 5
      },
      {
        "LibraryFileName": "",
        "LibraryParameters": "",
        "Mode": "IPM_GRAY_SMOOTH",
        "SmoothBlockSizeX": 3,
        "SmoothBlockSizeY": 3
      }
    ],
    "ScaleUpModes":["SUM_LINEAR_INTERPOLATION(0,4,6)"],
    "Name": "Settings",
    "Timeout": 99999
  },
  "Version": "3.0"
}

×

Binarized image produced by Dynamsoft Barcode Reader:

Template for Dynamsoft Barcode Reader:

JavaScript Code Snippet to Use the Template:

barcodeReader.initRuntimeSettingsWithString(template);

Image Source:

https://boofcv.org/index.php?title=Performance:QrCode

Multiple
Blur
Curved
Other
OneD

Download Our Free Barcode Test Sheet

Curious about how our Dynamsoft Barcode Scanner SDK works in real-world applications? Download our free Barcode Test Sheet, a comprehensive PDF packed with different types of barcodes, batched barcodes or even damaged codes ready to be scanned. Explore the real-world examples to see how Dynamsoft can boost your scanning performance and tackle the challenges of difficult-to-read barcodes.

Barcode Test Sheet
barcode-test-sheet-illus.png