Web Demos

BARCODE READER SDK DEMO

Explore the flexibe barcode reading settings to optimize for your specific usage scenario.

WEB TWAIN SDK DEMO

Try the most popular web scanner features: scan images, import local images and PDF files, edit, save to local, upload to database, and etc.

BARCODE READER JAVASCRIPT DEMO

Transform any camera-equipped devices into real-time, browser-based barcode and QR code scanners.

MRZ SCANNER WEB DEMO

Detects the machine-readable zone of a passport, scans the text, and parses into human-readable data.

APP STORE DEMOS

BARCODE READER SDK FOR IOS

BARCODE READER SDK FOR ANDROID

VIEW MORE DEMOS >
< Back

Blurry Barcodes

Issue:

The barcodes are blurry. The image might be taken in motion or low resolution.

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_ITF"
    ],
    "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);
Multiple
Blur
Curved
Other
OneD