Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Colored two-dimension code generating method and decoding method

A technology of two-dimensional codes and binary codes, which is applied in electromagnetic radiation induction, record carriers used by machines, instruments, etc., can solve the problems of single color two-dimensional codes, information loss, limited information volume, etc., and achieve large information volume, Many colors, strong ornamental effect

Active Publication Date: 2014-12-24
周奇
View PDF4 Cites 17 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] In order to solve the shortcomings of existing color two-dimensional codes such as single color, easy loss of all information due to color fading, and limited amount of information carried, the present invention provides a color two-dimensional code generation method, which divides the input data information , color code a part of the data, and then replace the remaining part of the black information with the color code

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Colored two-dimension code generating method and decoding method
  • Colored two-dimension code generating method and decoding method
  • Colored two-dimension code generating method and decoding method

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0035] Such as figure 1 In the multi-color two-dimensional code generation method shown, the multi-color two-dimensional code includes an identification and positioning area, an information area, and a functional area. The method includes the following step S1: input data in the identification and positioning area, the information area, and the functional area, respectively, And convert its data to generate binary information flow respectively, wherein, the binary information flow of the information area is I x , the information flow includes N-bit binary code, N>0; S2: put I x split into I b and I a Two parts, and count I separately b The number of information bits with a median value of 1 and 0 D 1 、D 0 ;S3: Compare I b Middle D 1 and D 0 After the size of the monochrome two-dimensional code is generated; S4: the I a Carry out grouping, and set the corresponding color for the binary code in each group according to the color code standard; S5: Add the color set in S4...

Embodiment 2

[0050] Such as figure 2The multi-color two-dimensional code generation method shown, on the basis of Embodiment 1, before comparing D1 and D0 in S3, also includes S30: for the information bit with a value of 1 and the information bit with a value of 0 in the monochrome encoded stream Do mask processing and notify the functional area of ​​the operation. S4 also includes S41: performing an XOR operation on each group in S4 and its previous group, and notifying the functional area of ​​the binary information flow of the operation. The method also includes step S6: after the statistics complete the color addition, I a The quantity A of the binary code that has not yet been utilized in, if A=0, then do not do any operation; Otherwise pair of I again x Segmentation is performed to complete steps S2-S5. The method also includes S61: when A=0, count the number D of information bits whose value is 1 without color addition in the monochrome two-dimensional code, if D∈[0,0.1D 1 ], t...

Embodiment 3

[0055] Such as figure 2 The shown decoding method based on the multi-color two-dimensional code described in Embodiment 1 includes the following steps: S1: scan according to the identification positioning area to obtain the multi-color two-dimensional code pixel; S2: scan and extract the pixel in the multi-color two-dimensional code pixel Convert the color pixels to generate a new multi-color binary information flow; after processing the multi-color QR code in black and white, scan and extract the information area to generate a new monochrome binary information flow; Color binary information flow and new monochrome binary information flow are processed to obtain monochrome binary information flow I b , multi-color binary information flow I a ; S4: Sequentially convert the monochrome binary information stream I b with multicolor binary stream I a Merge to obtain the information area binary information flow I x , order and place I x Decode to obtain the content of the info...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a multicolor two-dimension code generating method. A multicolor two-dimension code comprises a recognition area, a locating area for locating the two-dimension code according to the recognition area, an information area and a function area monitoring processing of the information area. The method comprises the following steps that S1, data are input into the recognition area, the locating area, the information area and the function area respectively, the data of the recognition area, the data of the locating area, the data of the information area and the data of the function area are respectively converted into binary code streams, the code stream of the information area is Ix, the information stream comprises N codes, and N>0; S2, Ix is divided into Ib and Ia, and statistics is respectively carried out on the number D1 and the number D0 of information bits with the value of 1 and 0 in the Ib; S3, D1 and D0 in the Ib are compared to generate a single-color two-dimension code; S4, the Ia is grouped according to the color code standard, and corresponding colors are set for the binary codes in each group; S5, color adding is carried out on black pixel points in the single-color two-dimension code in S3 through the Ia obtained after color coding, and the multi-color two-dimension code is generated. On the basis of the single-color two-dimension code, multi-color information is increased, the information amount is further increased, and information restoration becomes easy through the digital color information.

Description

technical field [0001] The present invention relates to the field of two-dimensional codes, and more specifically, to a method for generating a color two-dimensional code and a decoding method. Background technique [0002] The current color two-dimensional code technology is developed on the basis of black and white two-dimensional code recognition technology. The existing method of obtaining a color two-dimensional code includes replacing black with other monochromatic colors, and the amount of information does not increase. In addition, the simulated color information is processed and added to the monochrome two-dimensional code, for example, the encryption capability is further improved by adding the simulated color information. Another is to increase the amount of information by superimposing simulated color graphics in blank areas. The above two methods bring a lot of inconvenience to the subsequent decoding process. It is also not conducive to operation. Contents...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): G06K19/06G06K7/10
Inventor 周奇
Owner 周奇
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products