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 PDF

Info

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
Application number
CN2012100448220A
Other languages
Chinese (zh)
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.)
Nanjing University
Original Assignee
Nanjing University
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 Nanjing University filed Critical Nanjing University
Priority to CN2012100448220A priority Critical patent/CN102646206A/en
Publication of CN102646206A publication Critical patent/CN102646206A/en
Pending legal-status Critical Current

Links

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

Method to QR sign indicating number black and white distribution mask
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
Figure BDA0000138310260000031

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
Figure DEST_PATH_FDA0000138310250000011
CN2012100448220A 2012-02-24 2012-02-24 Method for masking black and white distribution of QR (Quick Response) codes Pending CN102646206A (en)

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)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105480194A (en) * 2014-10-02 2016-04-13 罗伯特·博世有限公司 Plastic member, particularly rain scrapping member

Citations (3)

* Cited by examiner, † Cited by third party
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 having rectangular region provided with specific patterns for specify cell positions and distinction from background

Patent Citations (3)

* Cited by examiner, † Cited by third party
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 having rectangular region provided with specific patterns for specify cell positions and distinction from background

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
章莉: "连续型二维条码的容错技术与掩模方案", 《中国硕士论文全文数据库》 *

Cited By (1)

* Cited by examiner, † Cited by third party
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 producing 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
CN101996336B (en) Method and device for generating and decoding two-dimensional bar code
MY167537A (en) Pattern for coding numerical information on a surface, and marking and reading methods
CN102968654A (en) Method and system for producing information recognizable by naked eyes in plane of two-dimensional (2D) code and 2D code
CN103646266A (en) Two-dimension-code-based bill generation system and identification method
CN109447216A (en) A kind of two dimensional code quick and precisely identified
CN104794987A (en) Two-dimension code anti-counterfeit label
CN103033171B (en) Encoding mark based on colors and structural features
CN105335744A (en) One-dimensional code region location based on image backbone extraction strip distribution features
CN106067054A (en) A kind of Quick Response Code based on QR code
CN103577861B (en) Bar code structure and bar code encoding method
CN110114781A (en) Method for detecting and identifying long-range high density visual indicia
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)
CN102646206A (en) Method for masking black and white distribution of QR (Quick Response) codes
Hara Development and popularization of QR code—Code development pursuing reading performance and market forming by open strategy—
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
CN107742089A (en) A kind of method that Quick Response Code automatic identification is realized using electrical form
CN108734048A (en) Various dimensions Quick Response Code based on proprietary code generates and interpretation method
CN106130566B (en) 72 bit status information big data traceability systems of one kind can error correction coding/decoding method
CN103279784A (en) Two-dimensional anti-counterfeit label and producing method thereof
CN104408505A (en) Integrated type RFID two-dimension code tag

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