CN110610219A - Color annular two-dimensional code and generation and decoding method thereof - Google Patents

Color annular two-dimensional code and generation and decoding method thereof Download PDF

Info

Publication number
CN110610219A
CN110610219A CN201910740414.0A CN201910740414A CN110610219A CN 110610219 A CN110610219 A CN 110610219A CN 201910740414 A CN201910740414 A CN 201910740414A CN 110610219 A CN110610219 A CN 110610219A
Authority
CN
China
Prior art keywords
ring
color
dimensional code
circular ring
white
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.)
Granted
Application number
CN201910740414.0A
Other languages
Chinese (zh)
Other versions
CN110610219B (en
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.)
Shanghai Jiaotong University
Original Assignee
Shanghai Jiaotong 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 Shanghai Jiaotong University filed Critical Shanghai Jiaotong University
Priority to CN201910740414.0A priority Critical patent/CN110610219B/en
Publication of CN110610219A publication Critical patent/CN110610219A/en
Application granted granted Critical
Publication of CN110610219B publication Critical patent/CN110610219B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K19/00Record carriers for use with machines and with at least a part designed to carry digital markings
    • G06K19/06Record 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/06009Record 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/06037Record 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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K19/00Record carriers for use with machines and with at least a part designed to carry digital markings
    • G06K19/06Record 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/06009Record 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/06046Constructional details
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K19/00Record carriers for use with machines and with at least a part designed to carry digital markings
    • G06K19/06Record 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/06009Record 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/06046Constructional details
    • G06K19/0614Constructional details the marking being selective to wavelength, e.g. color barcode or barcodes only visible under UV or IR
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T11/002D [Two Dimensional] image generation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T5/00Image enhancement or restoration
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K19/00Record carriers for use with machines and with at least a part designed to carry digital markings
    • G06K19/06Record 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
    • G06K2019/06215Aspects not covered by other subgroups
    • G06K2019/06225Aspects not covered by other subgroups using wavelength selection, e.g. colour code
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K19/00Record carriers for use with machines and with at least a part designed to carry digital markings
    • G06K19/06Record 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
    • G06K2019/06215Aspects not covered by other subgroups
    • G06K2019/06243Aspects not covered by other subgroups concentric-code

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Compression Of Band Width Or Redundancy In Fax (AREA)

Abstract

The invention discloses a color annular two-dimensional code and a generation and decoding method thereof, wherein the two-dimensional code comprises a black and white positioning area, the positioning area comprises a solid circle, a first circular ring and a second circular ring which are positioned outside the solid circle, and the first circular ring and the second circular ring are two concentric circular rings; the color data area is a third circular ring concentric with the positioning area, the positioning area is positioned on the inner side of the third circular ring, and a plurality of data blocks are divided on the third circular ring. The two-dimensional code generation method comprises the following steps: and converting the data stream into a four-way system number, and coloring the plurality of data blocks according to the corresponding relation between the four-way system number and the color. When decoding, the center of the positioning area is found first, and then scanning decoding is carried out under polar coordinates. By adopting the color coding and scanning-based decoding method, the new two-dimensional code can effectively improve the distortion resistance of the image while achieving the basic information capacity.

Description

Color annular two-dimensional code and generation and decoding method thereof
Technical Field
The invention relates to the field of two-dimensional codes, in particular to a color annular two-dimensional code and a generation and decoding method thereof.
Background
In recent years, the application of two-dimensional codes is more and more extensive, especially in the fields of mobile payment and online social contact. Due to the large information capacity and the rapid recognition, the method is rapidly popularized in daily life of people. Although the two-dimensional code is popularized in a large range at present, the two-dimensional code still has certain limitations in many scenes, and most prominently, the image distortion resistance of the two-dimensional code is insufficient. In fact, the correct identification of the matrix type two-dimensional Code represented by QR Code is established on one basis: the two-dimensional code is printed on a flat plane. If the plane where the two-dimensional code is located is convex or concave, for example, the two-dimensional code is printed on a sphere, the recognition rate of the two-dimensional code is greatly reduced. For curved surfaces of cylinders, cones and the like and even surfaces of non-rigid bodies of fabrics and the like, the identification capability of the two-dimensional code is very limited. The chinese patent of invention with publication number CN103793735A proposes a new circular two-dimensional barcode and its encoding and decoding method to improve the image distortion resistance of the two-dimensional barcode. However, the two-dimensional code takes the circular ring as a data unit, the data density is very low, and the data is encoded through different gray values, so that the requirement on the precision of two-dimensional code reading equipment is high, and the practical application of the two-dimensional code is limited. So that the application of two-dimensional codes at present mainly focuses on identification on flat surfaces.
With the development of the internet of things, the demand for identifying the two-dimensional code on various objects is continuously increased, and the characteristics of low cost and high information content of the two-dimensional code enable the two-dimensional code to have great advantages compared with an RFID chip. Therefore, if the image distortion resistance of the two-dimensional code can be greatly improved, the application of the two-dimensional code can be greatly expanded.
Disclosure of Invention
The invention provides a color annular two-dimensional code and a generation and decoding method thereof aiming at the problems in the prior art, and the color annular two-dimensional code and the generation and decoding method thereof adopt a color coding and a new decoding method, can achieve the basic information capacity and effectively improve the anti-distortion capability of an image.
In order to solve the technical problems, the invention is realized by the following technical scheme.
According to a first aspect of the present invention, there is provided a color annular two-dimensional code, including:
the positioning area comprises a solid circle, a first circular ring and a second circular ring, wherein the first circular ring and the second circular ring are positioned outside the solid circle, and the first circular ring and the second circular ring are two concentric circular rings;
the color data area is a third circular ring concentric with the positioning area, the positioning area is positioned on the inner side of the third circular ring, and a plurality of data blocks are divided on the third circular ring.
Preferably, the positioning region, wherein:
the solid circle is black, the first ring is white, the second ring is black, and the first ring and the second ring which are white and black are sequentially connected to the outer side of the solid circle; or
The solid circle is white, the first ring is black, the second ring is white, and the outer side of the solid circle is sequentially connected with the first ring and the second ring which are black and white.
Preferably, the widths of the first ring and the second ring are the same. Further, the ring width of the first ring and the second ring is 1/3 of the diameter of the solid circle.
Preferably, the third ring is a ring with multiple equal angles, and a plurality of equal data blocks are formed, wherein one data block is white and serves as a starting point of data reading, the other data blocks are respectively coded by four colors of red, green, blue and yellow, and are respectively coded as 0, 1, 2 and 3, and the colors of the adjacent data blocks are different.
Preferably, the third ring is a ring with an angle 16 equal to the outer diameter of the second ring, and the width of the ring is greater than or equal to 1/3 of the diameter of the solid circle.
According to a second aspect of the present invention, there is provided a method for generating a color annular two-dimensional code, the method comprising: and converting the data stream into a quad number, skipping the result that adjacent quad bytes are the same, and coloring a plurality of data blocks in a third ring of the data area according to the corresponding relation between the quad number and the color.
According to a third aspect of the present invention, there is provided a decoding method of a color annular two-dimensional code, including:
s1: color conversion is carried out on color pixels of the original color annular two-dimensional code picture, and when the solid circle of the positioning area is black, the color pixels are converted into white; when the solid circle of the positioning area is white, the color pixel is converted into black;
s2: scanning the two-dimensional code picture processed by the S1 to find out the center of the positioning area;
s3: converting the original color annular two-dimensional code picture into a polar coordinate system by taking the center of the positioning area as the origin of coordinates;
s4: and scanning along the r axis of the polar coordinate system to find a data area, and scanning along the phi axis of the polar coordinate system to decode the data area.
Preferably, the method further includes, before S1, performing white balance processing on the original color annular two-dimensional code picture.
Preferably, after S1, the method further includes performing graying, binarization, and gaussian filtering on the image in sequence.
Preferably, in S3, the step of finding the data area by scanning along the r-axis of the polar coordinate system means that the first color pixel encountered during each line of pixel scanning is identified as the pixel sampling point of the data area.
Preferably, the scanning the decoded data area along the phi axis of the polar coordinate system means that the color of the pixel sampling point of each row is identified along the phi axis of the polar coordinate system, and a new data block is determined to be reached when a color jump is encountered.
Compared with the prior art, the invention has the advantages that:
by adopting color coding, the information capacity of the novel two-dimensional code is improved compared with the traditional annular two-dimensional code.
The decoding method of the color annular two-dimensional code can improve the image distortion resistance of the two-dimensional code by adopting the decoding method based on scanning, and has better decoding effect in dealing with barrel distortion, pincushion distortion, perspective distortion and distortion caused by printing on irregular geometric bodies.
Drawings
Embodiments of the invention are further described below with reference to the accompanying drawings:
FIG. 1 is a diagram of a color annular two-dimensional code structure according to an embodiment of the invention;
FIG. 2 is a flowchart illustrating a decoding process of a color annular two-dimensional code according to an embodiment of the present invention;
FIG. 3 is a flowchart illustrating a decoding process of a color annular two-dimensional code according to a preferred embodiment of the present invention;
FIG. 4 is a two-dimensional code image under a polar coordinate system according to a preferred embodiment of the present invention;
FIG. 5 is a structural diagram of a color annular two-dimensional code according to another preferred embodiment of the present invention;
description of reference numerals: 1-solid circle, 2-first circle, 3-second circle, 4-third circle, 5-data block, 501-white data block, 502-black data block.
Detailed Description
The present invention will be described in detail with reference to specific examples. The following examples will assist those skilled in the art in further understanding the invention, but are not intended to limit the invention in any way. It should be noted that variations and modifications can be made by persons skilled in the art without departing from the spirit of the invention. All falling within the scope of the present invention.
Referring to fig. 1, a schematic diagram of a color annular two-dimensional code according to an embodiment of the present invention is shown, where the color annular two-dimensional code shown in the drawing includes: the positioning area comprises a black and white positioning area and a color data area, wherein the black and white positioning area comprises a first circular ring 2 and a second circular ring 3, a solid circle 1 is positioned outside the solid circle 1, and the first circular ring 2 and the second circular ring 3 are two concentric circular rings; the data area is a third ring 4 concentric with the positioning area, the positioning area is located inside the third ring 4, and the third ring 4 is divided into a plurality of data blocks 5.
In the embodiment shown in fig. 1, the solid circle 1 of the positioning area is black, the first ring 2 is white, the second ring 3 is black, and the outer side of the solid circle 1 is sequentially connected with the first ring 2 and the second ring 3 which are white and black, i.e. the black solid circle 1 is positioned at the innermost part, then the first ring 2 is sleeved outside the black solid circle 1, and the second ring 3 is sleeved outside the first ring 2. In the preferred embodiment, the ring widths of the first ring 2 and the second ring 3 are the same, and the ring widths of the first ring 2 and the second ring 3 are 1/3 of the diameter of the solid circle 1. The third ring 4 overcoat is outside second ring 3, and solid circle 1 and three ring all set up with one heart. In the embodiment shown in fig. 1, the third ring 4 is a ring equally divided by an angle 16, and 16 equal data blocks 5 are formed, wherein one of the data blocks is a white data block 501, the white data block 501 is used as a starting point for data reading, the other 15 data blocks 5 are respectively coded by four colors of red, green, blue and yellow, and are respectively coded as 0, 1, 2 and 3, and the adjacent data blocks 5 are different in color.
In the above embodiment, a 16-equal-division circular ring is adopted, and in other embodiments, other equal divisions can be adopted, generally equal division is a multiple of 4, and the more equal divisions, the greater the data density, the higher the resolution requirement on the code scanning device; the less the equal division, the lower the resolution requirements for the code scanner, but the lower the data density. In the above embodiment, 16 equal divisions are preferable, and the information capacity is 107The order of magnitude can ensure that the data density is similar to that of the traditional small-size two-dimensional codes, for example, the data volume of the Micro QR Code under the same size is 105DataMatrix of 106I.e. to guarantee a minimum equal division of the data density. Similarly, in other embodiments, other colors may be used, and the more colors are used, the higher the resolution requirement of the device, so to achieve the basic information capacity, the above embodiment preferably uses four color codes. Further, the color of the pixel is represented by a ternary number composed of three channels of RGB, and when the color is recognized, the color is usually determined according to the range in which the ternary number of the color is located, for example, the color is recognized as red in the range of (255,0, 0). When the combination of the four colors of red, green, blue and yellow is adopted, the specific range of the data is not required to be involved in decoding, and the four colors can be judged by only comparing the relative sizes of the three elements. For example, if the value of the red channel (first number) is much greater than the value of the green channel (second number) and the value of the blue channel (third number), then red, green and blue are considered to be the same, yellow is the complement of blue, the first number and the second number are close in value,if the number is far larger than the third number, the color is judged to be yellow. The decoding method designed in the way is simpler and has higher stability. Therefore, the data volume of the two-dimensional code can be increased to the level of the existing common small-size two-dimensional code by adopting the red, green, blue and yellow colors, and the stability is highest.
In the preferred embodiment, the third ring 4 is a ring divided equally by an angle 16, and has an inner diameter equal to the outer diameter of the second ring 3 and a width greater than or equal to 1/3 the diameter of the solid circle 1.
In the above embodiment, the diameter ratio of the solid circle to the circular ring of the two-dimensional code is 1:1:3:1:1, but in other embodiments, the diameter ratio may be other ratios, for example, 1:1:4:1:1, and only the size of the positioning area may be larger. The ratio of diameters 1:1:3:1:1 is a relatively preferred ratio.
In another preferred embodiment of the present invention, a method for generating a color annular two-dimensional code is provided, specifically: firstly, an annular two-dimensional code template is generated, wherein the annular two-dimensional code template comprises a black and white positioning area and a colored data area, and the specific structure of the colored annular two-dimensional code template is the colored annular two-dimensional code template in the embodiment. Then, data conversion is performed, taking data 410720541 as an example, the data is firstly converted into a 4-system number 120132301210131, no adjacent bytes are detected to be the same, red, green, blue and yellow are respectively corresponding to 0, 1, 2 and 3, a data area color sequence is obtained, namely 'green blue, green yellow, blue, yellow, green blue, green yellow and green', and the data area is colored counterclockwise according to the color sequence after the white data block 501.
In another embodiment of the present invention, a method for decoding the color annular two-dimensional code is provided. Referring to fig. 2, the decoding method may be performed as follows:
s1: converting all color pixels of the original color annular two-dimensional code picture into white;
s2: scanning the two-dimensional code picture processed by the S1 to find the center of the positioning area; because the two circular rings and the solid circle of the positioning area are concentric, the center of the positioning area is the same as the center of the solid circle; scanning each row of pixels during positioning, and if the color proportion of the pixels is black: white: black: white: black-1: 1:3:1:1, the localization zone is considered.
S3: taking the center of the positioning area obtained in the step S2 as the origin of coordinates, and converting the original color annular two-dimensional code picture into a polar coordinate system;
s4: scanning along the r axis of the polar coordinate system to find a data area, and scanning along the phi axis of the polar coordinate system to decode the data area; wherein: scanning along the r axis to find the data area means that when each line of pixels is scanned, the first color pixel encountered is regarded as the pixel sampling point of the data area; scanning the decoded data area means that the color of the pixel sampling point of each row is identified along the phi axis of the polar coordinate, and when a color jump is encountered, a new data block 5 is determined to be reached.
After the color of each data block 5 of the data area is sequentially read from the white data block 501, 4-system data can be obtained according to the corresponding relationship between the color and the 4-system number, and then the 4-system data is converted into 10-system number, so that the original data can be obtained.
Fig. 4 is a two-dimensional code image in a polar coordinate system, where the horizontal axis is an r axis, the vertical axis is a phi axis, the color order of the pixels in each line is black, white, black, color (or white, only the lines of the white data block are white, and the last lines in the figure), other colors (since there may be various colors around the two-dimensional code, these colors are represented instead), and the first color pixel encountered is scanned as a pixel sample of the data area. In practice, a setting is added for distinguishing the white pixel in the data area from the white pixel of the second circular ring, when the white pixel is encountered for the second time, the white pixel is regarded as the white pixel of the data block, for example, the last rows, the color sequence is black, white, black and white, and the second white pixel is the pixel of the data block.
In another preferred embodiment of the present invention, a method for decoding the color annular two-dimensional code is provided. Referring to fig. 3, the decoding method may be performed as follows:
s1: carrying out image preprocessing on the color annular two-dimensional code picture; the image preprocessing comprises white balance, and the white balance can remove the influence of illumination on the color of the image;
s2: converting color pixels of the two-dimensional code picture preprocessed by the S1 into white; further, after the white color is converted, graying, binaryzation and Gaussian filtering processing of the image can be sequentially performed; graying and binarization are used for facilitating subsequent positioning operation, and Gaussian filtering is used for eliminating noise of some images;
s3: scanning the two-dimensional code picture processed by the S2 to find the center of the positioning area;
s4: taking the center of the positioning area obtained in the step S3 as the origin of coordinates, and converting the original color annular two-dimensional code picture into a polar coordinate system;
s5: scanning along the r axis of the polar coordinate system to find a data area, and scanning along the phi axis of the polar coordinate system to decode the data area; this step is the same as the embodiment shown in fig. 2 and will not be described again.
Referring to fig. 5, a schematic diagram of a color annular two-dimensional code in another preferred embodiment of the invention is shown, which includes: the positioning area comprises a black and white positioning area and a color data area, wherein the black and white positioning area comprises a first circular ring 2 and a second circular ring 3, a solid circle 1 is positioned outside the solid circle 1, and the first circular ring 2 and the second circular ring 3 are two concentric circular rings; the data area is a third ring 4 concentric with the positioning area, the positioning area is located inside the third ring 4, and the third ring 4 is divided into a plurality of data blocks 5. The difference from that shown in fig. 1 is that: the solid circle 1 in the positioning area is white, the first circle 2 is black, the second circle 3 is white, the outer side of the solid circle 1 is sequentially connected with the first circle 2 and the second circle 3 which are black and white, namely, the white solid circle 1 is positioned at the innermost part, then the black first circle 2 is sleeved outside the white solid circle 1, and the white second circle 3 is sleeved outside the black first circle 2. The third ring 4 is a ring divided equally by an angle 16, and 16 equal data blocks 5 are formed, wherein one of the data blocks is a black data block 502, the black data block 502 is used as a starting point of data reading, the other 15 data blocks 5 are respectively coded by four colors of red, green, blue and yellow, and are respectively coded as 0, 1, 2 and 3, and the adjacent data blocks 5 are different in color. Other arrangements are the same as those in the embodiment shown in FIG. 1, and are not described again.
Corresponding to the color annular two-dimensional code shown in fig. 5, the method for decoding the color annular two-dimensional code includes:
s1: performing white balance preprocessing on the color annular two-dimensional code picture, wherein the white balance is used for removing the influence of illumination on the color of the image;
s2: converting all color pixels of the two-dimensional code picture preprocessed by the S1 into black; further, after the black color is converted, graying, binaryzation and Gaussian filtering processing of the image can be performed in sequence; graying and binarization are used for facilitating subsequent positioning operation, and Gaussian filtering is used for eliminating noise of some images;
s3: scanning the two-dimensional code picture processed by the S2 to find the center of the positioning area;
s4: taking the center of the positioning area obtained in the step S3 as the origin of coordinates, and converting the original color annular two-dimensional code picture into a polar coordinate system;
s5: scanning along the r axis of the polar coordinate system to find a data area, and scanning along the phi axis of the polar coordinate system to decode the data area; this step is the same as the embodiment shown in fig. 2.
The above parts not described in detail can be implemented by referring to the technology in the embodiment shown in fig. 1-3, which is easy for those skilled in the art to implement and will not be described in detail.
The two-dimensional code data area provided by the embodiment of the invention is only one circular ring, the data area is divided by equally dividing the circular ring, the data density is improved, and meanwhile, through the conversion and the color coding of a coordinate system, the complexity of a decoding algorithm is lower, and the requirement on the precision of equipment is lower. In the background art, a plurality of circular rings are needed in a two-dimensional code data area of CN103793735A, and two circular rings are needed in the outermost layer to separate pixel interference around the two-dimensional code, but the two-dimensional code of the invention only needs one circular ring, and the data area can be reused as a static area during positioning through color-to-white or black operation, so that the function of separating pixel interference around the two-dimensional code is achieved, and two circular rings are not needed to be added, so that the data density of the two-dimensional code is further improved. For example, the maximum data size of the two-dimensional code of the present invention is about 2 × 107Under the same other conditions, the size of the two-dimensional code of CN103793735A with the same data size is 19.75 times that of the two-dimensional code of the present invention.
To sum up, the above embodiments of the present invention adopt the color coding and the scanning-based decoding method, so that the new two-dimensional code can effectively improve the anti-distortion capability of the image while achieving the basic information capacity.
The embodiments were chosen and described in order to best explain the principles of the invention and the practical application, and not to limit the invention. Any modifications and variations within the scope of the description, which may occur to those skilled in the art, are intended to be within the scope of the invention.

Claims (10)

1. A colored annular two-dimensional code which characterized in that: the two-dimensional code includes:
the positioning area comprises a solid circle, a first circular ring and a second circular ring, wherein the first circular ring and the second circular ring are positioned outside the solid circle, and the first circular ring and the second circular ring are two concentric circular rings;
the color data area is a third circular ring concentric with the positioning area, the positioning area is positioned on the inner side of the third circular ring, and a plurality of data blocks are divided on the third circular ring.
2. The color annular two-dimensional code according to claim 1, wherein: the positioning region, wherein:
the solid circle is black, the first ring is white, the second ring is black, and the first ring and the second ring which are white and black are sequentially connected to the outer side of the solid circle; or
The solid circle is white, the first ring is black, the second ring is white, and the outer side of the solid circle is sequentially connected with the first ring and the second ring which are black and white.
3. The color annular two-dimensional code according to claim 2, wherein: the widths of the first circular ring and the second circular ring are the same.
4. The color annular two-dimensional code according to claim 2, wherein: the ring width of the first ring and the second ring is 1/3 of the diameter of the solid circle.
5. The color annular two-dimensional code according to claim 1, wherein: the third ring is a ring with multiple equal angles, a plurality of equal data blocks are formed, one data block is white and serves as a starting point of data reading, the other data blocks are respectively coded by four colors of red, green, blue and yellow, the codes are respectively 0, 1, 2 and 3, and the colors of the adjacent data blocks are different.
6. The color annular two-dimensional code according to claim 5, wherein: the third ring is a ring with an angle 16 equal to the outer diameter of the second ring, and the width of the third ring is greater than or equal to 1/3 the diameter of the solid circle.
7. A method for generating a color annular two-dimensional code according to any one of claims 1-6, wherein: and converting the data stream into a quad number, skipping the result that adjacent quad bytes are the same, and coloring a plurality of data blocks in a third ring of the data area according to the corresponding relation between the quad number and the color.
8. A method for decoding a color annular two-dimensional code according to any one of claims 1 to 6, characterized in that: the method comprises the following steps:
s1: color conversion is carried out on color pixels of the original color annular two-dimensional code picture, and when the solid circle of the positioning area is black, the color pixels are converted into white; when the solid circle of the positioning area is white, the color pixel is converted into black;
s2: scanning the two-dimensional code picture processed by the S1 to find the center of the positioning area;
s3: converting the color two-dimensional code picture into a polar coordinate system by taking the center of the positioning area as the origin of coordinates;
s4: and scanning along the r axis of the polar coordinate system to find a data area, and scanning along the phi axis of the polar coordinate system to decode the data area.
9. The method for decoding color annular two-dimensional code according to claim 8, wherein: before S1, the method further includes performing white balance processing on the original color annular two-dimensional code picture;
after S1, the method further includes performing graying, binarization, and gaussian filtering on the image in sequence.
10. The method for decoding color annular two-dimensional code according to claim 8, wherein: in the step S3, the first step,
the step of scanning along the r axis of the polar coordinate system to find the data area means that when each line of pixels is scanned, the first color pixel encountered is regarded as the pixel sampling point of the data area;
the step of scanning the decoded data area along the phi axis of the polar coordinate system refers to identifying the color of the pixel sampling point of each row along the phi axis of the polar coordinate system, and when color jump occurs, the new data block is judged to arrive.
CN201910740414.0A 2019-08-12 2019-08-12 Color annular two-dimensional code and generation and decoding method thereof Active CN110610219B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910740414.0A CN110610219B (en) 2019-08-12 2019-08-12 Color annular two-dimensional code and generation and decoding method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910740414.0A CN110610219B (en) 2019-08-12 2019-08-12 Color annular two-dimensional code and generation and decoding method thereof

Publications (2)

Publication Number Publication Date
CN110610219A true CN110610219A (en) 2019-12-24
CN110610219B CN110610219B (en) 2020-11-06

Family

ID=68889783

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910740414.0A Active CN110610219B (en) 2019-08-12 2019-08-12 Color annular two-dimensional code and generation and decoding method thereof

Country Status (1)

Country Link
CN (1) CN110610219B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113255636A (en) * 2020-02-13 2021-08-13 宁波吉利汽车研究开发有限公司 Positioning method, device, equipment and storage medium based on circular ring coding
CN113435559A (en) * 2021-08-27 2021-09-24 深圳企业云科技股份有限公司 Label anti-transfer method based on computer vision recognition
CN114912475A (en) * 2021-02-07 2022-08-16 华为技术有限公司 Two-dimensional code identification method and related device

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070272755A1 (en) * 2006-05-29 2007-11-29 Shenzhen Syscan Technology Co., Ltd. Two-directional bar code symbol and its encoding & decoding method
CN103793735A (en) * 2014-01-28 2014-05-14 河海大学 Circular two-dimensional bar code and encoding and decoding method thereof
CN104794518A (en) * 2015-05-06 2015-07-22 矽照光电(厦门)有限公司 Color two-dimension code generating method and device
CN106156823A (en) * 2016-06-23 2016-11-23 安徽易泰格智能技术有限公司 A kind of colorful digital sequence Quick Response Code and method for anti-counterfeit thereof
CN106447001A (en) * 2016-09-19 2017-02-22 华南农业大学 Circular two-dimensional code, circular two-dimensional code coding method and application thereof
CN107590522A (en) * 2017-08-23 2018-01-16 阿里巴巴集团控股有限公司 A kind of method and device of identification code generation and identification
CN110084080A (en) * 2019-04-28 2019-08-02 上海快仓智能科技有限公司 Method, apparatus, two dimensional code and the trolley two dimensional code identification and generated
CN110096920A (en) * 2019-04-22 2019-08-06 浙江大学滨海产业技术研究院 A kind of high-precision high-speed positioning label and localization method towards visual servo

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070272755A1 (en) * 2006-05-29 2007-11-29 Shenzhen Syscan Technology Co., Ltd. Two-directional bar code symbol and its encoding & decoding method
CN103793735A (en) * 2014-01-28 2014-05-14 河海大学 Circular two-dimensional bar code and encoding and decoding method thereof
CN104794518A (en) * 2015-05-06 2015-07-22 矽照光电(厦门)有限公司 Color two-dimension code generating method and device
CN106156823A (en) * 2016-06-23 2016-11-23 安徽易泰格智能技术有限公司 A kind of colorful digital sequence Quick Response Code and method for anti-counterfeit thereof
CN106447001A (en) * 2016-09-19 2017-02-22 华南农业大学 Circular two-dimensional code, circular two-dimensional code coding method and application thereof
CN107590522A (en) * 2017-08-23 2018-01-16 阿里巴巴集团控股有限公司 A kind of method and device of identification code generation and identification
CN110096920A (en) * 2019-04-22 2019-08-06 浙江大学滨海产业技术研究院 A kind of high-precision high-speed positioning label and localization method towards visual servo
CN110084080A (en) * 2019-04-28 2019-08-02 上海快仓智能科技有限公司 Method, apparatus, two dimensional code and the trolley two dimensional code identification and generated

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113255636A (en) * 2020-02-13 2021-08-13 宁波吉利汽车研究开发有限公司 Positioning method, device, equipment and storage medium based on circular ring coding
CN113255636B (en) * 2020-02-13 2023-08-04 宁波吉利汽车研究开发有限公司 Positioning method, device, equipment and storage medium based on ring coding
CN114912475A (en) * 2021-02-07 2022-08-16 华为技术有限公司 Two-dimensional code identification method and related device
CN113435559A (en) * 2021-08-27 2021-09-24 深圳企业云科技股份有限公司 Label anti-transfer method based on computer vision recognition
CN113435559B (en) * 2021-08-27 2021-12-14 深圳企业云科技股份有限公司 Label anti-transfer method based on computer vision recognition

Also Published As

Publication number Publication date
CN110610219B (en) 2020-11-06

Similar Documents

Publication Publication Date Title
CN110610219B (en) Color annular two-dimensional code and generation and decoding method thereof
KR101348494B1 (en) Optical symbol, article to which the optical symbol is attached, method for attaching optical symbol to article, optical symbol decoding method, related device, and related program
US8006911B2 (en) System and method for encoding and decoding large capacity 2-dimensional color bar code which can be color-corrected
KR100914515B1 (en) Color classification method for color based image code recognition
JP4016342B2 (en) Apparatus and method for code recognition
CN103793735B (en) Circular two-dimensional bar code and encoding and decoding method thereof
US11216631B2 (en) Contrast edge barcodes
CN101553828B (en) Optical identifier identification device and method
US20140097246A1 (en) Method and device for batch scanning 2d barcodes
KR20070114648A (en) The two-directional bar code symbol and its encoding and decoding method
Tang et al. TSA-SCC: Text semantic-aware screen content coding with ultra low bitrate
CN1450796A (en) Method and apparatus for detecting and/or tracking image or color area of image sequence
JP2009516259A (en) Video image code, apparatus and method for generating or decoding video image code
CN106682560B (en) Two-dimensional code identification method, device and system
Liu et al. Automatic recognition algorithm of quick response code based on embedded system
MX2012010260A (en) Method for creating and method for decoding two-dimensional colour code.
Querini et al. Color classifiers for 2D color barcodes
CN114782953A (en) Seal intelligent identification method
US20190294936A1 (en) Method for detecting and recognizing long-range high-density visual markers
CN114818765A (en) Identification method and device
Lee et al. A new data transfer method via signal-rich-art code images captured by mobile devices
CN108182466B (en) Circular two-dimensional identification code and scanning identification method thereof
CN112507751B (en) Positioning method and system for QR (quick response) codes
JP4404224B2 (en) Optical recognition code recognition apparatus, method and program
KR101163511B1 (en) An identification code encoding method, and the identification code decoding method and apparatus

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
GR01 Patent grant
GR01 Patent grant