CN109948389A - A kind of drafting of extension two dimensional code and recognition methods accommodating large capacity - Google Patents
A kind of drafting of extension two dimensional code and recognition methods accommodating large capacity Download PDFInfo
- Publication number
- CN109948389A CN109948389A CN201910241046.5A CN201910241046A CN109948389A CN 109948389 A CN109948389 A CN 109948389A CN 201910241046 A CN201910241046 A CN 201910241046A CN 109948389 A CN109948389 A CN 109948389A
- Authority
- CN
- China
- Prior art keywords
- dimensional code
- extension
- large capacity
- drafting
- data
- 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
Landscapes
- Credit Cards Or The Like (AREA)
Abstract
The present invention relates to field of data recognition, especially planar bar code technology.The present invention proposes a kind of extension two dimensional code method for drafting that can accommodate large capacity, comprising: step 1, obtains two dimensional code encoded information;Step 2, determination unit data field number;Step 3, anchor point is drawn, and as unit of cell data area, sequence fills data.The present invention is difficult to extend when solving two dimensional code of the existing technology drafting, and when transmission is easy to the technical issues of obscuring, and extends two dimensional code by the adjustment of setting unit data field number, flexible setting two-dimension code pattern meets the storage of arbitrary data capacity.
Description
Technical field
The present invention relates to field of data recognition, especially planar bar code technology.
Background technique
Two dimensional code especially needs to carry out efficiently article in hi-tech industry, storage transport service, wholesale and retail industry etc.
The industry of beacon information is widely used.
The prior art one is the Chinese patent application that patent publication No. is CN 104917637A, and it discloses a kind of files
The method and system of sharing.The patent be by paging file being coded into two dimensional code in order by document body paging, and
It is numbered for it.When display, by equipment, display paging file content one by one by number.The shortcomings that prior art one, is:
The technology will generate multiple two dimensional codes, how to guarantee in transmission process or use two-dimentional code character not with other file two dimensional code
Obscuring is a difficult point;Number information is added in each two dimensional code, although the sequence of data may be implemented in this method, this
A method needs to occupy the data space in two dimensional code simultaneously.
The prior art two is currently used most wide QRcode, which is to directly select version by data capacity, is obtained
To the extension of capacity.The shortcomings that prior art two is: although directly selecting version, speed ratio is very fast, and limitation is relatively more,
At least the extension must all keep square in shape;Due to the limitation of its version, in extension, capacity is also fixed.
So the version still on capacity, is limited, that is, when capacity reaches a certain level, will be unable to generate two dimensional code.
Summary of the invention
The present invention is to solve to be difficult to extend when two dimensional code of the existing technology is drawn, and the technology that when transmission is easy to obscure is asked
Topic proposes that one kind is flexible, accurately, meets the two dimensional code extended mode of random capacity.
To achieve the above object, the present invention provides a kind of extension two dimensional code method for drafting that can accommodate large capacity, comprising:
Step 1: obtaining two dimensional code encoded information;
Step 2: determination unit data field number;
Step 3: drawing anchor point, and as unit of cell data area, sequence fills data.
Preferably, cell data area number includes: lateral cell data field number M, longitudinal cell data in the step 2
Area number N, cellular zone data total number=M*N.
Preferably, the step 3 further includes judgment step, and the judgment step includes:
Judge whether the default two dimensional code rendering space meets the space requirement of multiple-unit area, if judging result success,
Anchor point and cell data area are drawn, if judging result fails, output error simultaneously gos to step 2, redefines unit number
According to area's number.
Preferably, the step 3 further includes drawing basic information region, and the basic information region is for same level direction or together
Area along the line between one vertical direction most external anchor point.
Preferably, the step 3 further includes drawing two dimensional code frame, and the two dimensional code frame is according to two dimensional code cell data
Area's number determines.
Preferably, the basic information region includes: lateral unit data area number, and vertical unit data field number is longitudinal
Unit data area size, lateral unit data area size directed information, mask plate information.
Preferably, step 3 fill order are as follows: laterally preferential to draw;Longitudinal preferential drafting;User's custom order is drawn
System.
A kind of extension two-dimensional code identification method accommodating large capacity, comprising:
Step 1: identification two dimensional code anchor point, judging unit data field number;
Step 2: data in sequence reading unit data field;
Step 3: integrating and encode data in the cellular zone, parsing obtains two-dimensional code data.
Preferably, the step 1 further include: identification basic information area, according to basic information region data determination unit data
Area's number.
Preferably, the reading order of the step 2 are as follows: laterally preferential to read;Longitudinal preferential reading;User's custom order
It reads.
To solve to be difficult to extend when two dimensional code of the existing technology is drawn, when transmission, is easy to the technical issues of obscuring, this
The extension two dimensional code for accommodating large capacity that invention proposes is drawn and recognition methods, and user can be allowed to pass through the cross of setting two dimensional code
Determine that the graphics shape of two dimensional code, extended mode of the invention pass through setting transverse and longitudinal unit number to the number of vertical unit block
It is set according to the adjustment of area's number, flexible setting two-dimension code pattern meets the storage of arbitrary data capacity.
Detailed description of the invention
Fig. 1 is the unit block diagram for the two dimensional code that the embodiment of the present invention one provides
Fig. 2 is the two-dimension code structure figure for the 1*1 in length and breadth that the embodiment of the present invention one provides
Fig. 3 is the two-dimension code structure figure for the 1*3 in length and breadth that the embodiment of the present invention one provides
Fig. 4 is the two-dimension code structure figure for the 2*4 in length and breadth that the embodiment of the present invention one provides
Fig. 5 is the extension two dimensional code method for drafting flow chart for accommodating large capacity that the embodiment of the present invention one provides
Fig. 6 is the extension two-dimensional code identification method flow chart provided by Embodiment 2 of the present invention for accommodating large capacity
Specific embodiment
With reference to the attached drawing in the embodiment of the present invention, technical solution in the embodiment of the present invention carries out clear, complete
Ground description, it is clear that the described embodiment is only a part of the embodiment of the present invention, instead of all the embodiments.Based on this hair
Embodiment in bright, every other implementation obtained by those of ordinary skill in the art without making creative efforts
Example, belongs to the scope of the present invention.
It can not achieve accurate delivery in view of existing method, the two dimensional code for being easy to extend is drawn and identification, and the present invention is implemented
Example provides a kind of drafting of extension two dimensional code and recognition methods for accommodating large capacity.
Embodiment one
The present embodiment provides the extension two dimensional code method for drafting that one kind can accommodate large capacity, as shown in figures 1 to 6.
A kind of extension two dimensional code accommodating large capacity includes at least anchor point 100, basic information region 101, outer rim
102.Fig. 2 is the two-dimension code structure figure that unit data field number is 1*1 in length and breadth;Fig. 3 is that unit data field number is 1*3 in length and breadth
Two-dimension code structure figure;Fig. 4 is the two-dimension code structure figure that unit data field number is 2*4 in length and breadth.
The extension two dimensional code method for drafting provided in this embodiment for accommodating large capacity, as shown in Figure 5, comprising:
Step 1: obtaining two dimensional code encoded information.
Step 2: user is according to figure demand, determination unit data field number.
Cell data area number includes: lateral cell data field number M, longitudinal cell data area number N, cellular zone
Data total number=M*N.
Since the size of unit data block is fixed value, that is to say, that the number of the pixel of the unit block is also solid
Definite value obtains total unit block number according to the number in transverse and longitudinal unit area if the capacity of each unit block is fixed X
M*N, then the capacity substantially X*M*N for the figure that user generates.
Step 3: drawing anchor point, and as unit of cell data area, sequence fills data.
The drafting of anchor point 100 is mainly determined by transverse and longitudinal unit area number.By unit area sequence, all positioning are drawn
Point.The anchor point is used for filling of the coded data on two dimensional code.In the present invention, the anchor point between two neighboring block is
It shares anchor point and presses unit block sequence later, encoded information is inserted in unit block.
The step 3 further includes judgment step, and the judgment step includes:
Judge whether the default two dimensional code rendering space meets the space requirement of multiple-unit area, if judging result success,
Anchor point and cell data area are drawn, if judging result fails, output error simultaneously gos to step 2, redefines unit number
According to area's number.
The step 3 further includes drawing basic information region, basic information region area along the line between most external anchor point.
The step 3 further includes drawing two dimensional code frame, and the two dimensional code frame is according to two dimensional code cell data area number
It determines.
The basic information region includes: lateral unit data area number, vertical unit data field number, vertical unit data
Area's size, lateral unit data area size directed information, mask plate information.
Step 3 fill order are as follows: laterally preferential to draw;Longitudinal preferential drafting;User's custom order is drawn.
It needs all parameter informations to be processed into coding before current output two dimensional code, inserts basic information region 101.Base
This information area is along the region along most external anchor point.Finally add outmost turns frame 102.It is defeated to ultimately form two dimensional code
Out.
Embodiment two
The present embodiment provides the extension two-dimensional code identification methods that one kind can accommodate large capacity, as shown in Figure 6, comprising:
Step 1: identification two dimensional code anchor point, judging unit data field number;
Step 2: data in sequence reading unit data field;
Step 3: integrating and encode data in the cellular zone, parsing obtains two-dimensional code data.
The step 1 further include: identification basic information area, according to basic information region data determination unit data field number.
The reading order of the step 2 are as follows: laterally preferential to read;Longitudinal preferential reading;User's custom order is read.
In conclusion the extension two dimensional code for accommodating large capacity that the embodiment of the present invention provides is drawn and recognition methods,
It has the advantages that
(1) parameter of laterally longitudinal two dimensions of the invention, may be implemented the unidirectional or two-way extension of two dimensional code, makes
The extension for obtaining two dimensional code is more flexible changeable.
(2) data field variable element of the invention, it is possible to reduce unnecessary data capacity allows data field capacity more to force
Nearly data field capacity summation, reaches the optimal result of unit space data capacity.
Particular embodiments described above, to the purpose of the present invention, technical scheme and beneficial effects have been carried out further in detail
Describe in detail it is bright, it should be understood that above is only a specific embodiment of the present invention, the protection model being not intended to limit the present invention
It encloses, all within the spirits and principles of the present invention, any modification, equivalent substitution, improvement and etc. done should be included in the present invention
Protection scope within.
Claims (10)
1. the extension two dimensional code method for drafting that one kind can accommodate large capacity characterized by comprising
Step 1: obtaining two dimensional code encoded information;
Step 2: determination unit data field number;
Step 3: drawing anchor point, and as unit of cell data area, sequence fills data.
2. the extension two dimensional code method for drafting of large capacity can be accommodated as described in claim 1, which is characterized in that the step 2
Middle cell data area number includes: lateral cell data field number M, longitudinal cell data area number N, cellular zone data total number
=M*N.
3. the extension two dimensional code method for drafting of large capacity can be accommodated as described in claim 1, which is characterized in that the step 3
It further include judgment step, the judgment step includes:
Judge whether the default two dimensional code rendering space meets the space requirement of multiple-unit area, if judging result success, draws
Anchor point and cell data area, if judging result fails, output error simultaneously gos to step 2, redefines cell data area
Number.
4. the extension two dimensional code method for drafting of large capacity can be accommodated as described in claim 1, which is characterized in that the step 3
It further include drawing basic information region, the basic information region is between same level direction or same vertical direction most external anchor point
Area along the line.
5. the extension two dimensional code method for drafting of large capacity can be accommodated as described in claim 1, which is characterized in that the step 3
It further include drawing two dimensional code frame, the two dimensional code frame is determined according to two dimensional code cell data area's number.
6. the extension two dimensional code method for drafting of large capacity can be accommodated as claimed in claim 4, which is characterized in that the basic letter
Ceasing area includes: lateral unit data area number, vertical unit data field number, vertical unit data field size, lateral units
According to area's size, directed information, mask plate information.
7. the extension two dimensional code method for drafting of large capacity can be accommodated as described in claim 1, which is characterized in that the step 3
Fill order are as follows: laterally preferential to draw;Longitudinal preferential drafting;User's custom order is drawn.
8. the extension two-dimensional code identification method that one kind can accommodate large capacity characterized by comprising
Step 1: identification two dimensional code anchor point, judging unit data field number;
Step 2: data in sequence reading unit data field;
Step 3: integrating and encode data in the cellular zone, parsing obtains two-dimensional code data.
9. the extension two-dimensional code identification method of large capacity can be accommodated as claimed in claim 8, which is characterized in that the step 1
Further include: identification basic information area, according to basic information region data determination unit data field number.
10. the extension two-dimensional code identification method of large capacity can be accommodated as claimed in claim 8, which is characterized in that the step 2
Reading order are as follows: it is laterally preferential to read;Longitudinal preferential reading;User's custom order is read.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201910241046.5A CN109948389A (en) | 2019-03-28 | 2019-03-28 | A kind of drafting of extension two dimensional code and recognition methods accommodating large capacity |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201910241046.5A CN109948389A (en) | 2019-03-28 | 2019-03-28 | A kind of drafting of extension two dimensional code and recognition methods accommodating large capacity |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN109948389A true CN109948389A (en) | 2019-06-28 |
Family
ID=67012088
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201910241046.5A Pending CN109948389A (en) | 2019-03-28 | 2019-03-28 | A kind of drafting of extension two dimensional code and recognition methods accommodating large capacity |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN109948389A (en) |
Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20070038464A1 (en) * | 2003-08-11 | 2007-02-15 | Kazuo Sato | 2-Dimensional code formation method and formation device |
| CN101639899A (en) * | 2008-07-30 | 2010-02-03 | 华为技术有限公司 | Methods and devices for encoding and decoding two-dimension code and terminal |
| CN102509143A (en) * | 2011-11-29 | 2012-06-20 | 哈尔滨工业大学 | Method for display and analysis of continuous high-capacity multi-system bar codes |
| CN108280500A (en) * | 2017-01-06 | 2018-07-13 | 百度在线网络技术(北京)有限公司 | Coding method, coding/decoding method, relevant apparatus and the equipment of Quick Response Code |
| CN109447216A (en) * | 2018-12-30 | 2019-03-08 | 尤尼泰克(嘉兴)信息技术有限公司 | A kind of two dimensional code quick and precisely identified |
-
2019
- 2019-03-28 CN CN201910241046.5A patent/CN109948389A/en active Pending
Patent Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20070038464A1 (en) * | 2003-08-11 | 2007-02-15 | Kazuo Sato | 2-Dimensional code formation method and formation device |
| CN101639899A (en) * | 2008-07-30 | 2010-02-03 | 华为技术有限公司 | Methods and devices for encoding and decoding two-dimension code and terminal |
| CN102509143A (en) * | 2011-11-29 | 2012-06-20 | 哈尔滨工业大学 | Method for display and analysis of continuous high-capacity multi-system bar codes |
| CN108280500A (en) * | 2017-01-06 | 2018-07-13 | 百度在线网络技术(北京)有限公司 | Coding method, coding/decoding method, relevant apparatus and the equipment of Quick Response Code |
| CN109447216A (en) * | 2018-12-30 | 2019-03-08 | 尤尼泰克(嘉兴)信息技术有限公司 | A kind of two dimensional code quick and precisely identified |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN103400174B (en) | The coded method of a kind of Quick Response Code, coding/decoding method and system | |
| US20170068689A1 (en) | Geographic coordinate encoding device, method, and storage medium, geographic coordinate decoding device, method, and storage medium, and terminal unit using geographic coordinate encoding device | |
| CN112541369B (en) | Information code identification method and system | |
| CN103699865B (en) | A kind of border graphic code | |
| CN101400138B (en) | A Map Data Reduction Method Oriented to Mobile Devices | |
| CN101944187A (en) | Two-dimensional micro code and processing method and device thereof | |
| CN101859397A (en) | 2D array code | |
| CN103530669A (en) | Data information two-dimensional code encoding method | |
| CN101996336B (en) | Method and device for generating and decoding two-dimensional bar code | |
| CN104268615A (en) | Encoding method and decoding method for color two-dimensional code | |
| CN101674552A (en) | Short message coding method and terminal | |
| CN106445904A (en) | Page typesetting method and device | |
| CN101859398B (en) | Two-dimensional array code | |
| CN105760917B (en) | three-dimensional code encoding method and system | |
| CN103136591A (en) | Physical examination reservation method based on two-dimensional bar code | |
| CN104899629B (en) | A kind of image in 2 D code generation method based on RBF | |
| CN109948389A (en) | A kind of drafting of extension two dimensional code and recognition methods accommodating large capacity | |
| CN107527377A (en) | A kind of hanging Chinese character rendering intent of three-dimensional earth based on mobile platform | |
| CN107016318B (en) | A kind of bar code decoding method and device | |
| CN103297183A (en) | Data communication method and device | |
| CN103902711A (en) | Method and system for embedding two-dimension code images into webpages | |
| CN106991348A (en) | A kind of bar code decoding method and device | |
| CN101373537A (en) | Method for coding addresses of nationwide units | |
| CN102810153B (en) | Etc. gray scale two-dimensional optical identification code device | |
| CN102970661A (en) | Method and device for code conversion of short messages |
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 |