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 >

QR Codes Recognition: High-Density

QR Codes Recognition: High-Density

QR code can store much more data than a 1D code. But do you know how much data it can represent?

Here is a quote from wikipedia1:

The amount of data that can be stored in the QR code symbol depends on the datatype (mode, or input character set), version (1, …, 40, indicating the overall dimensions of the symbol, i.e. 4 × version number + 17 dots on each side), and error correction level.

In simple terms, a QR code can store up to 7,089 numbers, 4,296 alphanumeric characters, 2,953 bytes, or 1,817 Japanese Kanjis.

With this capacity, a QR code can even represent a small image. For instance, an enhanced QR code that includes the card holder’s info like name and photo is used on PAN Card, which is promoted by the Indian government.

Example Image of High-density QR Codes

The more data a QR code has to represent, the bigger it becomes. Here we generate two QR codes using the first chapter name and the first three paragraphs of A Tale of Two Cities by Charles Dickens. The error correction level is set to the lowest. The two codes are generated using this online QR code generator: QR Code Generator.

a_tale_of_two_cities_chapter_name

a_tale_of_two_cities_first_three_paragraphs

There is no problem using advanced barcode readers like Dynamsoft Barcode Reader (DBR) to read these images directly.

Scan High-Density QR Codes Online

Tips for Better Scanning

But normally QR codes are printed in a limited area and have to be scanned with a mobile phone. The modules of the printed QR code might be dense and small. The environmental conditions may also affect the reading process. In general, there are several aspects to which we can pay attention for better reading.

  • Sufficient light
  • A good camera with high resolution
  • Scan only the code area. The image content will be simpler and clearer when it only contains the QR code. You could put your phone close to the code or place the QR code within a viewfinder (This requires using a higher camera resolution).

The localization and decoding of QR codes rely on sophisticated image processing. It is also recommended to use a high-performance barcode reader like Dynamsoft Barcode Reader.

How Dynamsoft Barcode Reader Reads High-Density QR Codes

Dynamsoft Barcode Reader provides rich parameters that users can customize and optimize for different usage scenarios for the best scanning performance.

We can do the following to optimize the reading of high-density QR codes.

  • Specify the barcode format to QR code
  • Scale up modules if they are too small
  • Sharpen the image
  • Run gray equalization

Here is the complete JSON template (the settings can be modified with a JSON template):

{
    "ImageParameter" :  {
        "BarcodeComplementModes" : ["BCM_SKIP"],
        "BarcodeFormatIds" : ["BF_QR_CODE"],
        "DeblurModes" : [{"Mode":"DM_SHARPENING"},{"Mode":"DM_GRAY_EQUALIZATION"}],
        "ExpectedBarcodesCount" : 1,
        "LocalizationModes" : ["LM_CONNECTED_BLOCKS"],
        "ScaleUpModes":["SUM_LINEAR_INTERPOLATION(0,4,6)"],
        "MaxAlgorithmThreadCount" : 1, 
        "Name" : "Test", 
        "ScaleDownThreshold" : 10000, 
        "Timeout":5000
    },
    "Version" : "3.0"
}

To learn more about DBR’s parameters, visit its documentation.

How to Customize Dynamsoft Barcode Reader for Optimal Performance

Dynamsoft Barcode Reader is fully customizable for the greatest performance just for your business. Advanced users can choose between a long list of parameters, each containing a set of modes. A mode is a special function that the barcode reader can do. Each mode can include a number of arguments, which are used to further refine or customize the application. How to customize Qr code scan settings?

Licensing

These capabilities are integrated into all editions of Dynamsoft Barcode Reader and require no extra licenses. Supported editions include Windows, Linux, iOS, Android, and JavaScript.

Download Free Trial

Getting Started

There is a mode for scanning high-density QR codes in the demo app of Dynamsoft Barcode Reader. You can download the demo app for Android and iOS to have a try.

References

  1. https://en.wikipedia.org/wiki/QR_code 

Subscribe Newsletter

Subscribe to our mailing list to get the monthly update.

Subscribename@email.com