Multispectral anti-counterfeiting traceable two-dimensional code and generation method thereof

CN118428389BActive Publication Date: 2026-10-20NANJING HUAKE HEDING INFORMATION TECH CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202410316829.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-03-20
Publication Date
2026-10-20
Estimated Expiration
2044-03-20

AI Technical Summary

Technical Problem

[0008]针对现有技术存在的问题,本发明提供了一种多光谱防伪的溯源二维码及其生成方法,针对现有的溯源二维码复制难度低,防伪等级低的技术问题,对于QR二维码进行改进,设计了一种新型的溯源二维码,并将其用多种油墨印刷,使其具有难以伪造、防伪等级高、需要用特定设备识别的特点

Benefits of technology

[0024]S5、按照QR二维码的格式绘制次要定位图案和填充最终数据,生成溯源二维码;

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118428389B_ABST
    Figure CN118428389B_ABST
Patent Text Reader

Abstract

The present application belongs to the technical field of anti-counterfeiting traceability, and discloses a multispectral anti-counterfeiting traceability two-dimensional code and a generation method thereof. The two-dimensional code is an improved QR two-dimensional code. First, the square positioning pattern of the QR two-dimensional code is changed into an isosceles right triangle, and information for saving the printing position of special ink is drawn on the space left by the change of the positioning pattern. Then, the character mode in the QR two-dimensional code is used for encoding, and the encoded information is encrypted by using the ECB mode of the AES encryption technology. The encrypted data is error correction encoded, and the obtained data is filled into the two-dimensional code data storage area as the final data code to generate the two-dimensional code. After the traceability two-dimensional code is encoded by characters, the ECB mode of the AES is used for encryption, so that the information saved by the traceability two-dimensional code can be effectively prevented from being easily cracked by illegal persons, the difficulty of counterfeiting the traceability two-dimensional code is increased, and the traceability two-dimensional code has high anti-counterfeiting efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention belongs to the field of anti-counterfeiting and traceability technology, and in particular relates to a multispectral anti-counterfeiting traceability QR code and its generation method. Background Technology

[0002] Traceability QR codes are a traceability and anti-counterfeiting technology based on QR code and IoT technologies. By printing a QR code on the product itself or its packaging and linking product information to the code, consumers can scan the QR code to obtain detailed product information, including production location, production date, production batch, and distribution path, thus enabling traceability throughout the product's entire lifecycle. This technology not only improves the convenience of information access for consumers but also enhances the efficiency and transparency of product management for businesses, contributing to a fairer, more transparent, and trustworthy market environment.

[0003] Because it serves to store product information, the traceability QR code also functions as an anti-counterfeiting verification code. Next to the traceability QR code is a covered anti-counterfeiting verification code, which consumers can scan and enter to verify the product's authenticity. However, since the traceability QR code is fully visible on the product, it can be easily copied into counterfeit products. Therefore, traceability QR codes are not secure, suffer from easy copying, and have weak anti-counterfeiting capabilities, necessitating the development and design of new anti-counterfeiting traceability QR codes.

[0004] In the prior art, CN107423796A discloses a multispectral invisible anti-counterfeiting label. This multispectral invisible anti-counterfeiting label consists of an infrared absorption anti-counterfeiting pattern area made of infrared absorption ink, a visible area made of ordinary ink, and an ultraviolet excitation anti-counterfeiting pattern area made of ultraviolet excitation ink. Although it has multiple anti-counterfeiting capabilities, the anti-counterfeiting image needs to be embedded in the QR code, which reduces the error correction capability of the QR code and thus reduces the reliability of the QR code. Furthermore, since the information is not encrypted, criminals can easily obtain the data, resulting in poor confidentiality of the QR code information.

[0005] CN113762446A discloses a multi-spectral composite anti-counterfeiting QR code based on CMYK ordinary ink. It includes a QR code presented in plain text and three QR codes hidden within it in coded form. By using different information modulation methods, the plain text QR code and the coded QR codes are combined to generate a multi-spectral composite anti-counterfeiting QR code. Although it has strong anti-copying performance and multiple anti-counterfeiting capabilities, the combination of multiple QR codes greatly reduces the efficiency of QR code generation and decoding. Furthermore, the amount of product traceability information is relatively small, and only one QR code is needed to store all the information. Using multiple QR codes as traceability QR codes reduces the utilization efficiency of QR codes.

[0006] Multispectral anti-counterfeiting technology is a novel anti-counterfeiting technology based on multispectral image processing. It analyzes the multispectral images reflected or emitted by an object's surface to extract the object's unique multispectral reflection or absorption characteristics, thereby enabling object identification and anti-counterfeiting. Because multispectral anti-counterfeiting technology utilizes the unique optical features of an object's surface, unlike traditional anti-counterfeiting methods such as text and patterns which are easily imitated, it is difficult to counterfeit.

[0007] Based on the above analysis, the problems and defects of the existing technology are as follows: the existing traceability QR codes are all displayed on the products, which can be easily copied into counterfeit products. Summary of the Invention

[0008] To address the problems existing in the prior art, this invention provides a multispectral anti-counterfeiting traceability QR code and its generation method. Addressing the technical issues of existing traceability QR codes being easy to copy and having low anti-counterfeiting levels, this invention improves upon the QR code by designing a novel traceability QR code and printing it with multiple inks, giving it characteristics of being difficult to counterfeit, having a high anti-counterfeiting level, and requiring specific equipment for identification.

[0009] This invention is implemented as follows: a multispectral anti-counterfeiting traceability QR code, which is an improved QR code. First, the square-like positioning pattern of the QR code is changed to an isosceles right triangle. The space left empty due to the change in positioning pattern is used to draw information for storing the printing position of special ink. Then, the character pattern in the QR code is used for encoding. After encoding, the encoded information is encrypted using the ECB mode of AES encryption technology. Error correction encoding is performed on the encrypted data. The resulting data is used as the final data code to fill the QR code data storage area to generate the QR code.

[0010] Furthermore, the positioning pattern of the multispectral anti-counterfeiting traceability QR code is set as three isosceles right triangles, distributed in the upper left, upper right, and lower left corners of the QR code. During positioning, the isosceles right triangles are detected by grayscale conversion of the QR code image, edge detection, contour detection, and polygon fitting technology. The midpoint of the longest side of the isosceles right triangle is determined and used as the positioning center. Then, the found positioning center is judged. Positioning is completed if the three positioning centers conform to the three vertices of the isosceles right triangle.

[0011] Furthermore, the multispectral anti-counterfeiting traceability QR code stores information about the printing position of the special ink so that the printing position of the special ink can be determined during subsequent printing. The stored position is located in the area left empty due to the change of the positioning pattern. The data is stored using an "L"-shaped pattern. There are three symmetrical "L"-shaped patterns in the QR code, and the data stored in them is the same. Each "L"-shaped pattern uses 5 pixel blocks. The vertex of the "L"-shaped pattern is fixed as a black pixel, and each side contains two pixels to store the printing position of the special ink. Therefore, the stored printing position information is a 4-bit binary number. This 4-bit binary number is obtained by taking the remainder of 16 after character encoding of the last character of the traceability QR code data. The printing position of the special ink can be determined through this number.

[0012] Furthermore, the traceability QR code for multispectral anti-counterfeiting uses the character pattern of QR codes for encoding, meaning that the encoded content can only be uppercase letters and numbers. This encoding pattern can increase the data capacity stored in the traceability QR code within the same area while satisfying the requirement of storing the product's serial number.

[0013] Furthermore, after character encoding the information, the multispectral anti-counterfeiting traceability QR code uses AES ECB mode to encrypt the encoded information. Since this encryption algorithm is a block cipher algorithm, data is divided into groups of 8 bytes. If the data size is less than 8 bytes, it will be automatically padded to 8 bytes. Although this operation increases the total amount of data to a certain extent, it can enhance the security of the traceability QR code and reduce the possibility of the traceability QR code being counterfeited.

[0014] Furthermore, the traceability QR code for multispectral anti-counterfeiting stores a product serial number, which is assigned by the manufacturer to the product and contains uppercase letters and numbers. This serial number can be used to query the product's place of origin, production date, manufacturer, and test report information to achieve traceability.

[0015] The multispectral anti-counterfeiting traceability QR code is printed with various inks, including ultraviolet-excited ink, a special ink made from a mixture of CMYK ink and infrared transparent ink, and black ink. The area printed with ultraviolet-excited ink is the lower right corner of the QR code. The area printed with the special ink, which is a mixture of CMYK ink and infrared transparent ink in a fixed ratio by the user, is the area determined according to the printing position information in the improved traceability QR code. The rest of the QR code is printed with black ink.

[0016] Furthermore, the traceability QR code for multispectral anti-counterfeiting is printed with ultraviolet-excited ink in the lower right corner of the traceability QR code. Specifically, it is an 8×8 pixel square area. This area is not visible under visible light and can only be revealed when exposed to ultraviolet light.

[0017] Furthermore, the area printed with special ink in the multispectral anti-counterfeiting traceability QR code changes depending on the information stored in the QR code. After removing the area used for positioning and the area printed with ultraviolet excitation ink, the remaining area of ​​the traceability QR code is a cross-shaped area. A total of 16 sub-areas can be found from the cross-shaped area, which are numbered 0-15. These correspond to the 4-bit binary number stored in the traceability QR code for the location information of the special ink printing. The area printed with special ink is determined based on this 4-bit binary number. For example, if the 4-bit binary number is 1010, then the sub-area numbered 12 in the cross-shaped area will be printed with special ink.

[0018] Furthermore, the special ink used for printing multispectral anti-counterfeiting and traceability QR codes is a mixture of CMYK ink and infrared transparent ink. The mixing ratio can be determined by the user. The part printed with this special ink is colored under visible light, and under infrared light, the image intensity will decrease to different degrees depending on the mixing ratio.

[0019] Another objective of this invention is to provide a method for generating a multispectral anti-counterfeiting traceability QR code, comprising the following steps:

[0020] S1. Encode the traceability information according to the character pattern of the QR code to obtain the data after encoding the traceability information;

[0021] S2. Encrypt the character-encoded data using the ECB mode of AES encryption. The encryption key type is predetermined, and there are 16 key types in total. After selecting the key type, the selected key type number is stored in a 4-bit binary number and replaced by the original QR code to save the 4-bit binary number of the encoding method, in preparation for subsequent decryption.

[0022] S3. Add padding and end characters to the AES encrypted data according to the QR code specification. Then, perform Reed-Solomon error correction coding according to the QR code format to obtain the final QR code storage information code, so that the traceability QR code has a certain error correction capability and improves the anti-interference performance of the traceability QR code.

[0023] S4. Determine the size of the traceability QR code according to the QR code specifications, then draw isosceles right triangles in the upper left, upper right, and lower left corners of the traceability QR code as the main positioning patterns, and determine the special ink printing position information according to the original traceability information and draw it on the QR code.

[0024] S5. Draw secondary positioning patterns and fill in the final data according to the QR code format to generate a traceability QR code;

[0025] S6. Print the traceability QR code in a specific UV-excited area using UV-excited ink, print the traceability QR code in a specific special ink printing area using special ink, and print the remaining areas using black ink.

[0026] Based on the above technical solutions and the technical problems solved, the advantages and positive effects of the technical solution to be protected by this invention are as follows:

[0027] First, addressing the technical problems existing in the prior art and the difficulty of solving them, this paper closely analyzes, in conjunction with the technical solution to be protected by this invention and the results and data obtained during the research and development process, how the technical solution of this invention solves the technical problems, and the inventive technical effects brought about by solving these problems. The specific description is as follows:

[0028] This invention provides a multispectral anti-counterfeiting traceability QR code, which innovates the positioning pattern of the QR code by using three isosceles right triangles located at the upper left, upper right, and lower left corners as the main positioning pattern of the QR code. On the one hand, this increases the information capacity of the QR code, and on the other hand, it makes the QR code more difficult to identify and decode, thereby improving the security of the QR code, reducing the risk of counterfeiting, and thus improving the credibility of the QR code.

[0029] This invention provides a multispectral anti-counterfeiting traceability QR code. After the traceability QR code is encoded with characters, it is encrypted using AES ECB mode, which can effectively prevent the information stored in the traceability QR code from being easily cracked by criminals, increase the difficulty of counterfeiting the traceability QR code, and has a high anti-counterfeiting effect.

[0030] Second, considering the technical solution as a whole or from a product perspective, the technical effects and advantages of the technical solution to be protected by this invention are specifically described as follows:

[0031] This invention provides a multispectral anti-counterfeiting traceability QR code that combines multispectral anti-counterfeiting technology with traceability QR codes. It uses ultraviolet-excited ink as the printing ink for a portion of the traceability QR code. The traceability QR code printing area with ultraviolet-excited ink is invisible under visible light and requires ultraviolet light irradiation to reveal the original pattern. Therefore, the traceability QR code under visible light is not a complete traceability QR code. This technology reduces the risk of traceability QR code counterfeiting, improves the security of the traceability QR code, and enhances its anti-counterfeiting performance.

[0032] This invention provides a multispectral anti-counterfeiting traceability QR code, combining multispectral anti-counterfeiting technology with traceability QR codes. A special ink, composed of a mixture of CMYK ink and infrared transparent ink, is used as the printing ink for the traceability QR code portion. When the traceability QR code printed with this special ink is irradiated with infrared light, the image intensity will decrease to varying degrees depending on the mixing ratio. The authenticity of the traceability QR code can be determined by observing whether the image intensity of the infrared transparent ink portion decreases when the printed traceability QR code is irradiated with infrared light. Furthermore, the printing position of the special ink is determined by the original traceability information and is not fixed; there are a total of 16 possible printing positions. This technology increases the complexity of the traceability QR code, thereby increasing the difficulty of counterfeiting and providing high anti-counterfeiting effectiveness. Attached Figure Description

[0033] To more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings used in the embodiments of the present invention will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0034] Figure 1 This is an example image of a multispectral anti-counterfeiting traceability QR code provided in an embodiment of the present invention;

[0035] Figure 2 This is a schematic diagram of the printing position of the traceability QR code for multispectral anti-counterfeiting provided in an embodiment of the present invention;

[0036] Figure 3 This is a schematic diagram of the multispectral anti-counterfeiting traceability QR code generation process provided in this embodiment of the invention;

[0037] Figure 4 This is a schematic diagram of the authentication and information recognition process of the multispectral anti-counterfeiting traceability QR code provided in this embodiment of the invention;

[0038] In the diagram: 1. An isosceles right triangle; 2. Space left empty due to changes in the positioning pattern. Detailed Implementation

[0039] To make the objectives, technical solutions, and advantages of this invention clearer, the invention will be further described in detail below with reference to embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the invention.

[0040] To address the problems existing in the prior art, this invention provides a multispectral anti-counterfeiting traceability QR code and its generation method. The invention will be described in detail below with reference to the accompanying drawings.

[0041] I. Explanatory and Illustrative Embodiments. To enable those skilled in the art to fully understand how the present invention is specifically implemented, this section provides an explanatory and illustrative description of the embodiments described in the claims.

[0042] Example 1

[0043] like Figure 1 As shown, this invention provides an improved traceability QR code, which is an improved QR code. First, the square-like positioning pattern of the QR code is changed to an isosceles right triangle 1. Information for storing the printing position of special ink is drawn in the space 2 left empty due to the change of the positioning pattern. Then, the character pattern in the QR code is used for encoding. After encoding, the encoded information is encrypted using the ECB mode of AES encryption technology. Error correction encoding is performed on the encrypted data. The obtained data is used as the final data code to fill the QR code data storage area to generate the QR code.

[0044] The improved traceability QR code's positioning pattern is set as three isosceles right triangles 1, distributed in the upper left, upper right, and lower left corners of the QR code. During positioning, the isosceles right triangles can be detected by binarizing the QR code image, edge detection, contour detection, and polygon fitting techniques. The midpoint of the longest side of the isosceles right triangle is then determined and used as the positioning center. The positioning center is then judged, and positioning is completed if the three positioning centers conform to the three vertices of the isosceles right triangle.

[0045] The improved traceability QR code stores information about the printing position of special inks to determine the printing position during subsequent printing. The storage position is located in space 2, which is empty due to the change of the positioning pattern. The data is stored using an "L"-shaped pattern. There are three symmetrical "L"-shaped patterns in the QR code, and they all store the same data. Each "L"-shaped pattern uses 5 pixel blocks. The vertex of the "L"-shaped pattern is fixed as a black pixel, and each side contains two pixels to store the printing position of the special ink. Therefore, the stored printing position information is a 4-bit binary number. For the "L"-shaped pattern in the upper left corner, the 4-bit binary number is stored in the "L"-shaped pattern in order from high to low bits, from top to bottom and from left to right. The other two "L"-shaped patterns are generated in a similar way to the "L"-shaped pattern in the upper left corner and are symmetrical to it. This 4-bit binary number is obtained by taking the remainder of 16 after character encoding of the last character of the traceability QR code data. The printing position of the special ink can be determined by this number.

[0046] The improved traceability QR code uses the character pattern of QR codes for encoding, meaning that the encoded content can only be uppercase letters and numbers. This encoding pattern can increase the data capacity of the traceability QR code within the same area while satisfying the requirement of storing the product's serial number.

[0047] The improved traceability QR code encodes the information using AES ECB mode after character encoding. Since this encryption algorithm is a block cipher, data is grouped into 8-byte blocks. If the data size is less than 8 bytes, it will be automatically padded to 8 bytes. Although this operation increases the total amount of data to some extent, it can enhance the security of the traceability QR code and reduce the possibility of the traceability QR code being forged.

[0048] The improved traceability QR code stores a product serial number, which is assigned by the manufacturer to the product and contains uppercase letters and numbers. This serial number can be used to query information such as the product's place of origin, production date, manufacturer, and test reports to achieve traceability.

[0049] Example 2

[0050] This invention provides a multispectral anti-counterfeiting traceability QR code, which is formed by printing an improved traceability QR code with various inks. The printing inks include ultraviolet-excited ink, a special ink composed of a mixture of CMYK ink and infrared transparent ink, and black ink. The area printed with ultraviolet-excited ink is the lower right corner of the QR code (e.g., ...). Figure 2 As shown in area A), the area printed with special ink, which is a mixture of CMYK ink and infrared transparent ink in a fixed ratio by the user, is the area determined according to the printing position information in the improved traceability QR code mentioned above. Figure 2 (A sub-area in zone B), the rest of the QR code is printed with black ink.

[0051] The traceability QR code for multispectral anti-counterfeiting is printed with ultraviolet-excited ink in the lower right corner, specifically an 8×8 pixel square area (e.g., ...). Figure 2 As shown in area A), the corresponding area is invisible under visible light and can only be revealed under ultraviolet light.

[0052] The traceability QR code for multispectral anti-counterfeiting uses special inks, and the area printed on the QR code changes depending on the information stored in the code. After removing the area used for positioning and the area printed with UV-excited ink, the remaining area of ​​the traceability QR code is a cross-shaped region. From this cross-shaped region, a total of 16 sub-regions can be identified (e.g., ...). Figure 2 The special ink printing area is divided into two zones (B0-B15) and numbered 0-15. These correspond to the 4-bit binary numbers stored in the traceability QR code containing the special ink printing location information. The special ink printing area is determined based on these 4-bit binary numbers. For example, if the 4-bit binary number is 1010, then the sub-area numbered 12 in the "+" shaped area will be printed with special ink.

[0053] Furthermore, the special ink used for printing multispectral anti-counterfeiting and traceability QR codes is a mixture of CMYK ink and infrared transparent ink. The mixing ratio can be determined by the user. The part printed with this special ink is colored under visible light, and under infrared light, the image intensity will decrease to different degrees depending on the mixing ratio.

[0054] Example 3

[0055] like Figure 3 As shown, the present invention also provides a method for generating a multispectral anti-counterfeiting traceability QR code, comprising the following steps:

[0056] S1. Encode the traceability information according to the character pattern of the QR code to obtain the data after encoding the traceability information;

[0057] S2. Encrypt the character-encoded data using the ECB mode of AES encryption. The encryption key type is predetermined, and there are 16 key types in total. After selecting the key type, the selected key type number is stored in a 4-bit binary number and replaced by the original QR code to save the 4-bit binary number of the encoding method, in preparation for subsequent decryption.

[0058] S3. Add padding and end characters to the AES encrypted data according to the QR code specification. Then, perform Reed-Solomon error correction coding according to the QR code format to obtain the final QR code storage information code, so that the traceability QR code has a certain error correction capability and improves the anti-interference performance of the traceability QR code.

[0059] S4. Determine the size of the traceability QR code according to the QR code specifications, then draw isosceles right triangles in the upper left, upper right, and lower left corners of the traceability QR code as the main positioning patterns, and determine the special ink printing position information according to the original traceability information and draw it on the QR code.

[0060] S5. Draw secondary positioning patterns and fill in the final data according to the QR code format to generate a traceability QR code;

[0061] S6. Print the traceability QR code in a specific UV-excited area using UV-excited ink, print the traceability QR code in a specific special ink printing area using special ink, and print the remaining areas using black ink.

[0062] Example 4

[0063] like Figure 4 As shown, the present invention also provides a method for authenticating and identifying information using a multispectral anti-counterfeiting traceability QR code, comprising the following steps:

[0064] Step 1: Take images of the multispectral anti-counterfeiting traceability QR code under infrared, ultraviolet, and visible light respectively. Observe whether the part of the multispectral anti-counterfeiting traceability QR code printed by ultraviolet-excited ink appears under ultraviolet light. If the result is no, the printed product is counterfeit. Otherwise, proceed to Step 2.

[0065] Step 2: Combine the portion of the QR code visible under ultraviolet light with the QR code pattern visible under visible light to obtain the complete traceability QR code;

[0066] Step 3: After binarizing the complete traceability QR code pattern, perform edge detection, contour detection, and polygon fitting technology to detect isosceles right triangles and determine the midpoint of the longest side of the isosceles right triangle as the positioning center. Then, judge the found positioning center. If the three positioning centers match the three vertices of the isosceles right triangle, the main positioning is completed. If the positioning fails, the printed product is a counterfeit. Otherwise, proceed to step 4.

[0067] Step 4: Read the special ink printing location information saved in the traceability QR code, and observe whether there is an image attenuation phenomenon in the special ink printing location part of the multispectral anti-counterfeiting traceability QR code under infrared light that matches the special ink mixing ratio. If the result is no, the printed product is a counterfeit; otherwise, proceed to step 5.

[0068] Step 5: Read the data code of the traceability QR code. If there are any errors, correct them using error correction coding.

[0069] Step 6: Read the 4-bit binary number storing the key information in the data code, determine the key based on it, and then use AES to decrypt;

[0070] Step 7: Convert the decrypted data code into the original product serial number information according to the character encoding rules;

[0071] Step 8: Query the product traceability information from the information database based on the product serial number. If the product traceability information can be found, the printed product is genuine and the traceability information has been obtained; otherwise, the printed product is counterfeit.

[0072] In the description of this invention, unless otherwise stated, "a plurality of" means two or more; the terms "upper," "lower," "left," "right," "inner," "outer," "front end," "rear end," "head," "tail," etc., indicate the orientation or positional relationship based on the orientation or positional relationship shown in the accompanying drawings, and are only for the convenience of describing the invention and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, or be constructed and operated in a specific orientation, and therefore should not be construed as a limitation of the invention. Furthermore, the terms "first," "second," "third," etc., are used for descriptive purposes only and should not be construed as indicating or implying relative importance.

[0073] The above description is merely a specific embodiment of the present invention, but the scope of protection of the present invention is not limited thereto. Any modifications, equivalent substitutions, and improvements made by those skilled in the art within the scope of the technology disclosed in the present invention, and within the spirit and principles of the present invention, should be covered within the scope of protection of the present invention.

Claims

1. A multispectral anti-counterfeiting traceability QR code, characterized in that, For the improved QR code, the square-like positioning pattern was first changed to an isosceles right triangle, and the space freed up due to the change was used to draw information for storing the printing position of special inks. The information used to store the printing position of the special ink is stored using an "L"-shaped pattern. There are three symmetrical "L"-shaped patterns in the QR code, and they all store the same data. Each "L"-shaped pattern uses 5 pixel blocks, with the vertex of the "L"-shaped pattern fixed as a black pixel, and two pixels on each side used to store the printing position of the special ink. Therefore, the stored printing position information is a 4-bit binary number. This 4-bit binary number is obtained by taking the remainder of 16 after character encoding of the last character of the traceability QR code stored data. The printing position of the special ink can be determined through this number. Then, the character pattern in the QR code is used for encoding. After encoding, the encoded information is encrypted using the ECB mode of AES encryption technology. Error correction encoding is performed on the encrypted data, and the obtained data is used as the final data code to fill the QR code data storage area to generate the QR code.

2. The multispectral anti-counterfeiting traceability QR code as described in claim 1, characterized in that, The positioning pattern of the multispectral anti-counterfeiting traceability QR code is set as three isosceles right triangles, distributed in the upper left, upper right, and lower left corners of the QR code. During positioning, the isosceles right triangles are detected by grayscale conversion of the QR code image, edge detection, contour detection, and polygon fitting technology. The midpoint of the longest side of the isosceles right triangle is determined and used as the positioning center. Then, the positioning center is judged. The positioning is completed if the three positioning centers conform to the three vertices of the isosceles right triangle.

3. The multispectral anti-counterfeiting traceability QR code as described in claim 1, characterized in that, Multispectral anti-counterfeiting traceability QR codes are encoded using the character pattern of QR codes, meaning the encoded content can only be uppercase letters and numbers. This encoding pattern increases the data capacity stored in the traceability QR code within the same area while preserving the product's serial number.

4. The multispectral anti-counterfeiting traceability QR code as described in claim 1, characterized in that, After encoding the information into characters, the multispectral anti-counterfeiting traceability QR code uses AES ECB mode to encrypt the encoded information. Since this encryption algorithm is a block cipher, the data is divided into groups of 8 bytes. If the data size is less than 8 bytes, it will be automatically padded to 8 bytes. Although this operation increases the total amount of data to a certain extent, it can enhance the security of the traceability QR code and reduce the possibility of the traceability QR code being counterfeited.

5. The multispectral anti-counterfeiting traceability QR code as described in claim 1, characterized in that, The traceability QR code for multispectral anti-counterfeiting stores data that is a product serial number, which is assigned by the manufacturer to the product and contains uppercase letters and numbers. By using this serial number, the product's place of origin, production date, manufacturer, and test report information can be found to achieve the purpose of traceability. The multispectral anti-counterfeiting traceability QR code is printed with various inks, including ultraviolet-excited ink, a special ink made from a mixture of CMYK ink and infrared transparent ink, and black ink. The area printed with ultraviolet-excited ink is the lower right corner of the QR code. The area printed with the special ink, which is a mixture of CMYK ink and infrared transparent ink in a fixed ratio by the user, is the area determined according to the printing position information in the improved traceability QR code. The rest of the QR code is printed with black ink.

6. The multispectral anti-counterfeiting traceability QR code as described in claim 1, characterized in that, The traceability QR code for multispectral anti-counterfeiting is printed with ultraviolet-excited ink in the lower right corner of the traceability QR code. The area is a square area of ​​8×8 pixels. The corresponding area is not visible under visible light and can only be revealed when exposed to ultraviolet light.

7. The multispectral anti-counterfeiting traceability QR code as described in claim 1, characterized in that, The traceability QR code for multispectral anti-counterfeiting uses special inks to print different areas depending on the information stored in the QR code. After removing the area used for positioning and the area printed with ultraviolet excitation ink, the remaining area of ​​the traceability QR code is a cross-shaped area. A total of 16 sub-areas can be found from the cross-shaped area and numbered 0-15. These correspond to the 4-bit binary number stored in the traceability QR code that indicates the location of the special ink printing. The area printed with special ink is determined based on this 4-bit binary number. For example, if the 4-bit binary number is 1010, then the sub-area numbered 12 in the cross-shaped area will be printed with special ink.

8. The multispectral anti-counterfeiting traceability QR code as described in claim 1, characterized in that, The special ink used for printing multispectral anti-counterfeiting and traceability QR codes is a mixture of CMYK ink and infrared transparent ink. The mixing ratio can be determined by the user. The printed part of this special ink is colored under visible light, and under infrared light, the image intensity will be weakened to varying degrees depending on the mixing ratio.

9. A method for generating a multispectral anti-counterfeiting traceability QR code as described in any one of claims 1 to 8, characterized in that, Includes the following steps: S1. Encode the traceability information according to the character pattern of the QR code to obtain the data after encoding the traceability information; S2. Encrypt the character-encoded data using the ECB mode of AES encryption. The encryption key type is predetermined, and there are 16 key types in total. After selecting the key type, the selected key type number is stored in a 4-bit binary number and replaced by the original QR code to save the 4-bit binary number of the encoding method, in preparation for subsequent decryption. S3. Add padding and end characters to the AES encrypted data according to the QR code specification. Then, perform Reed-Solomon error correction coding according to the QR code format to obtain the final QR code storage information code, so that the traceability QR code has a certain error correction capability and improves the anti-interference performance of the traceability QR code. S4. Determine the size of the traceability QR code according to the QR code specifications, then draw isosceles right triangles in the upper left, upper right, and lower left corners of the traceability QR code as the main positioning patterns, and determine the special ink printing position information according to the original traceability information and draw it on the QR code. S5. Draw secondary positioning patterns and fill in the final data according to the QR code format to generate a traceability QR code; S6. Print the traceability QR code in a specific UV-excited area using UV-excited ink, print the traceability QR code in a specific special ink printing area using special ink, and print the remaining areas using black ink.

Citation Information

Patent Citations

  • Multi-spectrum invisible anti-counterfeiting identifier and detection device thereof, and detection method thereof

    CN107423796A

  • Multi-chromatography-multi-spectrum composite anti-counterfeiting two-dimensional code based on CMYK common ink

    CN113762446A

  • Colorful three-dimensional code anti-counterfeiting identifier and anti-counterfeiting method and system

    CN102930315A

  • Anti-counterfeit label as well as recognizing device and recognizing method thereof

    CN102968927A