Composite two-dimensional code generation method

By generating a composite QR code, converting the associated character strings into QR codes A and B, and printing B on QR code A, the problem of easy imitation and tampering of QR codes is solved, strong anti-counterfeiting and simple user verification are achieved, and the security of QR codes and user experience are improved.

CN120805961AInactive Publication Date: 2025-10-17ARTICLE NUMBERING CENT OF CHINA
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202511158021.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-08-19
Publication Date
2025-10-17
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

Existing QR code anti-counterfeiting labels are easy to imitate and tamper with, and require external equipment and network connections, which increases operational difficulty and application limitations, resulting in a poor user experience.

Method used

A composite QR code generation method is used to convert the associated character strings A and B into QR codes A and B respectively, and QR code B is printed on QR code A. Composite QR codes are formed by covering and scratching off materials, including QR codes, Hanxin codes and data matrix codes DM.

Benefits of technology

It has strong anti-counterfeiting capabilities and simple operation. Users can verify authenticity without additional input, reducing dependence on external devices and networks and improving user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120805961A_ABST
    Figure CN120805961A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of two-dimensional code security, in particular to a composite two-dimensional code generation method, which comprises the following steps of: acquiring a character string A and a character string B which are associated with each other; converting the character string A into a two-dimensional code A, and converting the character string B into a two-dimensional code B; printing a two-dimensional code B on the two-dimensional code A; and combining the contents of the same parts on the two-dimensional code B and the two-dimensional code A, and covering the different contents in the two-dimensional code B and the two-dimensional code A to form the composite two-dimensional code. The composite two-dimensional code generation method provided by the invention is simple to operate, good in user experience and high in two-dimensional code anti-counterfeiting technical capability.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The application belongs to the field of two-dimensional code security technology, and particularly relates to a composite two-dimensional code generation method. BACKGROUND

[0002] The commonly used two-dimensional code is a QR code, but the two-dimensional code has a problem that it cannot be anti-counterfeited and is easily copied by people. Now, common anti-counterfeiting methods, such as Figure 1 As shown in the figure, only the anti-counterfeiting part of the two-dimensional code can be identified by scratching, but this is not suitable for use. This leads to few people scanning this code, and it is inconvenient for users to use.

[0003] One of the disadvantages of two-dimensional code anti-counterfeiting labels is that they are easily imitated. Although the anti-counterfeiting features are not visible, with the continuous progress of technology, it is still possible to be broken. In addition, if consumers do not have the awareness of scanning and verifying, the anti-counterfeiting effect will be greatly reduced.

[0004] 1. Easy to imitate: Although two-dimensional code anti-counterfeiting labels are difficult to directly copy in principle, with the continuous development of technology, there are also some advanced imitation methods, such as through high-resolution printing or special material manufacturing.

[0005] 2. Easy to tamper: Although two-dimensional codes can achieve dynamic updating and modification of information, it also makes it possible for unscrupulous people to tamper with the information on the label. Once the information is tampered with, it will be difficult for consumers to distinguish the authenticity.

[0006] 3. Dependence on external equipment: The use of two-dimensional code anti-counterfeiting labels requires the use of special scanning equipment or mobile phone applications for scanning, which increases the difficulty of operation for consumers and also limits the application range.

[0007] 4. Need for network connection: Two-dimensional code anti-counterfeiting labels usually need to be connected to the Internet to verify or update information, which may cause problems such as delays or other network failures.

[0008] 5. Low sensitivity to consumers: Although two-dimensional code anti-counterfeiting labels can provide some basic product information, for consumers, scanning the two-dimensional code may require some time and effort, and for some consumers who are not familiar with or do not trust the technology, they may ignore such labels. SUMMARY

[0009] In order to solve the problem that the existing two-dimensional code anti-counterfeiting labels still have security risks and are difficult to use and easily ignored, the present application provides a composite two-dimensional code generation method, which is simple to operate, has good user experience, and has strong two-dimensional code anti-counterfeiting technology.

[0010] The technical scheme of the present application is as follows: A composite two-dimensional code generation method, comprising the following steps: Step 1: obtaining associated string A and string B; Step 2: converting string A into two-dimensional code A and converting string B into two-dimensional code B; Step 3: printing two-dimensional code B on two-dimensional code A; Step 4: merging the same part of two-dimensional code B and two-dimensional code A, and covering the different part of two-dimensional code B and two-dimensional code A to form a composite two-dimensional code.

[0011] Further, the way of converting string A into two-dimensional code A and converting string B into two-dimensional code B in step 2 specifically includes direct placement method and cross placement method; The direct placement method is that when a small amount of data is stored in the QR code, only one error correction data block is divided and directly placed. The cross placement method is that when a large amount of data is stored in the QR code, n error correction data blocks are divided, and when the QR is placed, the n data blocks are cross placed in the QR code diagram, and the shortest data block should be at the front of the sequence, and all data code words are in front of the first error correction code word.

[0012] Further, the two-dimensional code A includes A1 area and A2 area, the two-dimensional code B includes B1 area and B2 area, the A1 area and the B1 area are the same, and the A2 area and the B2 area are different in content but the same in position of the two-dimensional code.

[0013] Further, step 4 specifically includes: the A1 area and the B1 area are merged as a single-layer area of the composite two-dimensional code, and the B2 area covers the A2 area as a double-layer area of the composite two-dimensional code, wherein the B2 area adopts an easy-to-remove material or a removable printing material.

[0014] Further, the two-dimensional code includes QR code, Hansin code and data matrix code DM.

[0015] Compared with the prior art, the present application has the following beneficial effects: (1) The QR code B and the QR code A disclosed by the present application are associated in coding form, and are easy to print and calculate, which can avoid the case that the hidden code is completely fished and transferred to a fake link, and solve the problem in the prior art.

[0016] (2) By using this method, the user input acceptance code is reduced, and the traditional scratch verification can be scanned, and sometimes the user input acceptance code is required to verify whether the product is fake. BRIEF DESCRIPTION OF DRAWINGS

[0017] Figure 1 It is a schematic diagram of two-dimensional code anti-counterfeiting in the prior art; Figure 2 It is a flowchart of composite two-dimensional code generation in the embodiment of the present application; Figure 3 The arrangement of code words is shown in the figure; Figure 4 The figure shows the formation of a composite two-dimensional code according to the present application; Figure 5 The figure shows the Hanxing code. DETAILED DESCRIPTION

[0018] The present application will be described in detail below in conjunction with the accompanying drawings and specific embodiments.

[0019] A composite two-dimensional code generation method, comprising the following steps: Step 1: Obtain the associated string A and string B; Step 2: Convert string A to two-dimensional code A and string B to two-dimensional code B; Step 3: Print two-dimensional code B on two-dimensional code A; Step 4: Merge the contents of the same part of two-dimensional code B and two-dimensional code A, and cover the different contents of two-dimensional code B and two-dimensional code A to form a composite two-dimensional code.

[0020] The present application will be further described below in conjunction with a specific embodiment: A composite two-dimensional code generation method, in this embodiment, a composite two-dimensional code is generated using QR code as an example, and the steps are as follows: Step 1: Obtain the associated string A and string B; String A and string B have some identical data, for example: String A content: HTTP: / / GS1.VIP / 01 / 06901234567892 / 21 / 1239999999234567891234567 String B content: HTTP: / / GS1.VIP / 01 / 06901234567892 / 21 / 1234567891234567891234567 As shown in the example above, only the black font is different, and the background "9999999" and "3456789" are combined and stored, indicating that this is a pair of combined codes "AB", which means mutual verification.

[0021] Step 2: Convert string A to QR code A and string B to QR code B: String A is converted to QR code A, which is a different storage encoding method based on the improvement of existing technology, which will be described in detail below: According to the standard code word placement method of QR code Two schemes are placed, one method is only a block, direct placement, the other method has multiple blocks, cross placement.

[0022] This is the existing QR technology standards, can not be changed, otherwise other readers can not read.

[0023] 1) QR code only one block, direct placement Such as QR code 3 version-2 error correction level: (70, 44, 13), QR code has 40 versions each version has four error correction.

[0024] QR code word arrangement as follows: Data code word: D1D2D3D4D5D6D7D8D9D10D11D12D13D14D15D16D17D18D19D20D2122D23D24D25D26D27D28D29D30D31D32D33D34D35D36D37D38D39D40D41D42D43D44 Error correction code word: E1E2E3E4E5E6E7E8E9E10E11E12E13E14E15E16E17E18E19E20E21E22E23E24E25E26 As shown in: Figure 3 If the following generation can change the corresponding D30D31D32D33, D44D45D46D47, D58 code word can be changed.

[0025] If you choose 3 version-2 error correction level, the data code word that can be changed: D30 D31· D32 D33, D44, the error correction code word that can be changed: D45 D46D47, D58.

[0026] 2) QR code has multiple blocks, cross placement The shortest data block should be at the very beginning of the sequence, and all data code words precede the first error correction code word. For example, a version 5-H symbol consists of 4 data and error correction blocks, the first two blocks include 11 data code words and 22 error correction code words, respectively, and the 3rd and 4th blocks include 12 data code words and 22 error correction code words, respectively. In this symbol, the arrangement of characters is as follows, each row in the table corresponds to the data code words (denoted as Dn) of a block and the error correction code words (denoted as En) of the corresponding block; the arrangement of characters in the symbol can be obtained by reading the columns in the table from top to bottom:

[0027] The final code word sequence of the version 5-H symbol is: D1, D12, D23, D35, D2, D13, D24, D36,... D11, D22, D33, D45, D34,D46, E1, E23, E45, E67, E2, E24, E46, E68,... E22, E44, E66, E88. If necessary, add the remaining bits (0) after the last codeword.

[0028] QR code AB generation example QR code parameter 3 version-2 error correction level: (70, 44, 13), mask parameter is 3 Data codeword that can be changed: D30 D31· D32 D33, D44, Error correction codeword that can be changed: D45 D46D47, D58 1) Standard generated QR code A QR code A content: All codewords correspond to the following fullstream: Data codeword: 1=32,2=147,3=26,4=166,5=95,6=159,7=207,8=206,9=223,10=2,11=208,12=252,13=120,14=88,15=16,16=56,17=69,18=3,19=21,20=154,21=154,22=225,23=1,24=60,25=136,26=88,27=16,28=100,29=123,30=249,31=254,32=126,33=109,34=200,35=197,36=71,37=183,38=33,39=192,40=236,41=17,42=236,43=17,44=236, Error correction codeword: 45=191,46=250,47=103,48=86,49=152,50=134,51=173,52=159,53=174,54=150,55=46,56=76,57=64,58=76,59=41,60=128,61=164,62=4,63=147,64=49,65=234,66=23,67=122,68=1,69=116,70=212, Note: Data codeword 30=249, 31=254, 32=126, 33=109, 44=236, and error correction codeword 45=191, 46=250, 47=103 can be changed.

[0029] 2) Standard generated QR code B All codewords correspond to the following fullstream: Data codewords: 1 = 32, 2 = 147, 3 = 26, 4 = 166, 5 = 95, 6 = 159, 7 = 207, 8 = 206, 9 = 223, 10 = 2, 11 = 208, 12 = 252, 13 = 120, 14 = 88, 15 = 16, 16 = 56, 17 = 69, 18 = 3, 19 = 21, 20 = 154, 21 = 154, 22 = 225, 23 = 1, 24 = 60, 25 = 136, 26 = 88, 27 = 16, 28 = 100, 29 = 123, 30 = 114, 31 = 49, 32 = 81, 33 = 237, 34 = 200, 35 = 197, 36 = 71, 37 = 183, 38 = 33, 39 = 192, 40 = 236, 41 = 17, 42 = 236, 43 = 17, 44 = 236, Error correction codewords: 45 = 27, 46 = 86, 47 = 252, 48 = 93, 49 = 144, 50 = 33, 51 = 114, 52 = 197, 53 = 182, 54 = 180, 55 = 138, 56 = 74, 57 = 1, 58 = 127, 59 = 131, 60 = 167, 61 = 167, 62 = 145, 63 = 9, 64 = 16, 65 = 31, 66 = 233, 67 = 1, 68 = 134, 69 = 130, 70 = 198, Note: 30 = 114, 31 = 49, 32 = 81, 33 = 237 in data codewords, and 45 = 27, 46 = 86, 47 = 252 in error correction codewords are variable.

[0030] 3) Generating QR code A and QR code B codewords To generate QR code A and QR code B, except for the cover layer, other characters are the same, that is, other codewords are the same.

[0031] a. The codewords of QR code A are as follows fullstream: Data codewords: 32, 147, 26, 166, 95, 159, 207, 206, 223, 2, 208, 252, 120, 88, 16, 56, 69, 3, 21, 154, 154, 225, 1, 60, 136, 88, 16, 100, 123, 114, 49, 81, 237, 200, 197, 71, 183, 33, 192, 236, 17, 236, 17, 236, Error correction codewords: 27, 86, 252, 93, 144, 33, 114, 197, 182, 180, 138, 74, 1, 127, 41, 128, 164, 4, 147, 49, 234, 23, 122, 1, 116, 212, b. The code words of QR code B are as follows fullstream: Data code words: 32, 147, 26, 166, 95, 159, 207, 206, 223, 2, 208, 252, 120, 88, 16, 56, 69, 3, 21, 154, 154, 225, 1, 60, 136, 88, 16, 100, 123, 114, 49, 81, 237, 200, 197, 71, 183, 33, 192, 236, 17, 236, 17, 236, Error correction code words: 27, 86, 252, 93, 144, 33, 114, 197, 182, 180, 138, 74, 1, 127, 41, 128, 164, 4, 147, 49, 234, 23, 122, 1, 116, 212, Among them, 93, 144, 33, 114, 197, 182, 180, 138, 74, 1 are the original QR code A error correction code words, 41, 128, 164, 4, 147, 49, 234, 23, 122, 1, 116, 212 are the original QR code B error correction code words, as long as the new error correction code words are generated through the error correction code words of QR code A and QR code B error correction code words, QR code A and QR code B can be composed of error correction code words.

[0032] The above method of generating QR code from string does not affect the existing recognition.

[0033] Step 3: printing QR code B pattern on QR code A; The QR code A includes A1 area and A2 area, the QR code B includes B1 area and B2 area, the A1 area and B1 area are the same, the contents of the A2 area and B2 area are different, but the positions of the QR code are the same, see Figure 4 .

[0034] Step 4: using easy-to-remove materials or removable printing scheme to print pattern area C including pattern areas A2 and B2 on QR code A pattern, the removable printing scheme mainly reflects the printing of two-dimensional code materials, different materials correspond to different processing methods, such as physical method and chemical method, such as printing two-dimensional code on glass with chemical pigment.

[0035] See Figure 4, the pattern of the QR code A and the QR code B is only different in the C area, so there are two layers of patterns in the C area, one A2 area and one B2 area, in actual use, the user first scans the first layer QR code B, that is, the B2 area, when using the easy-to-remove material, the user removes the B2 area, at this time it is the QR code A.

[0036] The user can also scan the code to realize information tracing or information inquiry without removing it, and the user can remove the C area layer to realize anti-fake verification.

[0037] In an embodiment of the present application, the two-dimensional code includes but is not limited to QR code, Hanxin code, data matrix code DM and other two-dimensional codes conforming to RS (Reed-Solomon) error correction.

[0038] Referring to Figure 5 For example, the Hanxin code is as follows.

[0039] A code content: http: / / gs1cn.org / 01 / 06901234567892 / 21 / 12345678912345678912 B code content: http: / / gs1cn.org / 01 / 06901234567892 / 21 / 66645678912345678999 The above Hanxin code generates a composite two-dimensional code in the same way as the first embodiment.

[0040] The above description is only an embodiment of the present application, and does not limit the patent scope of the present application, any equivalent structure or equivalent process transformation using the content of the specification and drawings, or direct or indirect application in other related technical fields, are also included in the patent protection scope of the present application.

Claims

1. A composite QR code generation method, characterized in that: The steps include: Step 1: Get the associated string A and string B; Step 2: Convert string A into QR code A, and convert string B into QR code B; Step 3: Print QR code B on QR code A; Step 4: Merge the same contents of QR code B and QR code A, and overwrite the different contents of QR code B and QR code A to form a composite QR code.

2. A composite two-dimensional code generation method according to claim 1, characterized in that: In step 2, the method of converting the character string A into the QR code A and the method of converting the character string B into the QR code B specifically include a direct placement method and a cross placement method; The direct placement method is that when a small amount of data is stored in the QR code, only one error correction data block is divided and placed directly; The cross placement method is that when a large amount of data is stored in the QR code, it will be divided into n error correction data blocks. When the QR is placed, the n blocks of data will be cross-placed in the QR code image. The shortest data block should be at the front of the sequence, and all data codewords are in front of the first error correction codeword.

3. The method for generating a composite two-dimensional code according to claim 1, wherein: The two-dimensional code A includes an A1 area and an A2 area, and the two-dimensional code B includes a B1 area and a B2 area. The A1 area and the B1 area are the same, and the contents of the A2 area and the B2 area are different, but the positions in the two-dimensional codes are the same.

4. A composite two-dimensional code generation method according to claim 3, characterized in that: Step 4 is specifically as follows: the A1 area and the B1 area are merged as a composite two-dimensional code single-layer area, and the B2 area covers the A2 area as a composite two-dimensional code double-layer area, wherein the B2 area is made of easily scratchable material or removable printed material.

5. The method for generating a composite two-dimensional code according to claim 1, wherein: The two-dimensional code includes QR code, Hanxin code and Data Matrix code DM.

Citation Information

Patent Citations

  • Two-dimension code anti-counterfeit label

    CN104794987A

  • Anti-forgery two-dimensional code and generation and identification method thereof

    CN108960387A

  • Composite QR code verification method and system

    CN119337906A