CN105426944A - Square lattice anti-counterfeit label group, and method and system for reading square lattice anti-counterfeit label group - Google Patents
Square lattice anti-counterfeit label group, and method and system for reading square lattice anti-counterfeit label group Download PDFInfo
- Publication number
- CN105426944A CN105426944A CN201510789503.6A CN201510789503A CN105426944A CN 105426944 A CN105426944 A CN 105426944A CN 201510789503 A CN201510789503 A CN 201510789503A CN 105426944 A CN105426944 A CN 105426944A
- Authority
- CN
- China
- Prior art keywords
- code
- point
- image
- dot matrix
- cell
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06K—GRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
- G06K19/00—Record carriers for use with machines and with at least a part designed to carry digital markings
- G06K19/06—Record carriers for use with machines and with at least a part designed to carry digital markings characterised by the kind of the digital marking, e.g. shape, nature, code
- G06K19/06009—Record carriers for use with machines and with at least a part designed to carry digital markings characterised by the kind of the digital marking, e.g. shape, nature, code with optically detectable marking
- G06K19/06037—Record carriers for use with machines and with at least a part designed to carry digital markings characterised by the kind of the digital marking, e.g. shape, nature, code with optically detectable marking multi-dimensional coding
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06K—GRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
- G06K19/00—Record carriers for use with machines and with at least a part designed to carry digital markings
- G06K19/06—Record carriers for use with machines and with at least a part designed to carry digital markings characterised by the kind of the digital marking, e.g. shape, nature, code
- G06K19/06009—Record carriers for use with machines and with at least a part designed to carry digital markings characterised by the kind of the digital marking, e.g. shape, nature, code with optically detectable marking
- G06K19/06046—Constructional details
- G06K19/06093—Constructional details the marking being constructed out of a plurality of similar markings, e.g. a plurality of barcodes randomly oriented on an object
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V20/00—Scenes; Scene-specific elements
- G06V20/80—Recognising image objects characterised by unique random patterns
Abstract
The invention provides a square lattice anti-counterfeit label group, which is composed of a plurality of lattice anti-counterfeit figures arranged in order. A method for reading the square lattice anti-counterfeit label group comprises the following steps: performing gray level analysis on a label group image, and obtaining a corresponding code point group image; acquiring a dot pitch average value; generating the code point group image with a cell according to the dot pitch average value; dividing a plurality of lattice anti-counterfeit images with cells with the same dimension according to the dot pitch average value; determining a position of a locating shaft according to the dot pitch average value; and obtaining practical code value data of the square lattice anti-counterfeit label group by analyzing. A system for reading the square lattice anti-counterfeit label group comprises a label group image acquisition device, a gray value analyzer, a dot pitch average value acquisition device, a code point cell drawing device, a lattice anti-counterfeit image dividing device, a locating shaft position determining device and a practical code value data calculating device. The square lattice anti-counterfeit label group, and the method and system for reading the square lattice anti-counterfeit label group provided by the invention can obtain the authenticity information of the anti-counterfeit label by only adopting a smartphone or a tablet computer, and have the advantages of being convenient and fast.
Description
Technical field
The present invention relates to a kind of antifalsification label, especially a kind of square dot matrix antifalsification label group and the method and system that it is distinguished.
Background technology
At present, existing based in the antifalsification label of dot matrix image, be all by special dot matrix recognizer just can pick out with corresponding true and false information.But, due to special dot matrix recognizer price costly and function singleness, therefore, the product businessman being generally only printed with dot matrix image antifalsification label just can hold, and common consumer generally can not purchase dot matrix recognizer.Due to product businessman place limited amount distinguished to the authenticity of products that antifalsification label is set up and comparatively disperse, therefore, causing inconvenience for consumer carries out the true and false to antifalsification label.
Summary of the invention
For the weak point existed in the problems referred to above, provided by the inventionly a kind ofly adopt the square dot matrix antifalsification label group that non-dedicated recognizer just can get the true and false information corresponding with dot matrix antifalsification label group easily and efficiently and the method and system that it is distinguished.
For achieving the above object, the invention provides a kind of square dot matrix antifalsification label group, arranged in order by the false proof figure of multiple dot matrix and form, the false proof figure of described dot matrix comprise tag template, with implant code-point part thereon, described code-point part comprises locating shaft and data point part, the false proof figure of multiple described dot matrix is the measure-alike and false proof figure of independent completion, the false proof figure of dot matrix described in any one is after resolving to the code value of square dot matrix antifalsification label group with the code value obtained.
Above-mentioned square dot matrix antifalsification label group, wherein, in described dot matrix anti-counterfeiting image, described data point part comprises function digit part, data bit portion, School Affairs part and primitive character and extracts status sections;
Described function digit part mainly comprises for version number's code-point of presentation code version number, for representing the cryptographic algorithm numbering code-point that cryptographic algorithm is numbered;
Described tag template divides and has several for implanting the blank form point position of code-point.
The invention provides a kind of method that square shaped dot matrix antifalsification label group carries out distinguishing, comprise the following steps:
Step 1, adopt non-recognizer to obtain the set of tags image of current square dot matrix antifalsification label group, and gray scale parsing is carried out to this set of tags image, to obtain the code-point group image of set of tags image;
Step 2, obtain the some anomaly average of code-point group image after gray scale is resolved;
Step 3, on code-point group image, draw code-point cell according to an anomaly average, to generate the code-point group image with cell;
Step 4, according to an anomaly average with the code-point group image of cell marking off the identical dot matrix anti-counterfeiting image with cell of multiple dimension;
Step 5, according to the some anomaly average that gets, determine the position of five anchor points included by locating shaft in the dot matrix anti-counterfeiting image of cell;
Step 6, basis, with the dot matrix anti-counterfeiting image of cell, are resolved the code-point in dot matrix anti-counterfeiting image, to obtain the actual code Value Data of square dot matrix antifalsification label group.
The method that the carrying out of above-mentioned square shaped dot matrix antifalsification label group distinguishes, wherein, in step 1, comprises following sub-step:
Step 11, non-recognizer is adopted to take current dot matrix antifalsification label group, to obtain set of tags image corresponding thereto;
Step 12, employing image partition method mark off the cell of multiple 16x16 pixel on set of tags image;
Step 13, employing following formula carry out gray proces to each cell, respectively to get the gray-scale value of each cell, and based on multiple gray-scale value cell to obtain gray-scale value cell matrix:
V=B*0.11+G*0.59+R*0.30;
Step 14, in gray-scale value matrix, to comparing the gray-scale value of cell in this row maybe these row line by line or by column, to obtain the gray-scale value cell matrix that gray-scale value is less than 200;
Step 15, to be less than according to gray-scale value 200 gray-scale value cell matrix, to obtain the code-point group image of set of tags image.
The method that the carrying out of above-mentioned square shaped dot matrix antifalsification label group distinguishes, wherein, in step 2, comprises following sub-step:
Step 21, utilize following formula with obtain Chosen Point and around it point between distance;
D*D=(x1-x2)*(x1-x2)+(y1-y2)*(y1-y2)
Wherein, Chosen Point is some A, and its coordinate is (x1, y1), and around put as some B, its coordinate is (x2, y2), and Chosen Point and the distance of the point around between point are D;
Step 22, to obtained institute a little apart from adding up, and after the mean value calculating a distance, to obtain the some anomaly average in code-point group image between whole code-point.
The method that the carrying out of above-mentioned square shaped dot matrix antifalsification label group distinguishes, wherein, in step 3, comprises following content:
On code-point group image, the tag unit grid template corresponding with the position of code-point is marked off with the point distance of code-point according to the scope of code-point group image, in tag template, the point bit location lattice including code-point are defined as 1, and the some bit location lattice not comprising code-point are defined as 0.
The method that the carrying out of above-mentioned square shaped dot matrix antifalsification label group distinguishes, wherein, in steps of 5, comprises following content:
According to the point in locating shaft between five anchor points apart from condition, screen in dot matrix anti-counterfeiting image line by line and/or by column, to determine the position of locating shaft in dot matrix anti-counterfeiting image.
The method that the carrying out of above-mentioned square shaped dot matrix antifalsification label group distinguishes, wherein, in step 6, comprises following sub-step:
Step 61, the first trip code-point of dot matrix anti-counterfeiting image to be resolved, with the cryptographic algorithm numbering of the version of code number and dot matrix anti-counterfeiting image of determining dot matrix anti-counterfeiting image;
Step 62, call and number corresponding decipherment algorithm with cryptographic algorithm, to calculate data decryption;
Step 63, according to the data decryption drawn in step 62 to obtain the School Affairs data of this data decryption;
Step 64, distinguish in data decryption whether comprise the character identical with School Affairs data, if distinguish, result is yes, then again calculate data decryption, to obtain the actual code Value Data corresponding with this square dot battle array antifalsification label.
The present invention also provides a kind of square shaped dot matrix antifalsification label group to carry out the system distinguished, and comprising: set of tags image acquiring device, gray-scale value resolver, some anomaly average acquisition device, code-point cell drawing apparatus, dot matrix anti-counterfeiting image divide device, locating shaft position determining means and actual code Value Data calculation element;
Set of tags image acquiring device, for the set of tags image adopting non-recognizer equipment to obtain current square dot matrix antifalsification label group;
Gray-scale value resolver, for carrying out gray scale parsing to the set of tags image got, to obtain the code-point group image of set of tags image;
Point anomaly average acquisition device, for obtaining the some anomaly average of the code-point group image after gray scale is resolved;
Code-point cell drawing apparatus, for drawing code-point cell according to an anomaly average on code-point group image, to generate the code-point group image with cell;
Dot matrix anti-counterfeiting image divides device, for according to an anomaly average with the code-point group image of cell marking off the identical dot matrix anti-counterfeiting image with cell of multiple dimension;
Locating shaft position determining means, for according to the some anomaly average got, to determine five anchor points included in locating shaft in the dot matrix anti-counterfeiting image with cell;
Actual code Value Data calculation element, for the image according to fixed code-point part, resolves the code-point in image, to obtain corresponding actual code Value Data.
The above-mentioned system that the carrying out of dot matrix antifalsification label group is distinguished, wherein, described non-recognizer is smart mobile phone or panel computer;
Described gray-scale value resolver, described some anomaly average acquisition device, described code-point cell drawing apparatus, the division of described dot matrix anti-counterfeiting image device, described locating shaft position determining means and described actual code Value Data calculation element are all be built in smart mobile phone or panel computer.
Compared with prior art, the present invention has the following advantages:
The present invention only need adopt smart mobile phone or panel computer just can obtain the true and false information of dot matrix antifalsification label group, compared with the special recognizer of existing employing, has more standby advantage easily and efficiently.
Accompanying drawing explanation
Fig. 1 is the structural drawing of square dot matrix antifalsification label group in the present invention;
Fig. 2 is the structural diagrams of each dot matrix anti-counterfeiting image in the present invention;
Fig. 3 is the process flow diagram of method part in the present invention;
Fig. 4 is the current square dot matrix antifalsification label group image got by non-recognizer;
Fig. 5 is the diagram after dividing set of tags image;
Fig. 6 is the diagram of the gray-scale value cell matrix obtained after carrying out gray-scale value parsing;
Fig. 7 is the gray-scale value cell that the gray-scale value obtained after screening is less than 200;
Fig. 8 is the diagram of the code-point group image got;
Fig. 9 is the diagram of Chosen Point and the some distance around between point;
Figure 10 is the diagram determining four dot matrix anti-counterfeiting image positions in code-point group image;
Figure 11 is the diagram of some distance condition between five anchor points in locating shaft;
Figure 12 is the position diagram of locating shaft in dot matrix anti-counterfeiting image;
Figure 13 is the diagram calculated data decryption;
Figure 14 is the structured flowchart of components of system as directed in the present invention.
Embodiment
As shown in Figures 1 and 2, the invention provides a kind of square dot matrix antifalsification label group, arranged in order by the false proof figure of multiple dot matrix and form, the false proof figure of dot matrix comprise tag template, with implant code-point part thereon, code-point part comprises locating shaft and data point part, the false proof figure of multiple dot matrix is the measure-alike and false proof figure of independent completion, the false proof figure of any one dot matrix is after resolving to the code value of square dot matrix antifalsification label group with the code value obtained.
In dot matrix anti-counterfeiting image, data point part comprises function digit part, data bit portion, School Affairs part and primitive character and extracts status sections.
Function digit part mainly comprises for version number's code-point of presentation code version number, for representing the cryptographic algorithm numbering code-point that cryptographic algorithm is numbered.
Tag template divides and has several for implanting the blank form point position of code-point.
Wherein, dot matrix anti-counterfeiting image is square structure, and its minimum dimension is 4x4.
As shown in Figure 3, the invention provides a kind of method that square shaped dot matrix antifalsification label group carries out distinguishing, comprise the following steps:
Step 1, adopt non-recognizer to obtain the set of tags image of current square dot matrix antifalsification label group, and gray scale parsing is carried out to this set of tags image, to obtain the code-point group image of set of tags image.
In step 1, following sub-step is comprised:
Step 11, non-recognizer is adopted to take current dot matrix antifalsification label group, to obtain set of tags image corresponding thereto, as shown in Figure 4.
Wherein, non-recognizer is smart mobile phone or panel computer.
Step 12, employing image partition method mark off the cell of multiple 16x16 pixel on set of tags image, as shown in Figure 5.
Step 13, employing following formula carry out gray proces to each cell respectively, to get the gray-scale value of each cell, and based on multiple gray-scale value cell to obtain gray-scale value cell matrix, as shown in Figure 6:
V=B*0.11+G*0.59+R*0.30;
Step 14, in gray-scale value matrix, to comparing the gray-scale value of cell in this row maybe these row line by line or by column, to obtain the gray-scale value cell matrix that gray-scale value is less than 200, as shown in Figure 7;
Step 15, to be less than according to gray-scale value 200 gray-scale value cell matrix, to obtain the code-point group image of set of tags image, as shown in Figure 8.
In step 15, be less than in the gray-scale value cell matrix of 200 at gray-scale value, the gray-scale value in each gray-scale value cell is all represent a code-point, and therefore, the gray-scale value that multiple gray-scale value is less than 200 forms a code-point group image.
Step 2, obtain the some anomaly average of code-point group image after gray scale is resolved.
In step 2, following sub-step is comprised:
Step 21, utilize following formula with obtain Chosen Point and around it point between distance;
D*D=(x1-x2)*(x1-x2)+(y1-y2)*(y1-y2)
Wherein, Chosen Point is some A, and its coordinate is (x1, y1), and around put as some B, its coordinate is (x2, y2), and Chosen Point and the distance of the point around between point are D;
Step 22, to obtained institute a little apart from adding up, and after the mean value calculating a distance, to obtain the some anomaly average in code-point group image between whole code-point.
As shown in Figure 9, Chosen Point is A1, around it point be A2, A3, A4, A5 and A6, after the formulae discovery in step 21, obtain Chosen Point A1 and around put A2, A3, point between A4, A5 and A6 apart from being respectively 1.6,2.8,2.6,3.4 and 3.1.
By above-mentioned point apart from carrying out cumulative rear its mean value of calculating, to obtain last some anomaly average:
(1.6+2.8+2.6+2.7+3.1)/5=2.56。
Therefore, the some anomaly average of code-point group image is 2.56.
Step 3, on code-point group image, draw code-point cell according to an anomaly average, to generate the code-point group image with cell;
Wherein, in step 3, following content is comprised:
On code-point group image, the tag unit grid template corresponding with the position of code-point is marked off with the point distance of code-point according to the scope of code-point group image, in tag template, the point bit location lattice including code-point are defined as 1, and the some bit location lattice not comprising code-point are defined as 0.
Step 4, according to an anomaly average with the code-point group image of cell marking off the identical dot matrix anti-counterfeiting image with cell of multiple dimension.
Wherein, in step 4, following content is comprised:
Code-point group image with cell is scanned, after image analysis, to obtain in this code-point group image the often quantity of row cell and the quantity of every column unit lattice.Because this code-point group image is square structure, therefore, only need the often quantity of row cell and the quantity of every column unit lattice to be divided exactly by 2 respectively, just can obtain the intermediate point of often row cell and the intermediate point of every column unit lattice respectively.According to two intermediate points to divide a cross curve be made up of horizontal partition line and longitudinal cut-off rule on code-point group image.By cross curve, code-point group image is divided into four dot matrix anti-counterfeiting images with cell, as shown in Figure 10.
Step 5, according to the some anomaly average that gets, determine the position of five anchor points included by locating shaft in the dot matrix anti-counterfeiting image of cell.
Wherein, in steps of 5, following content is comprised:
According to the point in locating shaft between five anchor points apart from condition, screen in dot matrix anti-counterfeiting image line by line and/or by column, to determine the position of locating shaft in dot matrix anti-counterfeiting image.
Wherein, according to the point in locating shaft between five anchor points apart from condition, as shown in figure 11, screen in the dot matrix anti-counterfeiting image of cell line by line and/or by column, to determine the position of locating shaft in the dot matrix anti-counterfeiting image with cell.
Wherein, the point between five anchor points is 2 times of somes distances, 2 times of some distances, 1 times of some distance and 1 times of some distance apart from distance.
At the often row to the dot matrix anti-counterfeiting image with cell or often in row code-point, as long as be satisfied with the condition of above-mentioned point apart from distance, just can determine that these five anchor points are locating shaft, as shown in figure 12.
Step 6, basis, with the dot matrix anti-counterfeiting image of cell, are resolved the code-point in dot matrix anti-counterfeiting image, to obtain the actual code Value Data of square dot matrix antifalsification label group.
Wherein, in step 6, following sub-step is comprised:
Step 61, the first trip code-point of dot matrix anti-counterfeiting image to be resolved, with the cryptographic algorithm numbering of the version of code number and dot matrix anti-counterfeiting image of determining dot matrix anti-counterfeiting image.
Wherein, first some bit location lattice in the first trip code-point in dot matrix anti-counterfeiting image are scanned, and whether includes code-point to judge the version of code number of this dot matrix anti-counterfeiting image according in first some bit location lattice;
First some bit location lattice in first trip code-point in dot matrix anti-counterfeiting image are scanned, and whether includes code-point to judge the cryptographic algorithm in generative process of this dot matrix anti-counterfeiting image according in second and the 3rd some bit location lattice.
Wherein, the numbering of cryptographic algorithm adopts binary rules, is respectively 00,01,10 and 11.00,01,10 and 11 represents a kind of cryptographic algorithm corresponding thereto respectively.
Step 62, call and number corresponding decipherment algorithm with cryptographic algorithm, to calculate data decryption.
Wherein, after obtaining the cryptographic algorithm numbering of this dot matrix anti-counterfeiting image, by following formula to select corresponding decipherment algorithm.
After the selected decipherment algorithm corresponding with cryptographic algorithm, decipherment algorithm as shown in fig. 13 that, to calculate data decryption.
First get 4 data, according to map algorithm, the digital value of these 4 bit compositions all corresponds to a numerical value, and this numerical value is exactly actual numerical values corresponding to these 4 data.
Step 63, according to the data decryption drawn in step 62, utilize following formula to obtain the School Affairs data of this data decryption.
Step 64, distinguish in data decryption whether comprise the character identical with School Affairs data, if distinguish, result is yes, then again calculate data decryption, to obtain the actual code Value Data corresponding with this square dot battle array antifalsification label.
In step 64, following sub-step is also comprised:
The character string group of the alphabet comprised in step 641, acquisition data decryption;
Existing character scan method is adopted to scan to obtain corresponding character picture to several characters comprised in data decryption;
Existing character segmentation method is adopted to split each character in character picture, to generate the character picture unit identical with character quantity;
Existing character extracting method is adopted to extract each character picture unit, and after carrying out data conversion, to obtain the character string group corresponding with this character picture.
The character string group of the alphabet comprised in step 642, acquisition School Affairs data;
Existing character scan method is adopted to scan to obtain corresponding character picture to several characters comprised in School Affairs data;
Existing character segmentation method is adopted to split each character in character picture, to generate the character picture unit identical with character quantity;
Existing character extracting method is adopted to extract each character picture unit, and after carrying out data conversion, to obtain the character string group corresponding with this character picture.
Wherein, be identical data transfer device in step 641 and the data transfer device adopted in step 642.
Step 643, the character string group corresponding with School Affairs data and the character string group corresponding with data decryption to be distinguished, if with the character string group corresponding with School Affairs data including aligned identical order and identical numerical digit in the character string group that data decryption is corresponding, then perform step 644, again data decryption is calculated; If distinguish, result is no, then show that the content of dot matrix anti-counterfeiting image is wrong, then result is to the parsing of dot matrix anti-counterfeiting image.
Step 644, adopts following formula again to calculate data decryption, to obtain the actual code Value Data corresponding with dot matrix anti-counterfeiting image.
Computing formula is as follows:
As shown in figure 14, the present invention also provides a kind of square shaped dot matrix antifalsification label group to carry out the system distinguished, and comprising: set of tags image acquiring device, gray-scale value resolver, some anomaly average acquisition device, code-point cell drawing apparatus, dot matrix anti-counterfeiting image divide device, locating shaft position determining means and actual code Value Data calculation element.
Wherein, non-recognizer is smart mobile phone or panel computer.
It is all be built in smart mobile phone or panel computer that gray-scale value resolver, some anomaly average acquisition device, code-point cell drawing apparatus, dot matrix anti-counterfeiting image divide device, locating shaft position determining means and actual code Value Data calculation element.
Set of tags image acquiring device, for the set of tags image adopting non-recognizer equipment to obtain current square dot matrix antifalsification label group.
Wherein, the set of tags image of set of tags image acquiring device for adopting non-recognizer equipment to obtain current dot matrix antifalsification label group.
Gray-scale value resolver, for carrying out gray scale parsing to the set of tags image got, to obtain the code-point group image of set of tags image.
The content of operation of gray-scale value resolver is as follows:
Adopt image partition method on set of tags image, mark off the cell of multiple 16x16 pixel, as shown in Figure 5.
Following formula is adopted to carry out gray proces to each cell respectively, to get the gray-scale value of each cell, and based on multiple gray-scale value cell to obtain gray-scale value cell matrix, as shown in Figure 6:
V=B*0.11+G*0.59+R*0.30;
In gray-scale value matrix, to comparing the gray-scale value of cell in this row maybe these row line by line or by column, to obtain the gray-scale value cell matrix that gray-scale value is less than 200, as shown in Figure 7;
The gray-scale value cell matrix of 200 is less than, to obtain the code-point group image of set of tags image, as shown in Figure 8 according to gray-scale value.
Be less than in the gray-scale value cell matrix of 200 at gray-scale value, the gray-scale value in each gray-scale value cell is all represent a code-point, and therefore, the gray-scale value that multiple gray-scale value is less than 200 forms a code-point group image.
Point anomaly average acquisition device, for obtaining the some anomaly average of the code-point group image after gray scale is resolved.
The content of operation of some anomaly average acquisition device is as follows:
Utilize following formula with the distance obtaining Chosen Point and around it between point;
D*D=(x1-x2)*(x1-x2)+(y1-y2)*(y1-y2)
Wherein, Chosen Point is some A, and its coordinate is (x1, y1), and around put as some B, its coordinate is (x2, y2), and Chosen Point and the distance of the point around between point are D;
To obtained institute a little apart from adding up, and after the mean value calculating a distance, to obtain the some anomaly average in code-point group image between whole code-point.
As shown in Figure 9, Chosen Point is A1, around it point be A2, A3, A4, A5 and A6, after the formulae discovery in step 21, obtain Chosen Point A1 and around put A2, A3, point between A4, A5 and A6 apart from being respectively 1.6,2.8,2.6,3.4 and 3.1.
By above-mentioned point apart from carrying out cumulative rear its mean value of calculating, to obtain last some anomaly average:
(1.6+2.8+2.6+2.7+3.1)/5=2.56。
Therefore, the some anomaly average of code-point group image is 2.56.
Code-point cell drawing apparatus, for drawing code-point cell according to an anomaly average on code-point group image, to generate the code-point group image with cell.
On code-point group image, the tag unit grid template corresponding with the position of code-point is marked off with the point distance of code-point according to the scope of code-point group image, in tag template, the point bit location lattice including code-point are defined as 1, and the some bit location lattice not comprising code-point are defined as 0.
Dot matrix anti-counterfeiting image divides device, for according to an anomaly average with the code-point group image of cell marking off the identical dot matrix anti-counterfeiting image with cell of multiple dimension;
Wherein, the code-point group image with cell is scanned, after image analysis, to obtain in this code-point group image the often quantity of row cell and the quantity of every column unit lattice.Because this code-point group image is square structure, therefore, only need the often quantity of row cell and the quantity of every column unit lattice to be divided exactly by 2 respectively, just can obtain the intermediate point of often row cell and the intermediate point of every column unit lattice respectively.According to two intermediate points to divide a cross curve be made up of horizontal partition line and longitudinal cut-off rule on code-point group image.By cross curve, code-point group image is divided into four dot matrix anti-counterfeiting images with cell, as shown in Figure 10.
Locating shaft position determining means, for according to the some anomaly average got, to determine five anchor points included in locating shaft in the dot matrix anti-counterfeiting image with cell.
The content of operation of locating shaft position determining means is as follows:
According to the point in locating shaft between five anchor points apart from condition, screen in dot matrix anti-counterfeiting image line by line and/or by column, to determine the position of locating shaft in dot matrix anti-counterfeiting image.
Wherein, according to the point in locating shaft between five anchor points apart from condition, as shown in figure 11, screen in the dot matrix anti-counterfeiting image of cell line by line and/or by column, to determine the position of locating shaft in the dot matrix anti-counterfeiting image with cell.
Wherein, the point between five anchor points is 2 times of somes distances, 2 times of some distances, 1 times of some distance and 1 times of some distance apart from distance.
At the often row to the dot matrix anti-counterfeiting image with cell or often in row code-point, as long as be satisfied with the condition of above-mentioned point apart from distance, just can determine that these five anchor points are locating shaft, as shown in figure 12.
Actual code Value Data calculation element, for the image according to fixed code-point part, resolves the code-point in image, to obtain corresponding actual code Value Data.
Actual code Value Data calculation element comprises following content of operation:
The first trip code-point of dot matrix anti-counterfeiting image is resolved, with the cryptographic algorithm numbering of the version of code number and dot matrix anti-counterfeiting image of determining dot matrix anti-counterfeiting image.
Wherein, first some bit location lattice in the first trip code-point in dot matrix anti-counterfeiting image are scanned, and whether includes code-point to judge the version of code number of this dot matrix anti-counterfeiting image according in first some bit location lattice;
First some bit location lattice in first trip code-point in dot matrix anti-counterfeiting image are scanned, and whether includes code-point to judge the cryptographic algorithm in generative process of this dot matrix anti-counterfeiting image according in second and the 3rd some bit location lattice.
Wherein, the numbering of cryptographic algorithm adopts binary rules, is respectively 00,01,10 and 11.00,01,10 and 11 represents a kind of cryptographic algorithm corresponding thereto respectively.
Call and number corresponding decipherment algorithm with cryptographic algorithm, to calculate data decryption.
Wherein, after obtaining the cryptographic algorithm numbering of this dot matrix anti-counterfeiting image, by following formula to select corresponding decipherment algorithm.
After the selected decipherment algorithm corresponding with cryptographic algorithm, decipherment algorithm as shown in fig. 13 that, to calculate data decryption.
First get 4 data, according to map algorithm, the digital value of these 4 bit compositions all corresponds to a numerical value, and this numerical value is exactly actual numerical values corresponding to these 4 data.
According to the above-mentioned data decryption drawn, utilize following formula to obtain the School Affairs data of this data decryption.
Distinguish in data decryption and whether comprise the character identical with School Affairs data, if distinguish, result is yes, then again calculate data decryption, to obtain the actual code Value Data corresponding with this square dot battle array antifalsification label.
This step also comprises following sub-step:
Obtain the character string group of the alphabet comprised in data decryption;
Existing character scan method is adopted to scan to obtain corresponding character picture to several characters comprised in data decryption;
Existing character segmentation method is adopted to split each character in character picture, to generate the character picture unit identical with character quantity;
Existing character extracting method is adopted to extract each character picture unit, and after carrying out data conversion, to obtain the character string group corresponding with this character picture.
Obtain the character string group of the alphabet comprised in School Affairs data;
Existing character scan method is adopted to scan to obtain corresponding character picture to several characters comprised in School Affairs data;
Existing character segmentation method is adopted to split each character in character picture, to generate the character picture unit identical with character quantity;
Existing character extracting method is adopted to extract each character picture unit, and after carrying out data conversion, to obtain the character string group corresponding with this character picture.
Wherein, above-mentioned adopted data transfer device is identical data transfer device.
The character string group corresponding with School Affairs data and the character string group corresponding with data decryption are distinguished, if the character string group corresponding with School Affairs data with including aligned identical order and identical numerical digit in the character string group that data decryption is corresponding, then calculate data decryption again; If distinguish, result is no, then show that the content of dot matrix anti-counterfeiting image is wrong, then result is to the parsing of dot matrix anti-counterfeiting image.
Following formula is adopted again to calculate data decryption, to obtain the actual code Value Data corresponding with dot matrix anti-counterfeiting image.
Computing formula is as follows:
Only as described above, be only preferred embodiment of the present invention, such as professional who are familiar with this art.After understanding technological means of the present invention, natural energy, according to actual needs, is changed under the teachings of the present invention.Therefore all equal changes of doing according to the present patent application the scope of the claims and modification, once should still remain within the scope of the patent.
Claims (10)
1. a square dot matrix antifalsification label group, arranged in order by the false proof figure of multiple dot matrix and form, the false proof figure of described dot matrix comprise tag template, with implant code-point part thereon, described code-point part comprises locating shaft and data point part, it is characterized in that, the false proof figure of multiple described dot matrix is the measure-alike and false proof figure of independent completion, the false proof figure of dot matrix described in any one is after resolving to the code value of square dot matrix antifalsification label group with the code value obtained.
2. square dot matrix antifalsification label group according to claim 1, is characterized in that, in described dot matrix anti-counterfeiting image, described data point part comprises function digit part, data bit portion, School Affairs part and primitive character and extracts status sections;
Described function digit part mainly comprises for version number's code-point of presentation code version number, for representing the cryptographic algorithm numbering code-point that cryptographic algorithm is numbered;
Described tag template divides and has several for implanting the blank form point position of code-point.
3. distinguish a method for square dot matrix antifalsification label group described in claim 1, comprise the following steps:
Step 1, adopt non-recognizer to obtain the set of tags image of current square dot matrix antifalsification label group, and gray scale parsing is carried out to this set of tags image, to obtain the code-point group image of set of tags image;
Step 2, obtain the some anomaly average of code-point group image after gray scale is resolved;
Step 3, on code-point group image, draw code-point cell according to an anomaly average, to generate the code-point group image with cell;
Step 4, according to an anomaly average with the code-point group image of cell marking off the identical dot matrix anti-counterfeiting image with cell of multiple dimension;
Step 5, according to the some anomaly average that gets, determine the position of five anchor points included by locating shaft in the dot matrix anti-counterfeiting image of cell;
Step 6, basis, with the dot matrix anti-counterfeiting image of cell, are resolved the code-point in dot matrix anti-counterfeiting image, to obtain the actual code Value Data of square dot matrix antifalsification label group.
4. the method distinguished of the carrying out of square shaped dot matrix antifalsification label group according to claim 3, is characterized in that, in step 1, comprise following sub-step:
Step 11, non-recognizer is adopted to take current dot matrix antifalsification label group, to obtain set of tags image corresponding thereto;
Step 12, employing image partition method mark off the cell of multiple 16x16 pixel on set of tags image;
Step 13, employing following formula carry out gray proces to each cell, respectively to get the gray-scale value of each cell, and based on multiple gray-scale value cell to obtain gray-scale value cell matrix:
V=B*0.11+G*0.59+R*0.30;
Step 14, in gray-scale value matrix, to comparing the gray-scale value of cell in this row maybe these row line by line or by column, to obtain the gray-scale value cell matrix that gray-scale value is less than 200;
Step 15, to be less than according to gray-scale value 200 gray-scale value cell matrix, to obtain the code-point group image of set of tags image.
5. the method distinguished of the carrying out of square shaped dot matrix antifalsification label group according to claim 3, is characterized in that, in step 2, comprise following sub-step:
Step 21, utilize following formula with obtain Chosen Point and around it point between distance;
D*D=(x1-x2)*(x1-x2)+(y1-y2)*(y1-y2)
Wherein, Chosen Point is some A, and its coordinate is (x1, y1), and around put as some B, its coordinate is (x2, y2), and Chosen Point and the distance of the point around between point are D;
Step 22, to obtained institute a little apart from adding up, and after the mean value calculating a distance, to obtain the some anomaly average in code-point group image between whole code-point.
6. the method distinguished of the carrying out of square shaped dot matrix antifalsification label group according to claim 3, is characterized in that, in step 3, comprise following content:
On code-point group image, the tag unit grid template corresponding with the position of code-point is marked off with the point distance of code-point according to the scope of code-point group image, in tag template, the point bit location lattice including code-point are defined as 1, and the some bit location lattice not comprising code-point are defined as 0.
7. the method distinguished of the carrying out of square shaped dot matrix antifalsification label group according to claim 3, is characterized in that, in steps of 5, comprise following content:
According to the point in locating shaft between five anchor points apart from condition, screen in dot matrix anti-counterfeiting image line by line and/or by column, to determine the position of locating shaft in dot matrix anti-counterfeiting image.
8. the method distinguished the carrying out of dot matrix antifalsification label group according to claim 3, is characterized in that, in step 6, comprises following sub-step:
Step 61, the first trip code-point of dot matrix anti-counterfeiting image to be resolved, with the cryptographic algorithm numbering of the version of code number and dot matrix anti-counterfeiting image of determining dot matrix anti-counterfeiting image;
Step 62, call and number corresponding decipherment algorithm with cryptographic algorithm, to calculate data decryption;
Step 63, according to the data decryption drawn in step 62 to obtain the School Affairs data of this data decryption;
Step 64, distinguish in data decryption whether comprise the character identical with School Affairs data, if distinguish, result is yes, then again calculate data decryption, to obtain the actual code Value Data corresponding with this square dot battle array antifalsification label.
9. distinguish the system of square dot matrix antifalsification label group described in claim 1 for one kind, it is characterized in that, comprising: set of tags image acquiring device, gray-scale value resolver, some anomaly average acquisition device, code-point cell drawing apparatus, dot matrix anti-counterfeiting image divide device, locating shaft position determining means and actual code Value Data calculation element;
Set of tags image acquiring device, for the set of tags image adopting non-recognizer equipment to obtain current square dot matrix antifalsification label group;
Gray-scale value resolver, for carrying out gray scale parsing to the set of tags image got, to obtain the code-point group image of set of tags image;
Point anomaly average acquisition device, for obtaining the some anomaly average of the code-point group image after gray scale is resolved;
Code-point cell drawing apparatus, for drawing code-point cell according to an anomaly average on code-point group image, to generate the code-point group image with cell;
Dot matrix anti-counterfeiting image divides device, for according to an anomaly average with the code-point group image of cell marking off the identical dot matrix anti-counterfeiting image with cell of multiple dimension;
Locating shaft position determining means, for according to the some anomaly average got, to determine five anchor points included in locating shaft in the dot matrix anti-counterfeiting image with cell;
Actual code Value Data calculation element, for the image according to fixed code-point part, resolves the code-point in image, to obtain corresponding actual code Value Data.
10. the system distinguished the carrying out of dot matrix antifalsification label group according to claim 9, is characterized in that, described non-recognizer is smart mobile phone or panel computer;
Described gray-scale value resolver, described some anomaly average acquisition device, described code-point cell drawing apparatus, the division of described dot matrix anti-counterfeiting image device, described locating shaft position determining means and described actual code Value Data calculation element are all be built in smart mobile phone or panel computer.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510789503.6A CN105426944A (en) | 2015-11-17 | 2015-11-17 | Square lattice anti-counterfeit label group, and method and system for reading square lattice anti-counterfeit label group |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510789503.6A CN105426944A (en) | 2015-11-17 | 2015-11-17 | Square lattice anti-counterfeit label group, and method and system for reading square lattice anti-counterfeit label group |
Publications (1)
Publication Number | Publication Date |
---|---|
CN105426944A true CN105426944A (en) | 2016-03-23 |
Family
ID=55505139
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510789503.6A Pending CN105426944A (en) | 2015-11-17 | 2015-11-17 | Square lattice anti-counterfeit label group, and method and system for reading square lattice anti-counterfeit label group |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105426944A (en) |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105913103A (en) * | 2016-04-08 | 2016-08-31 | 浙江大学 | Dot matrix anti-counterfeiting code graph and identification method therefor |
CN106218254A (en) * | 2016-07-26 | 2016-12-14 | 天津市汇源印刷有限公司 | A kind of method that leaflet glazing is false proof |
CN110428264A (en) * | 2019-07-22 | 2019-11-08 | 杭州沃朴物联科技有限公司 | Fake method, device, equipment and medium are tested in identification based on dot matrix screen antifalsification label |
CN110689100A (en) * | 2019-09-25 | 2020-01-14 | 周羽 | Data dot matrix coding and decoding method, system and medium based on prominent central pattern |
CN110909843A (en) * | 2019-11-21 | 2020-03-24 | 程烨 | Method, device, server and storage medium for modeling coded image |
CN113435556A (en) * | 2021-07-14 | 2021-09-24 | 三维码(厦门)网络科技有限公司 | Code generation and decoding method and anti-counterfeiting method of dot matrix code |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103093266A (en) * | 2013-01-26 | 2013-05-08 | 邱小林 | Three-dimensional bar code anti-counterfeiting mark |
CN103177281A (en) * | 2013-04-12 | 2013-06-26 | 江苏圆坤二维码研究院有限公司 | Two-dimensional code compiling method |
US20140263667A1 (en) * | 2013-03-15 | 2014-09-18 | Leon Mege Inc. | Articles displaying two dimensional barcodes |
-
2015
- 2015-11-17 CN CN201510789503.6A patent/CN105426944A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103093266A (en) * | 2013-01-26 | 2013-05-08 | 邱小林 | Three-dimensional bar code anti-counterfeiting mark |
US20140263667A1 (en) * | 2013-03-15 | 2014-09-18 | Leon Mege Inc. | Articles displaying two dimensional barcodes |
CN103177281A (en) * | 2013-04-12 | 2013-06-26 | 江苏圆坤二维码研究院有限公司 | Two-dimensional code compiling method |
Cited By (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105913103A (en) * | 2016-04-08 | 2016-08-31 | 浙江大学 | Dot matrix anti-counterfeiting code graph and identification method therefor |
CN105913103B (en) * | 2016-04-08 | 2018-09-11 | 浙江大学 | A kind of dot matrix security code figure and its recognition methods |
CN106218254A (en) * | 2016-07-26 | 2016-12-14 | 天津市汇源印刷有限公司 | A kind of method that leaflet glazing is false proof |
CN106218254B (en) * | 2016-07-26 | 2018-10-19 | 汇源印刷包装科技(天津)股份有限公司 | A kind of method that printed matter glazing is anti-fake |
CN110428264A (en) * | 2019-07-22 | 2019-11-08 | 杭州沃朴物联科技有限公司 | Fake method, device, equipment and medium are tested in identification based on dot matrix screen antifalsification label |
CN110689100A (en) * | 2019-09-25 | 2020-01-14 | 周羽 | Data dot matrix coding and decoding method, system and medium based on prominent central pattern |
CN110909843A (en) * | 2019-11-21 | 2020-03-24 | 程烨 | Method, device, server and storage medium for modeling coded image |
CN110909843B (en) * | 2019-11-21 | 2021-05-14 | 程烨 | Method, device, server and storage medium for modeling coded image |
CN113435556A (en) * | 2021-07-14 | 2021-09-24 | 三维码(厦门)网络科技有限公司 | Code generation and decoding method and anti-counterfeiting method of dot matrix code |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105426944A (en) | Square lattice anti-counterfeit label group, and method and system for reading square lattice anti-counterfeit label group | |
US8908975B2 (en) | Apparatus and method for automatically recognizing a QR code | |
CN111291629A (en) | Method and device for recognizing text in image, computer equipment and computer storage medium | |
CN109446873A (en) | Hand-written script recognition methods, system and terminal device | |
CN105117740A (en) | Font identification method and device | |
US20210406600A1 (en) | Learning device, classification device, learning method, classification method, learning program, and classification program | |
US20130077856A1 (en) | Processes and systems for training machine typesets for character recognition | |
CN105117741A (en) | Recognition method of calligraphy character style | |
CN106446885A (en) | Paper-based Braille recognition method and system | |
CN108052936B (en) | Automatic inclination correction method and system for Braille image | |
CN110399760A (en) | A kind of batch two dimensional code localization method, device, electronic equipment and storage medium | |
CN112860905A (en) | Text information extraction method, device and equipment and readable storage medium | |
EP3561729A1 (en) | Method for detecting and recognising long-range high-density visual markers | |
CN114005126A (en) | Table reconstruction method and device, computer equipment and readable storage medium | |
CN111160188A (en) | Financial bill identification method, device, equipment and storage medium | |
CN109685061A (en) | The recognition methods of mathematical formulae suitable for structuring | |
CN111767889A (en) | Formula recognition method, electronic device and computer readable medium | |
CN104408403A (en) | Arbitration method and apparatus for inconsistent phenomenon of two pieces of entry information | |
CN103927572B (en) | By coding segment to form the method and apparatus of dot pattern | |
CN101840499B (en) | Bar code decoding method and binarization method thereof | |
CN108062548B (en) | Braille square self-adaptive positioning method and system | |
ITRM930179A1 (en) | APPARATUS AND PROCEDURE FOR THE RECOGNITION OF MANUSCRIPT CHARACTERS. | |
CN105373822A (en) | Rectangular anti-fake label, reading method and system | |
CN116052195A (en) | Document parsing method, device, terminal equipment and computer readable storage medium | |
CN113792849B (en) | Training method of character generation model, character generation method, device and equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
WD01 | Invention patent application deemed withdrawn after publication | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20160323 |