Multi-dimensional coding method, system, decoding method and anti-counterfeiting encryption mark
Technical Field
The invention relates to the technical field of anti-counterfeiting encryption, in particular to a multi-dimensional coding method, a multi-dimensional coding system, a multi-dimensional decoding method and an anti-counterfeiting encryption mark.
Background
Laser packaging is a subdivision industry in the packaging industry, and has rapidly developed in recent years, and compared with other products in the packaging industry, a laser packaging material has a novel and beautiful appearance effect, and is called as the forefront technical product in the world packaging printing industry.
Present radium-shine packing still includes attached radium-shine label on the product, and radium-shine label can not only strengthen the outward appearance effect of product, attracts user's attention, can also bulge the information that additional printing or spout the sign indicating number formation on the radium-shine label of show. The information on the laser label can be a two-dimensional code, and a user can check the quality information and the area information of the product by scanning the two-dimensional code through a smart phone. In the prior art, an anti-counterfeit label comprises an anti-counterfeit carrier with laser images, wherein the laser images are arranged and distributed patterns, two-dimensional codes are printed on the laser images, and the laser label can also be called an anti-counterfeit label. The manufacturer keeps the image of the anti-counterfeit label, the user shoots the anti-counterfeit label to identify the two-dimensional code and uploads the laser image which is not covered by the two-dimensional code to the manufacturer, and the manufacturer judges the authenticity of the anti-counterfeit label at the background by identifying the two-dimensional code and the laser image which is covered by the two-dimensional code.
In the prior art, because the laser image has an anisotropic imaging effect, in the process of shooting the laser label by using the camera device, if the angle or the posture between the camera device and the laser label is changed, the imaging effect of the laser label is easy to change, so that the difficulty of background identification of the laser label is increased, and the identification success rate is reduced.
Disclosure of Invention
In order to improve the identification success rate of the existing laser label, the invention provides a multi-dimensional coding method, a multi-dimensional coding system, a multi-dimensional decoding method and an anti-counterfeiting encryption mark.
In a first aspect, the present application provides a multidimensional coding method, which adopts the following technical scheme:
a multi-dimensional encoding method comprising the steps of:
s1: setting an anti-counterfeiting carrier; arranging a first anti-counterfeiting mark on the anti-counterfeiting carrier, wherein the first anti-counterfeiting mark comprises a plurality of anti-counterfeiting images which are randomly distributed, the postures and the positions of the anti-counterfeiting images are randomly formed, and the anti-counterfeiting images are correspondingly provided with mark images; the anti-counterfeiting imaging is provided with at least one anti-counterfeiting pattern block with different anisotropic properties, the mark imaging is provided with at least one mark pattern block, the anisotropic properties of the mark pattern block are different from those of the anti-counterfeiting pattern block, the number of the pattern blocks with different anisotropic properties on the mark imaging is not higher than that of the pattern blocks with different anisotropic properties on the anti-counterfeiting imaging, the mark pattern block is covered with at least one anti-counterfeiting pattern block, and the mark imaging corresponds to a mark code;
s2: shooting an anti-counterfeiting carrier, identifying the anti-counterfeiting imaging and the mark imaging, and generating an outline of the anti-counterfeiting imaging and an outline of the mark imaging;
s3: identifying the relative gesture between the anti-counterfeiting imaged contour and the marked imaged contour, and putting the relative gesture into a preset gesture template for matching;
s4: if the relative gesture is matched from the gesture template, adding the mark code of the mark image corresponding to the relative gesture into a preset code library; if the matching is not achieved, jumping to S1;
s5: encrypting the mark codes in the coding library according to a preset encryption algorithm to generate an encryption symbol;
s6: setting a second anti-counterfeiting mark associated to verification information, and generating an anti-counterfeiting code after associating the encryption symbol with the verification information, wherein the verification information points to the anti-counterfeiting code; and covering the second anti-counterfeiting mark on the first anti-counterfeiting mark, wherein the position of the second anti-counterfeiting mark is not overlapped with the mark image participating in encryption.
By the technical scheme, the first anti-counterfeiting is realized by using anti-counterfeiting imaging and mark imaging, the number of mark image blocks of the mark imaging is less than that of anti-counterfeiting image blocks of the mark imaging, so that the outline of the mark imaging is obvious, and the success rate of identifying the anti-counterfeiting image blocks is far higher than that of the mark image blocks; the anisotropic property of the anti-counterfeiting pattern block is different from that of the marking pattern block, so that a second anti-counterfeiting is realized; the imaging effects of the anti-counterfeiting image blocks and the mark image blocks at different angles can be identified to generate differences, so that the extraction of the anti-counterfeiting imaging and mark imaging outlines is facilitated, the mark imaging outline with a more obvious outline is identified through the check between the anti-counterfeiting imaging outline and the mark imaging outline, and the identification rate of the first anti-counterfeiting mark, namely the laser label, is improved; the mark code, the encryption symbol, the second anti-counterfeiting mark, the verification information and the anti-counterfeiting code on the anti-counterfeiting carrier realize the third anti-counterfeiting; the three anti-counterfeiting processes improve the anti-counterfeiting effect of the method.
Optionally, the encryption algorithm includes:
acquiring all the coding marks in the coding library;
if the number of the coding marks is smaller than the preset number of marks, using a preset complementing code to complement the number of the coding marks to the preset number of marks;
combining the coded mark and the completion code into an encrypted character.
Through the technical scheme, the number of the preset completion code completion coding marks enables the completion coding marks to participate in calculation, and the encryption effect of the method is improved.
Optionally, the step of generating an anti-counterfeit code after associating the cryptographic token with the verification information includes:
and calculating the selected number of the encryption symbol corresponding to the format in the verification information to obtain the anti-counterfeiting code.
By the technical scheme, the anti-counterfeiting code is generated after the encryption symbol and the verification information are related in data calculation, and the encryption effect of the method is further improved.
Optionally, at least one filling mark is randomly arranged beside the first anti-counterfeiting mark, an indication angle is arranged at the edge of the anti-counterfeiting image, and the posture of the filling mark corresponds to the posture of the indication angle.
By the technical scheme, the corresponding posture between the filling mark and the indicating angle is used as the third anti-counterfeiting mark, so that the anti-counterfeiting effect of the method is improved.
Optionally, micro-engraved marks are arranged between adjacent anti-counterfeiting pattern blocks, and the anti-counterfeiting pattern blocks are provided with the micro-engraved marks.
By the technical scheme, the micro-engraved mark and the micro-engraved mark further improve the anti-counterfeiting effect of the method.
In a second aspect, the present application provides a multidimensional coding system, which adopts the following technical solutions:
a multi-dimensional coding system comprising the following modules:
the first setting module is used for setting an anti-counterfeiting carrier; the anti-counterfeiting carrier is provided with a first anti-counterfeiting mark, the first anti-counterfeiting mark comprises a plurality of anti-counterfeiting images which are randomly distributed, the postures and the positions of the anti-counterfeiting images are randomly formed, and the anti-counterfeiting images are correspondingly provided with mark images; the anti-counterfeiting imaging is provided with at least one anti-counterfeiting pattern block with different anisotropic properties, the mark imaging is provided with at least one mark pattern block, the anisotropic properties of the mark pattern block are different from those of the anti-counterfeiting pattern block, the number of the pattern blocks with different anisotropic properties on the mark imaging is not higher than that of the pattern blocks with different anisotropic properties on the anti-counterfeiting imaging, the mark pattern block is covered with at least one anti-counterfeiting pattern block, and the mark imaging corresponds to a mark code;
the identification module is used for shooting the anti-counterfeiting carrier, identifying the anti-counterfeiting image and the mark image and generating the outline of the anti-counterfeiting image and the outline of the mark image;
the matching module is used for identifying the relative gesture between the anti-counterfeiting imaged contour and the marked imaged contour, putting the relative gesture into a preset gesture template for matching, and outputting a matching result;
the coding module is in data connection with the matching module and is used for adding the mark codes of the mark imaging corresponding to the relative gesture into a preset coding library when the matching module is matched with the relative gesture from the gesture template; if the matching is not successful, jumping to an anti-counterfeiting setting module;
the encryption module is in data connection with the coding module and is used for encrypting the mark codes in the coding library according to a preset encryption algorithm to generate an encryption symbol; and the number of the first and second groups,
the second setting module is in data connection with the encryption module and is used for setting a second anti-counterfeiting mark associated with verification information, an anti-counterfeiting code is generated after the encryption symbol and the verification information are associated, and the verification information points to the anti-counterfeiting code; and covering the second anti-counterfeiting mark on the first anti-counterfeiting mark, wherein the position of the second anti-counterfeiting mark is not overlapped with the mark image participating in encryption.
Through the technical scheme, the first setting module realizes two anti-counterfeiting, the success rate of the identification module for identifying the anti-counterfeiting image blocks is far higher than that of the marked image blocks, the extraction of the anti-counterfeiting imaging and the outline of the marked imaging are facilitated, and the identification rate of the first anti-counterfeiting mark is improved; the encoding module, the encryption module and the second setting module realize the third anti-counterfeiting; the three anti-counterfeiting processes improve the anti-counterfeiting effect of the method.
Optionally, the encryption module includes:
the acquisition unit is used for acquiring all the coding marks in the coding library; and the number of the first and second groups,
the code complementing unit is in data connection with the acquiring unit and is used for complementing the number of the coding marks to a preset number of marks by using a preset complementing code when the number of the coding marks is smaller than the preset number of marks;
and the merging unit is in data connection with the complementing unit and is used for merging the coding mark and the complementing code into an encryption symbol.
Through the technical scheme, the number of the complemented coding marks of the complementing unit enables the complemented coding marks to participate in calculation, and the encryption effect of the method is improved.
Optionally, the second setting module includes:
and the anti-counterfeiting code calculation unit is used for calculating the selected number corresponding to the format in the encrypted character and the verification information to obtain the anti-counterfeiting code.
Through the technical scheme, the anti-counterfeiting code calculation unit performs data calculation association on the encryption symbol and the verification information to obtain the anti-counterfeiting code, so that the encryption effect of the method is further improved.
In a third aspect, the present application provides a decoding method, which adopts the following technical solutions:
a decoding method comprising the steps of:
acquiring an anti-counterfeiting carrier image, wherein the anti-counterfeiting carrier comprises a first anti-counterfeiting mark and a second anti-counterfeiting mark with verification information, and the first anti-counterfeiting mark comprises anti-counterfeiting imaging and mark imaging; identifying the security imaging imaged with the indicia and generating an outline of the security imaging and an outline of the indicia imaged;
identifying the relative gesture between the anti-counterfeiting imaged outline and the marked imaged outline, and putting the relative gesture into a preset or obtained gesture template for matching;
if the relative gesture is matched from the gesture template, adding the mark code of the mark image corresponding to the relative gesture into a preset code library;
encrypting the mark codes in the code library according to a preset encryption algorithm, and then generating an encryption symbol;
reading the verification information, acquiring an anti-counterfeiting code pointed by the verification information, and calculating according to the verification information and the anti-counterfeiting code by using a preset decoding algorithm to obtain a decoding symbol; and the number of the first and second groups,
and comparing the decoded symbol with the encrypted symbol, wherein if the decoded symbol is the same as the encrypted symbol, the decoding is successful, and if the decoded symbol is not the same as the encrypted symbol, the decoding is failed or the anti-counterfeiting carrier is false.
Through the technical scheme, the three anti-counterfeiting codes are decoded step by step, and the success rate of identifying the anti-counterfeiting carrier is improved.
In a fourth aspect, the present application provides an anti-counterfeit encryption identifier, which adopts the following technical scheme:
an anti-counterfeiting encryption mark comprises an anti-counterfeiting carrier, wherein a first anti-counterfeiting mark is arranged on the anti-counterfeiting carrier, the first anti-counterfeiting mark comprises a plurality of anti-counterfeiting images which are randomly distributed, the postures and the positions of the anti-counterfeiting images are randomly formed, and the anti-counterfeiting images are correspondingly provided with mark images;
the anti-counterfeiting imaging is provided with at least one anti-counterfeiting pattern block with different anisotropic properties, the mark imaging is provided with at least one mark pattern block, the anisotropic properties of the mark pattern block are different from those of the anti-counterfeiting pattern block, the number of the pattern blocks with different anisotropic properties on the mark imaging is not higher than that of the pattern blocks with different anisotropic properties on the anti-counterfeiting imaging, the mark pattern block is covered with at least one anti-counterfeiting pattern block, and the mark imaging corresponds to a mark code;
and a second anti-counterfeiting mark related to verification information is arranged on the first anti-counterfeiting mark in a covering manner, and the position of the second anti-counterfeiting mark is not overlapped with the mark image participating in encryption.
Through the technical scheme, three anti-counterfeiting ways are realized on the anti-counterfeiting encryption mark, wherein the anti-counterfeiting imaging and the mark imaging are used as the first anti-counterfeiting way to be beneficial to recognition, and the anti-counterfeiting effect is greatly improved after the three anti-counterfeiting ways are combined.
In conclusion, the beneficial effects of the invention are as follows:
1. the anti-counterfeiting imaging and the mark imaging are used for realizing the first anti-counterfeiting, the number of mark image blocks of the mark imaging is less than that of the anti-counterfeiting image blocks of the mark imaging, so that the outline of the mark imaging is obvious, and the success rate of identifying the anti-counterfeiting image blocks is far higher than that of the mark image blocks;
2. the anisotropic property of the identification anti-counterfeiting pattern block is different from that of the marking pattern block, so that the identification rate of the marking pattern block is improved, and the second anti-counterfeiting is realized;
3. the mark code, the encryption symbol, the second anti-counterfeiting mark, the verification information and the anti-counterfeiting code on the anti-counterfeiting carrier realize the third anti-counterfeiting; the three anti-counterfeiting processes improve the anti-counterfeiting effect of the method.
Drawings
Fig. 1 is a schematic structural diagram of a laser template according to an embodiment of the present application.
Fig. 2 is a schematic structural diagram of the cut anti-counterfeit carrier in the first embodiment of the present application.
Fig. 3 is a schematic structural diagram of an anti-counterfeiting encryption mark, that is, a laser label in an embodiment of the present application.
Fig. 4 is an enlarged schematic view of a portion a in fig. 3.
Fig. 5 is an enlarged schematic view of a portion B in fig. 4.
Fig. 6 is a flowchart illustrating a multidimensional coding method according to an embodiment of the present application.
Fig. 7 is a system block diagram of a multidimensional coding system in the second embodiment of the present application.
Fig. 8 is a flowchart illustrating a decoding method according to a third embodiment of the present application.
Reference numerals: 0. laser template; 1. an anti-counterfeiting carrier; 2. a first security feature; 3. anti-counterfeiting imaging; 31. an anti-counterfeiting pattern block; 32. indicating an angle; 4. imaging the mark; 41. marking the image blocks; 5. filling the mark; 6. carrying out micro-carving marking; 7. carrying out micro-carving marking; 8. a second security feature; 900. a first setting module; 910. an identification module; 920. a matching module; 930. an encoding module; 940. an encryption module; 941. an acquisition unit; 942. a complement unit; 943. a merging unit; 950. a second setting module; 951. and an anti-counterfeiting code calculation unit.
Detailed Description
The invention will now be described in more detail with reference to the accompanying figures 1-8 and examples.
The first embodiment is as follows:
a multi-dimensional encoding method comprising the steps of:
s1: an anti-counterfeiting carrier 1 is arranged. As shown in fig. 1 and 2, the anti-counterfeit carrier 1 is a laser label, a laser pattern on the laser label is formed by combining and printing a plurality of laser templates 0, and the plurality of laser templates 0 may be the same and may be all selected as equilateral hexagons for convenient arrangement. The laser template 0 is used for printing laser, relief and micro-carving patterns on the anti-counterfeiting carrier 1. In other embodiments, the plurality of laser modules 0 may also be different, different laser labels can be printed after the plurality of laser templates 0 are combined according to different arrangement modes, and in the printing process, random arrangement of the patterns on the laser labels can be realized by randomly arranging or randomly placing the positions of the laser templates 0. The laser templates 0 are arranged to print the anti-counterfeiting carrier 1, the required label shape can be cut on the scroll-shaped anti-counterfeiting carrier 1 subsequently, and then the cut laser label is subjected to subsequent printing processing. In other embodiments, the random arrangement of the patterns on the laser label can be realized by randomly changing the edge overlapping degree of the laser patterns printed on the laser label at one time without changing the arranged laser templates 0.
As shown in fig. 3, a first anti-counterfeit mark 2 is disposed on an anti-counterfeit carrier 1, the first anti-counterfeit mark 2 is a plurality of patterns on a laser label, the patterns may be different from each other, and the patterns may be diamonds, shape blocks, symbols or other patterns. In the present embodiment, as shown in fig. 4, the pattern is a plurality of diamonds, and the diamonds can be formed by splicing a plurality of polygons, such as triangles and quadrangles. The first anti-counterfeiting mark 2 comprises a plurality of anti-counterfeiting images 3 which are randomly distributed, the anti-counterfeiting images 3 are patterns such as diamonds, shape blocks or symbols, and the postures and the positions of the anti-counterfeiting images 3 are randomly formed. The anti-counterfeiting imaging 3 is correspondingly provided with a mark imaging 4, the mark imaging 4 is a relief pattern arranged on a pattern, the relief pattern can be figures, shape blocks or symbols and other patterns, the mark imaging 4 can be arranged in the middle of the anti-counterfeiting imaging 3, the relief pattern is a digital pattern in the embodiment, the pattern comprises ten kinds of diamonds, each kind of diamond is correspondingly provided with a digital pattern, the number is 0-9, and the digital pattern is smaller than the diamond pattern and is positioned in the middle of the diamond pattern. In other embodiments, a portion of the indicia image 4 may overlie the security image 3. In this embodiment, a laser label is provided with a plurality of diamond patterns and a plurality of digital patterns.
The anti-counterfeiting imaging 3 is provided with at least one anti-counterfeiting picture block 31 with different anisotropic properties, and the anti-counterfeiting picture block 31 can be a polygon which is spliced into a diamond pattern; the marking image 4 is provided with at least one marking segment 41, the shape of the marking segment 41 being a digital shape or a part of a digital shape, the anisotropic properties of the marking segment 41 being different from the anisotropic properties of the security segment 31. The anisotropic property is that the imaging effect is different when the light positions are different at the same observation position; in other embodiments, the anisotropic property is that the imaging effect is different at different viewing positions and the light positions are the same; or, when the observation position is different and the light position is different, the imaging effect is different. The number of the image blocks with different anisotropic properties on the mark image 4 is not higher than that of the image blocks with different anisotropic properties on the anti-counterfeiting image 3, in the embodiment, the number of the image blocks on the mark image 4 is one, the number of the image blocks on the anti-counterfeiting image 3 is more than or equal to two, the mark image block 41 is covered with at least one anti-counterfeiting image block 31, the mark image 4 corresponds to a mark code, and the mark code is digital content.
As shown in fig. 5, gaps are formed between the anti-counterfeit pattern blocks 31, micro-engraved marks 6 are disposed in the gaps, and the micro-engraved marks 6 may be names, characters, or figures that are preset. The anti-counterfeiting pattern block 31 is provided with the micro-engraved mark 7, the micro-engraved mark 7 can be a trademark, a name character or a figure, and the like, and the micro-engraved mark 6 and the micro-engraved mark 7 improve the anti-counterfeiting effect of the method in the embodiment.
At least one filling mark 5 is randomly arranged beside the first anti-counterfeiting mark 2, the filling mark 5 can be a number, a letter or a symbol and other images arranged by a plurality of micro-engravings, the filling mark 5 is arranged around the first anti-counterfeiting mark 2 and fills the space between the adjacent first anti-counterfeiting marks 2, and part of the filling mark 5 is covered by the first anti-counterfeiting mark 2. The edge of the anti-counterfeiting imaging 3 is provided with an indication angle 32, and the filling mark 5 is used as another anti-counterfeiting mark after corresponding to the indication angle 32, so that the anti-counterfeiting effect of the method in the embodiment is improved. In this embodiment, the filling marks 5 are various and letters, and the tip of the diamond pattern covers one letter, and the relative posture imaging of the diamond tip and the letter can improve the anti-counterfeiting effect of the method in this embodiment. In other embodiments, the diamond tip does not cover the letter but points to a letter, and imaging the relative pose of the diamond tip and the letter also improves the anti-counterfeiting effect of the method of this example.
As shown in fig. 4 and 6, S2: and shooting the anti-counterfeiting carrier 1, identifying the anti-counterfeiting imaging 3 and the mark imaging 4, and generating the outline of the anti-counterfeiting imaging 3 and the outline of the mark imaging 4. The method comprises the steps of shooting an anti-counterfeiting carrier 1 by using a camera to obtain an image of the anti-counterfeiting carrier 1, identifying an anti-counterfeiting image 3 and a mark image 4 by using image identification software, and extracting the outline of the anti-counterfeiting image 3 and the outline of the mark image 4, wherein the identification method can be a template matching method or an artificial intelligence algorithm adopting a convolutional neural network.
S3: and identifying the relative gesture between the outline of the anti-counterfeiting imaging 3 and the outline of the mark imaging 4, and putting the relative gesture into a preset gesture template for matching. And storing the printed image of the laser template 0 after printing, and matching the identified relative posture on the stored image of the laser template 0, wherein the matching method can be a template matching method or an artificial intelligence algorithm adopting a convolutional neural network.
As shown in fig. 3 and 6, S4: if the relative posture is matched from the posture template, adding the mark code of the mark imaging 4 corresponding to the relative posture into a preset code library; if no match is found, the process goes to S1. If it can be matched, it means that the laser label has not been faulty, in this embodiment, the laser label has four diamond patterns and four numbers identified, which are 1029. The labels are arranged in order from left to right from top to bottom, i.e., 1 in the top left corner, 0 in the bottom left corner, 2 in the bottom right corner, and 9 in the top right corner, with four coded labels, merged at 1029.
S5: and encrypting the mark codes in the coding library according to a preset encryption algorithm to generate an encryption symbol. The encryption algorithm comprises the following steps: and acquiring all coding marks in the coding library. And if the number of the coding marks is less than the preset number of marks, using the preset complementing code to complement the number of the coding marks to the preset number of marks. The coded mark and the complementing code are combined into an encryption symbol. In this embodiment, the number of the preset marks is four, so the number of the marks 1029 meets the condition, and completion is not required. In other embodiments, a laser label with three diamond patterns and three numbers identified is 132. Arranged in order from left to right, from top to bottom along the label, i.e., 1 in the top left corner, 3 in the bottom left corner, and 2 in the bottom right corner, then the completion is merged using 8 to 1328. The 8 is a preset completion code, and other numbers, letters or symbols can also be adopted for the completion code. The number of the preset completion code completion coding marks enables the completion coding marks to participate in calculation, and the encryption effect of the method is improved.
S6: and setting a second anti-counterfeiting mark 8 associated to the verification information, generating an anti-counterfeiting code after associating the encryption symbol with the verification information, wherein the verification information points to the anti-counterfeiting code. The second security feature 8 is applied to the first security feature 2, the second security feature 8 being positioned so as not to overlap the indicia image 4 participating in the encryption. The second anti-counterfeiting mark 8 is a printed two-dimensional code, the verification information is a string code pointed by the scanned two-dimensional code, the string code is a string of label digital ID, and the anti-counterfeiting code is obtained by calculating the encryption symbol and the selection number corresponding to the format in the verification information. The selection number can be a number pre-selected from a plurality of positions, or a number selected according to the position after calculating the position according to a set algorithm. In this embodiment, for example, the number of the pre-selected position is used as an example, the serial code is 46876546249146418, the last four bits 6418 and 1328 are added to obtain 7746, and the anti-counterfeiting code is 7746, so that the encryption effect of the method is further improved. Other algorithms such as subtraction, multiplication, etc. may be used for the correlation algorithm.
The beneficial effect of this embodiment does: the anti-counterfeiting imaging 3 and the marking imaging 4 are used for realizing first anti-counterfeiting, and a plurality of groups of patterns corresponding to each other are arranged on the laser label, if the anti-counterfeiting imaging 3 and the marking imaging 4 are in a group, the marking pattern block 41 and the anti-counterfeiting pattern block 31 are in a group, the anti-counterfeiting imaging 3 and the filling mark 5 are in a group, and the micro-engraving mark 6 and the micro-engraving mark 7 are in a group, the identification effect can be improved, and the anti-counterfeiting performance can be improved. The anti-counterfeiting imaging 3 has more outstanding identification degree under the contrast of the anti-counterfeiting imaging 3, the identification difficulty is reduced, the anisotropic property of the identification anti-counterfeiting image block 31 is different from that of the mark image block 41, and the anti-counterfeiting performance is further improved.
Example two:
a multi-dimensional coding system, as shown in fig. 4 and 7, includes the following modules:
a first setting module 900, configured to set an anti-counterfeit carrier 1; the anti-counterfeiting carrier 1 is provided with a first anti-counterfeiting mark 2, the first anti-counterfeiting mark 2 comprises a plurality of anti-counterfeiting images 3 which are randomly distributed, the postures and the positions of the anti-counterfeiting images 3 are randomly formed, and the anti-counterfeiting images 3 are correspondingly provided with mark images 4; the anti-counterfeiting imaging 3 is provided with at least one anti-counterfeiting image block 31 with different anisotropic properties, the marker imaging 4 is provided with at least one marker image block 41, the anisotropic properties of the marker image block 41 are different from those of the anti-counterfeiting image block 31, the number of the image blocks with different anisotropic properties on the marker imaging 4 is not higher than that of the image blocks with different anisotropic properties on the anti-counterfeiting imaging 3, the marker image block 41 is covered with at least one anti-counterfeiting image block 31, and the marker imaging 4 is correspondingly provided with a marker code.
The identification module 910 is configured to photograph the anti-counterfeit carrier 1, identify the anti-counterfeit image 3 and the mark image 4, and generate an outline of the anti-counterfeit image 3 and an outline of the mark image 4.
And the matching module 920 is configured to identify a relative posture between the contour of the mark anti-counterfeiting imaging 3 and the contour of the mark imaging 4, match the relative posture in a preset posture template, and output a matching result.
The encoding module 930 is in data connection with the matching module 920, and is configured to add the mark code of the mark image 4 corresponding to the relative gesture into a preset encoding library when the matching module 920 matches the relative gesture from the gesture template; if not, jump to the first setup module 900.
And the encryption module 940 is in data connection with the encoding module 930 and is configured to encrypt the mark code in the encoding library according to a preset encryption algorithm to generate an encryption symbol. The encryption module 940 includes: an obtaining unit 941 is configured to obtain all the encoding flags in the encoding library. The padding unit 942 is in data connection with the obtaining unit 941, and is configured to pad the number of the coding marks to a preset number of marks by using a preset padding code when the number of the coding marks is smaller than the preset number of marks. A merging unit 943 is in data connection with the complement unit 942 for merging the coding flag and the complement into an encryption symbol. The number of the complemented coding marks is complemented by the complementing unit 942, so that the complemented coding marks participate in the calculation, and the encryption effect of the method is improved.
The second setting module 950 is in data connection with the encryption module 940 and is used for setting a second anti-counterfeiting mark 8 associated with the verification information, the anti-counterfeiting code is generated after the encryption symbol and the verification information are associated, and the verification information points to the anti-counterfeiting code; the second security feature 8 is applied to the first security feature 2, the second security feature 8 being positioned so as not to overlap the indicia image 4 participating in the encryption. The second setting module 950 includes: the anti-counterfeit code calculation unit 951 is used for calculating the selection number corresponding to the format in the encrypted character and the verification information to obtain the anti-counterfeit code. The anti-counterfeiting code calculation unit 951 associates the encryption symbol with the verification information in data calculation to obtain the anti-counterfeiting code, so that the encryption effect of the method is further improved.
The first setting module 900 and the second setting module 950 are devices having a printing function, and the identifying module 910, the matching module 920, the encoding module 930, the encrypting module 940 and the second setting module 950 may employ an intelligent terminal having a computing function and a data communication function, and the intelligent terminal may employ a single chip microcomputer, a PLC or an industrial computer having a preset program stored therein.
The beneficial effect of this embodiment does: the first setting module 900 realizes two anti-counterfeiting processes, and the success rate of the identification module 910 for identifying the anti-counterfeiting image block 31 is much higher than that of the mark image block 41, which is beneficial to extracting the outlines of the anti-counterfeiting image 3 and the mark image 4, and improves the identification rate of the first anti-counterfeiting mark 2. The encoding module 930, the encryption module 940 and the second setting module 950 realize a third anti-counterfeiting; the three anti-counterfeiting processes improve the anti-counterfeiting effect of the method.
Example three:
a decoding method, as shown in fig. 4 and 8, includes the following steps:
the method comprises the steps of obtaining an image of an anti-counterfeiting carrier 1, wherein the anti-counterfeiting carrier 1 comprises a first anti-counterfeiting mark 2 and a second anti-counterfeiting mark 8 with verification information, and the first anti-counterfeiting mark 2 comprises an anti-counterfeiting image 3 and a mark image 4. The security image 3 is identified with the indicia image 4 and the outline of the security image 3 and the outline of the indicia image 4 are generated.
And identifying the relative gesture between the outline of the mark anti-counterfeiting imaging 3 and the outline of the mark imaging 4, and putting the relative gesture into a preset or obtained gesture template for matching.
And if the relative posture is matched from the posture template, adding the mark code of the mark imaging 4 corresponding to the relative posture into a preset code library.
And encrypting the mark codes in the code library according to a preset encryption algorithm, and then generating an encryption symbol according to the mark codes.
And reading the verification information, acquiring the anti-counterfeiting code pointed by the verification information, and calculating by using a preset decoding algorithm according to the verification information and the anti-counterfeiting code to obtain a decoding symbol.
And comparing the decoded symbol with the encrypted symbol, wherein if the decoded symbol is the same as the encrypted symbol, the decoding is successful, and if the decoded symbol is not the same as the encrypted symbol, the decoding is failed or the anti-counterfeiting carrier 1 is false.
Example four:
the utility model provides an anti-fake encryption sign, as shown in fig. 3 and 4, is provided with first anti-fake label 2 including setting up anti-fake carrier 1 on the anti-fake carrier 1, and first anti-fake label 2 includes multiple random distribution's anti-fake formation of image 3, and anti-fake formation of image 3's gesture and position are all random shaping, correspond on the anti-fake formation of image 3 to be provided with mark formation of image 4.
The anti-counterfeiting imaging 3 is provided with at least one anti-counterfeiting image block 31 with different anisotropic properties, the marker imaging 4 is provided with at least one marker image block 41, the anisotropic properties of the marker image block 41 are different from those of the anti-counterfeiting image block 31, the number of the image blocks with different anisotropic properties on the marker imaging 4 is not higher than that of the image blocks with different anisotropic properties on the anti-counterfeiting imaging 3, the marker image block 41 is covered with at least one anti-counterfeiting image block 31, and the marker imaging 4 is correspondingly provided with a marker code.
The first anti-counterfeiting mark 2 is covered with a second anti-counterfeiting mark 8 related to the verification information, and the position of the second anti-counterfeiting mark 8 is not overlapped with the mark image 4 participating in encryption.
The above description is only a preferred embodiment of the present invention, and the protection scope of the present invention is not limited to the above embodiments, and all technical solutions belonging to the idea of the present invention belong to the protection scope of the present invention. It should be noted that modifications and embellishments within the scope of the invention may occur to those skilled in the art without departing from the principle of the invention, and are considered to be within the scope of the invention.