Local double-layer code encoding method based on compound error correction codeword region

By printing fragile material on QR code B to form QR code A, and using the encoding method of composite error correction codeword area, the problems of difficult association of double-layer QR codes and complex encoding rules are solved, realizing simple and rapid local double-layer QR code generation and effective anti-counterfeiting verification.

WO2025247000A1PCT designated stage Publication Date: 2025-12-04JIANG ZHIHAO
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2025/095857
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2024-10-23
Filing Date
2025-05-19
Publication Date
2025-12-04

AI Technical Summary

Technical Problem

In existing technologies, dual-layer QR codes are difficult to link effectively, have weak anti-counterfeiting capabilities, and the encoding rules for generating local dual-layer QR codes are complex, making it difficult to form a centralized public area.

Method used

A local dual-layer code encoding method based on composite error correction codeword regions is adopted. By printing the QR code B pattern on the substrate and covering it with a fragile material, the QR code A pattern is formed. QR code A and QR code B have the same error correction codeword regions but different data block regions. The encoding rules make the first encoding and the second encoding equivalent to QR code A and QR code B patterns after scanning.

Benefits of technology

It enables the simple and rapid generation of partial double-layer QR codes, enhancing anti-counterfeiting capabilities. The authenticity of the QR code can be verified by scratching off a fragile material, thus improving anti-counterfeiting efficiency.

✦ Generated by Eureka AI based on patent content.
Patent Text Reader

Abstract

The present invention provides a local double-layer code encoding method based on a compound error correction codeword region, comprising a QR code B pattern printed on a substrate, and an easily damaged material covering a part of the QR code B pattern; a QR code pattern A corresponds to a first code, and the QR code pattern B corresponds to a second code; the QR code pattern A and the QR code pattern B have the same error correction codeword region but different data block regions. On the basis of the encoding rule of the QR code, the QR code pattern converted from the first code is equivalent to the QR code pattern A; and on the basis of the encoding rule of the QR code, the QR code pattern converted from the second code is equivalent to the QR code pattern B.
Need to check novelty before this filing date? Find Prior Art

Description

A local two-layer code encoding method based on composite error-correcting codeword region Technical Field

[0001] This invention relates to the field of graphic codes (mainly including QR codes). Background Technology

[0002] A graphic code is a graphic identifier used to express a set of information, obtained by converting and processing data according to certain encoding rules.

[0003] Image codes (mainly including QR codes) are static patterns that are easy to copy, thus their anti-counterfeiting function is relatively weak.

[0004] In existing technologies, dual-layer QR codes have emerged, where scratching off the coating on the upper QR code reveals the lower one. However, the two layers are difficult to link, resulting in relatively weak anti-counterfeiting capabilities.

[0005] In the existing technology, there are dual QR codes with functions such as anti-counterfeiting and traceability. For example, a partial double-layer QR code printed on a substrate, that is, there is a vulnerable material on the part above QR code B, and a pattern is printed on the vulnerable material. The pattern and the pattern of QR code B that is not covered by the vulnerable material form the complete pattern of QR code A.

[0006] During operator verification, the scanning device can scan the QR code A and QR code B to be verified and transmit the information read to the verification server respectively;

[0007] After receiving the information, the verification server verifies the first code to be verified in the following ways:

[0008] I) Verify the first code to be verified to determine that it is the correct first code. If no second code has been received, the first code to be verified is verified.

[0009] II) Verify the first code to be verified to determine if it is a correct first code. If the second code has been received before, the first code to be verified will fail the verification.

[0010] After receiving the information, the verification server verifies the second code to be verified; if it is the first time that the correct second code has been received, it saves the verification record of receiving the correct second code.

[0011] If situation II) occurs, it means the fragile material on QR code B has been scratched off, exposing the complete QR code B. In this case, the QR code B the operator is facing may be a copy. Conversely, in situation I), QR code B has no prior scan record on the server, making it more likely that it was scratched off for the first time. After this verification, the server will record that QR code B has been scanned, preventing criminals from copying QR code B and QR code A to affix to counterfeit goods.

[0012] On the other hand, in existing technologies, QR codes have various encoding rules, making it difficult to generate a local double-layer QR code that satisfies the above requirements. That is, the common parts of QR code A and QR code B are often scattered and difficult to form a relatively concentrated common area. Summary of the Invention

[0013] The purpose of this invention is to provide a local two-layer code encoding method based on a composite error-correcting codeword region, characterized in that:

[0014] The dual-layer code includes a QR code B pattern printed on a substrate, and a fragile material covering a portion of the QR code B pattern; the fragile material has a pattern printed on it, and this pattern, together with the pattern of the QR code B pattern not covered by the fragile material, forms the QR code A pattern.

[0015] QR code A corresponds to the first code, and QR code B corresponds to the second code. Based on the QR code encoding rules, when converting the first code and the second code into a QR code, the error correction area corresponding to the first code is recorded as the first error correction codeword area, and the error correction area of ​​the second code is recorded as the second error correction codeword area.

[0016] The area not covered by the vulnerable material includes a composite error correction codeword area, which is composed of a portion of the first error correction codeword area and a portion of the second error correction codeword area.

[0017] The QR code A pattern and the QR code B pattern have the same error correction codeword area, but different data block areas;

[0018] Based on the aforementioned QR code encoding rules, the QR code pattern obtained by replacing the first encoding is equivalent to the QR code A pattern;

[0019] Based on the aforementioned QR code encoding rules, the QR code pattern obtained by replacing the second encoding is equivalent to the QR code B pattern;

[0020] In addition to the QR code schemes mentioned above, this invention also provides a local dual-layer code encoding method based on a composite error-correcting codeword region for some 1D two-dimensional barcodes with error correction capabilities. The method is characterized by:

[0021] The dual-layer code includes a two-dimensional barcode B pattern with error correction capability printed on a substrate, and a vulnerable material covering a portion of the two-dimensional barcode B pattern; the vulnerable material has a pattern printed on it, which, together with the pattern of the two-dimensional barcode B pattern not covered by the vulnerable material, forms a two-dimensional barcode A pattern with error correction capability.

[0022] Two-dimensional barcode pattern A corresponds to the first code, and two-dimensional barcode pattern B corresponds to the second code. Based on the encoding rules of two-dimensional barcodes, when converting the first code and the second code into two-dimensional barcodes, the error correction area corresponding to the first code is recorded as the first error correction codeword area, and the error correction area of ​​the second code is recorded as the second error correction codeword area.

[0023] The area not covered by the vulnerable material includes a composite error correction codeword area, which is composed of a portion of the first error correction codeword area and a portion of the second error correction codeword area.

[0024] The two-dimensional barcode A pattern and the two-dimensional barcode B pattern have the same error correction codeword area, but have different data block areas;

[0025] Based on the encoding rules of the two-dimensional barcode, the two-dimensional barcode pattern obtained by replacing the first encoding is equivalent to the two-dimensional barcode A pattern;

[0026] Based on the encoding rules of the two-dimensional barcode, the two-dimensional barcode pattern obtained by the second encoding is equivalent to the two-dimensional barcode B pattern. Furthermore, the two-dimensional barcode is a PDF417 barcode.

[0027] Furthermore, in the composite error correction codeword region, half of the error correction blocks are selected from the error correction blocks of the first error correction codeword region, and the other half of the error correction blocks are selected from the error correction blocks of the second error correction codeword region.

[0028] Furthermore, the area covered by the fragile material is the entire data area of ​​the QR code B pattern, or the area covered by the fragile material is a different part of the data area of ​​the QR code B pattern from the data area of ​​the QR code A pattern.

[0029] Furthermore, (I) the area covered by the fragile material is the entire data area of ​​the QR code B pattern;

[0030] (II) The area covered by the fragile material is a different part of the data area of ​​the QR code B pattern and the data area of ​​the QR code A pattern.

[0031] Furthermore, the first code consists of field K and field KA, and the second code consists of field K and field KB. When converting the first code and the second code into a QR code, through transformation, the data area of ​​the QR code corresponding to the first code includes the K area corresponding to field K and the KA area corresponding to field KA, and the data area of ​​the QR code corresponding to the second code includes the K area corresponding to field K and the KB area corresponding to field KB.

[0032] The QR code A pattern includes a composite error-correcting codeword area, a K area, and a KA area;

[0033] The QR code B pattern includes a composite error-correcting codeword area, a K area, and a KB area;

[0034] The area covered by the vulnerable material is the KB area; the KA area is printed on the vulnerable material.

[0035] Furthermore, the first encoding includes character sequence K and character sequence A, wherein character sequence A is a first signature of character sequence K; the second encoding includes character sequence K and character sequence B, wherein character sequence B is a second signature of character sequence K; and character sequence A and character sequence B have the same length and format.

[0036] Furthermore, before the QR code encoding process, by transforming the first encoding and the second encoding, the different data block areas of the converted QR code pattern are concentrated in several adjacent data blocks.

[0037] During decoding, the first and second codes are restored by inverse transformation of the above transformation.

[0038] Furthermore, during the transformation, a step of inserting padding characters into the first and second encodings is included; during the restoration, the inserted padding characters are deleted.

[0039] For the first encoding, padding characters are inserted before and after all character sequences that make up the first encoding, as well as between character sequence K and character sequence A; for the second encoding, padding characters are inserted before and after all character sequences that make up the second encoding, as well as between character sequence K and character sequence B.

[0040] Furthermore, the encoding rules for processing the first and second encodings correspond to the same standard version, error correction level, and masking scheme.

[0041] Furthermore, during the printing of the symbol, the vulnerable material is a heat-sensitive material or a photosensitive material, which irreversibly disappears after being heated or exposed to light.

[0042] This invention also claims protection for a local double-layer code obtained based on the above-described local double-layer code encoding method based on a composite error-correcting codeword region.

[0043] The technical effects of this invention are undeniable. The generated QR code A and QR code B patterns have the same error-correcting codeword areas but different data block areas. Based on the QR code encoding rules, the QR code pattern obtained by replacing the first encoding is equivalent to QR code A; based on the QR code encoding rules, the QR code pattern obtained by replacing the second encoding is equivalent to QR code B. This allows for a simple and rapid acquisition of a partially double-layered QR code.

[0044] Similarly, for two-dimensional barcodes, the two-dimensional barcode A pattern and the two-dimensional barcode B pattern have the same error correction codeword area but different data block areas. Based on the encoding rules of the two-dimensional barcode, the two-dimensional barcode pattern obtained by replacing the first encoding is equivalent to the two-dimensional barcode A pattern; based on the encoding rules of the two-dimensional barcode, the two-dimensional barcode pattern obtained by replacing the second encoding is equivalent to the two-dimensional barcode B pattern. This allows for a simple and rapid acquisition of a partially dual-layer two-dimensional barcode. Detailed Implementation

[0045] The present invention will be further described below with reference to embodiments, but it should not be construed that the scope of the present invention is limited to the following embodiments. Various substitutions and modifications made based on ordinary technical knowledge and common practices in the art without departing from the above-described technical concept of the present invention should be included within the scope of protection of the present invention.

[0046] Example 1:

[0047] A local two-layer code encoding method based on composite error-correcting codeword regions, characterized in that:

[0048] The dual-layer code includes a QR code B pattern printed on a substrate, and a fragile material covering a portion of the QR code B pattern.

[0049] The fragile material has a pattern printed on it, which, together with the pattern of QR code B that is not covered by the fragile material, forms QR code A. A scanning device can read the first code by scanning QR code A, and can read the second code by scanning QR code B. That is, QR code A corresponds to the first code, and QR code B corresponds to the second code. In this embodiment, the first code and the second code are both strings composed of Arabic numerals or English letters.

[0050] Based on the encoding rules of QR codes, when converting the first code and the second code into QR codes, the error correction area corresponding to the first code (including several error correction blocks in converting the first code into a QR code) is recorded as the first error correction codeword area, and the error correction area of ​​the second code is recorded as the second error correction codeword area (including several error correction blocks in converting the second code into a QR code).

[0051] The area not covered by the vulnerable material includes a composite error correction codeword area, which is composed of a portion of the first error correction codeword area and a portion of the second error correction codeword area. In this embodiment, the composite error correction codeword area is composed of "the error correction block that converts the first code into half of the QR code" and "the error correction block that converts the second code into half of the QR code".

[0052] That is, QR code A pattern contains "data blocks in the QR code converted from the first encoding" and a composite error correction codeword area, and QR code B pattern contains "data blocks in the QR code converted from the second encoding" and a composite error correction codeword area.

[0053] Example 2:

[0054] A local two-layer code encoding method based on composite error-correcting codeword regions, characterized in that:

[0055] The dual-layer code includes a Hanxin code B pattern printed on a substrate, and a fragile material covering a portion of the Hanxin code B pattern.

[0056] The fragile material is printed with a pattern, which, together with the pattern of Hanxin Code B that is not covered by the fragile material, forms Hanxin Code A. A barcode scanner scans Hanxin Code A to read the first code, and scans Hanxin Code B to read the second code; that is, Hanxin Code A corresponds to the first code, and Hanxin Code B corresponds to the second code. In this embodiment, both the first and second codes are strings composed of Arabic numerals or English letters. Further, the first code includes a character sequence K and a character sequence A, where character sequence A is the first signature of character sequence K; the second code includes a character sequence K and a character sequence B, where character sequence B is the second signature of character sequence K; character sequences A and B have the same length and format.

[0057] Based on the encoding rules of Hanxin code, when converting the first code and the second code into Hanxin code, the error correction region corresponding to the first code (including several error correction blocks in converting the first code into Hanxin code) is recorded as the first error correction codeword region, and the error correction region of the second code is recorded as the second error correction codeword region (including several error correction blocks in converting the second code into Hanxin code).

[0058] The encoding rules, error correction levels, and masking schemes for processing the first and second codes are the same; and after converting the first and second codes into Hanxin codes, all regions except the information encoding region are the same.

[0059] The area not covered by the vulnerable material includes a composite error correction codeword area, which is composed of a portion of the first error correction codeword area and a portion of the second error correction codeword area. In this embodiment, the composite error correction codeword area is composed of "the error correction block that converts the first code into half of the Hanxin code" and "the error correction block that converts the second code into half of the Hanxin code".

[0060] That is, the encoding area in the Hanxin code A pattern includes "the data block in the Hanxin code converted from the first encoding" and the composite error correction codeword area, and the Hanxin code B pattern includes "the data block in the Hanxin code converted from the second encoding" and the composite error correction codeword area.

[0061] Example 3:

[0062] The main technical solution of this embodiment is the same as that of Embodiment 1 or 2, except that the first code consists of field K and field KA, and the second code consists of field K and field KB; for example, the first code is www.x.cn12345, and the second code is www.x.cn56789. Here, field K is the server URL www.x.cn, which is the common area of ​​the double-layer QR code. Field KA is 12345, and field KB is 56789.

[0063] When converting the first code and the second code into a QR code (using the QR code rules of Example 1 or the Hanxin code rules of Example 2), the data area of ​​the QR code corresponding to the first code includes the K area corresponding to field K and the KA area corresponding to field KA, and the data area of ​​the QR code corresponding to the second code includes the K area corresponding to field K and the KB area corresponding to field KB. Furthermore, by transforming the first code or the second code, or by modifying the QR code encoding rules, the K areas on the pattern can be concentrated into a continuous area.

[0064] The final composite QR code pattern A includes a composite error correction codeword area, a K area, and a KA area;

[0065] The final composite QR code B pattern includes a composite error correction codeword area, a K area, and a KB area; the area covered by the fragile material is the KB area; and the KA area is printed on the fragile material.

Claims

1. A method for encoding a local double layer code based on composite error correction code word regions, characterized by: The local double-layer code comprises a two-dimensional code B pattern printed on a substrate, and a fragile material covering a part of the two-dimensional code B pattern; the fragile material is printed with a pattern which, together with the pattern of the two-dimensional code B pattern not covered by the fragile material, forms a two-dimensional code A pattern; The two-dimensional code A pattern corresponds to a first encoding, and the two-dimensional code B pattern corresponds to a second encoding; based on the encoding rule of the two-dimensional code, when the first encoding and the second encoding are converted into a two-dimensional code, the error correction area corresponding to the first encoding is recorded as a first error correction code word area, and the error correction area of the second encoding is recorded as a second error correction code word area; The area not covered by the fragile material comprises a composite error correction code word area which is combined by taking a part of the first error correction code word area and a part of the second error correction code word area; Based on the encoding rule of the two-dimensional code, the two-dimensional code pattern converted from the first encoding is equivalent to the two-dimensional code A pattern; Based on the encoding rule of the two-dimensional code, the two-dimensional code pattern converted from the second encoding is equivalent to the two-dimensional code B pattern.

2. A local double-layer code encoding method based on a composite error correction code word area, characterized in that: The double-layer code comprises a two-dimensional code B pattern printed on a substrate, and a fragile material covering a part of the two-dimensional code B pattern; the fragile material is printed with a pattern which, together with the pattern of the two-dimensional code B pattern not covered by the fragile material, forms a two-dimensional code A pattern; The two-dimensional code A pattern corresponds to a first encoding, and the two-dimensional code B pattern corresponds to a second encoding; based on the encoding rule of the two-dimensional code, when the first encoding and the second encoding are converted into a two-dimensional code, the error correction area corresponding to the first encoding is recorded as a first error correction code word area, and the error correction area of the second encoding is recorded as a second error correction code word area; The area not covered by the fragile material comprises a composite error correction code word area which is combined by taking a part of the first error correction code word area and a part of the second error correction code word area; In the composite error correction code word area, half of the error correction blocks are selected from the error correction blocks of the first error correction code word area, and the other half of the error correction blocks are selected from the error correction blocks of the second error correction code word area. The area covered by the fragile material is one of the following I and II:

3. A method for encoding a local double layer code based on composite error correction code word regions according to claim 1 or 2, characterized in that: (I) The area covered by the fragile material is the entire data area of the two-dimensional code B pattern; 4. A local double layer code encoding method based on composite error correction code word region according to claim 1 or 2, characterized in that: (II) The area covered by the fragile material is a different part of the data area of the two-dimensional code B pattern and the data area of the two-dimensional code A pattern.

5. The local double-layer code encoding method based on a composite error correction code word area according to claim 1 or 2, characterized in that: The first encoding is composed of a field K and a field KA, and the second encoding is composed of a field K and a field KB; when the first encoding and the second encoding are converted into a two-dimensional code, the data area of the two-dimensional code corresponding to the first encoding comprises a K area corresponding to the field K and a KA area corresponding to the field KA, and the data area of the two-dimensional code corresponding to the second encoding comprises a K area corresponding to the field K and a KB area corresponding to the field KB; The two-dimensional code A pattern comprises a composite error correction code word area, a K area, and a KA area; The two-dimensional code B pattern comprises a composite error correction code word area, a K area, and a KB area; ​ ​ The area covered by the vulnerable material is the KB area; the KA area is printed on the vulnerable material.

6. A local double layer code encoding method based on composite error correction code word region according to claim 1 or 2, characterized in that: The first encoding includes character sequence K and character sequence A, wherein character sequence A is a first signature of character sequence K; the second encoding includes character sequence K and character sequence B, wherein character sequence B is a second signature of character sequence K; and character sequence A and character sequence B have the same length and format.

7. The method of claim 1, wherein the method is based on a composite error correction code word region. Before the QR code encoding process, by transforming the first encoding and the second encoding, the different data block areas of the converted QR code pattern are concentrated in several adjacent data blocks. During decoding, the first and second codes are restored by inverse transformation of the above transformation.

8. The method of claim 7, wherein the method is based on a composite error correction code word region. During transformation, the process includes inserting padding characters into the first and second codes; during restoration, the inserted padding characters are deleted. For the first encoding, padding characters are inserted before and after all character sequences that make up the first encoding, as well as between character sequence K and character sequence A; for the second encoding, padding characters are inserted before and after all character sequences that make up the second encoding, as well as between character sequence K and character sequence B.

9. A local double layer code encoding method based on composite error correction code word region according to claim 1 or 2, characterized in that: The encoding rules for processing the first and second encodings correspond to the same standard version, error correction level, and masking scheme; The encoding rules are selected from the standards and rules for QR code, Hanxin code, and PDF417 barcode encoding.

10. A local double-layer code obtained based on a local double-layer code encoding method for a composite error-correcting codeword region as described in any one of claims 1 to 9.

Citation Information

Patent Citations

  • Double-layer two-dimensional code and anti-counterfeiting or / and capacity-enlarging method based on same

    CN103310260A

  • Soft packing bag with source tracing and anti-counterfeiting functions and preparation method thereof

    CN106864877A

  • Composite two-dimensional code system with calibration function

    CN112418372A

  • Composite PDF417 bar code generation and decoding method

    CN115130632A

  • Composite QR code verification method and system

    CN119337906A