CN102810170B - Quick response matrix code and building method thereof - Google Patents

Quick response matrix code and building method thereof Download PDF

Info

Publication number
CN102810170B
CN102810170B CN201110147190.6A CN201110147190A CN102810170B CN 102810170 B CN102810170 B CN 102810170B CN 201110147190 A CN201110147190 A CN 201110147190A CN 102810170 B CN102810170 B CN 102810170B
Authority
CN
China
Prior art keywords
codeword sequence
code
quick response
matrix
response matrix
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.)
Active
Application number
CN201110147190.6A
Other languages
Chinese (zh)
Other versions
CN102810170A (en
Inventor
陈江宁
甘景全
偶瑞军
谢宇
李少维
李利
宋颍
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Aisino Corp
Original Assignee
Aisino Corp
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Aisino Corp filed Critical Aisino Corp
Priority to CN201110147190.6A priority Critical patent/CN102810170B/en
Publication of CN102810170A publication Critical patent/CN102810170A/en
Application granted granted Critical
Publication of CN102810170B publication Critical patent/CN102810170B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Printers Characterized By Their Purpose (AREA)

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

Quick response matrix code and construction method thereof
Technical field
The present invention relates to two-dimensional bar code field, in particular to a kind of quick response matrix code and construction method thereof.
Background technology
QR (Quick Response responds fast) code standard GB/T/T18284-2000 defines a kind of matrix two-dimensional barcode, describes the quadrate array that QR code sign is made up of square modules in 5.3 of standard.The view finding figure describing QR code in the 5.3.2 of standard is made up of 3 identical position sensing figures, lays respectively at the upper left corner of QR code sign, the upper right corner and the lower left corner.Each position sensing figure can be regarded as and is made up of 3 overlapping concentric squares, and they are respectively 7*7 the individual dark module of dark module, a 5*5 light module and 3*3.The module width ratio of position sensing figure is 1: 1: 3: 1: 1.
The module described in above-mentioned standard is square or name square, this dimension definitions for bar code printer without any problem, for special printing device, such as use the words that 9 needle type printers print, there is very large problem, first, the true picture print resolution of 9 needle type printers does not support horizontal and vertical identical resolution, does not that is show good square Quick Response Code; Secondly, the least bit printing technique using printer also can the Quick Response Code of the side of printing by force, but dimension scale does not meet the requirement of Quick Response Code, more serious phenomenon is because the significantly overlap of point simultaneously, cause paper to be battered down, what general use stylus printer printed is all legal bill, needs to preserve for a long time, paper is battered down just to be done at that time, took out use again after saying nothing of long-term preservation.In this case, the related definition in QR code standard just cannot be applied, and needs to make improvement.
Summary of the invention
The invention provides a kind of quick response matrix code and construction method thereof, in order to realize the quick response matrix code that applicable stylus printer prints, multiple part bills can be preserved for a long time.
For achieving the above object, the invention provides a kind of quick response matrix code, it comprises:
Position sensing figure, is positioned at the upper left corner of yard figure, the upper right corner and the lower left corner;
Positioning pattern, is positioned at coboundary and the left hand edge of yard figure;
Position sensing figure separator, is positioned at right side and the downside of position sensing figure;
Format information, is positioned at right side and the downside of position sensing figure separator;
Coding region, is arranged in the region of yard figure except 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, present invention also offers a kind of construction method of quick response matrix code, the method comprises the following steps:
The data stream of input is analyzed, is converted into codeword sequence;
Codeword sequence is put into matrix piecemeal to arrange;
The length breadth ratio of modules size is set to 1.2: 1, builds quick response matrix code symbol, and be setting form by the Image Saving generated;
The image of setting form is outputted to 9 needle type printers according to setting resolution printing on multiple part bills.
Preferably, the data stream of input is analyzed, is converted into codeword sequence step and comprises:
The data stream of input is analyzed, determines the type will carrying out the character of encoding;
Error-correction level required for selection;
According to setting rule, data character is converted to bit stream, obtains codeword sequence.
Preferably, codeword sequence is put into matrix piecemeal deposition step to comprise:
Codeword sequence is carried out piecemeal, generates error correction code word according to error-correction level, and added to after codeword sequence;
Codeword sequence after piecemeal is arranged module in a matrix, position sensing figure, position sensing figure separator, positioning pattern are put into matrix together with correction graph.
Preferably, above-mentioned construction method is further comprising the steps of:
Successively mask process is carried out to the bitmap of the coding region of symbol with 8 kinds of mask graphs, evaluate the 8 kinds of results obtained, and select optimum one.
Preferably, setting form is TIFF (Tagged Image File Format, Tagged Image File (TIF) Format).
Preferably, setting resolution is 120*72dpi.
In the above-described embodiments, the length breadth ratio of the modules of quick response matrix code is set to 1.2: 1, and the two-dimensional code symbol of structure is saved as the picture format of applicable stylus printer identification, and then by 9 needle type printers according to setting resolution printing on multiple part bills, quick response codes character position detection dimension of picture is regular, figure is clear for code, can by the identification of HR200 barcode scanner, simultaneously because the true picture print resolution employing printer prints, print point is without repeatedly overlapping, paper, without breakage, can be preserved for a long time.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, be briefly described to the accompanying drawing used required in embodiment or description of the prior art below, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
Fig. 1 is quick response matrix code schematic 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
Below in conjunction with the accompanying drawing in the embodiment of the present invention, be clearly and completely described the technical scheme in the embodiment of the present invention, obviously, described embodiment is only 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 paying the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
Fig. 1 is quick response matrix code schematic diagram according to an embodiment of the invention.As shown in Figure 1, this quick response matrix code comprises:
Position sensing figure, is positioned at the upper left corner of yard figure, the upper right corner and the lower left corner;
Positioning pattern, is positioned at coboundary and the left hand edge of yard figure;
Position sensing figure separator, is positioned at right side and the downside of position sensing figure;
Format information, is positioned at right side and the downside of position sensing figure separator;
Coding region, is arranged in the region of yard figure except 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 functional graphic module of quick response matrix code is identical with the standard quick response matrix code in standard GB/T/T18284-2000 with code area format module, and further the length breadth ratio of each functional graphic module and code area format module is set to 1.2: 1, be suitable for 9 needle type printers according to setting resolution printing on multiple part bills, quick response codes character position detection dimension of picture after printing is regular, figure is clear for code, can by the identification of HR200 barcode scanner, print point is without repeatedly overlapping simultaneously, paper is without breakage, can preserve for a long time.
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, the method comprises the following steps:
S102, analyzes the data stream of input, is converted into codeword sequence;
S104, puts into matrix piecemeal and arranges by codeword sequence;
S106, is set to 1.2: 1 by the length breadth ratio of modules size, builds quick response matrix code symbol, and is setting form by the Image Saving generated;
S108, outputs to 9 needle type printers according to setting resolution printing on multiple part bills by the image of setting form.
In the present embodiment, the length breadth ratio of the modules of quick response matrix code is set to 1.2: 1, and the two-dimensional code symbol of structure is saved as the picture format of applicable stylus printer identification, and then by 9 needle type printers according to setting resolution printing on multiple part bills, quick response codes character position detection dimension of picture is regular, figure is clear for code, can by the identification of HR200 barcode scanner, simultaneously because the true picture print resolution employing printer prints, print point is without repeatedly overlapping, paper, without breakage, can be preserved for a long time.
Such as, the data stream of input is analyzed, is converted into codeword sequence step and comprises:
The data stream of input is analyzed, determines the type will carrying out the character of encoding; Explanation is expanded in the support of QR code, the data different from default character set can be encoded, QR code comprises several different pattern, efficiently different character subsets is converted to sign character, the conversion between pattern can be carried out if desired, more efficiently to convert data to bit stream;
Error-correction level required for selection, if do not have prespecified adopted symbol version, then selects the minimum version adapted with data;
According to setting rule, data character is converted to bit stream, obtains codeword sequence.
When needs carry out patten transformation, before new schema section starts, add mode indicators carry out patten transformation, after data sequence, add full stop, the bit stream of generation is divided into every 8 code words, add if desired and fill character to fill up the numeric data code number of words according to release requirement.
Such as, codeword sequence is put into matrix piecemeal deposition step to comprise:
Codeword sequence is carried out piecemeal, generates error correction code word according to error-correction level, and added to after codeword sequence;
Codeword sequence after piecemeal is arranged module in a matrix, position sensing figure, position sensing figure separator, positioning pattern are put into matrix together with correction graph.
Such as, above-mentioned construction method is further comprising the steps of:
Successively mask process is carried out to the bitmap of the coding region of symbol with 8 kinds of mask graphs, evaluate the 8 kinds of results obtained, and select optimum one.
Such as, setting form is TIFF.
Such as, setting resolution is 120*72dpi.
Be below a preferred embodiment of the present invention:
Image Saving structure QR code sign generated is tiff format.In generative process, module size is defined as long 0.42 millimeter, wide 0.35 millimeter, meets the ratio of 1.2: 1.By this size, according to the construction method of QR code standard, build the QR code sign of version 6, error-correction level selects L1, version 6 comprises 41 modules, so final QR code sign is of a size of long 17.22 millimeters, wide is 14.35 millimeters, the tiff format QR code sign image built, use SK810 model 9 needle type printer setup under real image printing resolution 120*72dpi printout to tetrad no carbon paper, QR code sign position sensing dimension of picture is regular, figure is clear for code, can by the identification of HR200 barcode scanner, simultaneously because the true picture print resolution employing printer prints, print point is without repeatedly overlapping, paper is without breakage, can preserve for a long time.
One of ordinary skill in the art will appreciate that: accompanying drawing is the schematic diagram of an embodiment, the module in accompanying drawing or flow process might not be that enforcement the present invention is necessary.
One of ordinary skill in the art will appreciate that: the module in the device in embodiment can describe 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 being different from the present embodiment.The module of above-described embodiment can merge into a module, also can split into multiple submodule further.
One of ordinary skill in the art will appreciate that: all or part of step realizing said method embodiment 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 said method embodiment; 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 embodiment is only in order to illustrate technical scheme of the present invention, be not intended to limit; Although with reference to previous embodiment 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 previous embodiment, or carries out equivalent replacement to wherein portion of techniques feature; And these amendments or replacement, do not make the essence of appropriate technical solution depart from the spirit and scope of embodiment of the present invention technical scheme.

Claims (4)

1. a construction method for quick response matrix code, is characterized in that, comprises the following steps:
The data stream of input is analyzed, is converted into codeword sequence;
Described codeword sequence is put into matrix piecemeal to arrange;
The length breadth ratio of modules size is set to 1.2:1, builds quick response matrix code symbol, and be setting form by the Image Saving generated;
The image of described setting form is outputted to 9 needle type printers according to setting resolution printing on multiple part bills;
The data stream of input is analyzed, is converted into codeword sequence step and comprises:
The data stream of input is analyzed, determines the type will carrying out the character of encoding;
Error-correction level required for selection;
According to setting rule, data character is converted to bit stream, obtains codeword sequence;
Described codeword sequence is put into matrix piecemeal deposition step to comprise:
Described codeword sequence is carried out piecemeal, generates error correction code word according to described error-correction level, and added to after described codeword sequence;
Described codeword sequence after piecemeal is arranged module in a matrix, position sensing figure, position sensing figure separator, positioning pattern are put into matrix together with correction graph.
2. construction method according to claim 1, is characterized in that, further comprising the steps of:
Successively mask process is carried out to the bitmap of the coding region of symbol with 8 kinds of mask graphs, evaluate the 8 kinds of results obtained, and select optimum one.
3. construction method according to claim 1, is characterized in that, described setting form is TIFF.
4. construction method according to claim 1, is characterized in that, described setting resolution is 120*72dpi.
CN201110147190.6A 2011-06-02 2011-06-02 Quick response matrix code and building method thereof Active CN102810170B (en)

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 CN102810170A (en) 2012-12-05
CN102810170B true 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)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104143109B (en) * 2014-01-28 2017-04-05 深圳市雁联计算系统有限公司 A kind of coding and decoding methods and its printed article of Quick Response Code
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
CN110569946B (en) * 2019-09-05 2022-06-10 福州三龙喷码科技有限公司 QR code generation method suitable for inkjet printer

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1324056A (en) * 2001-07-11 2001-11-28 吴建明 Prined shape of fast responded matrix code symbols
CN101303742A (en) * 2008-07-01 2008-11-12 中国农业大学 Microminiature Hanxin code and method for generating symbol thereof

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7028911B2 (en) * 2002-08-07 2006-04-18 Shenzhen Syscan Technology Co. Limited Methods and systems for encoding and decoding data in 2D symbology

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1324056A (en) * 2001-07-11 2001-11-28 吴建明 Prined shape of fast responded matrix code symbols
CN101303742A (en) * 2008-07-01 2008-11-12 中国农业大学 Microminiature Hanxin code and method for generating symbol thereof

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
康春颖."基于二维码技术的电子票务系统的研究".《哈尔滨商业大学学报(自然科学版)》.2009,第25卷(第2期), *

Also Published As

Publication number Publication date
CN102810170A (en) 2012-12-05

Similar Documents

Publication Publication Date Title
US7784703B2 (en) Data tag with a position detection pattern
JP6144585B2 (en) Multidimensional color barcode and method
CN104281830B (en) Two-dimension code identification method and device
US8520006B2 (en) Image processing apparatus and method, and program
KR101260499B1 (en) Method for manufacturing design qr-code
CN102810170B (en) Quick response matrix code and building method thereof
JP2009241524A (en) Image output apparatus
CN101849243B (en) Code pattern
WO2005078569A1 (en) On-demand printing of coding patterns
US8854322B2 (en) Image processing apparatus, computer readable medium, and image processing method
CN101503037B (en) Processing method for embedding information on paper medium file
JP2015084199A (en) Information code creation method, information code, information code reading device, and information code use system
CN102810171B (en) Chinese-sensible code and construction method thereof
US8687919B2 (en) Image processing apparatus, computer readable medium, and image processing method
CN102810149B (en) Quick response matrix code position sensing figure and construction method thereof
CN102442047B (en) Label processing method and device for board combination
CN102810169B (en) Special-shaped two-dimensional matrix barcode construction method
CN102810172B (en) Chinese sensible code position detection pattern and construction method thereof
CN103909741A (en) Method and apparatus for printing two-dimensional code by use of 9-pin printer in embedded system
JP6166976B2 (en) Data structure of barcode font data, page data generation device, raster data generation device, raster data generation method and program
JP2012093971A (en) Two-dimensional code generating device, two-dimensional code reading device, two-dimensional code, two-dimensional code generation method, two-dimensional code reading method, and program
JP3735062B2 (en) Barcode printing processing method and barcode printing processing system
CN107408214A (en) M system loop codings
CN115686391A (en) Printing control method and device for image-text mixed layout
JP2016004536A (en) Management 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