Skip to main page content
U.S. flag

An official website of the United States government

Dot gov

The .gov means it’s official.
Federal government websites often end in .gov or .mil. Before sharing sensitive information, make sure you’re on a federal government site.

Https

The site is secure.
The https:// ensures that you are connecting to the official website and that any information you provide is encrypted and transmitted securely.

Access keys NCBI Homepage MyNCBI Homepage Main Content Main Navigation
. 2024 May 11;24(10):3055.
doi: 10.3390/s24103055.

Dual-Message QR Codes

Affiliations

Dual-Message QR Codes

Kuo-Chien Chou et al. Sensors (Basel). .

Abstract

A novel dual-message QR code is proposed for carrying two individual messages that can be read by standard QR code readers: one from a close range and the other from a large distance. By exploring the module value determining the rule of typical QR code readers, we designed two-state module blocks that can be recognized as different module values through changing the distance from which the QR code is scanned, and applied them to construct the proposed dual-message QR code. Experiments were conducted to test the readability of the two messages within a dual-message QR code, with the results demonstrating the high feasibility of the proposed method. The dual-message QR code can be applied for designing creative applications. For example, an interactive wedding card that can access the growing film of the groom and that of the bride interchangeably, which bring the viewers a higher-quality experience.

Keywords: 2D barcode; QR code; dual-message QR code; nested QR code; two-layer QR code.

PubMed Disclaimer

Conflict of interest statement

The authors declare no conflicts of interest.

Figures

Figure 1
Figure 1
Structure of a version-7 QR code. Function patterns are used to locate and identify the parameters of a QR code. Data modules contain the input-data code words and the error-correction code words.
Figure 2
Figure 2
Typical QR code decoding procedure.
Figure 3
Figure 3
Special QR code for exploring the module value determination rule. (a) The testing QR code. (b) Layout of a module block.
Figure 4
Figure 4
Illustration of pixels of an exhibited module block that are projected onto the centroid pixel of a module block in the captured image. (a) QR code module located at a distance. (b) QR code module located at close range. (c) A pixel in the camera image plane.
Figure 5
Figure 5
Working model of the two-state module block. (a) The designed 1-0 two-state module block. (b) The region to be projected onto the centroid pixel of the module block from a close range. (c) The region to be projected on the centroid pixel of the module block from a large distance.
Figure 6
Figure 6
An example of dual-message QR code. (a) Standard QR code with message “Near view is less.” (b) Standard QR code with message “Far view is more.” (c) Dual-message QR code generated by setting the module block size and the centroid region size to 29 × 29 and 7 × 7 pixels, respectively.
Figure 7
Figure 7
Accessing MSGnear and MSGfar from the dual-message QR code. (a) Snapshot of QRdual displayed on the screen captured from a close range. (b) Snapshot of QRdual displayed on the screen captured at a distance. (c) Snapshot of QRdual displayed on paper captured from a close range. (d) Snapshot of QRdual displayed on paper captured at a distance.
Figure 8
Figure 8
Dual-message QR codes generated with module block size of 29 × 29 and vary centroid region size from 1 to 11.
Figure 9
Figure 9
Another example of dual-message QR code with two messages “https://youtu.be/MUcTeoFJ9qo” and “https://youtu.be/zNmhCabrJlg.” The module block size and the centroid region size are set to 11 × 11 and 3 × 3 pixels, respectively.

References

    1. Information Technology—Automatic Identification and Data Capture Techniques—QR Code Bar Code Symbology Specification. ISO/IEC; Genève, Switzerland: 2015.
    1. Tiwari S. An introduction to QR code technology; Proceedings of the 2016 International Conference on Information Technology (ICIT); Bhubaneswar, India. 22–24 December 2016; pp. 39–44.
    1. Belussi L.F.F., Hirata N.S.T. Fast QR code detection in arbitrarily acquired images; Proceedings of the 2011 24th SIBGRAPI Conference on Graphics, Patterns and Images; Alagoas, Brazil. 28–31 August 2011; pp. 281–288.
    1. Lin J.A., Fuh C.S. 2D barcode image decoding. Math. Prob. Eng. 2013;2013:848276. doi: 10.1155/2013/848276. - DOI
    1. Yang Z., Xu H., Deng J., Loy C.C., Lau W.C. Robust and fast decoding of high-capacity color QR codes for mobile applications. IEEE Trans. Image Process. 2018;27:6093–6108. doi: 10.1109/TIP.2018.2855419. - DOI - PubMed

LinkOut - more resources