CN107122816A - A kind of self-defined view finding figure Quick Response Code and generation method - Google Patents
A kind of self-defined view finding figure Quick Response Code and generation method Download PDFInfo
- Publication number
- CN107122816A CN107122816A CN201710166424.9A CN201710166424A CN107122816A CN 107122816 A CN107122816 A CN 107122816A CN 201710166424 A CN201710166424 A CN 201710166424A CN 107122816 A CN107122816 A CN 107122816A
- Authority
- CN
- China
- Prior art keywords
- dimensional code
- data
- graphics
- image
- finding
- 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
- 238000000034 method Methods 0.000 title claims abstract description 32
- 239000011159 matrix material Substances 0.000 claims abstract description 31
- 238000001514 detection method Methods 0.000 claims abstract description 26
- 238000007405 data analysis Methods 0.000 claims abstract description 4
- 238000005452 bending Methods 0.000 claims description 3
- 238000006243 chemical reaction Methods 0.000 claims description 3
- 238000003702 image correction Methods 0.000 claims description 3
- 238000012795 verification Methods 0.000 claims description 3
- 230000008901 benefit Effects 0.000 abstract description 6
- 230000008569 process Effects 0.000 description 6
- 238000010586 diagram Methods 0.000 description 2
- 238000003384 imaging method Methods 0.000 description 2
- 230000006872 improvement Effects 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 229960000074 biopharmaceutical Drugs 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06K—GRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
- G06K19/00—Record carriers for use with machines and with at least a part designed to carry digital markings
- G06K19/06—Record carriers for use with machines and with at least a part designed to carry digital markings characterised by the kind of the digital marking, e.g. shape, nature, code
- G06K19/06009—Record carriers for use with machines and with at least a part designed to carry digital markings characterised by the kind of the digital marking, e.g. shape, nature, code with optically detectable marking
- G06K19/06046—Constructional details
- G06K19/06075—Constructional details the marking containing means for error correction
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06K—GRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
- G06K19/00—Record carriers for use with machines and with at least a part designed to carry digital markings
- G06K19/06—Record carriers for use with machines and with at least a part designed to carry digital markings characterised by the kind of the digital marking, e.g. shape, nature, code
- G06K19/06009—Record carriers for use with machines and with at least a part designed to carry digital markings characterised by the kind of the digital marking, e.g. shape, nature, code with optically detectable marking
- G06K19/06037—Record carriers for use with machines and with at least a part designed to carry digital markings characterised by the kind of the digital marking, e.g. shape, nature, code with optically detectable marking multi-dimensional coding
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06K—GRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
- G06K19/00—Record carriers for use with machines and with at least a part designed to carry digital markings
- G06K19/06—Record carriers for use with machines and with at least a part designed to carry digital markings characterised by the kind of the digital marking, e.g. shape, nature, code
- G06K19/06009—Record carriers for use with machines and with at least a part designed to carry digital markings characterised by the kind of the digital marking, e.g. shape, nature, code with optically detectable marking
- G06K19/06046—Constructional details
- G06K19/06131—Constructional details the marking comprising a target pattern, e.g. for indicating the center of the bar code or for helping a bar code reader to properly orient the scanner or to retrieve the bar code inside of an image
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06K—GRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
- G06K19/00—Record carriers for use with machines and with at least a part designed to carry digital markings
- G06K19/06—Record carriers for use with machines and with at least a part designed to carry digital markings characterised by the kind of the digital marking, e.g. shape, nature, code
- G06K19/06009—Record carriers for use with machines and with at least a part designed to carry digital markings characterised by the kind of the digital marking, e.g. shape, nature, code with optically detectable marking
- G06K19/06046—Constructional details
- G06K19/06168—Constructional details the marking being a concentric barcode
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06K—GRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
- G06K7/00—Methods or arrangements for sensing record carriers, e.g. for reading patterns
- G06K7/10—Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation
- G06K7/14—Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation using light without selection of wavelength, e.g. sensing reflected white light
- G06K7/1404—Methods for optical code recognition
- G06K7/1408—Methods for optical code recognition the method being specifically adapted for the type of code
- G06K7/1417—2D bar codes
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06K—GRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
- G06K7/00—Methods or arrangements for sensing record carriers, e.g. for reading patterns
- G06K7/10—Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation
- G06K7/14—Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation using light without selection of wavelength, e.g. sensing reflected white light
- G06K7/1404—Methods for optical code recognition
- G06K7/1439—Methods for optical code recognition including a method step for retrieval of the optical code
- G06K7/1443—Methods for optical code recognition including a method step for retrieval of the optical code locating of the code in an image
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06K—GRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
- G06K7/00—Methods or arrangements for sensing record carriers, e.g. for reading patterns
- G06K7/10—Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation
- G06K7/14—Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation using light without selection of wavelength, e.g. sensing reflected white light
- G06K7/1404—Methods for optical code recognition
- G06K7/146—Methods for optical code recognition the method including quality enhancement steps
- G06K7/1473—Methods for optical code recognition the method including quality enhancement steps error correction
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Health & Medical Sciences (AREA)
- Electromagnetism (AREA)
- General Health & Medical Sciences (AREA)
- Toxicology (AREA)
- Artificial Intelligence (AREA)
- Computer Vision & Pattern Recognition (AREA)
- Quality & Reliability (AREA)
- Compression Or Coding Systems Of Tv Signals (AREA)
Abstract
本发明公开一种自定义寻像图形二维码及生成方法,其中寻像图形是由三个相同的位置探测图形组成,分别位于符号的左上角、右上角和左下角,生成方法包括数据分析、数据信息编码、RS编码、确定二维码矩阵尺寸、矩阵中布置同心圆寻像图形、矩阵中布置其他模块、添加掩码图形以及添加格式与版本信息;解码方法包括检测寻像图形、图片校正、读取二维码矩阵、格式及版本信息译码、数据码字纠错以及数据码字译码。生成方法中每个位置探测图形采用同心圆代替现有的正方形,改变了QR码矩阵布块的方式;寻像图形的检测方法采用了自主算法检测同心圆;其中,同心圆作为位置探测图形,相对正方形来讲,检测速度更快、检测算法复杂度更低和算法闭源等优点。
The invention discloses a self-defined image-seeking graphic two-dimensional code and a generating method, wherein the image-seeking graphic is composed of three identical position detection graphics, which are respectively located at the upper left corner, the upper right corner and the lower left corner of the symbol, and the generating method includes data analysis , data information encoding, RS encoding, determining the size of the two-dimensional code matrix, arranging concentric circles in the matrix, arranging other modules in the matrix, adding mask graphics, and adding format and version information; decoding methods include detecting image finding graphics, pictures Correction, reading two-dimensional code matrix, format and version information decoding, data codeword error correction and data codeword decoding. In the generation method, each position detection pattern adopts concentric circles instead of existing squares, which changes the way of QR code matrix layout; the detection method of image finding pattern adopts an autonomous algorithm to detect concentric circles; among them, concentric circles are used as position detection patterns, Compared with the square, it has the advantages of faster detection speed, lower detection algorithm complexity and closed-source algorithm.
Description
技术领域technical field
本发明涉及二维码领域,更具体地,涉及一种自定义寻像图形二维码及生成方法。The present invention relates to the field of two-dimensional codes, and more specifically, relates to a two-dimensional code and a method for generating a self-defined image-finding graphic.
背景技术Background technique
目前,二维码的应用范围越来越广泛,涉及各种应用场景,从支付到产品溯源,进入各个领域,从生物制药到互联网,无处不在;在物联网时代,二维码作为物品ID,屹然成为万物互联的基础。同时,随着应用场景不断扩大,使用人群不断延伸,二维码市场空前暴涨,用户需求被进一步深挖,市场开始细分,针对于不同领域,二维码的功能将集中在某些方面进行改进。其中,在溯源领域中,二维码作为商品标签,存在改进检测速度慢、算法开源、识别度低和译码速度慢的缺点。At present, the application range of two-dimensional code is more and more extensive, involving various application scenarios, from payment to product traceability, entering various fields, from biopharmaceuticals to the Internet, everywhere; in the era of the Internet of Things, two-dimensional codes are used as item ID , Yiran has become the foundation of the Internet of Everything. At the same time, with the continuous expansion of application scenarios and the continuous expansion of users, the QR code market has skyrocketed unprecedentedly, user needs have been further explored, and the market has begun to be subdivided. For different fields, the functions of QR codes will be concentrated in certain aspects. Improve. Among them, in the field of traceability, two-dimensional codes are used as commodity labels, which have the disadvantages of slow improvement detection speed, open source algorithm, low recognition degree and slow decoding speed.
发明内容Contents of the invention
本发明为克服上述现有技术所述的至少一种缺陷,提供一种自定义寻像图形二维码及生成方法,具有检测速度快、识别度更高以及解码速度更快的优点。In order to overcome at least one defect of the above-mentioned prior art, the present invention provides a self-defined image-finding graphic two-dimensional code and a generating method, which have the advantages of fast detection speed, higher recognition degree and faster decoding speed.
为解决上述技术问题,本发明的技术方案如下:In order to solve the problems of the technologies described above, the technical solution of the present invention is as follows:
一种自定义寻像图形二维码及生成方法,其特征在于,包括二维码生成和二维码解码,所述二维码生成包括以下步骤:A self-defined two-dimensional code for image-finding graphics and a method for generating it, is characterized in that it includes two-dimensional code generation and two-dimensional code decoding, and the two-dimensional code generation includes the following steps:
S1:数据分析:分析输入的数据流,对QR码符号选择数据编码的数据模式;同时,选择相应的纠错等级和版本信息;S1: Data analysis: analyze the input data stream, select the data encoding data mode for the QR code symbol; at the same time, select the corresponding error correction level and version information;
S2:数据信息编码:根据所选择的数据模式及其对应的数据变换方法,将数据字符转变为二进制位流,即数据码字;S2: Data information encoding: according to the selected data mode and its corresponding data conversion method, the data characters are converted into binary bit streams, that is, data code words;
S3:RS编码:将二进制位流进行RS编码生成纠错码字,数据码字和纠错码字组合成最终信息码字;S3: RS encoding: perform RS encoding on the binary bit stream to generate an error correction codeword, and combine the data codeword and the error correction codeword to form the final information codeword;
S4:确定二维码的矩阵尺寸:根据格式与版本信息确定二维码矩阵尺寸;S4: Determine the matrix size of the two-dimensional code: determine the matrix size of the two-dimensional code according to the format and version information;
S5:布置同心圆寻像图形:在二维码矩阵中布置三个同心圆位置探测图形,同心圆寻像图形包括位于二维码矩阵的三个顶角处的同心圆;S5: Arranging concentric circle image-finding graphics: arranging three concentric circle position detection graphics in the two-dimensional code matrix, the concentric circle image-finding graphics include concentric circles located at the three corners of the two-dimensional code matrix;
S6:布置其他模块:将分隔符图形、校正图形和码字区域布置在二维码矩阵中;S6: arranging other modules: arranging separator graphics, correction graphics and code word areas in the two-dimensional code matrix;
S7:添加掩码图形:将掩模图形用于码字区域,使得QR码图形中的深色和浅色区域呈现比率最优的分布;S7: Add mask graphics: use the mask graphics for the code word area, so that the dark and light areas in the QR code graphics present a distribution with an optimal ratio;
S8:添加格式与版本信息:生成格式信息和版本信息放入相应区域内。S8: Add format and version information: generate format information and version information and put them into corresponding areas.
在一种优选的方案中,步骤S5中,三个同心圆中最大的同心圆的外接矩形均为7*7的单位正方形,二维码标签的大小为7*7单位正方形的外边界形成的最大正方形区域。In a preferred solution, in step S5, the circumscribed rectangle of the largest concentric circle among the three concentric circles is a 7*7 unit square, and the size of the two-dimensional code label is formed by the outer boundary of the 7*7 unit square The largest square area.
在一种优选的方案中,步骤S5中,三个同心圆的半径分别为0.5、2.5和3.5个单位方格,圆心线上依次深浅块比例为1:2:1:2:1。In a preferred solution, in step S5, the radii of the three concentric circles are 0.5, 2.5 and 3.5 unit squares respectively, and the ratio of the successively dark and shallow blocks on the center line of the circles is 1:2:1:2:1.
在一种优选的方案中,所述二维码解码包括以下步骤:In a preferred solution, the two-dimensional code decoding includes the following steps:
S9:检测寻像图形:对二维码进行识别,判别是否含有同心圆寻像图形,以三个同心圆最外边界形成的正方形区域作为二维码矩阵区域;S9: Detect image-finding pattern: identify the two-dimensional code, judge whether it contains concentric circle image-finding pattern, and use the square area formed by the outermost boundary of three concentric circles as the two-dimensional code matrix area;
S10:图片校正:根据同心圆位置探测图形确定圆心角,根据确定圆心角确认是否需要对二维码图片进行弯曲较正;S10: Image correction: determine the central angle according to the concentric circle position detection pattern, and confirm whether it is necessary to perform bending correction on the two-dimensional code image according to the determined central angle;
S11:读取二维码矩阵:根据同心圆位置探测图形确定二维码标签位置及大小,去除掩模,读取二维码矩阵的码字数据,将深、浅块转换为二进制位流;S11: Read the two-dimensional code matrix: determine the position and size of the two-dimensional code label according to the concentric circle position detection pattern, remove the mask, read the code word data of the two-dimensional code matrix, and convert the deep and shallow blocks into a binary bit stream;
S12:格式及版本信息译码:将二进制位流中的格式及版本信息,进行译码;S12: Format and version information decoding: decode the format and version information in the binary bit stream;
S13:恢复数据和纠错码字:按照版本规定的数据码字和纠错码字长度提取相应的信息码字;S13: recover data and error correction codewords: extract corresponding information codewords according to the length of data codewords and error correction codewords specified in the version;
S14:数据码字纠错:利用步骤S13中提取的纠错码字对数据码字进行错误检查,如果有错误码字则进行纠正,得到正确数据码字;S14: data code word error correction: use the error correction code word extracted in step S13 to perform error check on the data code word, if there is an error code word, correct it to obtain the correct data code word;
S15:数据码字译码:将步骤S14中得到的数据码字进行译码得到正确信息。S15: Data codeword decoding: Decode the data codeword obtained in step S14 to obtain correct information.
在一种优选的方案中,步骤S9中,同心圆寻像图形设定三个基本特征条件进行验证,分别为:In a preferred solution, in step S9, three basic characteristic conditions are set for the concentric circle imaging pattern for verification, which are respectively:
1)过圆心线上依次深浅块比例为1:2:1:2:1;1) The ratio of dark and shallow blocks on the line passing through the center line is 1:2:1:2:1;
2)三个同心圆的圆心距R1、R2和R3符合预设的比例关系;2) The center distances R1, R2 and R3 of the three concentric circles conform to the preset proportional relationship;
3)设三个圆心顶点为A、B和C,圆心角∠ABC符合预设的条件。3) Let the three center vertices be A, B and C, and the central angle ∠ABC meets the preset conditions.
在一种优选的方案中,圆心角∠ABC符合的条件为:In a preferred solution, the conditions for the central angle ∠ABC to meet are:
80°≤∠ABC≤100°。80°≤∠ABC≤100°.
在一种优选的方案中,所述二维码的深浅单元格采用圆形填充,具有检测速度快、识别度更高、解码速度更快和算法闭源等优点。In a preferred solution, the deep and shallow cells of the two-dimensional code are filled with circles, which has the advantages of fast detection speed, higher recognition degree, faster decoding speed and closed-source algorithm.
与现有技术相比,本发明技术方案的有益效果是:本发明公开一种自定义寻像图形二维码及生成方法,生成方法采用同心圆代替现有的正方形寻像图形,改变了QR码矩阵布块的方式;解码方法采用了自主算法检测同心圆寻像图形;其中,同心圆作为位置探测图形,相对正方形来讲,检测速度快、识别度更高、算法闭源以及解码速度更快的优点。Compared with the prior art, the beneficial effect of the technical solution of the present invention is: the present invention discloses a two-dimensional code and a generation method of a self-defined image-finding graphic, and the generation method uses concentric circles to replace the existing square image-seeking graphic, changing the QR The code matrix layout method; the decoding method uses an independent algorithm to detect concentric circle image-finding graphics; among them, concentric circles are used as position detection graphics. Compared with squares, the detection speed is faster, the recognition degree is higher, the algorithm is closed source, and the decoding speed is faster. The advantage of being fast.
附图说明Description of drawings
图1为二维码生成流程图。Figure 1 is a flowchart of two-dimensional code generation.
图2为二维码解码流程图。Figure 2 is a flowchart of two-dimensional code decoding.
图3为同心圆寻像图形中某一位置探测图形的示意图。Fig. 3 is a schematic diagram of a certain position detection pattern in the concentric circle imaging pattern.
图4为圆心角∠ABC的示意图。Fig. 4 is a schematic diagram of the central angle ∠ABC.
具体实施方式detailed description
附图仅用于示例性说明,不能理解为对本专利的限制;The accompanying drawings are for illustrative purposes only and cannot be construed as limiting the patent;
为了更好说明本实施例,附图某些部件会有省略、放大或缩小,并不代表实际产品的尺寸;In order to better illustrate this embodiment, some parts in the drawings will be omitted, enlarged or reduced, and do not represent the size of the actual product;
对于本领域技术人员来说,附图中某些公知结构及其说明可能省略是可以理解的。For those skilled in the art, it is understandable that some well-known structures and descriptions thereof may be omitted in the drawings.
下面结合附图和实施例对本发明的技术方案做进一步的说明。The technical solutions of the present invention will be further described below in conjunction with the accompanying drawings and embodiments.
实施例1Example 1
一种自定义寻像图形二维码及生成方法,其特征在于,包括二维码生成和二维码解码,所述二维码生成包括以下步骤:A self-defined two-dimensional code for image-finding graphics and a method for generating it, is characterized in that it includes two-dimensional code generation and two-dimensional code decoding, and the two-dimensional code generation includes the following steps:
S1:数据分析:分析输入的数据流,对QR码符号选择数据编码的数据模式;同时,选择相应的纠错等级和版本信息;S1: Data analysis: analyze the input data stream, select the data encoding data mode for the QR code symbol; at the same time, select the corresponding error correction level and version information;
S2:数据信息编码:根据所选择的数据模式及其对应的数据变换方法,将数据字符转变为二进制位流,即数据码字;S2: Data information encoding: according to the selected data mode and its corresponding data conversion method, the data characters are converted into binary bit streams, that is, data code words;
S3:RS编码:将二进制位流进行RS编码生成纠错码字,数据码字和纠错码字组合成最终信息码字;S3: RS encoding: perform RS encoding on the binary bit stream to generate an error correction codeword, and combine the data codeword and the error correction codeword to form the final information codeword;
S4:确定二维码的矩阵尺寸:根据格式与版本信息确定二维码矩阵尺寸;S4: Determine the matrix size of the two-dimensional code: determine the matrix size of the two-dimensional code according to the format and version information;
S5:布置同心圆寻像图形:在二维码矩阵中布置三个同心圆位置探测图形,同心圆寻像图形包括位于二维码矩阵的三个顶角处的同心圆;S5: Arranging concentric circle image-finding graphics: arranging three concentric circle position detection graphics in the two-dimensional code matrix, the concentric circle image-finding graphics include concentric circles located at the three corners of the two-dimensional code matrix;
S6:布置其他模块:将分隔符图形、校正图形和码字区域布置在二维码矩阵中;S6: arranging other modules: arranging separator graphics, correction graphics and code word areas in the two-dimensional code matrix;
S7:添加掩码图形:将掩模图形用于码字区域,使得QR码图形中的深色和浅色区域呈现比率最优的分布;S7: Add mask graphics: use the mask graphics for the code word area, so that the dark and light areas in the QR code graphics present a distribution with an optimal ratio;
S8:添加格式与版本信息:生成格式信息和版本信息放入相应区域内。S8: Add format and version information: generate format information and version information and put them into corresponding areas.
在具体实施过程中,步骤S5中,三个同心圆中最大的同心圆的外接矩形均为7*7的单位正方形,二维码标签的大小为7*7单位正方形的外边界形成的最大正方形区域,如图3所示。In the specific implementation process, in step S5, the circumscribed rectangle of the largest concentric circle among the three concentric circles is a unit square of 7*7, and the size of the two-dimensional code label is the largest square formed by the outer boundary of the 7*7 unit square area, as shown in Figure 3.
在具体实施过程中,步骤S5中,三个同心圆的半径分别为0.5、2.5和3.5个单位方格,圆心线上依次深浅块比例为1:2:1:2:1。In the specific implementation process, in step S5, the radii of the three concentric circles are 0.5, 2.5 and 3.5 unit squares respectively, and the ratio of dark and shallow blocks on the center line is 1:2:1:2:1.
在具体实施过程中,所述二维码解码包括以下步骤:In the specific implementation process, the two-dimensional code decoding includes the following steps:
S9:检测寻像图形:对二维码进行识别,判别是否含有同心圆寻像图形,以三个同心圆最外边界形成的正方形区域作为二维码矩阵区域;S9: Detect image-finding pattern: identify the two-dimensional code, judge whether it contains concentric circle image-finding pattern, and use the square area formed by the outermost boundary of three concentric circles as the two-dimensional code matrix area;
S10:图片校正:根据同心圆位置探测图形确定圆心角,根据确定圆心角确认是否需要对二维码图片进行弯曲较正;S10: Image correction: determine the central angle according to the concentric circle position detection pattern, and confirm whether it is necessary to perform bending correction on the two-dimensional code image according to the determined central angle;
S11:读取二维码矩阵:根据同心圆位置探测图形确定二维码标签位置及大小,去除掩模,读取二维码矩阵的码字数据,将深、浅块转换为二进制位流;S11: Read the two-dimensional code matrix: determine the position and size of the two-dimensional code label according to the concentric circle position detection pattern, remove the mask, read the code word data of the two-dimensional code matrix, and convert the deep and shallow blocks into a binary bit stream;
S12:格式及版本信息译码:将二进制位流中的格式及版本信息,进行译码;S12: Format and version information decoding: decode the format and version information in the binary bit stream;
S13:恢复数据和纠错码字:按照版本规定的数据码字和纠错码字长度提取相应的信息码字;S13: recover data and error correction codewords: extract corresponding information codewords according to the length of data codewords and error correction codewords specified in the version;
S14:数据码字纠错:利用步骤S13中提取的纠错码字对数据码字进行错误检查,如果有错误码字则进行纠正,得到正确数据码字;S14: data code word error correction: use the error correction code word extracted in step S13 to perform error check on the data code word, if there is an error code word, correct it to obtain the correct data code word;
S15:数据码字译码:将步骤S14中得到的数据码字进行译码得到正确信息。S15: Data codeword decoding: Decode the data codeword obtained in step S14 to obtain correct information.
在具体实施过程中,步骤S9中,同心圆寻像图形设定三个基本特征条件进行验证,分别为:In the specific implementation process, in step S9, three basic characteristic conditions are set for the concentric circle image-finding pattern for verification, which are respectively:
1)过圆心线上依次深浅块比例为1:2:1:2:1;1) The ratio of dark and shallow blocks on the line passing through the center line is 1:2:1:2:1;
2)三个同心圆的圆心距R1、R2和R3符合预设的比例关系;2) The center distances R1, R2 and R3 of the three concentric circles conform to the preset proportional relationship;
3)设三个圆心顶点为A、B和C,圆心角∠ABC符合预设的条件,如图4所示。3) Let the three center vertices be A, B and C, and the central angle ∠ABC meets the preset conditions, as shown in Figure 4.
在具体实施过程中,圆心角∠ABC符合的条件为:In the specific implementation process, the conditions for the central angle ∠ABC to meet are:
80°≤∠ABC≤100°。80°≤∠ABC≤100°.
在具体实施过程中,所述二维码的深浅单元格采用圆形填充,具有检测速度快、识别度更高、解码速度更快和算法闭源等优点。In the specific implementation process, the deep and shallow cells of the two-dimensional code are filled with circles, which has the advantages of fast detection speed, higher recognition degree, faster decoding speed and closed-source algorithm.
本发明公开一种自定义寻像图形二维码及生成方法,生成方法采用同心圆代替现有的正方形位置探测图形,改变了QR码矩阵布块的方式;检测方法采用了自主算法检测同心圆寻像图形;其中,同心圆作为位置探测图形,相对正方形来讲,检测速度快、识别度更高以及译码速度更快的优点。The invention discloses a self-defined image-finding graphic two-dimensional code and its generation method. The generation method uses concentric circles to replace the existing square position detection graphics, and changes the way of QR code matrix layout; the detection method uses an independent algorithm to detect concentric circles. Image-finding graphics; Among them, concentric circles are used as position detection graphics. Compared with squares, they have the advantages of faster detection, higher recognition and faster decoding.
相同或相似的标号对应相同或相似的部件;The same or similar reference numerals correspond to the same or similar components;
附图中描述位置关系的用语仅用于示例性说明,不能理解为对本专利的限制;The terms describing the positional relationship in the drawings are only for illustrative purposes and cannot be interpreted as limitations on this patent;
显然,本发明的上述实施例仅仅是为清楚地说明本发明所作的举例,而并非是对本发明的实施方式的限定。对于所属领域的普通技术人员来说,在上述说明的基础上还可以做出其它不同形式的变化或变动。这里无需也无法对所有的实施方式予以穷举。凡在本发明的精神和原则之内所作的任何修改、等同替换和改进等,均应包含在本发明权利要求的保护范围之内。Apparently, the above-mentioned embodiments of the present invention are only examples for clearly illustrating the present invention, rather than limiting the implementation of the present invention. For those of ordinary skill in the art, other changes or changes in different forms can be made on the basis of the above description. It is not necessary and impossible to exhaustively list all the implementation manners here. All modifications, equivalent replacements and improvements made within the spirit and principles of the present invention shall be included within the protection scope of the claims of the present invention.
Claims (7)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710166424.9A CN107122816A (en) | 2017-03-20 | 2017-03-20 | A kind of self-defined view finding figure Quick Response Code and generation method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710166424.9A CN107122816A (en) | 2017-03-20 | 2017-03-20 | A kind of self-defined view finding figure Quick Response Code and generation method |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107122816A true CN107122816A (en) | 2017-09-01 |
Family
ID=59718260
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710166424.9A Pending CN107122816A (en) | 2017-03-20 | 2017-03-20 | A kind of self-defined view finding figure Quick Response Code and generation method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107122816A (en) |
Cited By (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107590522A (en) * | 2017-08-23 | 2018-01-16 | 阿里巴巴集团控股有限公司 | A kind of method and device of identification code generation and identification |
CN107748908A (en) * | 2017-09-18 | 2018-03-02 | 中国农业大学 | A kind of individual two-dimensional code constructing method |
CN108256609A (en) * | 2018-01-08 | 2018-07-06 | 佛山市顺德区中山大学研究院 | A kind of circle view finding figure Quick Response Code and its generation and decomposition method |
CN108734048A (en) * | 2018-05-29 | 2018-11-02 | 西安理工大学 | Various dimensions Quick Response Code based on proprietary code generates and interpretation method |
CN109993877A (en) * | 2019-03-07 | 2019-07-09 | 北京航天泰坦科技股份有限公司 | Identification method of anti-counterfeit invoice based on location information |
CN110555498A (en) * | 2018-06-04 | 2019-12-10 | 北京三快在线科技有限公司 | Two-dimensional code generation method and device, electronic equipment and storage medium |
CN115251126A (en) * | 2021-10-29 | 2022-11-01 | 智锐达仪器科技南通有限公司 | Two-dimensional code, corresponding coding and decoding method and code spraying and reading device |
CN116029324A (en) * | 2022-12-14 | 2023-04-28 | 中国联合网络通信集团有限公司 | A picture code, a method for generating a picture code, an analysis method, and an electronic device |
CN117131897A (en) * | 2023-10-19 | 2023-11-28 | 中国物品编码中心 | Decoding method, device, equipment and medium of two-dimension code graph |
CN118839710A (en) * | 2024-09-04 | 2024-10-25 | 深圳前海量子云码科技有限公司 | Method, device, equipment and storage medium for identifying special-shaped code scanning code |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1908955A (en) * | 2006-08-21 | 2007-02-07 | 北京中星微电子有限公司 | Trilateral poly-dimensional bar code easy for omnibearing recognition and reading method thereof |
CN102999772A (en) * | 2012-11-14 | 2013-03-27 | 韩偲铭 | Novel array-type two-dimension code encoding and decoding methods |
CN105404841A (en) * | 2015-11-04 | 2016-03-16 | 成都汇智远景科技有限公司 | Mobile equipment data calculation method based on internet of things |
CN106067054A (en) * | 2016-05-30 | 2016-11-02 | 上海斐讯数据通信技术有限公司 | A kind of Quick Response Code based on QR code |
-
2017
- 2017-03-20 CN CN201710166424.9A patent/CN107122816A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1908955A (en) * | 2006-08-21 | 2007-02-07 | 北京中星微电子有限公司 | Trilateral poly-dimensional bar code easy for omnibearing recognition and reading method thereof |
CN102999772A (en) * | 2012-11-14 | 2013-03-27 | 韩偲铭 | Novel array-type two-dimension code encoding and decoding methods |
CN105404841A (en) * | 2015-11-04 | 2016-03-16 | 成都汇智远景科技有限公司 | Mobile equipment data calculation method based on internet of things |
CN106067054A (en) * | 2016-05-30 | 2016-11-02 | 上海斐讯数据通信技术有限公司 | A kind of Quick Response Code based on QR code |
Non-Patent Citations (2)
Title |
---|
中国物品编码中心: "《QR Code二维码技术与应用》", 31 January 2002 * |
盛秋康.: "二维码编码技术的研究与应用", 《中国优秀硕士学位论文全文数据库 信息科技辑》 * |
Cited By (16)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107590522A (en) * | 2017-08-23 | 2018-01-16 | 阿里巴巴集团控股有限公司 | A kind of method and device of identification code generation and identification |
CN107590522B (en) * | 2017-08-23 | 2020-08-21 | 阿里巴巴集团控股有限公司 | Identification code generation and identification method and device |
US10789441B2 (en) | 2017-08-23 | 2020-09-29 | Alibaba Group Holding Limited | Method and apparatus for generating and identifying identification code |
CN107748908A (en) * | 2017-09-18 | 2018-03-02 | 中国农业大学 | A kind of individual two-dimensional code constructing method |
CN108256609B (en) * | 2018-01-08 | 2021-11-16 | 佛山市顺德区中山大学研究院 | Circular image finding graph two-dimensional code and generation and interpretation method thereof |
CN108256609A (en) * | 2018-01-08 | 2018-07-06 | 佛山市顺德区中山大学研究院 | A kind of circle view finding figure Quick Response Code and its generation and decomposition method |
CN108734048A (en) * | 2018-05-29 | 2018-11-02 | 西安理工大学 | Various dimensions Quick Response Code based on proprietary code generates and interpretation method |
CN110555498A (en) * | 2018-06-04 | 2019-12-10 | 北京三快在线科技有限公司 | Two-dimensional code generation method and device, electronic equipment and storage medium |
CN109993877A (en) * | 2019-03-07 | 2019-07-09 | 北京航天泰坦科技股份有限公司 | Identification method of anti-counterfeit invoice based on location information |
CN115251126A (en) * | 2021-10-29 | 2022-11-01 | 智锐达仪器科技南通有限公司 | Two-dimensional code, corresponding coding and decoding method and code spraying and reading device |
CN115251126B (en) * | 2021-10-29 | 2023-11-21 | 智锐达仪器科技南通有限公司 | Two-dimensional code, corresponding coding and decoding method, code spraying and code reading device |
CN116029324A (en) * | 2022-12-14 | 2023-04-28 | 中国联合网络通信集团有限公司 | A picture code, a method for generating a picture code, an analysis method, and an electronic device |
CN117131897A (en) * | 2023-10-19 | 2023-11-28 | 中国物品编码中心 | Decoding method, device, equipment and medium of two-dimension code graph |
CN117131897B (en) * | 2023-10-19 | 2024-02-06 | 中国物品编码中心 | Decoding method, device, equipment and medium of two-dimension code graph |
CN118839710A (en) * | 2024-09-04 | 2024-10-25 | 深圳前海量子云码科技有限公司 | Method, device, equipment and storage medium for identifying special-shaped code scanning code |
CN118839710B (en) * | 2024-09-04 | 2024-12-31 | 深圳前海量子云码科技有限公司 | Method, device, equipment and storage medium for identifying special-shaped code scanning code |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107122816A (en) | A kind of self-defined view finding figure Quick Response Code and generation method | |
CN103793735B (en) | Circular two-dimensional bar code and encoding and decoding method thereof | |
CN109791730B (en) | Product using multi-dimensional machine-readable optical code and product construction method and system | |
US10691908B2 (en) | Hierarchichal optical element sets for machine-read articles | |
EP3520031B1 (en) | Occlusion-resilient optical codes for machine-read articles | |
US20190362116A1 (en) | Two dimensional barcode with dynamic environmental data system, method, and apparatus | |
TWI693551B (en) | Two-dimensional code generation method, decoding method and device | |
CN112926715B (en) | Two-dimensional code generation and decoding method, device and equipment | |
CN105224974B (en) | The method and method for anti-counterfeit of hiding information in a kind of matrix two-dimensional code | |
CN105069394A (en) | Two-dimension code weighted average gray level method decoding method and system | |
CN106156820A (en) | two-dimensional code generation method and device | |
CN107563477A (en) | Quick Response Code and its generation method and device | |
JP2020529076A (en) | Methods and devices for encoding and decoding circular symbol codes | |
CN104992207A (en) | Mobile phone two-dimensional bar code coding and decoding method | |
CN101405747A (en) | Method and device for generating image code and method and device for decoding image code | |
CN105894069A (en) | CRC QR code generating method for visual navigation and identification method | |
CA3045391C (en) | Method for detection and recognition of long-range high-density visual markers | |
Udoy et al. | 4SQR-Code: A 4-state QR code generation model for increasing data storing capacity in the Digital Twin framework | |
JP2008210402A (en) | Dot pattern | |
CN108256609A (en) | A kind of circle view finding figure Quick Response Code and its generation and decomposition method | |
CN101303742B (en) | Micro Chinese Sensible Code and Its Symbol Generation Method | |
CN104636702A (en) | Two-dimensional code identification method for tobacco industry | |
CN206946820U (en) | A kind of two-dimension code label | |
Ghunawat | Data Encoding and Decoding Using Data Matrix | |
Nguyen | Enhanced Color QR Codes with Resilient Error Correction for Dirt-Prone Surfaces |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20170901 |
|
RJ01 | Rejection of invention patent application after publication |