CN104978592B - A kind of color code generating method of two dimension - Google Patents
A kind of color code generating method of two dimension Download PDFInfo
- Publication number
- CN104978592B CN104978592B CN201510406974.4A CN201510406974A CN104978592B CN 104978592 B CN104978592 B CN 104978592B CN 201510406974 A CN201510406974 A CN 201510406974A CN 104978592 B CN104978592 B CN 104978592B
- Authority
- CN
- China
- Prior art keywords
- quick response
- response code
- code
- coded identification
- generating method
- 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.)
- Expired - Fee Related
Links
Abstract
The present invention relates to a kind of color code generating method of two dimension, including:Original fill character with what complete " 0 " substituted in Quick Response Code coded identification data part and regenerate coded identification;Mask operation is carried out to the coded identification regenerated using background picture;Obtain the substitute character at the corresponding filling position after mask operation;Original fill character with what substitute character substituted in Quick Response Code coded identification data parts and regenerate coded identification again;Mask again is carried out using background picture to the coded identification of second of generation to operate;In a two-dimensional lattice, the coded identification after Quick Response Code functional symbol and second of mask operation is printed according to Quick Response Code specification.This color code generating method of two dimension, is filled character by modification and reduces black or white code-point to reach, so that being easier to incorporate has in various colored background patterns, improved overall visual effect, expand the business application scope of Quick Response Code.
Description
Technical field
The present invention relates to image recognition and planar bar code technology, and in particular to a kind of color code generating method of two dimension.
Background technology
Quick Response Code is according to certain rules in plane with specific geometric figure(Two-dimensional directional)Upper distribution it is chequered with black and white
Figure, from the point of view of in appearance, Quick Response Code code-point is filled substantially with whole Quick Response Code code area than larger, if Quick Response Code code figure is put
Put on picture, picture region where code area will influence picture outward appearance and recognition efficiency by code map combining.
In addition, Quick Response Code code-point black and it is white represent respectively in binary system 1 and 0, in order to be able to be deposited in Quick Response Code
Then data, data are distributed in the code area of Quick Response Code by regular uniform again firstly the need of coding, a large amount of due to existing in code area
Uniform black and white code-point, therefore, either black system base map, or white color system base map all produce very big interference.
The content of the invention
The technical problem to be solved in the invention is how to provide a kind of two dimension color code generating method, can effectively reduce by two
The display of stain or white point quantity, reduction code area's space-consuming and prominent background picture in Wei Ma areas, the party is used so as to allow
The code figure of method generation, which is easier to incorporate, to be had in various colored background patterns, is improved overall visual effect, is expanded Quick Response Code
Business application scope.
The above-mentioned technical problem of the present invention is so solved:Build a kind of color code generating method of two dimension, it is characterised in that two dimension
Code code map combining on background picture, comprises the following steps:
101)Filled character with original in complete " 0 " symbolic Quick Response Code coded identification data part and for the first time again
Generate coded identification;
102)First time mask behaviour is carried out by Quick Response Code specification to the coded identification regenerated using the background picture
Make;
103)Obtain the substitute character at correspondence filling position in the coded identification after the operation of first time mask;
104)Original filled character and second with what the substitute character substituted in Quick Response Code coded identification data parts
Regenerate coded identification;
105)The coded identification regenerated for the second time is carried out second by Quick Response Code specification using the background picture
Mask is operated;
106)In a two-dimensional lattice, Quick Response Code functional symbol is printed according to Quick Response Code specification and second of mask is operated
The coded identification afterwards.
The color code generating method of two dimension provided according to the present invention, original fill character is fixed character, including but not
It is limited to " 0xec ".
The color code generating method of two dimension provided according to the present invention, the step 101)Including recording described original fill character
Starting position and length in data division.
The color code generating method of two dimension provided according to the present invention, the step 101)With 104)In regenerate including by two
Tie up code specification and generate respective error correcting code.
The color code generating method of two dimension provided according to the present invention, the step 101)With 104)In regenerate also include by
Quick Response Code specification is sequentially placed format information, version information and user data.
The color code generating method of two dimension provided according to the present invention, the background picture includes but is not limited to be blank.
The color code generating method of two dimension provided according to the present invention, the background picture includes but is not limited to be cromogram
Piece.
The color code generating method of two dimension that the present invention is provided, has the advantage that compared with the prior art:
1st, the stain or white point quantity effectively in reduction Quick Response Code area;
2nd, code area space-consuming, the display of prominent background picture are reduced;
3rd, it is easier to incorporate to have in various colored background patterns, improves overall visual effect, expand the business of Quick Response Code
Industry application.
Brief description of the drawings
Further the present invention is described in detail with specific embodiment below in conjunction with the accompanying drawings.
Fig. 1 is the code-point distribution schematic diagram of Quick Response Code;
Fig. 2 is the code-point composition structural representation of Quick Response Code;
Fig. 3 is code-point data product process schematic diagram of the present invention;
Fig. 4 is ordinary two dimensional code code figure;
Fig. 5 is that Quick Response Code code of the present invention corresponding with the code code figure of ordinary two dimensional shown in Fig. 4 is schemed.
Embodiment
First, the principle of the present invention is illustrated:As shown in Figure 1-2, symbol includes functional symbol and coding in Quick Response Code code area
Symbol, functional symbol is some mark-holds, is mainly used in positioning function, and coded identification then includes format information, version information,
Data, error correction code word.Data division in Quick Response Code code figure(Also known as data code-point)Occupy black in most of space, reduction symbol
Point or white point quantity, that is, the quantity of 1 or 0 character in coded data is reduced, we can change filling out in data division
Character is filled to reach the purpose.
As shown in figure 3, code-point data product process of the present invention comprises the following steps:
3001):Fill user data, full stop in order in a data buffer zone Buffer1 first, and be all
" 0 " filling symbol substitutes original fill character.
3002):Error correction code word is generated according to Quick Response Code specification to the data in Buffer1, error correction code word is stored in data
In buffering area Buffer2.
3003):The error correction code word in the data and Buffer2 in Buffer1, deposited according to after Quick Response Code canonical code
Into a data buffer zone Buffer3, while recording the position filled character in Buffer3 in Buffer1.
3004):Format information, version information, Buffer3 data are sequentially placed in a data buffer zone Buffer4.
3005):Mask Mask operations are carried out according to Quick Response Code specification to the data in Buffer4.
3006):According to the positional information filled character in Buffer3 preserved in the 3rd step, it can obtain after Mask
Fill character.
3007):Complete " 0 " filling symbol in the first step is replaced using filling character after Mask above, step is repeated
3001)-3005), the coded identification part in Quick Response Code code area has just been obtained in Buffer4.
3008):Finally, in a two-dimensional lattice, according to the upper functional symbol of Quick Response Code specification printing and above
Coded identification in Buffer4, that is, obtained the color code of required two dimension.
Using the inventive method:By an original two dimensional code, code figure by code-point data of the present invention as shown in figure 4, generate stream
The color code of Cheng Shengcheng present invention two dimensions, code figure is as shown in figure 5, Fig. 5 background picture is red word, i.e. " two dimension is color in Fig. 5
Code " is red.By comparison diagram 4 and Fig. 5, it can be seen that, the code-point of General Two-Dimensional code is intensive, and free space is few, and
The code figure of two-dimentional coloured silk code generation, code-point is few, big using space.
The foregoing is only presently preferred embodiments of the present invention, all equivalent changes done according to scope of the invention as claimed with
Modification, should all belong to the covering scope of the claims in the present invention.
Claims (7)
1. a kind of color code generating method of two dimension, it is characterised in that Quick Response Code code map combining on background picture, including following step
Suddenly:
101) filled character and regenerated for the first time with original in complete " 0 " symbolic Quick Response Code coded identification data part
Quick Response Code coded identification;
102) first time mask is carried out by Quick Response Code specification to the Quick Response Code coded identification regenerated using the background picture
Operation;
103) substitute character at correspondence filling position in the Quick Response Code coded identification after the operation of first time mask is obtained;
104) original filled character and for the second time again with what the substitute character substituted in Quick Response Code coded identification data parts
Generate Quick Response Code coded identification;
105) second is carried out by Quick Response Code specification to the Quick Response Code coded identification regenerated for the second time using the background picture
Secondary mask operation;
106) in a two-dimensional lattice, printed according to Quick Response Code specification after Quick Response Code functional symbol and second of mask operation
The Quick Response Code coded identification.
2. the color code generating method of two dimension according to claim 1, it is characterised in that original fill character is " 0xec ".
3. the color code generating method of two dimension according to claim 1, it is characterised in that the step 101) include recording the original
Begin starting position and the length in data division of filling character.
4. the color code generating method of two dimension according to claim 1, it is characterised in that the step 101) and 104) in give birth to again
Into including generating respective error correcting code by Quick Response Code specification.
5. the color code generating method of two dimension according to claim 4, it is characterised in that the step 101) and 104) in give birth to again
Into also including being sequentially placed format information, version information and user data by Quick Response Code specification.
6. the color code generating method of two dimension according to claim 1, it is characterised in that the background picture is blank.
7. the color code generating method of two dimension according to claim 1, it is characterised in that the background picture is colour picture.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510406974.4A CN104978592B (en) | 2015-07-13 | 2015-07-13 | A kind of color code generating method of two dimension |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510406974.4A CN104978592B (en) | 2015-07-13 | 2015-07-13 | A kind of color code generating method of two dimension |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104978592A CN104978592A (en) | 2015-10-14 |
CN104978592B true CN104978592B (en) | 2017-09-22 |
Family
ID=54275077
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510406974.4A Expired - Fee Related CN104978592B (en) | 2015-07-13 | 2015-07-13 | A kind of color code generating method of two dimension |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104978592B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107992740B (en) * | 2016-10-27 | 2021-11-09 | 腾讯科技(深圳)有限公司 | Mask processing method and client |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP1862944A1 (en) * | 2005-03-25 | 2007-12-05 | Global Value Corporation | Color code symbol, method for creating color code symbol, and storage medium for creating color code symbol |
CN102147873A (en) * | 2011-03-21 | 2011-08-10 | 上海彩码信息科技有限公司 | Method and system for generating color code as well as method and system for analyzing color code |
CN103984975A (en) * | 2014-05-08 | 2014-08-13 | 我查查信息技术(上海)有限公司 | Specific bar code based on colorful background and forming method thereof |
-
2015
- 2015-07-13 CN CN201510406974.4A patent/CN104978592B/en not_active Expired - Fee Related
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP1862944A1 (en) * | 2005-03-25 | 2007-12-05 | Global Value Corporation | Color code symbol, method for creating color code symbol, and storage medium for creating color code symbol |
CN102147873A (en) * | 2011-03-21 | 2011-08-10 | 上海彩码信息科技有限公司 | Method and system for generating color code as well as method and system for analyzing color code |
CN103984975A (en) * | 2014-05-08 | 2014-08-13 | 我查查信息技术(上海)有限公司 | Specific bar code based on colorful background and forming method thereof |
Also Published As
Publication number | Publication date |
---|---|
CN104978592A (en) | 2015-10-14 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10242246B2 (en) | Decoder and encoder for a digital fingerprint code | |
WO2017198189A1 (en) | Generation and reading method and device for colour identified colour two-dimensional figure code | |
US9420143B2 (en) | Method for water-marking digital books | |
CN104268615A (en) | Encoding method and decoding method for color two-dimensional code | |
CN104637077A (en) | Generation method of picture verification code based on characters drawing | |
CN108154544A (en) | A kind of method and apparatus of overlaying character on the image | |
CN104978592B (en) | A kind of color code generating method of two dimension | |
JP4419876B2 (en) | Image processing device | |
US8804187B2 (en) | Image processing to superimpose code on a document image | |
CN104442054B (en) | Two-dimension code printing method and device based on mainframe platform | |
CN111028316A (en) | Picture editing method based on mobile terminal and picture editing method across mobile terminals | |
JP6387207B1 (en) | Digital ink encoding method and decoding method | |
JPH0277889A (en) | Graphic painting-out system | |
CN103496263B (en) | A kind of printing net-point code generating method and apply its image printing technique | |
JP2016532897A (en) | Method and apparatus for building an intermediate character library | |
KR101494806B1 (en) | System for handling rich text image and method therefor | |
CN103955349B (en) | A kind of embedded italic algorithm and mobile terminal based on GSM/GPRS | |
CN106095349A (en) | A kind of signature Method of printing and device | |
CN111104030A (en) | Picture batch editing method based on mobile terminal | |
KR101502841B1 (en) | Outline forming method of Bitmap font, and computer-readable recording medium for the same | |
US9449263B2 (en) | Image processing apparatus, stamp creation apparatus, image processing method and recording medium | |
CN104463153B (en) | The method and system of character identification rate in a kind of raising format document | |
JP2002140174A (en) | Printer system, printer driver, and printer | |
TWI444906B (en) | Method of Decoding Two - | |
JP2009122548A5 (en) |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
CB03 | Change of inventor or designer information |
Inventor after: Huang Qiongfan Inventor before: The inventor has waived the right to be mentioned |
|
COR | Change of bibliographic data | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20170922 Termination date: 20200713 |