Embodiment
For making the object of the embodiment of the present invention, technical scheme and advantage clearly, below in conjunction with the accompanying drawing in the embodiment of the present invention, technical scheme in the embodiment of the present invention is clearly and completely described, obviously, described embodiment is the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
Fig. 1 is the process flow diagram of the Method of printing embodiment one of quick response matrix QR code of the present invention, as shown in Figure 1, the executive agent of the present embodiment is the printing equipment of quick response matrix QR code, and the mode that specifically can be combined by software and hardware is realized, then the method comprises:
Step 101, carries out coding formation first bit stream to the first type information, and prints a QR code block according to the first bit stream.
In the present embodiment, the first type information is functional form information, and functional form information comprises position sensing information, position sensing information separator, locating information, control information.So the first type information comprises position sensing information, position sensing information separator, locating information, control information.
Coding formation first bit stream is carried out to the first type information, generates a QR code block according to the first bit stream according to existing QR code generating principle, a QR code block is printed.
In the present embodiment, set up relative coordinate system according to functional form code block, using the picture of three in functional form code block " return " word the central point of square pattern that is between three position sensing patterns as true origin.
Step 102, extracts the characteristic information of a QR code block, and is converted into feature bit stream.
In the present embodiment, a QR code block is function code block, and after being printed by function code block, according to the relative coordinate system that function code block is set up, the local feature information in abstraction function code block, if local feature information is the deformation information of function code block.The number of unique point extracted and position can preset, and the algorithm of feature extraction can be selected in the algorithm of feature extraction in the prior art.The algorithm of the number of the unique point preset, position and feature extraction is encrypted.
After the characteristic information of abstraction function code block, characteristic information is converted into bit stream, the method wherein transformed is prior art, but is encrypted the method that characteristic information is converted into bit stream.
Step 103, according to the first bit stream and feature binary digit stream calculation second bit stream.
In the present embodiment, the second bit stream is except after the first bit stream and feature bit stream, the residue bit stream in complete QR code.Due to the bit stream of the first bit stream in the present embodiment corresponding to function code block, so the bit stream corresponding to identification type information code block that the second bit stream normally uses the identification type information of storage corresponding for error correction code block and QR code.
Step 104, according to feature bit stream and the second bit stream, a QR code block basis prints the 2nd QR code block.
In the present embodiment, because feature bit stream is the bit stream transformed after the characteristic information of abstraction function code block, so the bit stream corresponding to identification type information code block that the second bit stream normally uses the identification type information of storage corresponding for error correction code block and QR code.
A QR code block basis prints the 2nd QR code block be specially: printing the 2nd QR code block in the relative coordinate system set up at a QR code block according to preset rules, preset rules puts the rule corresponding to identification type information code block that error correction code block and QR code normally use the identification type information of storage corresponding for QR in prior art piles up, the present embodiment repeats no more.
In the present embodiment, by carrying out coding formation first bit stream to the first type information, and print a QR code block according to the first bit stream; Extract the characteristic information of a QR code block, and be converted into feature bit stream; According to the first bit stream and feature binary digit stream calculation second bit stream; According to feature bit stream and the second bit stream; a QR code block basis prints the 2nd QR code block; the characteristic information of the one QR code block is joined in the 2nd QR code block of printing; so when decoding to QR code; due to the uncontrollability of the characteristic information of a QR code block of extraction; the corresponding relation of the 2nd QR code block and a QR code block is made to be difficult to be replicated; effectively prevent complete QR code to be replicated; QR code is made to have efficient anti-counterfeit capability, the available protecting interests of business and consumer.
Fig. 2 is the process flow diagram of the Method of printing embodiment two of quick response matrix QR code of the present invention, and as shown in Figure 2, the executive agent of the present embodiment is the printing equipment of quick response matrix QR code, then the method comprises:
Step 201, carries out coding formation first bit stream to the first type information, and prints a QR code block according to the first bit stream.
Further, in the present embodiment, the first type information is except functional form information, also comprises identification type information and/or print point information.So the first type information can be divided into following three kinds of situations: the first situation is: the first type information comprises functional form information and identification type information; The second situation is: the first type information comprises functional form information and print point information; The third situation is: the first type information comprises functional form information, identification type information and print point information.
Particularly, identification type information is that QR code normally uses the identification information needing to store, print point information is people is that the process added designs or random print point information, if print point information is several coordinate set having the point of certain intervals on straight line, this present embodiment is not limited.
So the first type information also comprises identification type information and/or print point information, carries out coding formation first bit stream to the first type information, and is specially according to described first bit stream printing the one QR code block:
Coding is carried out to the identification type information in the first print point information and forms identification type bit stream, and/or, coding is carried out to printing dot information and forms print point bit stream, print a QR code block according to identification type bit stream and/or print point bit stream, wherein a QR code block also comprises: identification type information code block and/or print point code block.
So in the present embodiment, the final QR code block printed can be divided into following three kinds of situations: the first situation: a QR code comprises function code block and identification type information code block; The second situation is: a QR code block comprises function code block and print point code block, and the third situation is: a QR code block comprises function code block, identification type information code block and print point code block.
Step 202, extracts the characteristic information of a QR code block, and is converted into feature bit stream.
Further, the characteristic information of a QR code block of extraction comprises: unstable characteristic information and/or printing carrier characteristic information.
Wherein, unstable characteristic information is the offset information of deformation information because equipment precision reason causes and/or print point.Deformation information comprises the deformation information of function code block, can also comprise the deformation information of identification type information code block.Printing carrier characteristic information can for printing the texture information, fiber information etc. of carrier.When being paper as printed carrier, printing carrier characteristic information is the fiber information of paper.
So extract the characteristic information of a QR code block, and be converted into feature bit stream and be specially: the unstable characteristic information and/or the printing carrier characteristic information that extract a QR code block; Unstable characteristic information and/or printing carrier characteristic information are converted into feature bit stream.
The characteristic information of the QR code block in the present embodiment is not defined as unstable characteristic information and/or printing carrier characteristic information, also can for other due to people be add or print time other characteristic informations of producing at random, when the common ground of these characteristic informations is printing the one QR code block, there is uncontrollability.
Step 203, according to the first bit stream and feature binary digit stream calculation second bit stream.
In the present embodiment, because the first bit stream comprises functional form bit stream, identification type bit stream and/or print point bit stream can also be comprised.Feature bit stream can comprise the feature bit stream transformed by unstable characteristic information, or comprise the feature bit stream printing carrier characteristic information and transform, or not only comprise the feature bit stream of unstable characteristic information conversion but also comprise the feature bit stream printing carrier characteristic information and transform, so the implication that the second bit stream represents is not identical yet.
When the first bit stream only includes functional form bit stream, bit stream corresponding to the identification type information code block that second bit stream normally uses the identification type information of storage corresponding for bit stream corresponding to error correction code block and QR code, when the first bit stream not only comprises functional form bit stream but also comprises identification type bit stream, the second bit stream is the bit stream that error correction code block is corresponding.
Step 204, according to feature bit stream generating feature code block, and generates according to the second bit stream and supplements code block, printing the 2nd QR code block in the relative coordinate system set up at a QR code block according to preset rules.
In the present embodiment, feature bit stream is positioned over the filler in existing QR code bit stream, in the relative coordinate system so set up at a QR code block according to preset rules, the position of the code block that the bit stream filler that the feature code block generated according to feature bit stream is positioned over existing QR code generates.
Generate according to the second bit stream and supplement code block, when supplementary code block comprises error correction code block and identification type information code block, error correction code block is generated by feature bit stream and identification type bit stream.Create-rule generates error correction code block identical by the bit stream of filler with identification type bit stream with the QR code of prior art, and this is no longer going to repeat them.The position that error correction code block is placed is the position that the error correction code block of QR code in prior art is placed, and the position that identification type information code block is placed is the position that the identification type information code block of QR code in prior art is placed.When supplementary code block only includes error correction code block, the position that error correction code block error correction code block being positioned over QR code in prior art is placed.
In the present embodiment, identification type information and/or print point information are encoded, print identification type information code block and/or print point code block, and the characteristic information of the deformation information of identification type information code block and/or the offset information of print point and/or printing carrier is extracted when the characteristic information of extraction the one QR code block, add the uncontrollability of the characteristic information of a QR code block of printing, the corresponding relation of the 2nd QR code block and a QR code block is made more to be difficult to copy, and the algorithm that the position of characteristic information of the unique point extracted and algorithm and characteristic information are converted into binary code stream has carried out encryption, further enhancing the anti-counterfeit capability of QR code.
Fig. 3 is the structural representation of the printing equipment embodiment one of quick response matrix QR code of the present invention, and as shown in Figure 3, the printing equipment of this quick response matrix QR code comprises: print module 301, extraction module 302, computing module 303.Wherein, print module 301, for carrying out coding formation first bit stream to the first type information, and prints a QR code block according to the first bit stream.Extraction module 302, for extracting the characteristic information of a QR code block, and is converted into feature bit stream.Computing module 303, for according to described first bit stream and described feature binary digit stream calculation second bit stream.Print module 301, also for according to described feature bit stream and the second bit stream, a described QR code block basis prints the 2nd QR code block.
The device of the present embodiment can perform the technical scheme of embodiment of the method shown in Fig. 1, and it realizes principle and technique effect is similar, repeats no more herein.
Fig. 4 is the structural representation of the printing equipment embodiment two of quick response matrix QR code of the present invention.As shown in Figure 4, the printing equipment of this quick response matrix QR code comprises: print module 401, extraction module 402, computing module 403.Wherein, print module 401, for carrying out coding formation first bit stream to the first type information, and prints a QR code block according to the first bit stream.Extraction module 402, for extracting the characteristic information of a QR code block, and is converted into feature bit stream.Computing module 403, for according to described first bit stream and described feature binary digit stream calculation second bit stream.Print module 401, also for according to described feature bit stream and the second bit stream, a described QR code block basis prints the 2nd QR code block.
Further, the first type information comprises functional form information, print module 401, specifically for encoding to functional form information, forms functional form bit stream; Print according to functional form bit stream and obtain a QR code block, a QR code block is function code block.
Further, first type information also comprises: identification type information and/or print point information, print module 401, also forms identification type bit stream for carrying out coding to identification type information, and/or, coding is carried out to printing dot information and forms print point bit stream; Print a QR code block according to identification type bit stream and/or print point bit stream, a QR code block also comprises: identification type information code block and/or print point code block.
Further, the characteristic information of the one QR code block comprises: unstable characteristic information and/or printing carrier characteristic information, extraction module 402, specifically for extracting the described unstable characteristic information of a described QR code block and/or described printing carrier characteristic information; Described unstable characteristic information and/or described printing carrier characteristic information are converted into described feature bit stream.
Further, print module 401 specifically for according to feature bit stream generating feature code block, and generates according to the second bit stream and supplements code block; The 2nd QR code block is printed in the relative coordinate system set up at a QR code block according to preset rules; Wherein, the 2nd QR code block comprises feature code block and supplementary code block.
The device of the present embodiment can perform the technical scheme of embodiment of the method shown in Fig. 2, and it realizes principle and technique effect is similar, repeats no more herein.
One of ordinary skill in the art will appreciate that: all or part of step realizing above-mentioned each embodiment of the method can have been come by the hardware that programmed instruction is relevant.Aforesaid program can be stored in a computer read/write memory medium.This program, when performing, performs the step comprising above-mentioned each embodiment of the method; And aforesaid storage medium comprises: ROM, RAM, magnetic disc or CD etc. various can be program code stored medium.
Last it is noted that above each embodiment is only in order to illustrate technical scheme of the present invention, be not intended to limit; Although with reference to foregoing embodiments to invention has been detailed description, those of ordinary skill in the art is to be understood that: it still can be modified to the technical scheme described in foregoing embodiments, or carries out equivalent replacement to wherein some or all of technical characteristic; And these amendments or replacement, do not make the essence of appropriate technical solution depart from the scope of various embodiments of the present invention technical scheme.