3. QR code creation and identification

1. QR codes

1.1 Introduction of QR code

QR code is a two-dimensional bar code, QR from the English "Quick Response" abbreviation, that is, rapid response meaning, from the inventor hopes that the QR code can make its content quickly decoded. QR code not only has large information capacity, high reliability and low cost, but also can represent a variety of text information such as Chinese characters and images, and its security is strong and it is very convenient to use. What's more, the QR code technology is open source.

1.2 Structure of QR code

PictureParsing
imgPositioning markings: Indicate the direction of the QR code.
imgAlignment markings: If the QR code is large, these additional elements help with positioning.
imgTiming pattern: From these lines, the scanner can identify how large the matrix is.
imgVersion information: This specifies the version number of the QR code being used, there are currently 40 different versions of QR codes. The version numbers used in the sales industry are usually 1-7.
imgFormat information: The format pattern contains information about fault tolerance and data mask patterns, and makes it easier to scan code.
imgData and error correction keys: These schemas hold the actual data.
imgQuiet zone: This area is very important for the scanner, its role is to separate itself from the surrounding.

 

1.3 Features of QR code

The data values in the QR code contain duplicate information (redundant values). Therefore, even if up to 30% of the structure of the QR code is destroyed, the readability of the QR code is not affected. The QR code has a storage space of up to 7089 bits or 4296 characters, including punctuation and special characters, which can be written into the QR code. In addition to numbers and characters, you can encode words and phrases, such as web addresses. As more data is added to the QR code, the code size increases and the code structure becomes more complex.

1.4. Creation and recognition of QR code

1) Create a QR code
2) Identify the QR code