CN102646206A - Method for masking black and white distribution of QR (Quick Response) codes - Google Patents
Method for masking black and white distribution of QR (Quick Response) codes Download PDFInfo
- Publication number
- CN102646206A CN102646206A CN2012100448220A CN201210044822A CN102646206A CN 102646206 A CN102646206 A CN 102646206A CN 2012100448220 A CN2012100448220 A CN 2012100448220A CN 201210044822 A CN201210044822 A CN 201210044822A CN 102646206 A CN102646206 A CN 102646206A
- Authority
- CN
- China
- Prior art keywords
- black
- white
- mask
- sign indicating
- indicating number
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000009826 distribution Methods 0.000 title claims abstract description 19
- 238000000034 method Methods 0.000 title claims abstract description 7
- 230000000873 masking effect Effects 0.000 title abstract 3
- 238000011156 evaluation Methods 0.000 claims abstract description 6
- 108700026244 Open Reading Frames Proteins 0.000 claims description 2
- 108091026890 Coding region Proteins 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000015572 biosynthetic process Effects 0.000 description 1
- 238000010586 diagram Methods 0.000 description 1
- 238000007726 management method Methods 0.000 description 1
- 239000011159 matrix material Substances 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
Images
Landscapes
- Image Analysis (AREA)
Abstract
The invention discloses a method for masking black and white distribution of QR (Quick Response) codes. The QR codes are masked by adopting 1:1:3:1:1 black and white distribution during two kinds of black and white distribution of 1:1:2:1:1 and 1:1:4:1:1, and an evaluation criterion when the QR codes are masked by adopting 1:1:3:1:1 black and white distribution is adopted. In the coding criterion of the QR codes, for the reliability of reading of the QR codes, preferably, deep color and light color modules are arranged regularly. According to the invention, improved masking is adopted in identification of the black and white distribution of 1:1:2:1:1 and 1:1:4:1:1, and the conditions of the black and white distribution of 1:1:2:1:1 and 1:1:4:1:1 are avoided to the greatest extent.
Description
Technical field
Also carry out mask when these two kinds of black and white of 1:1:2:1:1 and 1:1:4:1:1 that the present invention proposes the QR sign indicating number distribute, improved the mask code of points of QR sign indicating number, make it adapt to practical situations more, further reduce the difficulty of identification.
Technical background
Planar bar code technology begins to occur from eighties of last century the end of the eighties, through more than 20 years apply, has brought into play enormous function in the information management and the message exchange field of a lot of industries.
Domestic two-dimension code market is also in fast development; The bar code standard that the QR sign indicating number is recommended as official of China Mobile; Just included China Mobile's data portion in as far back as 2004 and get business plan, formulate China Mobile's company standard in the end of the year 2005, included the China Mobile terminal in 2006 and preset planning.At present, also begin to occur the figure of QR sign indicating number on the domestic train ticket, believe that two-dimension code can obtain vigorously to develop at home.
The mask of QR sign indicating number makes that as the important component part of QR sign indicating number the black and white piece distribution of QR sign indicating number is more reasonable, and the difficulty of identification drops to minimum.
Summary of the invention
The present invention seeks to, also carry out mask when the 1:1:2:1:1 of proposition QR sign indicating number and these two kinds of black and white of 1:1:4:1:1 distribute, according to the mask code of points, according to actual operating position, make that the black and white piece distribution of QR sign indicating number is more reasonable, the difficulty of identification drops to minimum.In the use of reality, the module of image recognition confirms the view finding figure can for elastic space of this ratio, and 1:1:2:1:1 and 1:1:4:1:1 black and white distribute and also can bring difficulty to identification like this.Like this, improve the standards of grading of mask, avoid the appearance of 1:1:2:1:1 and 1:1:4:1:1 black and white distribution situation just to seem very necessary as far as possible.
Technical scheme of the present invention is: to the method for QR sign indicating number black and white distribution mask; It is characterized in that: these two kinds of black and white of QR sign indicating number 1:1:2:1:1 and 1:1:4:1:1 adopt the 1:1:3:1:1 black and white to distribute when distributing to carry out mask, and evaluation criterion when adopting the 1:1:3:1:1 black and white to distribute to carry out the mask scoring.
In the coding standard of QR sign indicating number,, preferably balancedly arrange dark and light module for the reliability that the QR sign indicating number is read.Should avoid position sensing figure 1011101 to appear at other positions of bitmap as far as possible.Mask exists in order to solve above-mentioned two problems.Always have 8 kinds of masks; In order to confirm to use which kind of mask, QR sign indicating number coding standard has been formulated the standards of grading of mask, and situation about wherein this black and white of 1:1:3:1:1 being distributed is given very high branch; Select the mask of minimum branch at last, distribute for fear of the black and white of this ratio exactly and bring difficulty to identification.But in the use of reality, the module of image recognition confirms the view finding figure can for elastic space of this ratio, and 1:1:2:1:1 and 1:1:4:1:1 black and white distribute and also can bring difficulty to identification like this.Like this, improve the standards of grading of mask, avoid the appearance of 1:1:2:1:1 and 1:1:4:1:1 black and white distribution situation just to seem very necessary as far as possible.
Beneficial effect of the present invention is: also carry out mask when the 1:1:2:1:1 of QR sign indicating number and these two kinds of black and white of 1:1:4:1:1 are distributed; Through improving the mask code of points of QR sign indicating number; According to actual operating position; Actual conditions in conjunction with demoder are carried out corresponding modification to original code of points, make it adapt to actual applicable cases more.Increased code of points to 1:1:2:1:1 and these two kinds of black and white distributions of 1:1:4:1:1.Make that the black and white piece distribution of QR sign indicating number is more reasonable, the difficulty of identification drops to minimum.
Description of drawings
Fig. 1 is a mask pattern, corresponding to table 2;
Fig. 2 is a QR sign indicating number mask process synoptic diagram.
Embodiment
For the reliability that the QR sign indicating number is read, preferably balancedly arrange dark and light module.Should avoid position sensing figure 1011101 to appear at other positions of bitmap as far as possible.Mask is exactly that the step of mask operation is following in order to solve above-mentioned two problems:
Module figure (except format information and the version information) with a plurality of mask matrix figures and the QR sign indicating number coding region that generated carries out xor operation.Through the nonconforming part score of ad hoc rules, to assess these results to each mask.Select the minimum mask of mark, mark is low to mean that nonconforming part is few.
Table 2 has provided the reference (being positioned over the scale-of-two reference in the format information) of mask graph and the condition that mask graph generates.Mask graph is through those conditions in the coding region (not being included as the part that format information and version information keep) are produced for dark for genuine module definition.In the shown condition, i represents the line position of module, and j represents the column position of module, (i, j)=(0,0) position in the upper left corner in the conventional letter.
Table 2QR sign indicating number mask formation condition
The mask graph reference | Condition |
000 | (i+j)mod?2=0 |
001 | i?mod?2=0 |
010 | j?mod?3=0 |
011 | (i+j)mod?3=0 |
100 | ((i?div?2)+(j?div?3))mod?2=0 |
101 | (i?j)mod?2+(i?j)mod?3=0 |
110 | ((i?j)mod?2+(i?j)mod?3)mod?2=0 |
111 | ((i?j)mod?3+(i+j)mod?2)mod?2=0 |
In the use of reality, the module of image recognition confirms the view finding figure can for elastic space of this ratio, and 1:1:2:1:1 and 1:1:4:1:1 black and white distribute and also can bring difficulty to identification like this.Like this, improve the standards of grading of mask, avoid the appearance of 1:1:2:1:1 and 1:1:4:1:1 black and white distribution situation just to seem very necessary as far as possible.The present invention has improved original mask standards of grading, has increased the code of points to 1:1:2:1:1 and these two kinds of black and white distributions of 1:1:4:1:1, makes it adapt to the situation of practical application more.
N1 to N4 be to bad characteristic institute point penalty number weight (N1=3, N2=3, N3=40, N4=10, N5=10, N6=10), i for next-door neighbour's color equal modules number greater than 5 number of times, k is the shared ratio of the dark module of symbol from 50% gap, step-length is 5%.Though mask operation is only carried out coding region, do not comprise format information, estimate whole symbol is carried out.
QR sign indicating number mask evaluation criterion after table 3 improves
Claims (2)
1. to the method for QR sign indicating number black and white distribution mask, it is characterized in that: these two kinds of black and white of QR sign indicating number 1:1:2:1:1 and 1:1:4:1:1 adopt the 1:1:3:1:1 black and white to distribute when distributing to carry out mask, and evaluation criterion when adopting the 1:1:3:1:1 black and white to distribute to carry out the mask scoring.
2. the method to QR sign indicating number black and white distribution mask according to claim 1 is characterized in that: evaluation criterion during scoring that these three kinds of black and white of QR sign indicating number 1:1:3:1:1,1:1:2:1:1 and 1:1:4:1:1 distribute:
N1 is the weight to bad characteristic institute point penalty number to N4, N1=3, N2=3, N3=40; N4=10, N5=10, N6=10; I for next-door neighbour's color equal modules number greater than 5 number of times, k is the shared ratio of the dark module of symbol from 50% gap, step-length is 5%; Though mask operation is only carried out coding region, do not comprise format information, estimate whole symbol is carried out.
Table 1 QR sign indicating number mask evaluation criterion
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2012100448220A CN102646206A (en) | 2012-02-24 | 2012-02-24 | Method for masking black and white distribution of QR (Quick Response) codes |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2012100448220A CN102646206A (en) | 2012-02-24 | 2012-02-24 | Method for masking black and white distribution of QR (Quick Response) codes |
Publications (1)
Publication Number | Publication Date |
---|---|
CN102646206A true CN102646206A (en) | 2012-08-22 |
Family
ID=46659021
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN2012100448220A Pending CN102646206A (en) | 2012-02-24 | 2012-02-24 | Method for masking black and white distribution of QR (Quick Response) codes |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102646206A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105480194A (en) * | 2014-10-02 | 2016-04-13 | 罗伯特·博世有限公司 | Plastic member, particularly rain scrapping member |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101430768A (en) * | 2007-11-07 | 2009-05-13 | 刘涛 | Two-dimension bar code system and its positioning method |
US20090212111A1 (en) * | 2008-01-25 | 2009-08-27 | Intermec Ip Corp. | System and method for identifying erasures in a 2d symbol |
CN101667256A (en) * | 2008-03-27 | 2010-03-10 | 电装波动株式会社 | Two-dimensional code with specific pattern for specifying cell position and distinguishing from background |
-
2012
- 2012-02-24 CN CN2012100448220A patent/CN102646206A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101430768A (en) * | 2007-11-07 | 2009-05-13 | 刘涛 | Two-dimension bar code system and its positioning method |
US20090212111A1 (en) * | 2008-01-25 | 2009-08-27 | Intermec Ip Corp. | System and method for identifying erasures in a 2d symbol |
CN101667256A (en) * | 2008-03-27 | 2010-03-10 | 电装波动株式会社 | Two-dimensional code with specific pattern for specifying cell position and distinguishing from background |
Non-Patent Citations (1)
Title |
---|
章莉: "连续型二维条码的容错技术与掩模方案", 《中国硕士论文全文数据库》 * |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105480194A (en) * | 2014-10-02 | 2016-04-13 | 罗伯特·博世有限公司 | Plastic member, particularly rain scrapping member |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101667256B (en) | Method for generating and displaying two-dimensional code | |
CN101093553A (en) | 2D code system, and identification method | |
TWI746882B (en) | Two-dimensional barcode, printed publication, generating device, and information processing method | |
CN101334849A (en) | Two-dimension code label symbol creation method and apparatus and two-dimension code label structure | |
CN101515335A (en) | Color two dimension bar code with high compression ratio Chinese character coding capability and its coding and decoding method | |
MY167537A (en) | Pattern for coding numerical information on a surface, and marking and reading methods | |
CN103646266A (en) | Two-dimension-code-based bill generation system and identification method | |
CN109447216A (en) | A kind of two dimensional code quick and precisely identified | |
CN103033171B (en) | Encoding mark based on colors and structural features | |
CN104794987A (en) | Two-dimension code anti-counterfeit label | |
JP2008015642A (en) | Two-dimensional code with logo | |
Lee et al. | Industrial cluster development and its contribution to economic growth in Taiwan-Hsinchu Science and Industrial Park (HSIP) | |
CN101593247A (en) | Utilize the literal body characteristics to carry the text digital water mark technology of watermark information | |
CN102646206A (en) | Method for masking black and white distribution of QR (Quick Response) codes | |
CN103778453B (en) | Writable two-dimensional bar code based on fault-tolerant mechanism and generating method thereof | |
CN108229627A (en) | Agricultural product quality and safety whole process is traced to the source space-time hybrid coding and coding method | |
CN106326956B (en) | A kind of 72 bit matrix codes being made of two dimensional code can error correction coding/decoding method | |
CN109522770A (en) | A kind of two dimensional code quickly positioned | |
CN106130566B (en) | 72 bit status information big data traceability systems of one kind can error correction coding/decoding method | |
CN105046306A (en) | Method for encoding color multi-dimensional codes containing information of variety of biological characteristics | |
WO2020143559A1 (en) | Quick positioning method for forming two-dimensional code positioning point dot matrix, and quick positioning method for capturing two-dimensional code positioning point dot matrix | |
CN109543803A (en) | The coded system and decoding system of editable primary-secondary type color two dimensional code | |
CN102708344A (en) | Dot matrix code identification method | |
CN102609748B (en) | Decoding method of a chip | |
CN101710389B (en) | Include layout method, implementation method and the structure of the character of constituent element type bar code |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C02 | Deemed withdrawal of patent application after publication (patent law 2001) | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20120822 |