A method and system for designing optically variable anti-counterfeiting QR codes

By using optical materials with color distortion and transparency adjustable characteristics in optical anti-counterfeiting QR codes, designing multi-layer optical film structure and angle mapping relationships, the problem of insufficient transparency adjustment and angle flexibility in the prior art is solved, and the more Efficient anti-counterfeiting performance and visibility.

CN118133863BActive Publication Date: 2025-02-11RED CAT LOGO DESIGN INST (SHENZHEN) CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202410065142.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-01-16
Publication Date
2025-02-11
Estimated Expiration
2044-01-16

AI Technical Summary

Technical Problem

The existing optical anti-counterfeiting QR codes ignore the adjustment of transparency during design, resulting in differences in visibility under different backgrounds or lighting conditions, and lack sufficient flexibility in display at different angles, which affects the anti-counterfeiting effect.

Method used

By selecting optical materials with color distortion characteristics and adjustable transparency, a multi-layer optical film structure is established, and different QR code patterns are designed to present different angles at different angles, and the mapping relationship between angles and QR code patterns is used for verification. .

Benefits of technology

Improves the non-replicability and anti-counterfeiting performance of QR codes, and enhances visibility and verification flexibility under different angles and lighting conditions.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118133863B_ABST
    Figure CN118133863B_ABST
Patent Text Reader

Abstract

The present invention relates to the technical field of anti-counterfeiting two-dimensional codes, and discloses a logo design method and system for an optically variable anti-counterfeiting two-dimensional code. An optically variable anti-counterfeiting two-dimensional code with a multi-level optical film structure is established by utilizing optical materials with color-changing properties and adjustable transparency properties, and on this basis, two-dimensional code patterns that present different angles are designed, and the mapping relationship between the angle and the two-dimensional code pattern is used as a verification basis, thereby greatly improving the non-replicability of the two-dimensional code and enhancing the anti-counterfeiting performance of the optically variable anti-counterfeiting two-dimensional code.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of anti-counterfeiting two-dimensional codes, and in particular to a logo design method and system for an optically variable anti-counterfeiting two-dimensional code. Background Art

[0002] In today's digital society, QR codes are widely used in the fields of product tracing, anti-counterfeiting and traceability. However, traditional QR codes are at risk of being counterfeited and misappropriated, and are easily illegally copied, which affects their effectiveness in anti-counterfeiting. Therefore, in order to improve the anti-counterfeiting performance of QR codes, optically variable anti-counterfeiting QR codes came into being.

[0003] Optically variable anti-counterfeiting QR codes use the special properties of optical materials and the design of optical film structures to present different images at different angles. This feature makes it difficult for counterfeiters to copy optical anti-counterfeiting QR codes by simply scanning or photographing them.

[0004] However, the existing optical anti-counterfeiting QR code technology still has some defects. First, some traditional optical anti-counterfeiting QR code designs rely solely on color changes and are easily copied using color replication technology. Second, some optical anti-counterfeiting QR codes ignore the adjustment of transparency during design, which leads to differences in visibility under different backgrounds or lighting conditions, affecting the anti-counterfeiting effect. In addition, the display of optical anti-counterfeiting QR codes in the prior art lacks sufficient flexibility at different angles, resulting in limited anti-counterfeiting performance. Summary of the invention

[0005] In view of this, the purpose of the present invention is to provide a method and system for designing a logo of a light-variable anti-counterfeiting two-dimensional code, which can present different light-variable two-dimensional code patterns at different angles, enhance the anti-counterfeiting performance, and improve the flexibility when verifying the two-dimensional code.

[0006] The first aspect of the present invention discloses a method for designing an optically variable anti-counterfeiting two-dimensional code, the method comprising the following steps:

[0007] S1. Select optical materials with color-changing and transparency-adjustable properties;

[0008] S2, establishing a multi-level optical thin film structure for the optical material through optical design software to obtain a first optically variable anti-counterfeiting two-dimensional code;

[0009] Among them, in the step S2, the code containing angle information is embedded in the multi-level optical film structure according to the preset angle coding strategy, the first light-variable anti-counterfeiting two-dimensional code presents different two-dimensional code images at different angles, the angles correspond to the two-dimensional code images one by one, and a mapping table containing the mapping relationship between different angles and two-dimensional code images is established.

[0010] Furthermore, the method further comprises the following steps after step S2:

[0011] S3, analyzing the reflection, transmission and refraction reactions of the multi-layered optical film structure of the first optically variable anti-counterfeiting two-dimensional code under light of different wavelengths by optical simulation software; the different wavelengths are wavelengths within the visible spectrum;

[0012] S4. Perform at least one hierarchical optimization on the multi-level optical film structure of the first optically variable anti-counterfeiting two-dimensional code according to the hierarchical optimization strategy, and use the optically variable anti-counterfeiting two-dimensional code of the multi-level optical film structure optimized for the last time as the final optically variable anti-counterfeiting two-dimensional code.

[0013] Further, the step S3 and the step S4 are performed alternately, specifically including:

[0014] Determine the thickness of each layer of the optical film of the multi-layer optical film structure of the first optically variable anti-counterfeiting two-dimensional code, and the lamination order of each layer of the optical film;

[0015] Executing step S3 on the multi-layered optical thin film structure of the first optically variable anti-counterfeiting two-dimensional code to obtain first reflection, transmission and refraction reaction results of the multi-layered optical thin film structure of the first optically variable anti-counterfeiting two-dimensional code at different wavelengths;

[0016] The step S4 specifically includes: taking the thickness of each layer of the optical film of the multi-layer optical film structure of the first optically variable anti-counterfeiting two-dimensional code and the laminating order of each layer of the optical film as optimization parameters;

[0017] Determining an optimization target, wherein the optimization target is to achieve the clearest two-dimensional code image at a specific angle, wherein the specific angle includes at least two specific angles;

[0018] According to the obtained first reflection, transmission and refraction reaction results of the multi-layered optical film structure of the first optically variable anti-counterfeiting two-dimensional code at different wavelengths and the optimization target, a parameter adjustment scheme for the multi-layered optical film structure of the first optically variable anti-counterfeiting two-dimensional code is calculated by a genetic algorithm, and the parameter adjustment scheme includes adjusting the thickness of each layer of the multi-layered optical film structure of the first optically variable anti-counterfeiting two-dimensional code and the lamination order of each layer of the optical film;

[0019] According to the parameter adjustment scheme, step S3 is performed on the multi-level optical film structure of the first optically variable anti-counterfeiting two-dimensional code to obtain the second reflection, transmission and refraction reaction results of the optimized multi-level optical film structure of the first optically variable anti-counterfeiting two-dimensional code at different wavelengths, and based on the second reflection, transmission and refraction reaction results and the optimization target, it is determined whether to continue the hierarchical optimization process until the second reflection, transmission and refraction reaction results of the multi-level optical film structure at different wavelengths meet the optimization target, and the optically variable anti-counterfeiting two-dimensional code of the multi-level optical film structure that meets the optimization target is used as the final optically variable anti-counterfeiting two-dimensional code.

[0020] Furthermore, embedding the code containing the angle information in the multi-level optical film structure according to the preset angle coding strategy specifically includes:

[0021] Using image processing software to create a blank image, the blank image is divided into 36 sectors, each sector represents an angle range of 10 degrees;

[0022] Selecting Unicode symbols to create a symbol set, each symbol representing an angle range, the symbol set covering the angle range of 36 sectors;

[0023] Fill each sector in the image with symbols of the corresponding angle range, and export the created polar coordinate coded image to a standard image format;

[0024] Load the polar-coded image in the standard image format created by the image processing library, traverse each element of the image, and extract the symbols within each sector;

[0025] Set the mapping table of symbols and angles, test the display effect of symbols in each sector at different angles on the exported image, and verify whether the mapping relationship between symbols and angles is correct. If not, correct the mapping table of symbols and angles.

[0026] Furthermore, the step S2 further includes:

[0027] Selecting asymmetric elements and combining the asymmetric elements into a two-dimensional code pattern, wherein the asymmetric elements include one or more of special-shaped patterns, irregular lines, and special characters;

[0028] The dynamic rotation and stretching effect of each asymmetric element within the angle range of each sector is defined by image processing software;

[0029] According to the color-changing characteristics of the optical film, the color-changing law of each asymmetric element within the angle range of each sector is defined;

[0030] The QR code pattern within each sector angle range is determined by combining the defined dynamic rotation and stretching effects of each asymmetric element within each sector angle range and the color change rule of each asymmetric element within each sector angle range, and the determined QR code pattern is added to the mapping table of symbols and angles to form a mapping table containing one-to-one correspondence between symbols, angles and QR code patterns.

[0031] Furthermore, the method also includes designing a gradient color ring corresponding to each sector through the HSV color model, the gradient color ring is designed on a two-dimensional code pattern including a color change rule, the designed gradient color ring is corresponded to the sector angle range, the two-dimensional code pattern combined with the gradient color ring is updated, and a mapping table of symbols, angles, updated two-dimensional code patterns and gradient color rings is formed.

[0032] Furthermore, the method further includes blurring the QR code pattern, and the specific blurring steps are:

[0033] Load the QR code pattern to be processed in the image processing library;

[0034] Define the blur degree and blur angle range of the Gaussian blur function;

[0035] A defined Gaussian blur function is applied to the transition area between adjacent sectors for blurring.

[0036] The second aspect of the present invention discloses a system for designing an optically variable anti-counterfeiting two-dimensional code, the system being used to verify an optically variable anti-counterfeiting two-dimensional code designed by the optically variable anti-counterfeiting two-dimensional code design method disclosed in the present invention, the system comprising a scanning module and a verification module;

[0037] The scanning module is used to scan the optically variable anti-counterfeiting two-dimensional code to obtain an optically variable anti-counterfeiting two-dimensional code image;

[0038] The verification module includes a storage submodule and a comparison submodule, wherein the storage submodule is used to store a mapping table containing mapping relationships between different angles and two-dimensional code images;

[0039] The comparison submodule is used to obtain the optically variable anti-counterfeiting two-dimensional code image from the scanning module, and verify the optically variable anti-counterfeiting two-dimensional code according to the mapping table.

[0040] Furthermore, the system also includes an angle prompt module, which is used to prompt the user to adjust the scanning angle of the scanning module. The scanning angle is the angle between the scanning module and the optically variable anti-counterfeiting QR code with the optically variable anti-counterfeiting QR code as the horizontal plane. When the user adjusts to a predetermined angle, the scanning module obtains the optically variable anti-counterfeiting QR code image at the predetermined angle.

[0041] Furthermore, the verification module also includes a judgment submodule and an identification submodule;

[0042] The judging submodule is used to judge whether the optically variable anti-counterfeiting two-dimensional code image obtained from the scanning module is an optically variable anti-counterfeiting two-dimensional code image at a predetermined angle. If the judgment is yes, the optically variable anti-counterfeiting two-dimensional code image is compared with the two-dimensional code image corresponding to the sector to which the predetermined angle belongs through the comparing submodule, and if the comparison is consistent, a verification result is output;

[0043] In the case of the judgment being no, the identification submodule identifies the symbol and / or the gradient color ring of the optically variable anti-counterfeiting two-dimensional code image obtained from the scanning module, and determines the angle information of the current optically variable anti-counterfeiting two-dimensional code image according to a mapping table including the symbol, angle, two-dimensional code pattern, and gradient color ring, and the comparison submodule compares the optically variable anti-counterfeiting two-dimensional code image with the two-dimensional code image corresponding to the sector to which the determined angle belongs, and outputs a verification pass result if the comparison is consistent;

[0044] The verification is considered successful if the number of successful verifications is greater than or equal to 2 within the preset verification times.

[0045] Compared with the prior art, the present invention has the following beneficial effects:

[0046] The present invention establishes a light-variable anti-counterfeiting two-dimensional code with a multi-level optical film structure by utilizing optical materials with color-changing and adjustable transparency properties, and designs two-dimensional code patterns that present different angles on this basis, and uses the mapping relationship between angles and two-dimensional code patterns as a verification basis, thereby greatly improving the non-replicability of the two-dimensional code and enhancing the anti-counterfeiting performance of the light-variable anti-counterfeiting two-dimensional code. BRIEF DESCRIPTION OF THE DRAWINGS

[0047] The drawings described herein are used to provide a further understanding of the embodiments of the present invention, constitute a part of this application, and do not constitute a limitation of the embodiments of the present invention. In the drawings:

[0048] Figure 1 A schematic diagram of a flow chart of a method for designing a logo of an optically variable anti-counterfeit two-dimensional code disclosed in an embodiment of the present invention;

[0049] Figure 2 A schematic structural diagram of a system for designing an optically variable anti-counterfeit two-dimensional code according to another embodiment of the present invention. DETAILED DESCRIPTION

[0050] In order to enable those skilled in the art to better understand the solutions of the present invention, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than all of the embodiments.

[0051] Embodiment 1

[0052] See also Figure 1 , Figure 1 The present invention is a flowchart of a method for designing a light-variable anti-counterfeiting two-dimensional code disclosed in an embodiment of the present invention. The method comprises the following steps:

[0053] S1. Select optical materials with color-changing and transparency-adjustable properties;

[0054] S2, establishing a multi-level optical thin film structure for the optical material through optical design software to obtain a first optically variable anti-counterfeiting two-dimensional code;

[0055] Wherein, in the step S2, a code containing angle information is embedded in the multi-level optical film structure according to a preset angle coding strategy, the first optically variable anti-counterfeiting two-dimensional code presents different two-dimensional code images at different angles, the angles correspond to the two-dimensional code images one by one, and a mapping table containing the mapping relationship between different angles and two-dimensional code images is established. In the embodiments of the present invention, no specific limitation is made to the design software for implementing the present invention.

[0056] Wherein, embedding the code containing angle information in the multi-level optical film structure according to the preset angle coding strategy specifically includes:

[0057] Using image processing software to create a blank image, the blank image is divided into 36 sectors, each sector represents an angle range of 10 degrees;

[0058] Selecting Unicode symbols to create a symbol set, each symbol representing an angle range, the symbol set covering the angle range of 36 sectors;

[0059] Fill each sector in the image with symbols of the corresponding angle range, and export the created polar coordinate coded image to a standard image format;

[0060] Load the polar-coded image in the standard image format created by the image processing library, traverse each element of the image, and extract the symbols within each sector;

[0061] Set the mapping table of symbols and angles, test the display effect of symbols in each sector at different angles on the exported image, and verify whether the mapping relationship between symbols and angles is correct. If not, correct the mapping table of symbols and angles.

[0062] Furthermore, asymmetric elements are selected and combined into a two-dimensional code pattern, wherein the asymmetric elements include one or more of special-shaped patterns, irregular lines, and special characters.

[0063] By combining asymmetric elements into a pattern of a two-dimensional code image, its non-replicability can be increased, and further, its anti-counterfeiting performance can be enhanced.

[0064] The dynamic rotation and stretching effects of each asymmetric element within each sector angle range are defined by image processing software, and the color change law of each asymmetric element within each sector angle range is defined according to the color change characteristics of the optical film. The two-dimensional code pattern within each sector angle range is determined in combination with the defined dynamic rotation and stretching effects of each asymmetric element within each sector angle range and the color change law of each asymmetric element within each sector angle range, and the determined two-dimensional code pattern is added to a mapping table of symbols and angles to form a mapping table with one-to-one correspondence between symbols, angles and two-dimensional code patterns.

[0065] The method further comprises the following steps:

[0066] S3. Analyze the reflection, transmission and refraction reactions of the multi-layered optical film structure of the first optically variable anti-counterfeiting two-dimensional code under light of different wavelengths through optical simulation software; the different wavelengths are wavelengths within the visible spectrum.

[0067] S4. Perform at least one hierarchical optimization on the multi-level optical film structure of the first optically variable anti-counterfeiting two-dimensional code according to the hierarchical optimization strategy, and use the optically variable anti-counterfeiting two-dimensional code of the multi-level optical film structure optimized for the last time as the final optically variable anti-counterfeiting two-dimensional code.

[0068] Step S3 and step S4 are performed alternately, specifically including:

[0069] Determine the thickness of each layer of the optical film of the multi-layer optical film structure of the first optically variable anti-counterfeiting two-dimensional code, and the laminating order of each layer of the optical film.

[0070] Step S3 is performed on the multi-layered optical film structure of the first optically variable anti-counterfeiting two-dimensional code to obtain first reflection, transmission and refraction reaction results of the multi-layered optical film structure of the first optically variable anti-counterfeiting two-dimensional code at different wavelengths.

[0071] It can be understood that the optically variable anti-counterfeiting two-dimensional code in the embodiment of the present invention is established by an optical material with color-changing and adjustable transparency characteristics. The optical material itself has a certain degree of transparency and color change. The multi-layer optical films of different thickness specifications are combined in different orders. Based on the transparency and color change characteristics of the materials, the corresponding overall reflection, transmission, and refractive index of the combination will change, and there will be different reaction results under light irradiation, and different reaction results will be presented under irradiation of different wavelengths. By simulating light irradiation at different wavelengths in the visible spectrum, it is ensured that the designed optically variable anti-counterfeiting two-dimensional code can present a two-dimensional code image with scan visibility under daily light irradiation.

[0072] Step S4 specifically includes: taking the thickness of each layer of the optical film and the laminating order of each layer of the optical film of the multi-layer optical film structure of the first optically variable anti-counterfeiting two-dimensional code as optimization parameters.

[0073] Determining an optimization target, wherein the optimization target is to achieve the clearest two-dimensional code image at a specific angle, wherein the specific angle includes at least two specific angles;

[0074] According to the first reflection, transmission and refraction reaction results of the multi-level optical film structure of the first light-variable anti-counterfeiting two-dimensional code at different wavelengths and the optimization target, a parameter adjustment scheme for the multi-level optical film structure of the first light-variable anti-counterfeiting two-dimensional code is calculated by a genetic algorithm. The parameter adjustment scheme includes adjusting the thickness of each layer of the multi-level optical film structure of the first light-variable anti-counterfeiting two-dimensional code and the bonding order of each layer of the optical film.

[0075] According to the parameter adjustment scheme, step S3 is performed on the multi-level optical film structure of the first optically variable anti-counterfeiting two-dimensional code to obtain the second reflection, transmission and refraction reaction results of the optimized multi-level optical film structure of the first optically variable anti-counterfeiting two-dimensional code at different wavelengths, and based on the second reflection, transmission and refraction reaction results and the optimization target, it is determined whether to continue the hierarchical optimization process until the second reflection, transmission and refraction reaction results of the multi-level optical film structure at different wavelengths meet the optimization target, and the optically variable anti-counterfeiting two-dimensional code of the multi-level optical film structure that meets the optimization target is used as the final optically variable anti-counterfeiting two-dimensional code.

[0076] The hierarchical optimization strategy mainly adjusts the optimization parameters of the optically variable anti-counterfeiting QR code continuously to make the second reflection, transmission and refraction reaction results of the multi-level optical thin film structure of the adjusted optically variable anti-counterfeiting QR code at different wavelengths meet the optimization goals and then ends the optimization.

[0077] In the embodiment of the present invention, a sector with an angle range of 10 degrees corresponds to a two-dimensional code image. The optically variable anti-counterfeiting two-dimensional code designed based on a multi-level optical film structure with transparent adjustable and color-changing properties ensures that it presents a relatively clear two-dimensional code image structure within the sector angle range. In addition, the embodiment of the present invention also ensures that the optically variable anti-counterfeiting two-dimensional code can present the clearest two-dimensional code image at a preset angle through a hierarchical optimization strategy. It can be understood that the preset angle is a certain angle value. Within the angle range of the sector to which the preset angle belongs, the optically variable anti-counterfeiting two-dimensional code image at the preset angle value is the clearest compared to the optically variable anti-counterfeiting two-dimensional code images at other angles of the sector. It should be noted that the optically variable anti-counterfeiting two-dimensional code images within the same sector angle range are consistent.

[0078] As another implementation, different angle ranges may be selected as a sector.

[0079] Furthermore, before performing hierarchical optimization on the first optically variable anti-counterfeiting two-dimensional code, a gradient color ring corresponding to each sector is designed using the HSV color model. The gradient color ring is designed on a two-dimensional code pattern that includes a color change rule. The designed gradient color ring is corresponded to the sector angle range, and the two-dimensional code pattern combined with the gradient color ring is updated, and a mapping table of one-to-one correspondence between symbols, angles, updated two-dimensional code patterns, and gradient color rings is formed.

[0080] Specifically, in the HSV color model, hue, saturation, and value are three parameters that describe color. The specific operation of generating a gradient color ring is to first define the angle value range, which is 0 to 360 degrees, and then define the number of sectors. This implementation method defines the number of sectors as 36. A hue angle mapping function H(θ) can be defined to map the angle to the hue parameter in the HSV color model. The hue value range of the HSV color model is 0 to 1, and the mapping is performed using a modulus operation: mod represents the modular operation in the hue parameter. In this implementation, the modular base is That is, the reciprocal of the number of sectors to ensure that it changes within the range of each sector.

[0081] The hue value corresponding to each angle is calculated using the hue angle mapping function H(θ), and then the saturation and brightness are fixed to 1 and 1, respectively, to obtain the HSV color: HSV(θ)=(H(θ),1,1).

[0082] In an embodiment of the present invention, a gradient color ring that needs to be formed in combination with color changes can be designed on the first optically variable anti-counterfeiting two-dimensional code in combination with the existing color change rules of the two-dimensional code. The gradient color ring corresponds to the sector, which serves as another form of expression of angle information. When identifying the angle information of the optically variable anti-counterfeiting two-dimensional code, a symbol or a gradient color ring as the angle information can be selected to identify the current scanning angle information. Both angle information identification methods can be used for angle identification, and the current scanning angle is determined only when the angle information obtained by the two angle identification methods is consistent. By using a gradient color ring as another form of representation of angle information, the flexibility of scanning and verifying the angle identification of the optically variable anti-counterfeiting two-dimensional code can be increased. Through the dual determination of the two angle identification methods, the anti-counterfeiting characteristics of the optically variable anti-counterfeiting two-dimensional code are further enhanced.

[0083] Furthermore, the method further includes blurring the QR code pattern, and the specific blurring process steps are as follows:

[0084] Load the QR code pattern to be processed in the image processing library;

[0085] Define the blur degree and blur angle range of the Gaussian blur function;

[0086] A defined Gaussian blur function is applied to the transition area between adjacent sectors for blurring.

[0087] It is understandable that different sectors correspond to different QR code patterns, and different QR code patterns are blurred respectively. Specifically, the blurred angle range is taken in adjacent sector areas and should be smaller than the sector angle. For example, if the sector angle range is 10 degrees, then 2 degrees can be taken as the blurred angle range, and the two adjacent sectors each occupy 1 degree in the blurred angle range. By performing blurring in adjacent sector areas, the optically variable anti-counterfeiting QR code images displayed in sectors can be further distinguished, thereby improving the accuracy of QR code recognition.

[0088] As another preferred implementation, a scratchable anti-counterfeiting film may be added to the designed optically variable anti-counterfeiting two-dimensional code, and the anti-counterfeiting film needs to be scratched off before scanning and verification.

[0089] Embodiment 2

[0090] The second aspect of the present invention discloses a logo design system for an optically variable anti-counterfeit two-dimensional code. Figure 2 , Figure 2 1 is a schematic diagram of a structure of a light-variable anti-counterfeiting two-dimensional code identification design system disclosed in another embodiment of the present invention. The system is used to verify the light-variable anti-counterfeiting two-dimensional code designed in the first embodiment, and the system includes a scanning module and a verification module;

[0091] The scanning module is used to scan the optically variable anti-counterfeiting two-dimensional code to obtain an optically variable anti-counterfeiting two-dimensional code image;

[0092] The verification module includes a storage submodule and a comparison submodule. The storage submodule is used to store a mapping table containing mapping relationships between different angles and two-dimensional code images.

[0093] The comparison submodule is used to obtain the optically variable anti-counterfeiting two-dimensional code image from the scanning module and verify the optically variable anti-counterfeiting two-dimensional code according to the mapping table.

[0094] Furthermore, the system also includes an angle prompt module, which is used to prompt the user to adjust the scanning angle of the scanning module. The scanning angle is the angle between the scanning module and the optically variable anti-counterfeiting QR code with the optically variable anti-counterfeiting QR code as the horizontal plane. When the user adjusts to a predetermined angle, the scanning module obtains the optically variable anti-counterfeiting QR code image at the predetermined angle.

[0095] Furthermore, the verification module also includes a judgment submodule and an identification submodule.

[0096] The judgment submodule is used to judge whether the optically variable anti-counterfeiting two-dimensional code image obtained from the scanning module is the optically variable anti-counterfeiting two-dimensional code image at a predetermined angle. If the judgment is yes, the optically variable anti-counterfeiting two-dimensional code image is compared with the two-dimensional code image corresponding to the sector belonging to the predetermined angle through the comparison submodule, and the verification pass result is output if the comparison is consistent.

[0097] If the judgment is no, the symbol and / or gradient color ring of the optically variable anti-counterfeiting QR code image obtained from the scanning module is identified through the identification submodule, and the angle information of the current optically variable anti-counterfeiting QR code image is determined according to a mapping table containing symbols, angles, QR code patterns, and gradient color rings. The optically variable anti-counterfeiting QR code image is compared with the QR code image corresponding to the sector to which the determined angle belongs through the comparison submodule, and the verification pass result is output when the comparison is consistent.

[0098] Furthermore, if the number of verification passes is greater than or equal to 2 within the preset verification times, the verification is deemed to be successful. The preset number is greater than or equal to 2 times. As a preferred implementation, the number of verification passes can be set as continuous verification passes, and the verification failure cannot occur before the continuous verification passes, otherwise it means the verification failed.

[0099] Finally, it should be noted that the optically variable anti-counterfeiting two-dimensional code identification design method and system disclosed in the embodiment of the present invention only discloses the preferred embodiment of the present invention, which is only used to illustrate the technical solution of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that the technical solutions described in the aforementioned embodiments can still be modified, or some of the technical features therein can be replaced by equivalents. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the various embodiments of the present invention.

Claims

1. A method for designing an optically variable anti-counterfeit two-dimensional code, characterized in that: The method comprises: S1. Select optical materials with color-changing and transparency-adjustable properties; S2, establishing a multi-level optical thin film structure for the optical material through optical design software to obtain a first optically variable anti-counterfeiting two-dimensional code; Wherein, in the step S2, a code containing angle information is embedded in the multi-level optical film structure according to a preset angle coding strategy, the first optically variable anti-counterfeiting two-dimensional code presents different two-dimensional code images at different angles, the angles correspond to the two-dimensional code images one by one, and a mapping table containing mapping relationships between different angles and two-dimensional code images is established; S3, analyzing the reflection, transmission and refraction reactions of the multi-layered optical film structure of the first optically variable anti-counterfeiting two-dimensional code under light of different wavelengths by optical simulation software; the different wavelengths are wavelengths within the visible spectrum; S4, performing at least one hierarchical optimization on the multi-layered optical thin film structure of the first optically variable anti-counterfeiting two-dimensional code according to the hierarchical optimization strategy, and using the optically variable anti-counterfeiting two-dimensional code of the multi-layered optical thin film structure optimized last time as the final optically variable anti-counterfeiting two-dimensional code; The method of embedding the code containing the angle information in the multi-level optical film structure according to the preset angle coding strategy specifically includes: Using image processing software to create a blank image, the blank image is divided into 36 sectors, each sector represents an angle range of 10 degrees; Select Unicode symbols to create a symbol set, each symbol represents an angle range, and the symbol set covers an angle range of 36 sectors; Fill each sector in the image with symbols of the corresponding angle range, and export the created polar coordinate coded image to a standard image format; Load the polar-coded image in the standard image format created by the image processing library, traverse each element of the image, and extract the symbols within each sector; Set the mapping table of symbols and angles, test the display effect of symbols in each sector at different angles on the exported image, and verify whether the mapping relationship between symbols and angles is correct. If not, correct the mapping table of symbols and angles.

2. The method for designing an optically variable anti-counterfeit two-dimensional code according to claim 1, characterized in that: Step S3 and step S4 are performed alternately, and specifically include: Determine the thickness of each layer of the optical film of the multi-layer optical film structure of the first optically variable anti-counterfeiting two-dimensional code, and the lamination order of each layer of the optical film; Executing step S3 on the multi-layered optical thin film structure of the first optically variable anti-counterfeiting two-dimensional code to obtain first reflection, transmission and refraction reaction results of the multi-layered optical thin film structure of the first optically variable anti-counterfeiting two-dimensional code at different wavelengths; The step S4 specifically includes: taking the thickness of each layer of the optical film of the multi-layer optical film structure of the first optically variable anti-counterfeiting two-dimensional code and the laminating order of each layer of the optical film as optimization parameters; Determining an optimization target, wherein the optimization target is to achieve the clearest two-dimensional code image at a specific angle, wherein the specific angle includes at least two specific angles; According to the obtained first reflection, transmission and refraction reaction results of the multi-layered optical film structure of the first optically variable anti-counterfeiting two-dimensional code at different wavelengths and the optimization target, a parameter adjustment scheme for the multi-layered optical film structure of the first optically variable anti-counterfeiting two-dimensional code is calculated by a genetic algorithm, and the parameter adjustment scheme includes adjusting the thickness of each layer of the multi-layered optical film structure of the first optically variable anti-counterfeiting two-dimensional code and the lamination order of each layer of the optical film; According to the parameter adjustment scheme, step S3 is performed on the multi-level optical film structure of the first optically variable anti-counterfeiting two-dimensional code to obtain the second reflection, transmission and refraction reaction results of the optimized multi-level optical film structure of the first optically variable anti-counterfeiting two-dimensional code at different wavelengths, and based on the second reflection, transmission and refraction reaction results and the optimization target, it is determined whether to continue the hierarchical optimization process until the second reflection, transmission and refraction reaction results of the multi-level optical film structure at different wavelengths meet the optimization target, and the optically variable anti-counterfeiting two-dimensional code of the multi-level optical film structure that meets the optimization target is used as the final optically variable anti-counterfeiting two-dimensional code.

3. The method for designing an optically variable anti-counterfeit two-dimensional code according to claim 1, characterized in that: The step S2 further comprises: Selecting asymmetric elements and combining the asymmetric elements into a two-dimensional code pattern, wherein the asymmetric elements include one or more of special-shaped patterns, irregular lines, and special characters; The dynamic rotation and stretching effect of each asymmetric element within the angle range of each sector is defined by image processing software; According to the color-changing characteristics of the optical film, the color-changing law of each asymmetric element within the angle range of each sector is defined; The QR code pattern within each sector angle range is determined by combining the defined dynamic rotation and stretching effects of each asymmetric element within each sector angle range and the color change rule of each asymmetric element within each sector angle range, and the determined QR code pattern is added to the mapping table of symbols and angles to form a mapping table containing one-to-one correspondence between symbols, angles and QR code patterns.

4. The method for designing an optically variable anti-counterfeit two-dimensional code according to claim 3, characterized in that: The method further comprises, A gradient color ring corresponding to each sector is designed through the HSV color model. The gradient color ring is designed on a two-dimensional code pattern including a color change rule. The designed gradient color ring is made to correspond to the sector angle range, and the two-dimensional code pattern combined with the gradient color ring is updated to form a one-to-one mapping table of symbols, angles, updated two-dimensional code patterns and gradient color rings.

5. The method for designing an optically variable anti-counterfeit two-dimensional code according to claim 4, characterized in that: The method further includes blurring the two-dimensional code pattern, and the specific blurring process steps are: Load the QR code pattern to be processed in the image processing library; Define the blur degree and blur angle range of the Gaussian blur function; A defined Gaussian blur function is applied to the transition area between adjacent sectors for blurring.

6. A system for designing an optically variable anti-counterfeiting two-dimensional code, the system being used to verify an optically variable anti-counterfeiting two-dimensional code designed by the optically variable anti-counterfeiting two-dimensional code design method according to any one of claims 1 to 5, characterized in that: The system includes a scanning module and a verification module; The scanning module is used to scan the optically variable anti-counterfeiting two-dimensional code to obtain an optically variable anti-counterfeiting two-dimensional code image; The verification module includes a storage submodule and a comparison submodule, wherein the storage submodule is used to store a mapping table containing mapping relationships between different angles and two-dimensional code images; The comparison submodule is used to obtain the optically variable anti-counterfeiting two-dimensional code image from the scanning module, and verify the optically variable anti-counterfeiting two-dimensional code according to the mapping table.

7. The optically variable anti-counterfeiting two-dimensional code identification design system according to claim 6, characterized in that: The system also includes an angle prompting module, which is used to prompt the user to adjust the scanning angle of the scanning module. The scanning angle is the angle between the scanning module and the optically variable anti-counterfeiting two-dimensional code with the optically variable anti-counterfeiting two-dimensional code as the horizontal plane. When the user adjusts to a predetermined angle, the scanning module obtains the optically variable anti-counterfeiting two-dimensional code image at the predetermined angle.

8. The optically variable anti-counterfeiting two-dimensional code identification design system according to any one of claims 6 to 7, characterized in that: The verification module also includes a judgment submodule and an identification submodule; The judging submodule is used to judge whether the optically variable anti-counterfeiting two-dimensional code image obtained from the scanning module is an optically variable anti-counterfeiting two-dimensional code image at a predetermined angle. If the judgment is yes, the optically variable anti-counterfeiting two-dimensional code image is compared with the two-dimensional code image corresponding to the sector to which the predetermined angle belongs through the comparing submodule, and if the comparison is consistent, a verification result is output; In the case of the judgment being no, the identification submodule identifies the symbol and / or the gradient color ring of the optically variable anti-counterfeiting two-dimensional code image obtained from the scanning module, and determines the angle information of the current optically variable anti-counterfeiting two-dimensional code image according to a mapping table including the symbol, angle, two-dimensional code pattern, and gradient color ring, and the comparison submodule compares the optically variable anti-counterfeiting two-dimensional code image with the two-dimensional code image corresponding to the sector to which the determined angle belongs, and outputs a verification pass result if the comparison is consistent; The verification is considered successful if the number of successful verifications is greater than or equal to 2 within the preset verification times.

Citation Information

Patent Citations

  • Embedded digital false proof mark who combines with two -dimensional code of variable micro

    CN206877594U

  • Anti-counterfeit label with good waterproof performance

    CN212906783U