CN102810170A - Quick response matrix code and building method thereof - Google Patents
Quick response matrix code and building method thereof Download PDFInfo
- Publication number
- CN102810170A CN102810170A CN2011101471906A CN201110147190A CN102810170A CN 102810170 A CN102810170 A CN 102810170A CN 2011101471906 A CN2011101471906 A CN 2011101471906A CN 201110147190 A CN201110147190 A CN 201110147190A CN 102810170 A CN102810170 A CN 102810170A
- Authority
- CN
- China
- Prior art keywords
- position sensing
- codeword sequence
- quick response
- construction method
- separator
- 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.)
- Granted
Links
Images
Abstract
The invention discloses a quick response matrix code and a building method thereof. The building method comprises the steps as follows: an input data stream is analyzed, and is converted to a code word sequence; the code word sequence is put in a matrix and is arranged in a partitioning manner; the length-width ratio of the size of modules is set as 1.2:1; a quick response matrix code notation is built, and a generated image is saved as a set format; and the image with the set format is output to a needle printer with nine needles and is printed on a multi-connected note according to set resolution.
Description
Technical field
The present invention relates to the two-dimensional bar code field, in particular to a kind of quick response matrix code and construction method thereof.
Background technology
QR (Quick Response, a fast response) sign indicating number standard GB/T18284-2000 has defined a kind of matrix two-dimensional barcode, standard 5.3 in introduced the quadrate array that the QR code sign is made up of square modules.In the 5.3.2 of standard, introduced the view finding figure of QR sign indicating number and formed, laid respectively at the upper left corner, the upper right corner and the lower left corner of QR code sign by 3 identical position sensing figures.Each position sensing figure can be regarded as by 3 overlapping concentric squares to be formed, and they are respectively 7*7 dark module, a 5*5 light module and 3*3 dark module.The module width ratio of position sensing figure is 1: 1: 3: 1: 1.
Module at above-mentioned standard to describe is square or name square; This dimension definitions has no problem for bar code printer, for special PRN device, such as the words of using 9 needle type printers to print; There is very big problem; At first, the true picture print resolution of 9 needle type printers is not supported horizontal and vertical identical resolution, that is to say not show good square two-dimension code; Secondly, the least bit printing technique that uses printer is the two-dimension code of the side of printing by force also, but dimension scale does not meet the requirement of two-dimension code; More serious phenomenon is significantly overlapping because of what put simultaneously; Cause paper to be battered down, what generally use the stylus printer printing all is legal bill, needs long preservation; Paper was battered down at that time just to be done for, and takes out usefulness again after saying nothing of long preservation.In this case, the related definition in the QR sign indicating number standard just can't be used, and need make improvement.
Summary of the invention
The present invention provides a kind of quick response matrix code and construction method thereof, in order to realize the being fit to quick response matrix code that stylus printer is printed, makes that multiple part bills can long preservation.
For achieving the above object, the invention provides a kind of quick response matrix code, it comprises:
The position sensing figure is positioned at the upper left corner, the upper right corner and the lower left corner that sign indicating number is schemed;
Positioning pattern is positioned at coboundary and left hand edge that sign indicating number is schemed;
Position sensing figure separator is positioned at the right side and the downside of position sensing figure;
Format information is positioned at the right side and the downside of position sensing figure separator;
Coding region is arranged in the zone of sign indicating number figure except that position sensing figure, position sensing figure separator, positioning pattern, format information and white space;
Wherein, the module length breadth ratio of position sensing figure, position sensing figure separator, positioning pattern, format information and coding region is 1.2: 1.
For achieving the above object, the present invention also provides a kind of construction method of quick response matrix code, and this method may further comprise the steps:
Data stream to input is analyzed, and is converted into codeword sequence;
Codeword sequence is put into the matrix piecemeal to be arranged;
The length breadth ratio of each module size is set to 1.2: 1, makes up the quick response matrix code symbol, and the image that generates is saved as the setting form;
The image of setting form is outputed to 9 needle type printers according to setting resolution printing to multiple part bills.
Preferable, the data stream of input is analyzed, be converted into the codeword sequence step and comprise:
Data stream to input is analyzed, the type of the definite character that will encode;
Select needed error-correction level;
Convert data character into bit stream according to setting rule, obtain codeword sequence.
Preferable, codeword sequence is put into matrix piecemeal deposition step comprises:
Codeword sequence is carried out piecemeal, generate the error correction code word, and add it back of codeword sequence to according to error-correction level;
Codeword sequence behind the piecemeal is arranged module in matrix, position sensing figure, position sensing figure separator, positioning pattern and correction graph are put into matrix together.
Preferable, above-mentioned construction method is further comprising the steps of:
Successively the bitmap of the coding region of symbol is carried out mask process with 8 kinds of mask graphs, estimate resulting 8 kinds of results, and select optimum a kind of.
Preferable, the setting form is TIFF (Tagged Image File Format, a TIF).
Preferable, setting resolution is 120*72dpi.
In the above-described embodiments, the length breadth ratio of each module of quick response matrix code is set to 1.2: 1, and the two-dimensional code symbol that makes up is saved as the picture format that is fit to stylus printer identification; And then pass through 9 needle type printers according to setting resolution printing to multiple part bills; It is regular that the quick response codes character position is surveyed dimension of picture, and figure is clear for sign indicating number, can be discerned by the HR200 barcode scanner; Simultaneously because used the true picture print resolution of printer to print; Print point does not have repeatedly overlapping, and paper does not have breakage, but long preservation.
Description of drawings
In order to be illustrated more clearly in the embodiment of the invention or technical scheme of the prior art; To do to introduce simply to the accompanying drawing of required use in embodiment or the description of the Prior Art below; Obviously, the accompanying drawing in describing below only is some embodiments of the present invention, for those of ordinary skills; Under the prerequisite of not paying creative work, can also obtain other accompanying drawing according to these accompanying drawings.
Fig. 1 is quick response matrix code synoptic diagram according to an embodiment of the invention;
Fig. 2 is the construction method process flow diagram of quick response matrix code according to an embodiment of the invention.
Embodiment
To combine the accompanying drawing in the embodiment of the invention below, the technical scheme in the embodiment of the invention is carried out clear, intactly description, obviously, described embodiment only is the present invention's part embodiment, rather than whole embodiment.Based on the embodiment among the present invention, those of ordinary skills are not paying the every other embodiment that is obtained under the creative work prerequisite, all belong to the scope of the present invention's protection.
Fig. 1 is quick response matrix code synoptic diagram according to an embodiment of the invention.As shown in Figure 1, this quick response matrix code comprises:
The position sensing figure is positioned at the upper left corner, the upper right corner and the lower left corner that sign indicating number is schemed;
Positioning pattern is positioned at coboundary and left hand edge that sign indicating number is schemed;
Position sensing figure separator is positioned at the right side and the downside of position sensing figure;
Format information is positioned at the right side and the downside of position sensing figure separator;
Coding region is arranged in the zone of sign indicating number figure except that position sensing figure, position sensing figure separator, positioning pattern, format information and white space;
Wherein, the module length breadth ratio of position sensing figure, position sensing figure separator, positioning pattern, format information and coding region is 1.2: 1.
In the present embodiment; Each the functional graphic module and the standard quick response matrix code among code area format module and the standard GB/T18284-2000 of quick response matrix code are identical, and further the length breadth ratio of each functional graphic module and code area format module is set to 1.2: 1, are suitable for 9 needle type printers according to setting resolution printing to multiple part bills; It is regular that quick response codes character position after the printing is surveyed dimension of picture; Figure is clear for sign indicating number, can be by the identification of HR200 barcode scanner, and print point does not have repeatedly overlapping simultaneously; Paper does not have breakage, but long preservation.
Fig. 2 is the construction method process flow diagram of quick response matrix code according to an embodiment of the invention.As shown in Figure 2, this method may further comprise the steps:
S102 analyzes the data stream of input, is converted into codeword sequence;
S104 puts into the matrix piecemeal with codeword sequence and arranges;
S106, the length breadth ratio of each module size is set to 1.2: 1, makes up the quick response matrix code symbol, and the image that generates is saved as the setting form;
S108 outputs to 9 needle type printers according to setting resolution printing to multiple part bills with the image of setting form.
In the present embodiment, the length breadth ratio of each module of quick response matrix code is set to 1.2: 1, and the two-dimensional code symbol that makes up is saved as the picture format that is fit to stylus printer identification; And then pass through 9 needle type printers according to setting resolution printing to multiple part bills; It is regular that the quick response codes character position is surveyed dimension of picture, and figure is clear for sign indicating number, can be discerned by the HR200 barcode scanner; Simultaneously because used the true picture print resolution of printer to print; Print point does not have repeatedly overlapping, and paper does not have breakage, but long preservation.
For example, the data stream of input is analyzed, is converted into the codeword sequence step and comprises:
Data stream to input is analyzed, the type of the definite character that will encode; Explanation is expanded in the support of QR sign indicating number; Can encode to the data different with default character set; The QR sign indicating number comprises several kinds of different patterns; So that convert different character subsets into sign character efficiently, can carry out the conversion between the pattern in case of necessity, so that be bit stream with data-switching more efficiently;
Select needed error-correction level, if do not predesignate the symbol version that is adopted, the version of the minimum of then selecting to adapt with data;
Convert data character into bit stream according to setting rule, obtain codeword sequence.
When needs carry out mode switch; Before new schema section begins, add mode indicators and carry out mode switch; Add full stop at the back in data sequence, the bit stream that produces is divided into per 8 code words, add in case of necessity and fill character to fill up numeric data code number of words according to release requirement.
For example, codeword sequence being put into matrix piecemeal deposition step comprises:
Codeword sequence is carried out piecemeal, generate the error correction code word, and add it back of codeword sequence to according to error-correction level;
Codeword sequence behind the piecemeal is arranged module in matrix, position sensing figure, position sensing figure separator, positioning pattern and correction graph are put into matrix together.
For example, above-mentioned construction method is further comprising the steps of:
Successively the bitmap of the coding region of symbol is carried out mask process with 8 kinds of mask graphs, estimate resulting 8 kinds of results, and select optimum a kind of.
For example, setting form is TIFF.
For example, setting resolution is 120*72dpi.
Below be a preferred embodiment of the present invention:
The image that makes up the generation of QR code sign is saved as tiff format.In generative process, module size is defined as long 0.42 millimeter, and is wide 0.35 millimeter, meets 1.2: 1 ratio.By this size,, make up the QR code sign of version 6 according to QR sign indicating number standard constructing method; Error-correction level is selected L1, and version 6 comprises 41 modules, so final QR code sign is of a size of long 17.22 millimeters; Wide is 14.35 millimeters, and the tiff format QR code sign image that builds uses the printout under real image print resolution 120*72dpi of SK810 model 9 needle type printer setups to arrive the tetrad NCR; QR code sign position sensing dimension of picture is regular, and figure is clear for sign indicating number, can be discerned by the HR200 barcode scanner; Simultaneously because used the true picture print resolution of printer to print; Print point does not have repeatedly overlapping, and paper does not have breakage, but long preservation.
One of ordinary skill in the art will appreciate that: accompanying drawing is the synoptic diagram of an embodiment, and module in the accompanying drawing or flow process might not be that embodiment of the present invention is necessary.
One of ordinary skill in the art will appreciate that: the module in the device among the embodiment can be described according to embodiment and be distributed in the device of embodiment, also can carry out respective change and be arranged in the one or more devices that are different from present embodiment.The module of the foregoing description can be merged into a module, also can further split into a plurality of submodules.
One of ordinary skill in the art will appreciate that: all or part of step that realizes said method embodiment can be accomplished through the relevant hardware of programmed instruction; Aforesaid program can be stored in the computer read/write memory medium; This program the step that comprises said method embodiment when carrying out; And aforesaid storage medium comprises: various media that can be program code stored such as ROM, RAM, magnetic disc or CD.
What should explain at last is: above embodiment is only in order to explaining technical scheme of the present invention, but not to its restriction; Although with reference to previous embodiment the present invention has been carried out detailed explanation, those of ordinary skill in the art is to be understood that: it still can be made amendment to the technical scheme that previous embodiment is put down in writing, and perhaps part technical characterictic wherein is equal to replacement; And these are revised or replacement, do not make the spirit and the scope of the essence disengaging embodiment of the invention technical scheme of relevant art scheme.
Claims (7)
1. a quick response matrix code is characterized in that, comprising:
The position sensing figure is positioned at the upper left corner, the upper right corner and the lower left corner that sign indicating number is schemed;
Positioning pattern is positioned at coboundary and left hand edge that sign indicating number is schemed;
Position sensing figure separator is positioned at the right side and the downside of said position sensing figure;
Format information is positioned at the right side and the downside of said position sensing figure separator;
Coding region is arranged in the zone of sign indicating number figure except that said position sensing figure, said position sensing figure separator, said positioning pattern, format information and white space;
Wherein, the module length breadth ratio of said position sensing figure, said position sensing figure separator, said positioning pattern, said format information and said coding region is 1.2: 1.
2. the construction method of a quick response matrix code is characterized in that, may further comprise the steps:
Data stream to input is analyzed, and is converted into codeword sequence;
Said codeword sequence is put into the matrix piecemeal to be arranged;
The length breadth ratio of each module size is set to 1.2: 1, makes up the quick response matrix code symbol, and the image that generates is saved as the setting form;
The image of said setting form is outputed to 9 needle type printers according to setting resolution printing to multiple part bills.
3. construction method according to claim 2 is characterized in that, the data stream of input is analyzed, and is converted into the codeword sequence step and comprises:
Data stream to input is analyzed, the type of the definite character that will encode;
Select needed error-correction level;
Convert data character into bit stream according to setting rule, obtain codeword sequence.
4. construction method according to claim 3 is characterized in that, said codeword sequence is put into matrix piecemeal deposition step comprise:
Said codeword sequence is carried out piecemeal, generate the error correction code word, and add it back of said codeword sequence to according to said error-correction level;
Said codeword sequence behind the piecemeal is arranged module in matrix, position sensing figure, position sensing figure separator, positioning pattern and correction graph are put into matrix together.
5. construction method according to claim 4 is characterized in that, and is further comprising the steps of:
Successively the bitmap of the coding region of symbol is carried out mask process with 8 kinds of mask graphs, estimate resulting 8 kinds of results, and select optimum a kind of.
6. construction method according to claim 2 is characterized in that, said setting form is TIFF.
7. construction method according to claim 2 is characterized in that, said setting resolution is 120*72dpi.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201110147190.6A CN102810170B (en) | 2011-06-02 | 2011-06-02 | Quick response matrix code and building method thereof |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201110147190.6A CN102810170B (en) | 2011-06-02 | 2011-06-02 | Quick response matrix code and building method thereof |
Publications (2)
Publication Number | Publication Date |
---|---|
CN102810170A true CN102810170A (en) | 2012-12-05 |
CN102810170B CN102810170B (en) | 2015-04-08 |
Family
ID=47233874
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201110147190.6A Active CN102810170B (en) | 2011-06-02 | 2011-06-02 | Quick response matrix code and building method thereof |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102810170B (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104143109A (en) * | 2014-01-28 | 2014-11-12 | 深圳市雁联计算系统有限公司 | Two-dimensional code coding method, two-dimensional code decoding method and two-dimensional code print |
CN106067052A (en) * | 2016-05-25 | 2016-11-02 | 济南通商条码技术有限公司 | Branding code and construction method, device |
CN109389198A (en) * | 2018-09-05 | 2019-02-26 | 航天信息股份有限公司 | A kind of invoice information storage method and system based on planar bar code technology |
CN110569946A (en) * | 2019-09-05 | 2019-12-13 | 福州三龙喷码科技有限公司 | QR code generation method suitable for inkjet printer |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1324056A (en) * | 2001-07-11 | 2001-11-28 | 吴建明 | Prined shape of fast responded matrix code symbols |
US20040026510A1 (en) * | 2002-08-07 | 2004-02-12 | Shenzhen Syscan Technology Co., Limited. | Methods and systems for encoding and decoding data in 2D symbology |
CN101303742A (en) * | 2008-07-01 | 2008-11-12 | 中国农业大学 | Microminiature Hanxin code and method for generating symbol thereof |
-
2011
- 2011-06-02 CN CN201110147190.6A patent/CN102810170B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1324056A (en) * | 2001-07-11 | 2001-11-28 | 吴建明 | Prined shape of fast responded matrix code symbols |
US20040026510A1 (en) * | 2002-08-07 | 2004-02-12 | Shenzhen Syscan Technology Co., Limited. | Methods and systems for encoding and decoding data in 2D symbology |
CN101303742A (en) * | 2008-07-01 | 2008-11-12 | 中国农业大学 | Microminiature Hanxin code and method for generating symbol thereof |
Non-Patent Citations (1)
Title |
---|
康春颖: ""基于二维码技术的电子票务系统的研究"", 《哈尔滨商业大学学报(自然科学版)》, vol. 25, no. 2, 30 April 2009 (2009-04-30) * |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104143109A (en) * | 2014-01-28 | 2014-11-12 | 深圳市雁联计算系统有限公司 | Two-dimensional code coding method, two-dimensional code decoding method and two-dimensional code print |
CN104143109B (en) * | 2014-01-28 | 2017-04-05 | 深圳市雁联计算系统有限公司 | A kind of coding and decoding methods and its printed article of Quick Response Code |
CN106067052A (en) * | 2016-05-25 | 2016-11-02 | 济南通商条码技术有限公司 | Branding code and construction method, device |
CN106067052B (en) * | 2016-05-25 | 2019-09-17 | 济南通商条码技术有限公司 | Branding code and its construction method, device |
CN109389198A (en) * | 2018-09-05 | 2019-02-26 | 航天信息股份有限公司 | A kind of invoice information storage method and system based on planar bar code technology |
CN110569946A (en) * | 2019-09-05 | 2019-12-13 | 福州三龙喷码科技有限公司 | QR code generation method suitable for inkjet printer |
Also Published As
Publication number | Publication date |
---|---|
CN102810170B (en) | 2015-04-08 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101221625B (en) | Processing method capable of embedding information on bar code | |
US7073724B2 (en) | Tagged surface printer | |
CN100483313C (en) | Method and device for processing of information | |
CN104281830B (en) | Two-dimension code identification method and device | |
US7617047B2 (en) | Map information system and map information processing method and program | |
JPH03204793A (en) | Non volatile electrooptic type read -only memory in high-density two- dimensional symbolic display method | |
CN103019636B (en) | Voucher design Method of printing and system | |
CN101443790A (en) | Efficient processing of non-reflow content in a digital image | |
CN102810170B (en) | Quick response matrix code and building method thereof | |
CN102375716B (en) | Variable data printing method and system | |
CN101127089A (en) | Implement method for embedding large amount of information on printing media | |
CN101849243B (en) | Code pattern | |
US8854322B2 (en) | Image processing apparatus, computer readable medium, and image processing method | |
CN102381065A (en) | Method for realizing variable information printing by invisible two dimensional barcode word stock | |
CN102047215A (en) | N-up sheetlet based imaging with flexible formatting of logical pages | |
CN101503037B (en) | Processing method for embedding information on paper medium file | |
CN102810171A (en) | Chinese-sensible code and construction method thereof | |
US20100147960A1 (en) | Methods, devices, and systems for printing bar codes | |
CN102810149A (en) | Quick response matrix code position detection graph and building method thereof | |
US8687919B2 (en) | Image processing apparatus, computer readable medium, and image processing method | |
CN103136559A (en) | Rasterization method of variable bar codes and device | |
CN102442047A (en) | Label processing method for board combination | |
CN102810172B (en) | Chinese sensible code position detection pattern and construction method thereof | |
JP6166976B2 (en) | Data structure of barcode font data, page data generation device, raster data generation device, raster data generation method and program | |
CN103909741A (en) | Method and apparatus for printing two-dimensional code by use of 9-pin printer in embedded system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant |