CN109063807A - A kind of generation of three-dimension code, reading and recognition methods - Google Patents

A kind of generation of three-dimension code, reading and recognition methods Download PDF

Info

Publication number
CN109063807A
CN109063807A CN201811053136.3A CN201811053136A CN109063807A CN 109063807 A CN109063807 A CN 109063807A CN 201811053136 A CN201811053136 A CN 201811053136A CN 109063807 A CN109063807 A CN 109063807A
Authority
CN
China
Prior art keywords
code
color
dimension code
version
dimension
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
Application number
CN201811053136.3A
Other languages
Chinese (zh)
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 Xiangyu Investment Consulting Co Ltd
Original Assignee
Shanghai Xiangyu Investment Consulting Co Ltd
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 Xiangyu Investment Consulting Co Ltd filed Critical Shanghai Xiangyu Investment Consulting Co Ltd
Priority to CN201811053136.3A priority Critical patent/CN109063807A/en
Publication of CN109063807A publication Critical patent/CN109063807A/en
Pending legal-status Critical Current

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
    • G06K19/06056Constructional details the marking comprising a further embedded marking, e.g. a 1D bar code with the black bars containing a smaller sized 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
    • G06K19/0614Constructional details the marking being selective to wavelength, e.g. color barcode or barcodes only visible under UV or IR

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Image Processing (AREA)

Abstract

The invention discloses a kind of three-dimension codes, including three-dimension code code area, chromatic aberration correction region and version cog region;Chromatic aberration correction region, which is set to any of three-dimension code code area, can recognize position;Version cog region is colored cog region, it is set in the position that can arbitrarily identify in three-dimension code code area periphery or code area, the version number that can be identified for forming down-stream after reading, and be set with check bit and verified, to ensure the validity and correctness of version number.It has the advantage that: the present invention increases the data capacity of coding by extension color dimension, while the mode of extension color dimension generates the coding easily identified, reaches higher discrimination efficiency;The version cog region that the present invention is set can identify version of code so that the scope of application of this technology is not limited to the three-dimensional extended of single two dimensional code, can backward compatible two dimensional code simultaneously, it is applied widely.Chromatic aberration correction region can be used for correcting all colours color difference in three-dimension code code area, improve discrimination.

Description

A kind of generation of three-dimension code, reading and recognition methods
Technical field
The present invention relates to coding techniques more particularly to a kind of generations of three-dimension code, reading and recognition methods, and according to this Generation method generates, the three-dimension code identified according to the recognition methods.
Background technique
Two dimensional code is also known as QR Code, QR full name Quick Response, is one popular in mobile device in recent years A kind of coding mode, it is distributed at plane (on two-dimensional directional) chequered with black and white according to certain rules with certain specific geometric figure Graphic recording data symbol information, in code compilation dexterously using constitute computer-internal logical foundations " 0 ", " 1 " The concept of bit stream indicates text numerical information using several geometrical bodies corresponding with binary system, defeated by image Enter equipment or photoelectric scanning device automatically identifying and reading to realize automatic processing of information.It can be deposited more than traditional Bar Code bar code More information can also indicate more data types.However planar bar code technology data capacity used at present is small, in order to increase by two Tie up code data capacity, a kind of mode is two dimensional code to be made to very big, but do big two dimensional code and can occupy too many area;Another kind side Formula is the point of two dimensional code to be made small, however the information of two dimensional code is stated, depending on black and white lattice in two-dimensional bar code figure Publication and area, the feature make it in recognition, require the acquisition of its figure to become very high, usual fine definition and low abnormal Change is the most fundamental requirement, if doing the point of small two dimensional code, is unfavorable for the correction of scalloping, while also by the limit of resolution ratio System.
It proposes in the prior art and barcode data capacity is increased by the processing of colour barcode, such as publication No. is CN The technology contents of 102147873A, in such technology by quaternary information in Color Expression encoded data stream (i.e. 0,1,2, 3) bar code reading requirement, is reduced, data information capacity is improved.However the content in patented technology is laid particular emphasis in conventional color bar code On the basis of be implanted into picture, enhance the form of expression, for still having deficiency in the transformation of bar code itself.
Therefore, in view of the foregoing drawbacks, need to improve the prior art.
Summary of the invention
In view of the above drawbacks of the prior art, technical problem to be solved by the invention is to provide a kind of lifes of three-dimension code At, read and recognition methods, it is small with the data capacity for solving the problems, such as that two dimensional code includes.
To solve the above-mentioned problems, the present invention provides a kind of three-dimensional code generating method, include the following steps:
S1: version of code is determined;
S2: setpoint color corresponds to coding schedule, defines the corresponding encoding value of each color;
S3: the information for needing to generate three-dimension code is corresponding according to the color of the step S1 version determined and step S2 setting Coding schedule is encoded, and RGB numerical value is generated;
S4: the RGB numerical value that step S3 is generated is defined as corresponding color;
S5: the code-point for needing to generate three-dimension code information is defined as corresponding color, version of code is according to S2 to S4's Step generates colored code-point, and shows and/or be printed upon the three-dimension code code zone position of setting;
S6: the chromatic aberration correction region of pure color is generated, and shows and/or be printed upon the three-dimension code code zone position of setting;
S7: three-dimension code is generated.
Further, the numerical value that the color in above-mentioned steps S2 corresponds to that color in coding schedule defines can be corresponded to arbitrarily;Face Color corresponds to the numerical value that can select 16 kinds of colors that can be identified to define 0-15 in table, can also be extended to and select 256 kinds of colors Coloured silk come define 0-255 numerical value.
Further, above-mentioned steps S6, the pure color primary colours in chromatic aberration correction region are Red Green Blue and Bai Si kind base Color adjusts the numerical value to be corrected, with all colors in correction code area.
The present invention also provides a kind of read method of three-dimension code, the three-dimensional generated by the three-dimensional code generating method is read Code, specifically includes the following steps:
A1: the flat image comprising three-dimension code code area is obtained;
A2: determining by the positioning method of two dimensional code and intercept three-dimension code code zone position;And it is entangled by the deformity of two dimensional code The inclination and deformation of correction method remedial frames;
A3: the position in positioning chromatic aberration correction region;
A4: the color data in three-dimension code code area is read, in conjunction with the chromatic aberration correction information point three primary colors (RGB) obtained respectively Numerical value calculates and obtains chromatic aberration correction rate, corrects color value error caused by three-dimension code code area color difference, carries out chromatic aberration correction;
A5: it according to the three-dimension code code area color value after correction, compares the preset color of version and corresponds to coding schedule, obtain Numerical value corresponding to three-dimension code reads three-dimension code.
Further, above-mentioned steps A4 after color is corrected in chromatic aberration correction region, when obtaining a color lump color, is calculated The numerical value of three kinds of colors of red, green, blue is obtained, each numerical value can be a numerical value in 0-255 in calculating definition, pass through three The combination of a color data obtains and obtains the practical corresponding numerical value of color lump, when the evaluation of the color lump of selection is close to 255, Think that this color exists, and is denoted as 1;Think that this color is not present when close to 0, and is denoted as 0.
Further, above-mentioned steps A4 can also be using corresponding in different versions after color is corrected in chromatic aberration correction region The mode of more color values is calculated, and must be grouped at this time to the color-values of 0-255, such as 16 numerical value of grouping are One group are as follows: 0-15,16-31,32-47 ... 240-255 obtains a color lump, reads wherein three color value of red, green, blue respectively, Compare the corresponding digital scope of this value and a corresponding specific value out, three color of red, green, blue can obtain as three Value makes list finally by the corresponding different numerical value or information out of permutation and combination and the corresponding coding schedule of the preset color of version Up to 4096 kinds of the content that a color dot can express.
Further, after color is corrected in chromatic aberration correction region, slight color difference, then only need to obtain immediate if it exists Value.
Further, in the correction mode of above-mentioned steps A4, the numerical value of chromatic aberration correction information point three primary colors (RGB) is obtained Afterwards, the numerical value for distinguishing red (R), green (G) and blue (B) is compared with 255, obtains color difference rate R respectivelym、Gm、Bm:
a)R/255……Rm
b)G/255……Gm
c)B/255……Bm
After obtaining color difference rate, R, G, B value for obtaining any code-point are to be set as R1G1B1, by reducing formula color difference, gone back Three primary colors R after originalf、Gf、BfAre as follows:
a)R1/Rm……Rf
b)G1/Gm……Gf
c)B1/Bm……Bf
At this point, the R obtainedf Gf BfValue is to read final R, G, B value of the information point of three-dimension code version.
Further, in step A5, the three-dimension code code area and determining version of code after correcting color difference are preset Color corresponds to coding schedule correspondence and obtains series of values, carries out the verification of version numeric data to the numerical value, judges that decoding process obtains Whether the data taken are three-dimension code data;If verification does not pass through, indicate that decoding process is wrong, then switchs to two dimensional code and read process reading It takes, two dimensional code is read successfully, then turns down-stream processing.
Further, if turning two dimensional code reads failure, repeatedly read step A1-A4, reads three-dimension code until correcting and terminating Numerical value.
Further, in step A5, the three-dimension code code area version numerical check after correction is successful, then the face set with version Color corresponds to the numerical value that the corresponding three-dimension code of coding schedule is recorded, and carries out data redundancy criteria check, judges to compile according to color is corresponding Whether the data of code table are correct, enter down-stream if the success of data redundancy criteria check and handle.
Further, if data redundancy criteria check is unsuccessful, repeatedly read step A1-A4, reads until verification terminates Three-dimension code numerical value.
Further, version numerical check and data redundancy criteria check can be carried out using a variety of verification modes, with For data redundancy criteria check, for example, by using following checking procedure: obtaining one according to the determining corresponding color of version of code String number, it is assumed that numeric string 28936075, according to the structure 2+8+9+3+6+0+7=35 of predefined, definition only takes 35 Units is as check value, if the 8th is 5, redundancy check passes through, the data in citing be by;If color is translated There is deviation in data procedures, and eight-digit number is not just probably 5, and verification does not just pass through.It should be noted that the mode enumerated A kind of only mode of version numerical check or data redundancy criteria check, can be complete using various ways in actual mechanical process It is any equal by way of judging data accuracy by the mathematical relationship between number after color translation number at checking procedure Achievable verification, does not repeat one by one herein.
Further, if embedding figure in three-dimension code code area, pattern range will exclude in data, can be in version information The corresponding information of middle insertion graph position.
The present invention also provides a kind of generating device of three-dimension code, the generation of three-dimension code described above is can be performed in the equipment Method.
The present invention also provides a kind of reading equipment of three-dimension code, the reading of three-dimension code described above is can be performed in the equipment Method.
The present invention also provides a kind of computer readable storage mediums, wherein being stored with program, which, which is performed, to hold The generation method of row three-dimension code described above.
The present invention also provides a kind of recognition methods of three-dimension code, identify what method described above generated by the recognition methods Three-dimension code, method particularly includes: version cog region is added in the position that can arbitrarily identify in three-dimension code code area periphery or code area, The number formed after reading, and set self verifying function;If reading the digit check failure formed after version cog region, The coding is positioned as two dimensional code, using two dimensional code mode identification information;If read after version cog region the digit check that is formed at Function, then the coding is positioned as three-dimension code, using three-dimension code mode identification information.
Further, version cog region corresponds to coding schedule progress color recognition referring to color and obtains corresponding numerical value.
The present invention also provides a kind of identification equipment of three-dimension code, the identification of three-dimension code described above is can be performed in the equipment Method.
The present invention also provides a kind of computer readable storage mediums, wherein being stored with program, which, which is performed, to hold The recognition methods of row three-dimension code described above.
The present invention also provides a kind of application product of three-dimension code, know on the application product using three-dimension code described above The three-dimension code of other method identification.
The present invention also provides a kind of three-dimension code, the three-dimension code is generated by generation method described above, and by above-mentioned The read method is read, and is identified by recognition methods described above, and the three-dimension code includes that three-dimension code code area, color difference entangle Positive region and version cog region;Three-dimension code code area is identical as conventional two-dimensional code, and the chromatic aberration correction region is set to three Any of the area Wei Mama can recognize position, for providing chromatic aberration correction;The version cog region is colored cog region, is set in three It arbitrarily can recognize position in the area Wei Mama periphery or code area, can form down-stream after the color of reading version cog region can know Other version.
Further, the color in the chromatic aberration correction region includes red, green, blue and Bai Si kind color, passes through pure color and reality The value of chromatism of color is read on border, corrects the color data of code-point.
Further, the three-dimension code further includes that color corresponds to coding schedule, by the corresponding relationship of numerical value and color, so that The color of reading corresponds to the mutual conversion that coding schedule carries out numerical value and color according to color.
Further, the version cog region can increase a region definition, and the code in code area defines an area in vivo Domain is as embedded graph area.
The method that two dimensional code is extended to three-dimension code is provided by implementing aforementioned present invention, is had the following technical effect that
(1) present invention increases the data capacity of coding, while the side of expansible color dimension by extension color dimension Formula generates the coding easily identified, reaches higher data volume;
(2) the version cog region that the present invention is set can identify version of code, so that the scope of application of this technology is not limited to In single two dimensional code, can be suitable for simultaneously two dimensional code and three-dimension code and it is later further expand it is applied widely;
(3) the chromatic aberration correction region that the present invention is set can be used for correcting all colours color difference in three-dimension code code area, improves and knows Other success rate.
Detailed description of the invention
It is described further below with reference to technical effect of the attached drawing to design of the invention, specific structure and generation, with It is fully understood from the purpose of the present invention, feature and effect.
Fig. 1 is the three-dimensional code generating method flow chart of the embodiment of the present invention;
Fig. 2 is that color of the embodiment of the present invention corresponds to coding schedule example diagram;
Fig. 3 is three-dimension code read method flow chart of the embodiment of the present invention;
Fig. 4 is the three-dimension code structural schematic diagram of the embodiment of the present invention.
Specific embodiment
Below in conjunction with the embodiment of the present invention, technical scheme in the embodiment of the invention is clearly and completely described, Obviously, described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.Based in the present invention Embodiment, every other embodiment obtained by those of ordinary skill in the art without making creative efforts, all Belong to the scope of protection of the invention.
Using several specific embodiments, the technical schemes of the invention are described in detail below.
Embodiment 1
As shown in Figure 1, a kind of three-dimensional code generating method, includes the following steps:
S1: version of code is determined;
S2: setpoint color corresponds to coding schedule, defines the corresponding encoding value of each color;
S3: the information for needing to generate three-dimension code is corresponding according to the color of the step S1 version determined and step S2 setting Coding schedule is encoded, and RGB numerical value is generated;
S4: the RGB numerical value that step S3 is generated is defined as corresponding color;
S5: the code-point for needing to generate three-dimension code information is defined as corresponding color, version of code is according to S2 to S4's Step generates colored code-point, and shows and/or be printed upon the three-dimension code code zone position of setting;
S6: the chromatic aberration correction region of pure color is generated, and shows and/or be printed upon the three-dimension code code zone position of setting
S7: three-dimension code is generated.
Further, the numerical value that the color in above-mentioned steps S2 corresponds to that color in coding schedule defines can be corresponded to arbitrarily;Face Color corresponds to the numerical value that can select 16 kinds of colors that can be identified to define 0-15 in table, can also be extended to and select 256 kinds of colors Coloured silk come define 0-255 numerical value.Color corresponds to coded representation for example shown in Fig. 2.
Further, above-mentioned steps S6, the pure color primary colours in chromatic aberration correction region are Red Green Blue and Bai Si kind base Color adjusts the numerical value to be corrected, with all color color difference in correction code area.
As shown in figure 3, the present invention also provides a kind of read method of three-dimension code, what reading was generated by three-dimensional code generating method Three-dimension code, specifically includes the following steps:
A1: the flat image comprising three-dimension code code area is obtained;
A2: it is determining by the positioning method of two dimensional code and intercept three-dimension code code zone position, and entangled by the deformity of two dimensional code The inclination and deformation of correction method remedial frames;
A3: the position in positioning chromatic aberration correction region;
A4: the color data in three-dimension code code area is read, in conjunction with the chromatic aberration correction information point three primary colors (RGB) obtained respectively Numerical value calculates and obtains chromatic aberration correction rate, corrects color value error caused by three-dimension code code area color difference, carries out chromatic aberration correction;
A5: according to the three-dimension code code area color value after correction, the color for comparing version setting corresponds to coding schedule, reads three-dimensional Numerical value corresponding to code, reads three-dimension code.
Further, above-mentioned steps A4 after color is corrected in chromatic aberration correction region, when obtaining a color lump color, is calculated Obtain the numerical value of three kinds of colors of red, green, blue.Each numerical value can be a numerical value in 0-255 in calculating definition, pass through three The combination of a color data obtains and obtains color lump actually corresponding numerical value.When the calculating number of the color lump of selection is close to 255, Think that this color exists, and is denoted as 1;Think that this color is not present when close to 0, and is denoted as 0.
Further, after color is corrected in chromatic aberration correction region, slight color difference, then only need to obtain immediate if it exists Value.
Further, in the correction mode of above-mentioned steps A4, the numerical value of chromatic aberration correction information point three primary colors (RGB) is obtained Afterwards, the numerical value for distinguishing red (R), green (G) and blue (B) is compared with 255, obtains color difference rate R respectivelym、Gm、Bm:
a)R/255……Rm
b)G/255……Gm
c)B/255……Bm
After obtaining color difference rate, R, G, B value for obtaining any code-point are to be set as R1G1B1, by reducing formula color difference, gone back Three primary colors R after originalf、Gf、BfAre as follows:
a)R1/Rm……Rf
b)G1/Gm……Gf
c)B1/Bm……Bf
At this point, the R obtainedf Gf BfValue is to read final R, G, B value of the information point of three-dimension code version.
Further, three-dimension code code area and the preset color pair of version of code in step A5, after correcting color difference It answers coding schedule to obtain corresponding series of values, version numerical check is carried out to the numerical value, judge the data that decoding process obtains It whether is three-dimension code data;If verification does not pass through, indicate that decoding process is wrong, then switchs to two dimensional code and read process reading, two dimension Code is read successfully, then turns down-stream processing.
Further, if turning two dimensional code reads failure, repeatedly read step A1-A4, reads three-dimension code until correcting and terminating Numerical value.
Further, in step A5, the three-dimension code code area version numerical check after correcting color difference is successful, then is set with version Color correspond to the numerical value that the corresponding three-dimension code of coding schedule recorded and carry out data redundancy criteria check, judge according to color correspondence Whether the data of coding schedule are correct, if the success of data redundancy criteria check, three-dimension code completion read, at down-stream Reason.
Further, if data redundancy criteria check is unsuccessful, repeatedly read step A1-A4, reads until verification terminates Three-dimension code numerical value.
Further, version numerical check and data redundancy criteria check can be carried out using a variety of verification modes, with For data redundancy criteria check, for example, by using following checking procedure: obtaining one according to the determining corresponding color of version of code String number, it is assumed that numeric string 28936075, according to the structure 2+8+9+3+6+0+7=35 of predefined, definition only takes 35 Units is as check value, if the 8th is 5, redundancy check passes through, the data in citing be by;If color is translated There is deviation in data procedures, and eight-digit number is not just probably 5, and verification does not just pass through.It should be noted that the mode enumerated A kind of only mode of version numerical check or data redundancy criteria check, can be complete using various ways in actual mechanical process It is any equal by way of judging data accuracy by the mathematical relationship between number after color translation number at checking procedure Achievable verification, does not repeat one by one herein.
Further, if embedding figure in three-dimension code code area, pattern range will exclude in data, can be in version information The corresponding information of middle insertion graph position.
The present invention also provides a kind of generating device of three-dimension code, the generation method of above-mentioned three-dimension code is can be performed in equipment.
The present invention also provides a kind of reading equipment of three-dimension code, the read method of above-mentioned three-dimension code is can be performed in equipment.
The present invention also provides a kind of computer readable storage mediums, wherein being stored with program, which, which is performed, to hold The generation method of the above-mentioned three-dimension code of row.
The present invention also provides a kind of recognition methods of three-dimension code, identify the three-dimensional that the above method generates by the recognition methods Code, method particularly includes: as shown in figure 4, adding version cog region, shape after reading in the position that three-dimension code code area periphery can identify At number, and set self verifying function;If reading the digit check failure formed after version cog region, the coding is fixed Position is two dimensional code, using two dimensional code mode identification information;If reading the digit check success formed after version cog region, the volume Code is positioned as three-dimension code, using three-dimension code mode identification information.
Further, version cog region corresponds to coding schedule progress color recognition referring to color and obtains corresponding numerical value.
The present invention also provides a kind of identification equipment of three-dimension code, the recognition methods of above-mentioned three-dimension code is can be performed in equipment.
The present invention also provides a kind of computer readable storage mediums, wherein being stored with program, which, which is performed, to hold The recognition methods of the above-mentioned three-dimension code of row.
The present invention also provides a kind of application product of three-dimension code, know on application product using above-mentioned three-dimension code recognition methods Other three-dimension code.
The present invention also provides a kind of three-dimension codes, as shown in figure 4, three-dimension code is generated by above-mentioned generation method, and by upper Read method reading is stated, identifies that three-dimension code includes three-dimension code code area 1, chromatic aberration correction region 2 and version by above-mentioned recognition methods This cog region 3;Three-dimension code code area 1 is identical as conventional two-dimensional code, and chromatic aberration correction region 2 is set to any of three-dimension code code area 1 can Position is identified, for providing chromatic aberration correction;Version cog region 3 is colored cog region, is set in 1 periphery of three-dimension code code area, reads The version that down-stream can identify can be formed after the color of version cog region.
Further, the color in chromatic aberration correction region 2 includes red, green, blue and Bai Si kind color, passes through pure color and practical reading The value of chromatism for taking color corrects the color data of code-point.
Further, three-dimension code further includes that color corresponds to coding schedule, by the corresponding relationship of numerical value and color, so that reading Color according to color correspond to coding schedule carry out numerical value and color mutual conversion.
Embodiment 2
The three-dimension code that the present embodiment is stated generates, reading and recognition methods are substantially the same manner as Example 1, difference It is, in read step A4 as described in Example 1, after color is corrected in chromatic aberration correction region, using polychrome in different versions The mode of color numerical value is calculated, and must be grouped at this time to the color-values of 0-255, such as 16 numerical value of grouping are one group Are as follows: 0-15,16-31,32-47 ... 240-255 obtains a color lump, reads wherein three color value of red, green, blue respectively, compare This be worth corresponding digital scope and it is corresponding go out a specific value, three color of red, green, blue can obtain three as value, most Afterwards by the corresponding different numerical value or information out of permutation and combination and the corresponding coding schedule of the preset color of version, make single color dot Up to 4096 kinds of the content that can be expressed.
Embodiment 3
Generation, reading and the recognition methods for the three-dimension code that the present embodiment is stated and embodiment 1 and the basic phase of embodiment 2 Together, the difference is that, arbitrarily can be in three-dimension code code area in the recognition methods of three-dimension code as described in Example 1 The position of identification sets version identification, carries out version identification, rather than in code area periphery.
Embodiment 4
Generation, reading and the recognition methods for the three-dimension code that the present embodiment is stated and embodiment 1 and the basic phase of embodiment 2 Together, the difference is that, the quantity in chromatic aberration correction region can be more than 1 in three-dimension code, and can with include black in interior color Block, with different layouts.
The preferred embodiment of the present invention has been described in detail above.It should be appreciated that those skilled in the art without It needs creative work according to the present invention can conceive and makes many modifications and variations.Therefore, all technologies in the art Personnel are available by logical analysis, reasoning, or a limited experiment on the basis of existing technology under this invention's idea Technical solution, all should be within the scope of protection determined by the claims.

Claims (17)

1. a kind of three-dimensional code generating method, which comprises the steps of:
S1: version of code is determined;
S2: setpoint color corresponds to coding schedule, defines the corresponding encoding value of each color;
S3: it will need to generate the information of three-dimension code according to the corresponding coding of color of the step S1 version determined and step S2 setting Table is encoded, and RGB numerical value is generated;
S4: the RGB numerical value that step S3 is generated is defined as corresponding color;
The step of S5: being defined as corresponding color for the code-point for needing to generate three-dimension code information, and version of code is according to S2 to S4, Colored code-point is generated, and shows and/or be printed upon the three-dimension code code zone position of setting;
S6: the chromatic aberration correction region of pure color is generated, and shows and/or be printed upon the three-dimension code code zone position of setting;
S7: three-dimension code is generated.
2. the generation method of three-dimension code as described in claim 1, which is characterized in that the corresponding coding of color in above-mentioned steps S2 The numerical value that color defines in table can be corresponded to arbitrarily;Color, which corresponds to, can select 16 kinds of colors that can be identified to define 0- in table 15 numerical value can also be extended to and select 256 kinds of colors to define 0-255 numerical value.
3. the generation method of three-dimension code as described in claim 1, which is characterized in that above-mentioned steps S6, chromatic aberration correction region Pure color primary colours are Red Green Blue and Bai Si kind primary colours.
4. a kind of three-dimension code read method reads any one of the claims 1-3 three-dimensional code generating method generates three Tie up code, which is characterized in that specifically includes the following steps:
A1: the flat image comprising three-dimension code code area is obtained;
A2: determining by the positioning method of two dimensional code and intercept three-dimension code code zone position;And pass through the deformity correction side of two dimensional code The inclination and deformation of method remedial frames;
A3: the position in positioning chromatic aberration correction region;
A4: the color data in three-dimension code code area is read, in conjunction with the number of the chromatic aberration correction information point three primary colors (RGB) obtained respectively Value carries out chromatic aberration correction;
A5: it according to the three-dimension code code area color value after correction, compares the preset color of version and corresponds to coding schedule, obtain three-dimensional Numerical value corresponding to code, reads three-dimension code.
5. the read method of three-dimension code as claimed in claim 4, which is characterized in that above-mentioned steps A4, chromatic aberration correction region are entangled After positive color, when obtaining a color lump color, the numerical value for obtaining three kinds of colors of red, green, blue is calculated, each numerical value is fixed in calculating It all can be a numerical value in 0-255 in justice, by the combination of three color datas, obtain and obtain color lump actually corresponding number Value thinks that this color exists, and be denoted as 1 when the evaluation of the color lump of selection is close to 255;This is thought when close to 0 Color is not present, and is denoted as 0.
6. the read method of three-dimension code as claimed in claim 4, which is characterized in that above-mentioned steps A4, chromatic aberration correction region are entangled After positive color, it can also be corresponded in different versions and be calculated by the way of more color values;At this time to the color of 0-255 Color value is grouped, such as being divided into 16 numerical value is one group are as follows: 0-15,16-31,32-47 ... 240-255 obtains a color Block reads wherein three color value of red, green, blue respectively, compares the corresponding digital scope of this value and a corresponding specific value out, Three color of red, green, blue can obtain three as value, it is corresponding with the preset color of version of code finally by permutation and combination Coding schedule corresponds to different numerical value or information.
7. the read method of three-dimension code as claimed in claim 4, which is characterized in that in the correction mode of above-mentioned steps A4, take After the numerical value for obtaining chromatic aberration correction information point three primary colors (RGB), the numerical value for distinguishing red (R), green (G) and blue (B) is compared with 255 Compared with obtaining color difference rate R respectivelym、Gm、Bm:
a)R/255……Rm
b)G/255……Gm
c)B/255……Bm
After obtaining color difference rate, R, G, B value for obtaining any code-point are to be set as R1G1B1, by reducing formula color difference, after obtaining reduction Three primary colors Rf、Gf、BfAre as follows:
a)R1/Rm……Rf
b)G1/Gm……Gf
c)B1/Bm……Bf
At this point, the R obtainedf Gf BfValue is to read final R, G, B value of the information point of three-dimension code version.
8. three-dimension code read method as claimed in claim 4, which is characterized in that the three-dimensional in step A5, after correcting color difference The area Ma Ma coding schedule corresponding with the preset color of version of code is corresponding to obtain series of values, carries out version numeric data school It tests, whether the data for judging that decoding process obtains are three-dimension code data;If verification does not pass through, switchs to two dimensional code and read process reading It takes, two dimensional code is read successfully, then turns down-stream processing;If turning two dimensional code reads failure, repeatedly read step A1 to A4, until It corrects to terminate and reads three-dimension code numerical value;
In step A5, the three-dimension code code area version numerical check after correcting color difference is successful, then the color set with version is corresponding The numerical value that the corresponding three-dimension code of coding schedule is recorded carries out data redundancy criteria check, judges to correspond to coding schedule according to color Whether data are correct;If data redundancy criteria check is unsuccessful, repeatedly read step A1 to A4, until verification, which terminates, reads three-dimensional Yardage value;If the success of data redundancy criteria check, three-dimension code, which is read, to be completed.
9. a kind of generating device of three-dimension code, which is characterized in that the equipment can be performed described in any one of the claims 1-3 Three-dimension code generation method.
10. a kind of reading equipment of three codes, which is characterized in that any one of the claims 4-7 institute can be performed in the equipment The read method for the three-dimension code stated.
11. a kind of computer readable storage medium, wherein being stored with program, which is characterized in that the program is performed executable The generation method and/or read method of the described in any item three-dimension codes of claim 1-9.
12. a kind of recognition methods of three-dimension code, which is characterized in that identify that the claims 1-3 is any by the recognition methods The three-dimension code that item the method generates, method particularly includes: the position that can be arbitrarily identified in three-dimension code code area periphery or code area, Version cog region, the number formed after reading are added, and sets self verifying function;If being formed after reading version cog region Digit check failure, then the coding is positioned as two dimensional code, using two dimensional code mode identification information;If reading shape after version cog region At digit check success, then the coding is positioned as three-dimension code, using three-dimension code mode identification information.
13. the recognition methods of three-dimension code as claimed in claim 12, which is characterized in that it is corresponding that version cog region can refer to color Coding schedule carries out color recognition and obtains corresponding numerical value.
14. a kind of identification equipment of three-dimension code, which is characterized in that any one of the claims 12-13 can be performed in the equipment The recognition methods of the three-dimension code.
15. a kind of computer readable storage medium, wherein being stored with program, which is characterized in that the program is performed executable The recognition methods of three-dimension code described in any one of claim 12-13.
16. a kind of application product of three-dimension code, which is characterized in that using in the claims 12-13 on the application product The three-dimension code of described in any item three-dimension code recognition methods identifications.
17. a kind of three-dimension code, which is characterized in that the three-dimension code passes through generation described in any one of the claims 1-3 Method generates, and the read method as described in any one of the claims 4-8 is read, by the claims 12-13 Described in any item recognition methods identifications, the three-dimension code includes three-dimension code code area, chromatic aberration correction region and version cog region; Three-dimension code code area is identical as conventional two-dimensional code, and the chromatic aberration correction region, which is set to any of three-dimension code code area, can recognize position It sets, for providing chromatic aberration correction;The version cog region is colored cog region, is set in three-dimension code code area periphery or code area and appoints It anticipates and can recognize position, the version that down-stream can identify can be formed after reading the color of version cog region.
CN201811053136.3A 2018-09-10 2018-09-10 A kind of generation of three-dimension code, reading and recognition methods Pending CN109063807A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811053136.3A CN109063807A (en) 2018-09-10 2018-09-10 A kind of generation of three-dimension code, reading and recognition methods

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811053136.3A CN109063807A (en) 2018-09-10 2018-09-10 A kind of generation of three-dimension code, reading and recognition methods

Publications (1)

Publication Number Publication Date
CN109063807A true CN109063807A (en) 2018-12-21

Family

ID=64760196

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811053136.3A Pending CN109063807A (en) 2018-09-10 2018-09-10 A kind of generation of three-dimension code, reading and recognition methods

Country Status (1)

Country Link
CN (1) CN109063807A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111709262A (en) * 2020-05-19 2020-09-25 李峰 Three-dimensional code information intelligent identification method and device

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101515335A (en) * 2009-03-30 2009-08-26 浙江工业大学 Color two dimension bar code with high compression ratio Chinese character coding capability and its coding and decoding method
CN102521635A (en) * 2011-11-28 2012-06-27 哈尔滨工业大学 Coding method and decoding method for continuous multi-system bar code
CN102629967A (en) * 2012-04-18 2012-08-08 山东神思电子技术股份有限公司 Correction method for non-uniform illumination of copying device
CN103632181A (en) * 2012-08-22 2014-03-12 天津网团科技有限公司 Three-dimensional (3D) image code generating and analyzing methods and device thereof
CN104182764A (en) * 2014-08-19 2014-12-03 田文胜 Pattern recognition system
CN104268615A (en) * 2014-10-24 2015-01-07 重庆思根科技有限公司 Encoding method and decoding method for color two-dimensional code

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101515335A (en) * 2009-03-30 2009-08-26 浙江工业大学 Color two dimension bar code with high compression ratio Chinese character coding capability and its coding and decoding method
CN102521635A (en) * 2011-11-28 2012-06-27 哈尔滨工业大学 Coding method and decoding method for continuous multi-system bar code
CN102629967A (en) * 2012-04-18 2012-08-08 山东神思电子技术股份有限公司 Correction method for non-uniform illumination of copying device
CN103632181A (en) * 2012-08-22 2014-03-12 天津网团科技有限公司 Three-dimensional (3D) image code generating and analyzing methods and device thereof
CN104182764A (en) * 2014-08-19 2014-12-03 田文胜 Pattern recognition system
CN104268615A (en) * 2014-10-24 2015-01-07 重庆思根科技有限公司 Encoding method and decoding method for color two-dimensional code

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111709262A (en) * 2020-05-19 2020-09-25 李峰 Three-dimensional code information intelligent identification method and device
CN111709262B (en) * 2020-05-19 2024-01-09 海南天鉴防伪科技有限公司 Intelligent three-dimensional code information identification method and device

Similar Documents

Publication Publication Date Title
CN102147873B (en) Method and system for generating color code as well as method and system for analyzing color code
CN106778995B (en) Artistic two-dimensional code generation method and device fused with image
US10679175B2 (en) Two-dimensional code, system for creation of two-dimensional code, and analysis program
CN103489026B (en) Colorful two-dimension code, generating method and generating system thereof and printed article
CN102243712B (en) Generation method and system thereof for colored bar code, and analytic method and system thereof for colored bar code
US20140346231A1 (en) Multidimensional color barcode
CN109190736B (en) Anti-counterfeiting two-dimensional code and generation method and generation application system thereof
US20080197197A1 (en) Multiple resolution readable color array
CN101667256A (en) Two-dimensional code having rectangular region provided with specific patterns for specify cell positions and distinction from background
JP6061075B2 (en) Two-dimensional code, two-dimensional code generation method, and two-dimensional code reading method
CN104657768A (en) Colorful three-dimensional code structure and colorful three-dimensional code reading method
CN106022431A (en) Method and device for generating and reading color two-dimensional diagram code of color identification type
CN106022430A (en) Method and device for generating, recognizing and reading synthetic-type color two-dimensional diagram code
US20190294936A1 (en) Method for detecting and recognizing long-range high-density visual markers
US11843395B2 (en) Coding pattern, coding and reading methods for same, calibration board, and calibration method
CN103793738B (en) Method and device for identifying composite code composed of basic codes
CN105760917B (en) three-dimensional code encoding method and system
CN109063807A (en) A kind of generation of three-dimension code, reading and recognition methods
CN104573781B (en) A kind of Quick Response Code encoding and decoding method
CN110610219B (en) Color annular two-dimensional code and generation and decoding method thereof
US20060289661A1 (en) Bi-directional readable two-dimensional bar code system and its reading method
EP2529331B1 (en) Parallel test payload
US11681887B2 (en) Color bar code and code determining system
CN105787541B (en) four-dimensional code encoding method and system
JP2013084031A (en) Marker, two-dimensional code, recognition method for marker, and recognition method for two-dimensional code

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20181221

RJ01 Rejection of invention patent application after publication