Summary of the invention
For the weak point existed in the problems referred to above, the invention provides the information of tracing to the source that a kind of consumer of being convenient to learns current item in real time, and article manufacturer can be made to learn the current item true and false, prevent article field sales commission merchant from the method distinguished combined anti-fake and the device of falsifying phenomenon occurring.
For achieving the above object, the invention provides a kind of method distinguished combined anti-fake, this combined anti-fake mark comprises Quick Response Code and is superimposed upon the dot pattern on the white space in described Quick Response Code, comprises the following steps:
S1, special two dimension code reading device obtain the image of Quick Response Code, after being decrypted it, changing, to obtain the content information corresponding with this Quick Response Code;
The image of S2, acquisition dot pattern, after resolving this image, obtains the reading information corresponding with this dot matrix image;
If the content information after S3 deciphering is identical with reading information, then the Quick Response Code in the box-like anti-counterfeiting mark of decision set is corresponding with dot pattern.
The above-mentioned method that combined anti-fake is distinguished, wherein, step S1 comprises following sub-step:
S11, by camera, Quick Response Code to be scanned, to get the image of Quick Response Code;
S12, special two dimension code reading device obtain in this image the ciphertext message encrypted comprised, after ciphertext message is resolved, to obtain the encryption identification comprised in ciphertext message, by the manner of decryption corresponding with encryption identification, ciphertext message is deciphered, to generate the Quick Response Code character string group with corresponding system;
S13, special two dimension code reading device get the system type identification in this Quick Response Code character string group, after system type identification is identified, to learn the system type of Quick Response Code character string group, Quick Response Code character string group is converted to content information corresponding thereto by the system converter corresponding with system type identification.
The above-mentioned method that combined anti-fake is distinguished, wherein, step S2 comprises following sub-step:
S21, by dot pattern identification equipment, dot pattern to be scanned, to obtain the image of dot pattern;
S22, image to be processed, the grey level of image is being adjusted to and can be carried out the grey level of resolving by image analysis module;
S23, the image meeting grey level to be resolved and CRC check, to form code value information corresponding thereto;
S24, in code value database, search the message file corresponding with code value information, and information extraction file;
S25, message file is decoded to be formed information corresponding thereto.
The above-mentioned method distinguished combined anti-fake, wherein, in step S22, carries out automatic exposure process to image, and to make the grey level of image reach preset range, wherein, the step of image being carried out to automatic exposure process comprises:
Filter out unnecessary spectrum;
Catch residue spectrum;
Regulate time shutter and figure frame per second, make the brightness of image of the full graphics frame captured reach to make the grey level of image to reach between 110 ~ 200.
The above-mentioned method that combined anti-fake is distinguished, wherein, in step S23, comprise file through the code value information of resolving and obtain after verification and start field, header information and data message, described data message comprises code value concordance list, code value bulleted list, RAW data item table and resource/RAW data.
The above-mentioned method distinguished combined anti-fake, wherein, in step S24, comprises the following steps:
In step S24, comprise the following steps:
S241, judge that within the scope of the code value whether current code value information stores in code value database, if the determination result is YES, then perform S242, if judged result is no, then feedback code value information is invalid, judges that article are as vacation;
S242, scan to form header index file group to code value database;
S243, judge whether include the header index file corresponding with current code value information in header index file group, if the determination result is YES, then perform step S244, if judged result is no, then feedback code value information is invalid, judges that article are as vacation;
S244, judge whether include the message file corresponding with current code value information in header index file, if the determination result is YES, then perform step S245, if judged result is no, then feedback code value information is invalid, judges that article are as vacation;
S245, by extraction document handle in message file;
S246, judge that whether header information (FileHeader) in current code value information is encrypt file, if the determination result is YES, then perform step S247, if judged result is no, then perform S248;
S247, to be decrypted according to the encryption type of the header information (FileHeader) in current code value information;
S248, corresponding data directory is selected to calculate message file according to message file, to obtain the message file after processing.
The above-mentioned method distinguished combined anti-fake, wherein, in step S25, comprises the following steps:
S251, extract the current information file after step S24 process, and import in data distribution device;
S252, judge whether to need to be decrypted it according to the type of current information file in data distribution device, if judge, the type of current information file is text, then directly show text, if judge, the type of current information file is non-document file, then perform step S253;
S253, to decode according to current non-document file, to form multimedia file, and multimedia file is play.
The present invention also provides a kind of device distinguished combined anti-fake, comprising:
Special two-dimension code recognition device, after for obtaining the image of Quick Response Code, being decrypted it, changing, to obtain the content information corresponding with this Quick Response Code;
Dot pattern identification equipment, for obtaining the image of dot pattern, after resolving this image, obtains the reading information corresponding with this dot matrix image;
Condition discriminating apparatus, for comparing to the content information corresponding with this Quick Response Code and the reading information corresponding with this dot matrix image, to distinguish that whether content information is corresponding with reading information.
Above-mentioned device, wherein, described special two-dimension code recognition device carries out following operation:
By camera, Quick Response Code is scanned, to get the image of Quick Response Code;
Obtain in this image the ciphertext message encrypted comprised, after ciphertext message is resolved, to obtain the encryption identification comprised in ciphertext message, by the manner of decryption corresponding with encryption identification, ciphertext message is deciphered, to generate the Quick Response Code character string group with corresponding system;
Get the system type identification in this Quick Response Code character string group, after system type identification is identified, to learn the system type of Quick Response Code character string group, Quick Response Code character string group is converted to content information corresponding thereto by the system converter corresponding with system type identification.
Above-mentioned device, wherein, described dot pattern identification equipment carries out following operation:
Dot pattern is scanned, to obtain the image of dot pattern;
Image is being processed, the grey level of image is being adjusted to and can be carried out the grey level of resolving by image analysis module;
The image meeting grey level is resolved and CRC check, to form code value information corresponding thereto;
The message file corresponding with code value information is searched in code value database, and information extraction file;
Message file is decoded to be formed information corresponding thereto.
Compared with prior art, the present invention has the following advantages:
In combined anti-fake mark, consumer is by after special two-dimension code recognition device identification Quick Response Code, and the content information obtained is the information of tracing to the source of article.The manufacturer of article by after dot pattern recognition device identification dot pattern, distinguish this dot pattern be very after, obtain including article and to trace to the source the identifying information of information and article field sales commission merchant information.Manufacturer by this identifying information to learn the true and false and the channel information of article, with the phenomenon preventing article field sales commission merchant from falsifying occurring.
In addition, because two-dimension code recognition device can be arranged in smart mobile phone or panel computer, therefore, consumer can recognize the information of tracing to the source will buying article in real time, has feature easily and efficiently.
Embodiment
The invention provides a kind of method distinguished combined anti-fake, this combined anti-fake mark comprises Quick Response Code and is superimposed upon the dot pattern on the white space in described Quick Response Code, comprises the following steps:
S1, special two dimension code reading device obtain the image of Quick Response Code, after being decrypted it, changing, to obtain the content information corresponding with this Quick Response Code.
Step S1 comprises following sub-step:
S11, by camera, Quick Response Code to be scanned, to get the image of Quick Response Code.
In addition, in step s 11, when scanning Quick Response Code, if judge, presently used two dimension code reading device is not the special two dimension code reading device corresponding with this Quick Response Code, in scanning interface, then eject the download address information of special two dimension code reading device, and download according to this download address information and special two dimension code reading device is installed.
S12, special two dimension code reading device obtain in this image the ciphertext message encrypted comprised, after ciphertext message is resolved, to obtain the encryption identification comprised in ciphertext message, by the manner of decryption corresponding with encryption identification, ciphertext message is deciphered, to generate the Quick Response Code character string group with corresponding system;
Be built-in with 11 kinds of manner of decryption in special two dimension code reading device, distinguish because special two dimension code reading device is exclusively used in the Quick Response Code in the present invention, therefore, the manner of decryption of this Quick Response Code belongs to one of 11 kinds of manner of decryption.11 kinds of above-mentioned manner of decryption comprise DES manner of decryption, 3DES manner of decryption, TEA manner of decryption, XTEA manner of decryption, RC4 manner of decryption, PANAMA manner of decryption, Twofish manner of decryption, CAST-128 manner of decryption, CAST-256 manner of decryption, MD5 manner of decryption and enigma manner of decryption.
S13, special two dimension code reading device get the system type identification in this Quick Response Code character string group, after system type identification is identified, to learn the system type of Quick Response Code character string group, Quick Response Code character string group is converted to content information corresponding thereto by the system converter corresponding with system type identification.
Content information, after being converted, shows in the interface of special two dimension code reading device.
The image of S2, acquisition dot pattern, after resolving this image, obtains the reading information corresponding with this dot matrix image.
Step S2 comprises following sub-step:
S21, by dot pattern identification equipment, dot pattern to be scanned, to obtain the image of dot pattern.
Due to dot pattern be adopt containing carbon coating formed, therefore, dot pattern identification equipment can send Infrared on the surface being radiated at dot pattern after, to get the Infrared image of dot pattern.
S22, image to be processed, the grey level of image is being adjusted to and can be carried out the grey level of resolving by image analysis module.
In step S22, carry out automatic exposure process to Infrared image, to make the grey level of Infrared image reach preset range, wherein, the step of Infrared image being carried out to automatic exposure process comprises:
Filter out unnecessary spectrum;
Catch residue spectrum;
Regulate time shutter and figure frame per second, make the brightness of image of the full graphics frame captured reach to make the grey level of image to reach between 110 ~ 200.
S23, the image meeting grey level to be resolved and CRC check, to form code value information corresponding thereto.
In step S23, comprise file through the code value information of resolving and obtain after verification and start field, header information and data message, data message comprises code value concordance list, code value bulleted list, RAW data item table and resource/RAW data.
S24, in code value database, search the message file corresponding with code value information, and information extraction file.
In step S24, comprise the following steps:
In step S24, comprise the following steps:
S241, judge that within the scope of the code value whether current code value information stores in code value database, if the determination result is YES, then perform S242, if judged result is no, then feedback code value information is invalid, judges that article are as vacation;
S242, scan to form header index file group to code value database;
S243, judge whether include the header index file corresponding with current code value information in header index file group, if the determination result is YES, then perform step S244, if judged result is no, then feedback code value information is invalid, judges that article are as vacation;
S244, judge whether include the message file corresponding with current code value information in header index file, if the determination result is YES, then perform step S245, if judged result is no, then feedback code value information is invalid, judges that article are as vacation;
S245, by extraction document handle in message file;
S246, judge that whether header information (FileHeader) in current code value information is encrypt file, if the determination result is YES, then perform step S247, if judged result is no, then perform S248;
S247, to be decrypted according to the encryption type of the header information (FileHeader) in current code value information;
S248, corresponding data directory is selected to calculate message file according to message file, to obtain the message file after processing.
S25, message file is decoded to be formed information corresponding thereto.
In step S25, comprise the following steps:
S251, extract the current information file after step S24 process, and import in data distribution device;
S252, judge whether to need to be decrypted it according to the type of current information file in data distribution device, if judge, the type of current information file is text, then directly show text, if judge, the type of current information file is non-document file, then perform step S253;
S253, to decode according to current non-document file, to form multimedia file, and multimedia file is play.
If the content information after S3 deciphering is identical with reading information, then the Quick Response Code in the box-like anti-counterfeiting mark of decision set is corresponding with dot pattern.
Because special two dimension code reading device and dot matrix image reading device are two independently devices, therefore, the mode of range estimation is adopted to compare to the reading information shown in the content information shown in special two dimension code reading device and dot matrix image reading device.If content information is identical with reading information, then the Quick Response Code in the box-like anti-counterfeiting mark of decision set is corresponding with dot pattern.
The present invention also provides a kind of device distinguished combined anti-fake, comprising:
Special two-dimension code recognition device, after for obtaining the image of Quick Response Code, being decrypted it, changing, to obtain the content information corresponding with this Quick Response Code.
Dot pattern identification equipment, for obtaining the image of dot pattern, after resolving this image, obtains the reading information corresponding with this dot matrix image.
Condition discriminating apparatus, for comparing to the content information corresponding with this Quick Response Code and the reading information corresponding with this dot matrix image, to distinguish that whether content information is corresponding with reading information.
Special two-dimension code recognition device carries out following operation:
By camera, Quick Response Code is scanned, to get the image of Quick Response Code.
When scanning Quick Response Code, if judge, presently used two dimension code reading device is not the special two dimension code reading device corresponding with this Quick Response Code, in scanning interface, then eject the download address information of special two dimension code reading device, and download according to this download address information and special two dimension code reading device is installed.
Special two dimension code reading device obtains in this image the ciphertext message encrypted comprised, after ciphertext message is resolved, to obtain the encryption identification comprised in ciphertext message, by the manner of decryption corresponding with encryption identification, ciphertext message is deciphered, to generate the Quick Response Code character string group with corresponding system;
Be built-in with 11 kinds of manner of decryption in special two dimension code reading device, distinguish because special two dimension code reading device is exclusively used in the Quick Response Code in the present invention, therefore, the manner of decryption of this Quick Response Code belongs to one of 11 kinds of manner of decryption.11 kinds of above-mentioned manner of decryption comprise DES manner of decryption, 3DES manner of decryption, TEA manner of decryption, XTEA manner of decryption, RC4 manner of decryption, PANAMA manner of decryption, Twofish manner of decryption, CAST-128 manner of decryption, CAST-256 manner of decryption, MD5 manner of decryption and enigma manner of decryption.
Special two dimension code reading device gets the system type identification in this Quick Response Code character string group, after system type identification is identified, to learn the system type of Quick Response Code character string group, Quick Response Code character string group is converted to content information corresponding thereto by the system converter corresponding with system type identification.
Content information, after being converted, shows in the interface of special two dimension code reading device.
Dot pattern identification equipment carries out following operation:
By dot pattern identification equipment, dot pattern is scanned, to obtain the image of dot pattern.
Wherein, due to dot pattern be adopt containing carbon coating formed, therefore, dot pattern identification equipment can send Infrared on the surface being radiated at dot pattern after, to get the Infrared image of dot pattern.
Image is being processed, the grey level of image is being adjusted to and can be carried out the grey level of resolving by image analysis module.
Wherein, carry out automatic exposure process to Infrared image, to make the grey level of Infrared image reach preset range, the step of Infrared image being carried out to automatic exposure process comprises:
Filter out unnecessary spectrum;
Catch residue spectrum;
Regulate time shutter and figure frame per second, make the brightness of image of the full graphics frame captured reach to make the grey level of image to reach between 110 ~ 200.
The image meeting grey level is resolved and CRC check, to form code value information corresponding thereto.
Wherein, comprise file through the code value information of resolving and obtain after verification and start field, header information and data message, data message comprises code value concordance list, code value bulleted list, RAW data item table and resource/RAW data.
The message file corresponding with code value information is searched in code value database, and information extraction file.
Wherein, following sub-step is comprised:
If within the scope of the code value that current code value information stores in code value database, then scan to form header index file group to code value database; If within the scope of the code value that current code value information does not store in code value database, then feedback code value information is invalid, judges that article are as vacation;
If include the header index file corresponding with current code value information in header index file group, then judge in header index file, whether to include the message file corresponding with current code value information; If do not comprise the header index file corresponding with current code value information in header index file group, then feedback code value information is invalid, judges that article are as vacation;
If include the message file corresponding with current code value information in header index file, then by extraction document handle in message file; If do not comprise the message file corresponding with current code value information in header index file, then feedback code value information is invalid, judges that article are as vacation;
If the header information (FileHeader) in current code value information is encrypt file, then be decrypted according to the encryption type of the header information (FileHeader) in current code value information, and message file is decoded to be formed information corresponding thereto; If the header information (FileHeader) in current code value information is non-encrypted file, then corresponding data directory is selected to calculate message file according to message file, to obtain the message file after processing.
Message file is decoded to be formed information corresponding thereto, comprises the following steps:
Extract current information file after treatment, and import in data distribution device;
Judge whether to need to be decrypted it according to the type of current information file in data distribution device, if judge, the type of current information file is text, then directly show text; If judge, the type of current information file is non-document file, then decode according to current non-document file, to form multimedia file, and play multimedia file.
Condition discriminating apparatus in the present invention is mainly based on range estimation, and its reason is:
Because special two dimension code reading device and dot matrix image reading device are two independently devices, therefore, adopt the mode of range estimation to compare to the reading information shown in the content information shown in special two dimension code reading device and dot matrix image reading device, discriminating fashion more convenient can be made.If content information is identical with reading information, then the Quick Response Code in the box-like anti-counterfeiting mark of decision set is corresponding with dot pattern.
In combined anti-fake mark, consumer is by after special two-dimension code recognition device identification Quick Response Code, and the content information obtained is the information of tracing to the source of article.The manufacturer of article by after dot pattern recognition device identification dot pattern, distinguish this dot pattern be very after, obtain including article and to trace to the source the identifying information of information and article field sales commission merchant information.Manufacturer by this identifying information to learn the true and false and the channel information of article, with the phenomenon preventing article field sales commission merchant from falsifying occurring.
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.