Composite QR code verification method and system
By generating and printing composite QR codes in the QR code verification system, the problem of poor correlation and weak anti-counterfeiting capabilities of double-layer QR codes is solved, effective verification and verification of composite QR codes is achieved, and product anti-counterfeiting and Reliability of process management.
Patent Information
- Application Number
- CN202411481213.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Priority Date
- 2024-05-26
- Filing Date
- 2024-10-23
- Publication Date
- 2025-01-21
AI Technical Summary
In the prior art, double-layer QR codes are difficult to correlate, have weak anti-counterfeiting capabilities, and it is difficult to generate local double-layer QR codes that meet the composite printing requirements.
Adopt a composite QR code verification method and system, generate the first encoding and second encoding by encoding the system, and printed the second QR code symbol that is converted to the second code serial serial sequence during symbols. Continue to print patterns on easy damaged materials to form a complete first QR code symbol.
The effective verification and verification of the composite QR code is realized, the reliability of the anti -counterfeiting and process management process of the product is enhanced, and the risk of the QR code is copied and pasted on the counterfeit commodity.
Abstract
Description
Technical Field
[0001] The invention relates to two-dimensional code technology. Background Art
[0002] The standard GBT18284-2000 specifies the technical contents of QR code, including symbol characteristics and symbol structure, data encoding and symbol representation, symbol printing, symbol quality, decoding process, reference decoding algorithm, data transmission, etc.
[0003] In the prior art, there are double-layer QR codes, that is, the coating on the upper QR code is scratched off to reveal the lower QR code. However, the two layers of QR codes are difficult to associate, and the anti-counterfeiting ability is still weak.
[0004] In the prior art, there are dual QR codes with anti-counterfeiting and traceability functions, such as partial double-layer QR codes printed on a substrate, that is, there is a fragile material partially above the QR code B, and a pattern is printed on the fragile material. The pattern and the pattern of the QR code B that is not covered by the fragile material form a complete pattern of the QR code A;
[0005] When the operator verifies, the code scanning device can transmit the read information to the verification server by scanning the two-dimensional code A and the two-dimensional code B to be verified;
[0006] After receiving the information, the verification server verifies the first code to be verified according to the following situations:
[0007] I) verifying the first code to be verified to determine that it is the correct first code, and if the second code has not been received, the first code to be verified is verified;
[0008] II) verifying the first code to be verified to determine that it is the correct first code; if the second code has been received before, the first code to be verified is not verified;
[0009] After receiving the information, the verification server verifies the second code to be verified; after verifying the second code to be verified, if it is the first time to determine that the correct second code has been received, the verification record of receiving the correct second code is saved.
[0010] If the above II) situation occurs, it means that the vulnerable material on QR code B has been scratched, so that QR code B has been completely exposed, and the QR code B faced by the operator may be copied. On the contrary, in situation I), QR code B has never been recorded by the server as being scanned, and it is more likely to be scratched for the first time. After the operator completes this verification, QR code B will be recorded as being scanned by the server, which prevents criminals from copying QR code B and QR code A to paste on counterfeit goods.
[0011] On the other hand, it is difficult to generate a partial double-layer QR code that meets the above requirements in the prior art, that is, the same parts of the QR code A pattern and the QR code B pattern are often scattered, making it difficult to form a partial double-layer QR code that meets the composite printing requirements. Summary of the invention
[0012] The object of the present invention is to provide a composite QR code verification method and system, characterized by: comprising the coding generation system, the QR code generation system, and the verification server;
[0013] The code generation system generates a composite QR code by the following steps:
[0014] 1) Generate a first code and a second code;
[0015] The first code includes a character sequence K and a character sequence A, wherein the character sequence A is a first signature of the character sequence K; the second code includes a character sequence K and a character sequence B, wherein the character sequence B is a second signature of the character sequence K; the character sequence A and the character sequence B have the same length and format;
[0016] 2) Performing a transformation on the first code: inserting a fill character between the character sequence K and the character sequence A constituting the first code; performing a transformation on the second code: inserting a fill character between the character sequence K and the character sequence B constituting all the character sequences of the second code;
[0017] 3) According to the QR code encoding process, the transformed first code and the second code are used as input data to generate a first code word sequence and a second code word sequence;
[0018] When printing the symbol, the second QR code symbol converted from the second code word sequence is printed on the surface of the substrate, and then the second QR code symbol is covered with a fragile material; after the fragile material is covered, only the second QR code symbol and the first QR code symbol have the same pattern of all information encoding areas exposed, or only the second QR code symbol and the first QR code symbol have the same pattern of part of the encoding area exposed; finally, the pattern is continued to be printed on the fragile material to form a complete first QR code symbol; the first QR code symbol is converted from the first code word sequence.
[0019] During verification, the code scanning device may transmit the read information to the verification server by scanning the first QR code symbol to be verified and the second QR code symbol to be verified respectively;
[0020] After receiving the information, the verification server performs verification on the first code to be verified in the following situations:
[0021] I) verifying the first code to be verified to determine that it is the correct first code, and if the second code has not been received, the first code to be verified is verified;
[0022] II) verifying the first code to be verified to determine that it is the correct first code; if the second code has been received before, the first code to be verified is not verified;
[0023] After receiving the information, the verification server verifies the second code to be verified; after verifying the second code to be verified, if it is the first time to determine that the correct second code has been received, the verification record of receiving the correct second code is saved.
[0024] Further, after the first data codeword sequence and the second data codeword sequence are generated, the first data codeword sequence and the second data codeword sequence are transformed according to the same rule, so that the modules corresponding to the character sequence A of the first data codeword sequence are concentrated in the continuous graphic part of the graphic of the first QR code symbol, and the modules corresponding to the character sequence B of the second data codeword sequence are concentrated in the continuous graphic part of the graphic of the second QR code symbol;
[0025] After the code scanning device scans the first QR code symbol and the second QR code symbol, the read code needs to undergo an inverse transformation corresponding to the transformation to obtain the correct first code and second code.
[0026] Furthermore, when the QR code generation system converts the first code word sequence into a first QR code symbol, the data code words and error correction code words corresponding to the character sequence A are arranged centrally in the first QR code symbol; when the QR code generation system converts the second code word sequence into a second QR code symbol, the data code words and error correction code words corresponding to the character sequence A are arranged centrally in the second QR code symbol.
[0027] Furthermore, when printing the symbol, the second QR code symbol converted from the second code word sequence is printed on the surface of the substrate, and then the entire error correction code word area and part of the data code word area on the second QR code symbol are covered with fragile material; after the fragile material is covered, only the information encoding area of the second QR code symbol and the first QR code symbol having the same pattern is exposed; finally, the pattern is continued to be printed on the fragile material to form a complete first QR code symbol.
[0028] Furthermore, in step 1), the amount of padding characters inserted at each location is at least 1 bit, so that in the subsequent encoding process, the codes corresponding to the character sequence K and the character sequence A are not assigned to the same group; in step 2), the amount of padding characters inserted at each location is at least 1 bit, so that in the subsequent encoding process, the codes corresponding to the character sequence K and the character sequence B are not assigned to the same group.
[0029] Furthermore, the number of padding characters inserted in step 1) and step 2) is the same.
[0030] Further, the first QR code symbol and the second QR code symbol have the same version, error correction level, and masking scheme.
[0031] Furthermore, for the first code, padding characters are inserted before and after all character sequences constituting the first code, and between character sequence K and character sequence A; for the second code, padding characters are inserted before and after all character sequences constituting the second code, and between character sequence K and character sequence B.
[0032] Furthermore, during verification, after scanning the first QR code symbol to be verified and the second QR code symbol to be verified, the code scanning device needs to perform an inverse transformation corresponding to the entire transformation process on the collected information to obtain information corresponding to the first code and the second code.
[0033] Furthermore, a mode indicator is inserted before and / or after the character sequence A and the character sequence B.
[0034] The object of the present invention is also to provide a composite QR code verification method and system, characterized by: comprising the coding generation system, the QR code generation system, and the verification server;
[0035] The code generation system generates a composite QR code by the following steps:
[0036] 1) Generate a first code and a second code;
[0037] The first encoding includes a character sequence K and a character sequence A, wherein the character sequence A is a first signature of the character sequence K; the second encoding includes a character sequence K and a character sequence B, wherein the character sequence B is a second signature of the character sequence K; the character sequence A and the character sequence B have the same length and format.
[0038] 2) converting the first code and the second code into a first QR code symbol and a second QR code symbol respectively;
[0039] 3) forming an error correction codeword region of a composite QR code, wherein the region includes half of the error correction codeword of the first QR code symbol and half of the error correction codeword of the second QR code symbol;
[0040] When printing the symbol, first print the B code symbol of the composite QR code on the surface of the substrate; the error correction codeword area of the B code symbol is the "error correction codeword area of the composite QR code"; the data codeword area of the B code symbol is the "data codeword area of the second QR code symbol";
[0041] Then, a fragile material is covered on the partial data codeword area of the B code, and finally a pattern is continued to be printed on the fragile material to form a complete data codeword area of the first QR code symbol, that is, to form an A code symbol of the composite QR code.
[0042] During verification, the code scanning device may transmit the read information to the verification server by scanning the first QR code symbol to be verified and the second QR code symbol to be verified respectively;
[0043] After receiving the information, the verification server performs verification on the first code to be verified in the following situations:
[0044] I) verifying the first code to be verified to determine that it is the correct first code, and if the second code has not been received, the first code to be verified is verified;
[0045] II) verifying the first code to be verified to determine that it is the correct first code; if the second code has been received before, the first code to be verified is not verified;
[0046] After receiving the information, the verification server verifies the second code to be verified; after verifying the second code to be verified, if it is the first time to determine that the correct second code has been received, the verification record of receiving the correct second code is saved.
[0047] Further, the error correction codeword area of the A code symbol is the “error correction codeword area of the composite QR code”; the data codeword area of the A code symbol is the “data codeword area of the first QR code symbol”;
[0048] Furthermore, when a fragile material is covered on the B code and the A code symbol is printed on the fragile material, for the digital area, after covering the fragile material, only the data codeword area having the same pattern as the first QR code symbol is exposed, or only part of the data codeword area having the same pattern as the first QR code symbol is exposed.
[0049] Furthermore, when the QR code generation system converts the first code word sequence into the first QR code symbol, the data code words corresponding to the character sequence A are arranged centrally in the first QR code symbol; when the QR code generation system converts the second code word sequence into the second QR code symbol, the data code words corresponding to the character sequence B are arranged centrally in the second QR code symbol.
[0050] Furthermore, when printing the symbol, the fragile material may be covered on all or part of the error correction codeword area of the B code symbol; and then printing may continue on the fragile material to form a complete A code symbol.
[0051] Further, the first code is transformed: a filling character is inserted between the character sequence K and the character sequence A constituting the first code; the second code is transformed: a filling character is inserted between the character sequence K and the character sequence B constituting the entire character sequence of the second code; further, in the subsequent decoding process, the filling character is filtered out.
[0052] Furthermore, the number of padding characters inserted in the first encoding and the second encoding is the same.
[0053] Further, the first QR code symbol and the second QR code symbol have the same version, error correction level, and masking scheme.
[0054] Furthermore, the versions, error correction levels and masking schemes of the A-code symbols and the B-code symbols are the same.
[0055] The technical effect of the present invention is unquestionable. A composite QR code that meets the verification rules can be generated and the composite QR code can be verified. The composite QR code can be applied to the fields of commodity anti-counterfeiting, process management, etc. to ensure the authenticity of the commodity assigned with the composite QR code or the reliability of the process management process. DETAILED DESCRIPTION
[0056] The present invention is further described below in conjunction with the embodiments, but it should not be understood that the above subject matter of the present invention is limited to the following embodiments; without departing from the above technical ideas of the present invention, various substitutions and changes are made according to the common technical knowledge and customary means in the field, which should be included in the protection scope of the present invention;
[0057] Embodiment 1:
[0058] A composite QR code verification method and system, characterized by: comprising a code generation system, a QR code generation system, and a verification server;
[0059] The code generation system generates a composite QR code by the following steps:
[0060] 1) Generate a first code and a second code;
[0061] The first code includes a character sequence K and a character sequence A, wherein the character sequence A is a first signature of the character sequence K; the second code includes a character sequence K and a character sequence B, wherein the character sequence B is a second signature of the character sequence K; the character sequence A and the character sequence B have the same length and format;
[0062] 2) Transform the first code: insert a padding character between the character sequence K and the character sequence A constituting the first code; Transform the second code: insert a padding character between the character sequence K and the character sequence B constituting the entire character sequence of the second code; in this embodiment, the character sequence K is www.xxx.cn, the character sequence A is 12345, and one padding character may be padded. In this embodiment, the padding character is #. After padding, the first code is www.xxx.cn#12345; in this embodiment, the character sequence B is 56789, and one padding character may be padded. In this embodiment, the padding character is #. Eight padding characters are padded. After padding, the second code is www.xxx.cn#######56789;
[0063] 3) according to the QR code encoding process (the process recorded in the standard GB / T 21049-2022, such as part 5.7 symbol construction, etc.), the transformed first code and the second code are used as input data to generate a first data codeword sequence and a second data codeword sequence;
[0064] The QR code generation system converts the first data codeword sequence and the second data codeword sequence into a codeword sequence to be arranged according to the QR code generation rule, and then arranges to obtain the first QR code symbol and the second QR code symbol;
[0065] When printing the symbol, the second QR code symbol converted from the second code word sequence is printed on the surface of the substrate, and then the second QR code symbol is covered with a fragile material; after the fragile material is covered, only the second QR code symbol and the first QR code symbol have the same pattern of all information encoding areas exposed, or only the second QR code symbol and the first QR code symbol have the same pattern of part of the encoding area exposed; finally, the pattern is continued to be printed on the fragile material to form a complete first QR code symbol; the first QR code symbol is converted from the first code word sequence.
[0066] During verification, the code scanning device may transmit the read information to the verification server by scanning the first QR code symbol to be verified and the second QR code symbol to be verified respectively;
[0067] After receiving the information, the verification server performs verification on the first code to be verified (i.e., the suspected first code is obtained through a series of inverse decoding processes) in the following situations:
[0068] I) verifying the first code to be verified to determine that it is the correct first code, and if the second code has not been received, the first code to be verified is verified;
[0069] II) verifying the first code to be verified to determine that it is the correct first code; if the second code has been received before, the first code to be verified is not verified;
[0070] After receiving the information, the verification server verifies the second code to be verified (i.e., obtains the suspected second code through a series of inverse decoding processes); after verifying the second code to be verified, if it is the first time to determine that the correct second code has been received, save the verification record of receiving the correct second code;
[0071] Embodiment 2:
[0072] The main technical scheme of this embodiment is the same as that of Embodiment 1. Further, after generating the first data codeword sequence and the second data codeword sequence, the first data codeword sequence and the second data codeword sequence are transformed according to the same rule, so that the modules corresponding to the character sequence A of the first data codeword sequence are concentrated in the continuous graphic part of the code diagram of the first QR code symbol, and the modules corresponding to the character sequence B of the second data codeword sequence are concentrated in the continuous graphic part of the code diagram of the second QR code symbol;
[0073] After the code scanning device scans the first QR code symbol and the second QR code symbol, the code read needs to be subjected to an inverse transformation corresponding to the transformation to obtain the correct first code and second code;
[0074] Embodiment 3:
[0075] The main technical scheme of this embodiment is the same as that of Embodiment 1. Further, when the QR code generation system converts the first data codeword sequence into the codeword sequence to be arranged, the data codewords corresponding to the character sequence A are arranged in a concentrated manner in the codeword sequence to be arranged (for example, concentrated in the first half or the second half or the middle of the codeword sequence to be arranged);
[0076] When the QR code generation system converts the second data codeword sequence into the codeword sequence to be arranged, the rule adopted is the same as the rule of "converting the first data codeword sequence into the codeword sequence to be arranged", so that the data codewords corresponding to the character sequence B are concentrated in the codeword sequence to be arranged (for example, concentrated in the first half or the second half or the middle of the codeword sequence to be arranged);
[0077] Embodiment 4:
[0078] The main technical scheme of this embodiment is the same as any one of Embodiments 1 to 3. In step 1), at least one padding character is inserted at each location, so that in the subsequent encoding process, the codes corresponding to the character sequence K and the character sequence A are not allocated to the same group; in step 2), at least one padding character is inserted at each location, so that in the subsequent encoding process, the codes corresponding to the character sequence K and the character sequence B are not allocated to the same group;
[0079] In step 2), the number of padding characters inserted at each location (three locations) is at least 3 (preferably 13, 20, 26, 30, 39, 50, 52, 67, 70, 100), so that in the subsequent encoding process, the codes corresponding to the character sequence K and the character sequence B are not assigned to the same group; Example 5:
[0080] The main technical scheme of this embodiment is the same as any one of Embodiments 1 to 4. Furthermore, when printing the symbol, the second QR code symbol converted from the second code word sequence is printed on the surface of the substrate, and then the entire error correction code word area and part of the data code word area on the second QR code symbol are covered with a fragile material; after the fragile material is covered, only the information encoding area having the same pattern as the first QR code symbol is exposed; finally, the pattern is continued to be printed on the fragile material to form a complete first QR code symbol.
[0081] The character sequence A and the character sequence B have the same length, and the number of padding characters inserted in step 1) and step 2) is the same; the first QR code symbol and the second QR code symbol have the same version, error correction level and masking scheme;
[0082] Embodiment 6:
[0083] The main technical scheme of this embodiment is the same as any one of Embodiments 1 to 5. Further, for the first code, padding characters are inserted before and after all the character sequences constituting the first code, and between the character sequence K and the character sequence A; for the second code, padding characters are inserted before and after all the character sequences constituting the second code, and between the character sequence K and the character sequence B; in this embodiment, the character sequence K is www.xxx.cn, the character sequence A is 12345, and the padding characters at positions 1 to 30 can be filled. The padding character in this embodiment is #, which is filled with 13 digits. After padding, the first code is #############www.xxx.cn#12345##############; in this embodiment, the character sequence B is 56789, and the padding characters at positions 1 to 30 can be filled. The padding character in this embodiment is #, which is filled with 13 digits. After padding, the second code is ##############www.xxx.cn#56789##############;
[0084] Embodiment 7:
[0085] The main technical solution of this embodiment is the same as any one of Embodiments 1 to 6. Further, when the first data codeword sequence and the second data codeword sequence are transformed according to the same rule, the module corresponding to the character sequence A of the first data codeword sequence is concentrated at the tail of the code image of the first QR code symbol, and the module corresponding to the character sequence B of the second data codeword sequence is concentrated at the tail of the code image of the second QR code symbol.
[0086] Embodiment 8:
[0087] The main technical solution of this embodiment is the same as any one of Embodiments 1 to 7. After scanning the first QR code symbol to be verified, in the decoding process, the data codeword sequence needs to be inversely transformed to obtain information corresponding to the first data codeword sequence; the inverse transformation method is the inverse process of the transformation method;
[0088] After scanning the second QR code symbol to be verified, during the decoding process, the data codeword sequence needs to be inversely transformed to obtain information corresponding to the second data codeword sequence; the inverse transformation method is the inverse process of the transformation method;
[0089] Embodiment 9:
[0090] The main technical solution of this embodiment is the same as any one of Embodiments 1 to 9. Further, during verification, after scanning the first QR code symbol to be verified and the second QR code symbol to be verified, the code scanning device needs to perform an inverse transformation corresponding to the entire transformation process on the collected information to obtain information corresponding to the first code and the second code; for example, for Embodiment 1, after scanning the first QR code symbol to be verified and the second QR code symbol, the padding characters need to be deleted during the decoding process to obtain information corresponding to the first code and the second code;
[0091] Embodiment 10:
[0092] The main technical solution of this embodiment is the same as any one of Embodiments 1 to 10. Furthermore, a mode indicator is inserted before and / or after the character sequence A and the character sequence B.
[0093] Embodiment 11:
[0094] A composite QR code verification method and system, characterized by: comprising the code generation system, the QR code generation system, and a verification server;
[0095] The code generation system generates a composite QR code by the following steps:
[0096] 1) Generate a first code and a second code;
[0097] The first code includes a character sequence K and a character sequence A, and the character sequence A is a first signature of the character sequence K; the second code includes a character sequence K and a character sequence B, and the character sequence B is a second signature of the character sequence K; in this embodiment, the character sequence K is www.xxx.cn, the character sequence A is 12345, and the character sequence B is 56789;
[0098] 2) Converting the first code and the second code into a first QR code symbol and a second QR code symbol respectively according to the QR code related standards;
[0099] 3) forming an error correction codeword region of a composite QR code, wherein the region includes half of the error correction codewords of the first QR code symbol and half of the error correction codewords of the second QR code symbol; for example, when version 2-3 recorded in standard GB / T 18274-2000 is adopted, when D1 to D28 are data codeword regions and E1 to E16 are error correction codeword regions, 8 error correction codeword regions are error correction codewords of the first QR code symbol, and 8 error correction codeword regions are error correction codewords of the second QR code symbol.
[0100] When printing the symbol, the "composite QR code error correction codeword area" and the "second QR code symbol data codeword area" are printed on the surface of the substrate to form a B code symbol of the composite QR code;
[0101] When printing the symbol, first print the B code symbol of the composite QR code on the surface of the substrate; the error correction codeword area of the B code symbol is the "error correction codeword area of the composite QR code"; the data codeword area of the B code symbol is the "data codeword area of the second QR code symbol";
[0102] Then, a fragile material is covered on part of the data codeword area of the B code, and finally, a pattern is continued to be printed on the fragile material to form a complete data codeword area of the first QR code symbol, that is, to form the A code symbol of the composite QR code. Furthermore, the error correction codeword area of the A code symbol is the "error correction codeword area of the composite QR code"; the data codeword area of the A code symbol is the "data codeword area of the first QR code symbol"; when the fragile material is covered on the B code and the A code symbol is printed on the fragile material, for the digital area, after covering the fragile material, only the data codeword area of the second QR code symbol and the first QR code symbol with the same pattern is exposed, or only part of the data codeword area of the second QR code symbol and the first QR code symbol with the same pattern is exposed.
[0103] During verification, the code scanning device may transmit the read information to the verification server by scanning the first QR code symbol to be verified and the second QR code symbol to be verified respectively;
[0104] After receiving the information, the verification server performs verification on the first code to be verified in the following situations:
[0105] I) verifying the first code to be verified to determine that it is the correct first code, and if the second code has not been received, the first code to be verified is verified;
[0106] II) verifying the first code to be verified to determine that it is the correct first code; if the second code has been received before, the first code to be verified is not verified;
[0107] After receiving the information, the verification server verifies the second code to be verified; after verifying the second code to be verified, if it is the first time to determine that the correct second code has been received, the verification record of receiving the correct second code is saved.
[0108] Embodiment 12:
[0109] The main technical scheme of this embodiment is the same as that of Embodiment 11. Furthermore, the first code may be transformed: a filling character is inserted between the character sequence K and the character sequence A constituting the first code; the second code is transformed: a filling character is inserted between the character sequence K and the character sequence B constituting the entire character sequence of the second code; in this embodiment, the character sequence K is www.xxx.cn, the character sequence A is 12345, and the character sequence B is 56789; according to the QR code encoding process (the process recorded in the standard GB / T18274-2000, such as 5.7 symbol construction and other parts), the transformed first code and the second code are used as input data to generate a first data codeword sequence and a second data codeword sequence;
[0110] Embodiment 13:
[0111] The main technical scheme of this embodiment is the same as that of Embodiment 11. Further, when the QR code generation system converts the first codeword sequence corresponding to the first code into the first QR code symbol, the data codewords corresponding to the character sequence A are centrally arranged in the first QR code symbol;
[0112] When converting the second codeword sequence corresponding to the second encoding into the second QR code symbol, the QR code generation system adopts the same conversion rule as the above-mentioned "converting the first codeword sequence", so that the data codewords corresponding to the character sequence B are concentrated in the second QR code symbol (for example, concentrated in the first half or the second half or the middle of the codeword sequence to be arranged). The concentrated distribution area is recorded as the S area, and the S area is covered with a fragile material and printed with a pattern belonging to the first QR code.
[0113] Embodiment 14:
[0114] The main technical solution of this embodiment is the same as any one of Embodiments 11 to 13. In step 1), when printing the symbol, fragile material can be covered on all or part of the error correction code area of the B code symbol; and then printing is continued on the fragile material to form a complete A code symbol.
[0115] Embodiment 15:
[0116] The main technical solution of this embodiment is the same as any one of Embodiments 11 to 14. Further, the first QR code symbol and the second QR code symbol have the same version, error correction level and masking scheme;
[0117] Alternatively, the version, error correction level and mask scheme of the A code symbol and the B code symbol are the same.
[0118] Embodiment 16:
[0119] The main technical scheme of this embodiment is the same as any one of Embodiments 11 to 15. Further, for the first code, padding characters are inserted before and after all the character sequences constituting the first code, and between the character sequence K and the character sequence A; for the second code, padding characters are inserted before and after all the character sequences constituting the second code, and between the character sequence K and the character sequence B; in this embodiment, the character sequence K is www.xxx.cn, the character sequence A is 12345, and the padding characters at positions 1 to 30 can be filled. The padding character in this embodiment is #, which is filled with 13 digits. After padding, the first code is #############www.xxx.cn#12345##############; in this embodiment, the character sequence B is 56789, and the padding characters at positions 1 to 30 can be filled. The padding character in this embodiment is #, which is filled with 13 digits. After padding, the second code is ##############www.xxx.cn#56789##############;
[0120] Embodiment 17:
[0121] The main technical solution of this embodiment is the same as any one of Embodiments 11 to 16. Further, when the QR code generation system converts the first code into the first QR code symbol, the data code words corresponding to the character sequence A are arranged in a concentrated manner in the first QR code symbol;
[0122] When converting the second code into the second QR code symbol, the QR code generation system adopts the same arrangement rule as the above “arranging the first code word sequence” so that the data code words corresponding to the character sequence B are concentratedly arranged in the second QR code symbol.
[0123] Embodiment 18:
[0124] The main technical solution of this embodiment is the same as any one of Embodiments 11 to 17. After scanning the first QR code symbol to be verified, in the decoding process, the data codeword sequence needs to be inversely transformed to obtain information corresponding to the first data codeword sequence; the inverse transformation method is the inverse process of the transformation method;
[0125] After scanning the second QR code symbol to be verified, during the decoding process, the data codeword sequence needs to be inversely transformed to obtain information corresponding to the second data codeword sequence; the inverse transformation method is the inverse process of the transformation method.
[0126] Embodiment 19:
[0127] The main technical solution of this embodiment is the same as any one of Embodiments 11 to 18. Furthermore, a mode indicator is inserted before and / or after the character sequence A and the character sequence B.
[0128] Embodiment 20:
[0129] The main technical scheme of this embodiment is the same as any one of Embodiments 11 to 19. Furthermore, during verification, after scanning the first QR code symbol to be verified and the second QR code symbol to be verified, the code scanning device needs to perform an inverse transformation corresponding to the entire transformation process on the collected information to obtain information corresponding to the first code and the second code; for example, for Embodiments 2, 6, and 9, after scanning the first QR code symbol and the second QR code symbol to be verified, during the decoding process, the padding characters need to be deleted to obtain information corresponding to the first code and the second code.
Claims
1. A composite QR code verification method and system, characterized by: It includes the coding generation system, QR code generation system and verification server; The code generation system generates a composite QR code by the following steps: 1) Generate a first code and a second code; The first code includes a character sequence K and a character sequence A, wherein the character sequence A is a first signature of the character sequence K; the second code includes a character sequence K and a character sequence B, wherein the character sequence B is a second signature of the character sequence K; the character sequence A and the character sequence B have the same length and format; 2) Performing a transformation on the first code: inserting a fill character between the character sequence K and the character sequence A constituting the first code; performing a transformation on the second code: inserting a fill character between the character sequence K and the character sequence B constituting all the character sequences of the second code; 3) According to the QR code encoding process, the transformed first code and the second code are used as input data to generate a first code word sequence and a second code word sequence; When printing the symbol, the second QR code symbol converted from the second code word sequence is printed on the surface of the substrate, and then the second QR code symbol is covered with a fragile material; After the fragile material is covered, only the entire information encoding area of the second QR code symbol and the first QR code symbol having the same pattern is exposed, or only a portion of the encoding area of the second QR code symbol and the first QR code symbol having the same pattern is exposed; Finally, the pattern is continuously printed on the fragile material to form a complete first QR code symbol; the first QR code symbol is converted from the first code word sequence. During verification, the code scanning device may transmit the read information to the verification server by scanning the first QR code symbol to be verified and the second QR code symbol to be verified respectively; After receiving the information, the verification server performs verification on the first code to be verified in the following situations: I) verifying the first code to be verified to determine that it is the correct first code, and if the second code has not been received, the first code to be verified is verified; II) verifying the first code to be verified to determine that it is the correct first code; if the second code has been received before, the first code to be verified is not verified; After receiving the information, the verification server verifies the second code to be verified; after verifying the second code to be verified, if it is the first time to determine that the correct second code has been received, the verification record of receiving the correct second code is saved.
2. A composite QR code verification method and system according to claim 1, characterized in that: After generating the first data codeword sequence and the second data codeword sequence, the first data codeword sequence and the second data codeword sequence are transformed according to the same rule, so that the modules corresponding to the character sequence A of the first data codeword sequence are concentrated in the continuous graphic part of the graphic of the first QR code symbol, and the modules corresponding to the character sequence B of the second data codeword sequence are concentrated in the continuous graphic part of the graphic of the second QR code symbol; After the code scanning device scans the first QR code symbol and the second QR code symbol, the read code needs to undergo an inverse transformation corresponding to the transformation to obtain the correct first code and second code.
3. A composite QR code verification method and system according to claim 1, characterized in that: When the QR code generation system converts the first code word sequence into the first QR code symbol, the data code words and error correction code words corresponding to the character sequence A are arranged centrally in the first QR code symbol; when the QR code generation system converts the second code word sequence into the second QR code symbol, the data code words and error correction code words corresponding to the character sequence A are arranged centrally in the second QR code symbol.
4. A composite QR code verification method and system, characterized by: It includes the coding generation system, QR code generation system and verification server; The code generation system generates a composite QR code by the following steps: 1) Generate a first code and a second code; The first encoding includes a character sequence K and a character sequence A, wherein the character sequence A is a first signature of the character sequence K; the second encoding includes a character sequence K and a character sequence B, wherein the character sequence B is a second signature of the character sequence K; the character sequence A and the character sequence B have the same length and format. 2) converting the first code and the second code into a first QR code symbol and a second QR code symbol respectively; 3) forming an error correction codeword region of a composite QR code, wherein the region includes half of the error correction codeword of the first QR code symbol and half of the error correction codeword of the second QR code symbol; When printing the symbol, first print the B code symbol of the composite QR code on the surface of the substrate; the error correction codeword area of the B code symbol is the "error correction codeword area of the composite QR code"; the data codeword area of the B code symbol is the "data codeword area of the second QR code symbol"; Then, a fragile material is covered on the partial data codeword area of the B code, and finally a pattern is continued to be printed on the fragile material to form a complete data codeword area of the first QR code symbol, that is, to form an A code symbol of the composite QR code. During verification, the code scanning device may transmit the read information to the verification server by scanning the first QR code symbol to be verified and the second QR code symbol to be verified respectively; After receiving the information, the verification server performs verification on the first code to be verified in the following situations: I) verifying the first code to be verified to determine that it is the correct first code, and if the second code has not been received, the first code to be verified is verified; II) verifying the first code to be verified to determine that it is the correct first code; if the second code has been received before, the first code to be verified is not verified; After receiving the information, the verification server verifies the second code to be verified; after verifying the second code to be verified, if it is the first time to determine that the correct second code has been received, the verification record of receiving the correct second code is saved.
5. A composite QR code verification method and system according to claim 4, characterized in that: The error correction codeword area of the A code symbol is the "error correction codeword area of the composite QR code"; the data codeword area of the A code symbol is the "data codeword area of the first QR code symbol"; When a fragile material is covered on the B code and the A code symbol is printed on the fragile material, for the digital area, after covering the fragile material, only the data codeword area having the same pattern as the first QR code symbol is exposed, or only part of the data codeword area having the same pattern as the first QR code symbol is exposed.
6. A composite QR code verification method and system according to claim 1 or 4, characterized in that: When the QR code generation system converts the first codeword sequence corresponding to the first code into the first QR code symbol, the data codewords corresponding to the character sequence A are arranged in a concentrated manner in the first QR code symbol; When converting the second codeword sequence corresponding to the second encoding into the second QR code symbol, the QR code generation system adopts the same conversion rule as the above "converting the first codeword sequence", so that the data codewords corresponding to the character sequence B are concentrated in the second QR code symbol.
7. A composite QR code verification method and system according to claim 1 or 4, characterized in that: When the QR code generation system converts the first code into the first QR code symbol, the data code words corresponding to the character sequence A are arranged in a concentrated manner in the first QR code symbol; When converting the second code into the second QR code symbol, the QR code generation system adopts the same arrangement rule as the above “arranging the first code word sequence”, so that the data code words corresponding to the character sequence B are centrally arranged in the second QR code symbol.
8. A composite QR code verification method and system according to claim 1 or 1, characterized in that: When printing the symbol, the fragile material may be covered on all or part of the error correction codeword area of the B code symbol; and then the printing may continue on the fragile material to form a complete A code symbol.
9. A composite QR code verification method and system according to claim 1, 2, 3 or 4, characterized in that: Transform the first code: insert a fill character between the character sequence K and the character sequence A constituting the first code; transform the second code: insert a fill character between the character sequence K and the character sequence B constituting the entire character sequence of the second code; In the subsequent decoding process, the padding characters are filtered out.
10. A composite QR code verification method and system according to claim 1, 2, 3 or 4, characterized in that: The first QR code symbol and the second QR code symbol have the same version, error correction level, and masking scheme.
11. A composite QR code verification method and system according to claim 1, 2, 3 or 4, characterized in that: The version, error correction level and mask scheme of A-code symbols and B-code symbols are the same.
Citation Information
Cited By
Composite two-dimensional code generation method
CN120805961A
Composite QR code verification method and system
WO2025242057A1
Local double-layer code encoding method based on compound error correction codeword region
WO2025247000A1