CN106934441B - A kind of coding/decoding method of multidimensional code - Google Patents

A kind of coding/decoding method of multidimensional code Download PDF

Info

Publication number
CN106934441B
CN106934441B CN201710185591.8A CN201710185591A CN106934441B CN 106934441 B CN106934441 B CN 106934441B CN 201710185591 A CN201710185591 A CN 201710185591A CN 106934441 B CN106934441 B CN 106934441B
Authority
CN
China
Prior art keywords
block
hornblocks
code
matrix
axis
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.)
Active
Application number
CN201710185591.8A
Other languages
Chinese (zh)
Other versions
CN106934441A (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.)
Individual
Original Assignee
Individual
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 Individual filed Critical Individual
Priority to CN201710185591.8A priority Critical patent/CN106934441B/en
Publication of CN106934441A publication Critical patent/CN106934441A/en
Application granted granted Critical
Publication of CN106934441B publication Critical patent/CN106934441B/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/06131Constructional details the marking comprising a target pattern, e.g. for indicating the center of the bar code or for helping a bar code reader to properly orient the scanner or to retrieve the bar code inside of an image
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K7/00Methods or arrangements for sensing record carriers, e.g. for reading patterns
    • G06K7/10Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation
    • G06K7/14Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation using light without selection of wavelength, e.g. sensing reflected white light
    • G06K7/1404Methods for optical code recognition
    • G06K7/1408Methods for optical code recognition the method being specifically adapted for the type of code
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K7/00Methods or arrangements for sensing record carriers, e.g. for reading patterns
    • G06K7/10Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation
    • G06K7/14Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation using light without selection of wavelength, e.g. sensing reflected white light
    • G06K7/1404Methods for optical code recognition
    • G06K7/1439Methods for optical code recognition including a method step for retrieval of the optical code
    • G06K7/1443Methods for optical code recognition including a method step for retrieval of the optical code locating of the code in an image

Landscapes

  • Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Health & Medical Sciences (AREA)
  • Electromagnetism (AREA)
  • General Health & Medical Sciences (AREA)
  • Toxicology (AREA)
  • Artificial Intelligence (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Image Processing (AREA)

Abstract

The invention discloses a kind of multidimensional code and its coding and decoding methods, belong to data identification, technical field of information storage.It includes two dimensional code, also add third dimension, the third dimension, a certain right angle in single matrix-block is divided into N equal portions, single matrix-block is divided into the hornblocks such as N parts along the right angle position, it is 1 that every portion isogonism block, which fills when color corresponding binary system value, every portion isogonism block when not tinting corresponding binary system value be 0.For the less problem of the two dimensional code information memory capacity of the prior art, the present invention provides a kind of multidimensional code and its coding and decoding methods.Compared to existing two dimensional code and multidimensional code technology, it can provide more information storage, and utilize existing two dimensional code identification technology, convenient for promoting the use of.

Description

A kind of coding/decoding method of multidimensional code
Technical field
The present invention relates to data identification, technical field of information storage more particularly to a kind of multidimensional code and its coding and decodings Method.
Background technique
Existing one-dimension code is only capable of one variable information of storage, and space utilization rate is low, although two dimensional code is stored than one-dimension code Information content increase in vertical and horizontal two orientation expressing information simultaneously, but not still being able to satisfy growing society needs It asks, there are still the relatively small problems of information storage, in the prior art in order to expand the information memory capacity of two dimensional code, take Many modes, existing multidimensional code technology are to indicate the third dimension using color and gray scale on the basis of two dimensional code, from And information content is increased considerably, but similarly there are problems that being easy duplication, and the shadow of color and gray scale vulnerable to external environment It rings, there is a problem of identification difficulty in use.Application No. is: 2016100127393 Chinese invention patent application, than common Two dimensional code has had more a Z-dimension, is staggered on Z-dimension using recess portion and protrusion, multidimensional code is formed, in existing two dimensional code On the basis of scanning recognition technology, the reading to this multidimensional code cannot achieve, it is higher to identification equipment requirement, it is not easy to promote Using.
Chinese invention patent, application number: 2014100420135, authorized announcement date: on January 4th, 2017, disclose one kind Multidimensional code and preparation method thereof, the multidimensional code include the two-dimensional encoded figure of multiple spatial reuses, the spatial reuse refer to by Multiple two-dimensional encoded figures are recorded at different angles at the same space on recording materials surface, when decoding, are drawn using recognition Corresponding angle is distinguished when holding up to record, to decode the two-dimensional encoded graphic character recorded under special angle respectively. Disadvantage is that although the patent increases information storage on the basis of two dimensional code, there are cataloged procedure compared with For complexity, decoding process need to be directed at certain angle, increase and use difficulty, do not have versatility.
Application No. is 2016109471771 Chinese invention patent applications, on the basis of two-dimensional code scanning X-axis and Y-axis Increase (45 °) of Z-direction scannings to reach 3-D effect, and many geometry that triangle adds square to combine can be increased Figure scans 45 ° of Z axis by increasing, and reaches increase by swepting slip code diversity and meets society by the growth of geometry times Demand.Disadvantage is that needing to scan in 45 ° of directions, higher requirement is provided to scanning person, it is inconvenient for use, it is unfavorable In popularization and use.
Summary of the invention
1. technical problems to be solved by the inivention
For the less problem of the two dimensional code information memory capacity of the prior art, the present invention provides a kind of multidimensional code and its volumes Code and coding/decoding method.Compared to existing two dimensional code and multidimensional code technology, it can provide more information storage, and utilize Existing two dimensional code identification technology, convenient for promoting the use of.
2. technical solution
To solve the above problems, technical solution provided by the invention are as follows:
The matrix-block of two dimensional code is divided into the single of area equation on carrier by a kind of multidimensional code, including two dimensional code Matrix-block, also adds third dimension, and a certain right angle in single matrix-block is divided into N equal portions, edge by the third dimension The right angle position single matrix-block is divided into the hornblocks such as N parts, every portion isogonism block fills corresponding binary system when color Value is 1, every portion isogonism block when not tinting corresponding binary system value be 0.
Preferably, the N is integer, and N >=2.
A kind of coding method of multidimensional code pre-generates matrix-block according to a kind of above-described multidimensional code, and matrix-block is raw At multiple single matrix-blocks, an integer value is taken for N, inputs one N binary code a, binary code a is converted to the decimal system A certain right angle in the single matrix-block of each of matrix-block is divided into N equal portions by digital b, b < N+1, along where the right angle Single matrix-block is divided into the hornblocks such as N parts by position, each single corresponding binary code a of matrix-block, binary code a's The value of each is corresponding with the state of tinting of portion isogonism block every in single matrix-block, according to the value pair of binary code a The equal hornblocks of same position in the single matrix-block of each of matrix-block are tinted, and are respectively formed a multidimensional code figure, general All multidimensional code figures are grouped together into a kind of above-described multidimensional code.
Preferably, it is 1 that every a isogonism block, which fills corresponding binary system value when color, when every portion isogonism block is not tinted pair The binary system value answered is 0.
Preferably, first with a right-angle side in single matrix-block as side length of first, the left side of binary code a Wait the state of tinting of hornblocks corresponding, the left side second phase of the tint state and binary code a of adjacent second equal hornblocks Corresponding, adjacent third waits the state of tinting of hornblocks corresponding with the left side third position of binary code a, and so on, individually Tint state and binary code a on the right of first phase of another right-angle side as the last one equal hornblock of side length in matrix-block It is corresponding.
A kind of coding/decoding method of multidimensional code, identification equipment scanning is according to a kind of above-described coding method institute of multidimensional code Formed a kind of above-described multidimensional code, identification equipment matrix-block is positioned according to the locating piece of two dimensional code, then into The positioning and identification of the single matrix-block of row, are converted to corresponding binary coding a for each single matrix-block, finally by multidimensional Code is identified as a series of binary code.
Preferably, the positioning of the single matrix-block and identification process are as follows: identifying equipment by above-mentioned single matrix-block In right-angle side as y-axis, using another right-angle side as x-axis, above-mentioned a kind of multidimensional code for scanning for identification equipment Individually matrix-block positions, and according to the position of the hornblocks such as the N part delimited in advance, there are lines on each equal hornblocks side parallel with x-axis There are the part of line segment, the corresponding digit value of binary code a is 1 for the part of section and each side for waiting hornblocks parallel with y-axis, Remaining digit value is 0, to decode one group of binary code a for generating single matrix-block, repeats above step, single to each Matrix-block is scanned decoding, a kind of a series of binary codes of the above-mentioned multidimensional code of combination producing.
Preferably, when the painted portion of single matrix-block continuous coloring since a right-angle side, or from another When right-angle side starts also continuous coloring, the positioning of the single matrix-block and identification process are as follows: identification equipment will be described Single matrix-block right-angle side is as y-axis, and using another right-angle side as x-axis, the above-mentioned one kind scanned for identification equipment is more The single matrix-block of dimension code positions, and then sensor detects that y-axis is first of right-angle side as side length in single matrix-block A equal hornblocks are in when tinting state, and angular transducer measures the angle value c of the painted portion, are delimited by angle value c and in advance The angle values of the hornblocks such as N part compare, to determine that angle value includes the hornblocks such as several parts, it is corresponding that single matrix-block can be obtained Binary code a from left to right take several 1 altogether, sensor detects that x-axis in single matrix-block is right-angle side as side length When one equal hornblock is in and tints state, angular transducer measures the angle value d of the painted portion, by angle value d and preparatory stroke The angle value of the hornblocks such as fixed N part compares, and to determine that angle value includes the hornblocks such as several parts, single matrix-block pair can be obtained The binary code a answered takes several 1 altogether from right to left, decoding is scanned to each single matrix-block according to the method described above, with true The corresponding binary code a of fixed each single matrix-block, a kind of a series of corresponding binary codes of the above-mentioned multidimensional code of combination producing.
Preferably, comprising the following steps:
Step 1: calculating from N/2 before the y-axis of single matrix when N is even number and waiting the corresponding area of hornblocks Sn, and calculate the numerical value that their any combination are added, that is, the area value that any combination is added when different equal hornblocks are tinted is corresponded to, A unique binary code e is corresponded to, latter N/2 is waited the two dimensional code of hornblocks in contrast, corresponds to binary code f, e and f Combination forms binary code a;
Step 2: calculating from INT (N/2)+1 before the y-axis of single matrix when N is odd number and waiting hornblocks corresponding Area Sn, and calculate the numerical value of their any combination addition, that is, correspond to what any combination when different equal hornblocks are tinted was added Area figures correspond to a unique binary code g, rear N-INT (N/2) -1 is waited the two dimensional code of hornblocks in contrast, right It should be binary code h, g and h combine to form binary code a;
Step 3: the data of step 1 and step 2 are all stored on server associated by identification equipment;
Step 4:, according to hornblocks such as the N parts delimited in advance, identifying that the sensor of equipment detects individually when N is even number In matrix-block, first N/2 is waited the corresponding area value S that tints of hornblocks, by the single equal hornblocks in tint the area value S and step 1 The area value area value that any combination is added when tinting with corresponding different equal hornblocks compared one by one, determination corresponds Binary code e, then in this way, then after determining corresponding binary code f, e and the f combination of N/2 equal hornblocks constitutes list A two code a processed, then calculate two codes processed of all equal hornblocks in matrix-block, a kind of above-mentioned multidimensional code corresponding one of combination producing Binary series code;
Step 5:, according to hornblocks such as the N parts delimited in advance, identifying that the sensor of equipment detects individually when N is odd number In matrix-block, preceding INT (N/2)+1 is waited the corresponding area value S that tints of hornblocks, by the list in tint area value S and the step 2 The area value that any combination is added when the area value of a equal hornblocks and corresponding different equal hornblocks are tinted is compared one by one, it is determining and Corresponding binary code g, then in this way, then the corresponding binary code of N-INT (N/2) -1 equal hornblocks after determining H, g and h combination constitute single two code a processed, then calculate two codes processed of all equal hornblocks in matrix-block, combination producing it is above-mentioned one A series of corresponding binary codes of kind multidimensional code.
Preferably, comprising the following steps:
Step 1: calculating from N/2 before the y-axis of single matrix when N is even number and waiting hornblocks corresponding and x-axis The length on parallel side, and calculate the numerical value of their any combination addition, that is, correspond to unique binary code an I, rear N/2 The two dimensional code of a equal hornblocks in contrast, corresponds to binary code J, I and J and combines to form binary code a;
Step 2: calculating from INT (N/2)+1 before the y-axis of single matrix when N is odd number and waiting hornblocks corresponding The side parallel with x-axis length, and calculate their any combination addition numerical value, i.e., correspond to any combination be added isogonism The length that the side parallel with x-axis is added when block is tinted corresponds to a unique binary code k, rear N-INT (N/2) -1 etc. The two dimensional code of hornblock in contrast, corresponds to binary code l, and k and l combine to form binary code a;
Step 3: the data of step 1 and step 2 are all stored on server associated by identification equipment;
Step 4:, according to hornblocks such as the N parts delimited in advance, identifying that the sensor of equipment detects individually when N is even number In matrix-block, in the corresponding painted portion of preceding N/2 equal hornblocks the length on the side parallel with x-axis and, by the length and with preceding N/2 The numerical value that a length for waiting the corresponding side parallel with x-axis of hornblocks and their any combination are added is compared one by one, is determined Corresponding binary code I, then in this way, then N/2 grade hornblock corresponding binary code J, I and J after determining Combination constitutes single two code a processed, then calculates all two codes processed for waiting hornblocks, a kind of above-mentioned multidimensional of combination producing in matrix-block A series of corresponding binary codes of code;
Step 5:, according to hornblocks such as the N parts delimited in advance, identifying that the sensor of equipment detects individually when N is odd number In matrix-block, in the corresponding painted portion of preceding INT (N/2)+1 equal hornblocks the length on the side parallel with x-axis and, by the length with The numerical value for waiting the length on the corresponding side parallel with x-axis of hornblocks and their any combination to be added with preceding INT (N/2)+1 carries out It compares one by one, determines corresponding binary code k, then in this way, then N-INT (N/2) -1 equal hornblocks after determining Corresponding binary code l, k and l combination constitutes single two code a processed, then calculates all two codes processed for waiting hornblocks in matrix-block, A kind of a series of corresponding binary codes of the above-mentioned multidimensional code of combination producing.
3. beneficial effect
Using technical solution provided by the invention, compared with prior art, have the following beneficial effects:
(1) a kind of multidimensional code of the present invention produces multidimensional code, increases information storage in addition to it can generate two dimensional code;
(2) a kind of multidimensional code of the present invention, does not make particular/special requirement to scanning person and existing scanning device, can push away extensively It is wide to use;
(3) mode of a kind of coding method of multidimensional code of the present invention, creative reference angular divisions draws single matrix It is divided into more parts, to carry multidimensional information;
(4) a kind of coding/decoding method of multidimensional code of the present invention, principle is simple, and decoding speed is fast;
(5) structural principle of the invention is simple, low manufacture cost, is easily achieved;
(6) a kind of multidimensional code of the invention can be promoted with hardware condition and increase N value, to realize automatic upgrading, be increased more Tie up the information saturation of code.
Detailed description of the invention
Fig. 1 is coding flow chart of the invention;
Fig. 2 is the corresponding coding flow chart of the present invention when N is equal to 8;
Fig. 3 is the division schematic diagram of the corresponding single matrix-block of the present invention when N is equal to 2;
Fig. 3-1 is that the corresponding single matrix-block of binary code 10 is tinted schematic diagram as N=2;
Fig. 3-2 is that the corresponding single matrix-block of binary code 01 is tinted schematic diagram as N=2;
Fig. 3-3 is that the corresponding single matrix-block of binary code 11 is tinted schematic diagram as N=2;
Fig. 4 is the division schematic diagram of the corresponding single matrix-block of the present invention as N=3;
Fig. 4-1 is that the corresponding single matrix-block of binary code 100 is tinted schematic diagram as N=3;
Fig. 4-2 is that the corresponding single matrix-block of binary code 010 is tinted schematic diagram as N=3;
Fig. 4-3 is that the corresponding single matrix-block of binary code 001 is tinted schematic diagram as N=3;
Fig. 4-4 is that the corresponding single matrix-block of binary code 101 is tinted schematic diagram as N=3;
Fig. 4-5 is that the corresponding single matrix-block of binary code 110 is tinted schematic diagram as N=3;
Fig. 4-6 is that the corresponding single matrix-block of binary code 011 is tinted schematic diagram as N=3;
Fig. 4-7 is that the corresponding single matrix-block of binary code 111 is tinted schematic diagram as N=3;
Fig. 5 is the division schematic diagram of the corresponding single matrix-block of the present invention as N=8;
Fig. 5-1 is that the corresponding single matrix-block of binary code 1,000 0000 is tinted schematic diagram as N=8;
Fig. 5-2 is that the corresponding single matrix-block of binary code 0,100 0000 is tinted schematic diagram as N=8;
Fig. 5-3 is that the corresponding single matrix-block of binary code 0,010 0000 is tinted schematic diagram as N=8;
Fig. 5-4 is that the corresponding single matrix-block of binary code 0,010 0100 is tinted schematic diagram as N=8;
Fig. 5-5 is that the corresponding single matrix-block of binary code 0,101 0101 is tinted schematic diagram as N=8;
Fig. 5-6 is that the corresponding single matrix-block of binary code 1,111 1111 is tinted schematic diagram as N=8;
Fig. 6 is angle coding/decoding method of the invention;
Fig. 7 is the data storage value of area coding/decoding method of the invention;
Fig. 8 is the multidimensional code schematic diagram as N=2.
Specific embodiment
To further appreciate that the contents of the present invention, in conjunction with accompanying drawings and embodiments, the present invention is described in detail.
Embodiment 1
The matrix-block of two dimensional code is divided into the single of area equation on carrier by a kind of multidimensional code, including two dimensional code Matrix-block, also adds third dimension, and a certain right angle in single matrix-block is divided into N equal portions, edge by the third dimension The right angle position single matrix-block is divided into the hornblocks such as N parts, every portion isogonism block fills corresponding binary system when color Value is 1, every portion isogonism block when not tinting corresponding binary system value be 0, the N is integer, and N >=2.
A kind of coding method of multidimensional code, as shown in Figure 1, pre-generating matrix according to a kind of above-described multidimensional code Block, matrix-block generate multiple single matrix-blocks, take an integer value for N, input one N binary code a, binary code a It is converted to ten's digit b, b < N+1, a certain right angle in the single matrix-block of each of matrix-block is divided into N equal portions, edge The right angle position single matrix-block is divided into (every portion isogonism block corresponding binary system when filling color of the hornblocks such as N parts Value is 1, every portion isogonism block when not tinting corresponding binary system value be 0).
In the value of each and single matrix-block of each single matrix-block correspondence one binary code a, binary code a The state of tinting of every portion isogonism block is corresponding, and first, the left side of binary code a is made with a right-angle side in single matrix-block State of tinting for first equal hornblock of side length is corresponding, and adjacent second is waited tint state and the binary code a of hornblocks Left side second it is corresponding, the state of tinting of the equal hornblocks of adjacent third is corresponding with the left side third position of binary code a, And so on, tint state and binary code of another right-angle side as the last one equal hornblock of side length in single matrix-block First, the right a is corresponding.
According to the value of binary code a to the equal hornblocks of the same position in the single matrix-block of each of matrix-block into Row is tinted, and is respectively formed a multidimensional code figure, all multidimensional code figures are grouped together into a kind of above-described multidimensional code.
A kind of coding/decoding method of multidimensional code, identification equipment scanning is according to a kind of above-described coding method institute of multidimensional code The above-described a kind of multidimensional code formed, identification equipment carry out matrix-block according to the locating piece 4 (as shown in Figure 8) of two dimensional code Positioning, then carries out the positioning and identification of single matrix-block, each single matrix-block is converted to corresponding binary coding Multidimensional code is finally identified as a series of binary code by a.
The positioning of the single matrix-block and identification process are as follows: identification equipment using right-angle side among the above as y-axis, Using another right-angle side as x-axis, a kind of single matrix-block of the above-mentioned multidimensional code scanned for identification equipment is positioned, root According to the position of the hornblocks such as the N part delimited in advance, there are the parts of line segment and each equal hornblocks on each side for waiting hornblocks parallel with x-axis There are the part of line segment, the corresponding digit value of binary code a is 1 on the side parallel with y axis, remaining digit value is 0, thus Decoding generates one group of binary code a of single matrix-block, repeats above step, is scanned solution to each single matrix-block Code, a kind of a series of binary codes of the above-mentioned multidimensional code of combination producing.
It is opened when the painted portion of single matrix-block continuous coloring since a right-angle side, or from another right-angle side Begin also continuous coloring when, as shown in fig. 6, being a kind of angle coding/decoding method, the positioning and identification process of the single matrix-block It is as follows: identification equipment using right-angle side among the above be used as y-axis, regard another right-angle side as x-axis, arrived to identify that equipment scans The single matrix-block of above-mentioned multidimensional code a kind of position, then sensor detects that y-axis is right-angle side in single matrix-block It is in as first of side length equal hornblock when tinting state, angular transducer measures the angle value c of the painted portion, by angle The angle value of the hornblocks such as value c and N part for delimiting in advance compares, and to determine that angle value includes the hornblocks such as several parts, can be obtained The single corresponding binary code a of matrix-block from left to right takes several 1 altogether, and sensor detects that x-axis is right angle in single matrix-block Side is in as first of side length equal hornblock when tinting state, and angular transducer measures the angle value d of the painted portion, by angle The angle value of the hornblocks such as angle value d and N part for delimiting in advance compares, and to determine that angle value includes the hornblocks such as several parts, can obtain Several 1 are taken altogether from right to left to the corresponding binary code a of single matrix-block, and each single matrix-block is carried out according to the method described above Scan decoder, to determine the corresponding binary code a of each single matrix-block, a kind of above-mentioned multidimensional code corresponding one of combination producing Binary series code.
In addition it can use a kind of coding/decoding method of multidimensional code as described below, i.e. area scanning method, including following step It is rapid:
Step 1: calculating from N/2 before the y-axis of single matrix when N is even number and waiting the corresponding area of hornblocks Sn, and calculate the numerical value that their any combination are added, that is, the area value that any combination is added when different equal hornblocks are tinted is corresponded to, A unique binary code e is corresponded to, latter N/2 is waited the two dimensional code of hornblocks in contrast, corresponds to binary code f, e and f Combination forms binary code a;
Step 2: calculating from INT (N/2)+1 before the y-axis of single matrix when N is odd number and waiting hornblocks corresponding Area Sn, and calculate the numerical value of their any combination addition, that is, correspond to what any combination when different equal hornblocks are tinted was added Area figures correspond to a unique binary code g, rear N-INT (N/2) -1 is waited the two dimensional code of hornblocks in contrast, right It should be binary code h, g and h combine to form binary code a;As shown in Figure 7;
Step 3: the data of step 1 and step 2 are all stored on server associated by identification equipment;
Step 4:, according to hornblocks such as the N parts delimited in advance, identifying that the sensor of equipment detects individually when N is even number In matrix-block, first N/2 is waited the corresponding area value S that tints of hornblocks, by the single equal hornblocks in tint the area value S and step 1 The area value area value that any combination is added when tinting with corresponding different equal hornblocks compared one by one, determination corresponds Binary code e, then in this way, then after determining corresponding binary code f, e and the f combination of N/2 equal hornblocks constitutes list A two code a processed, then calculate two codes processed of all equal hornblocks in matrix-block, a kind of above-mentioned multidimensional code corresponding one of combination producing Binary series code;
Step 5:, according to hornblocks such as the N parts delimited in advance, identifying that the sensor of equipment detects individually when N is odd number In matrix-block, preceding INT (N/2)+1 is waited the corresponding area value S that tints of hornblocks, by the list in tint area value S and the step 2 The area value that any combination is added when the area value of a equal hornblocks and corresponding different equal hornblocks are tinted is compared one by one, it is determining and Corresponding binary code g, then in this way, then the corresponding binary code of N-INT (N/2) -1 equal hornblocks after determining H, g and h combination constitute single two code a processed, then calculate two codes processed of all equal hornblocks in matrix-block, combination producing it is above-mentioned one A series of corresponding binary codes of kind multidimensional code.
Secondly a kind of coding/decoding method of multidimensional code as described below, i.e. length scanning method, including following step can also be used It is rapid:
Step 1: calculating from N/2 before the y-axis of single matrix when N is even number and waiting hornblocks corresponding and x-axis The length on parallel side, and calculate the numerical value of their any combination addition, that is, correspond to unique binary code an I, rear N/2 The two dimensional code of a equal hornblocks in contrast, corresponds to binary code J, I and J and combines to form binary code a;
Step 2: calculating from INT (N/2)+1 before the y-axis of single matrix when N is odd number and waiting hornblocks corresponding The side parallel with x-axis length, and calculate their any combination addition numerical value, i.e., correspond to any combination be added isogonism The length that the side parallel with x-axis is added when block is tinted corresponds to a unique binary code k, rear N-INT (N/2) -1 etc. The two dimensional code of hornblock in contrast, corresponds to binary code l, and k and l combine to form binary code a;
Step 3: the data of step 1 and step 2 are all stored on server associated by identification equipment;
Step 4:, according to hornblocks such as the N parts delimited in advance, identifying that the sensor of equipment detects individually when N is even number In matrix-block, in the corresponding painted portion of preceding N/2 equal hornblocks the length on the side parallel with x-axis and, by the length and with preceding N/2 The numerical value that a length for waiting the corresponding side parallel with x-axis of hornblocks and their any combination are added is compared one by one, is determined Corresponding binary code I, then in this way, then N/2 grade hornblock corresponding binary code J, I and J after determining Combination constitutes single two code a processed, then calculates all two codes processed for waiting hornblocks, a kind of above-mentioned multidimensional of combination producing in matrix-block A series of corresponding binary codes of code;
Step 5:, according to hornblocks such as the N parts delimited in advance, identifying that the sensor of equipment detects individually when N is odd number In matrix-block, in the corresponding painted portion of preceding INT (N/2)+1 equal hornblocks the length on the side parallel with x-axis and, by the length with The numerical value for waiting the length on the corresponding side parallel with x-axis of hornblocks and their any combination to be added with preceding INT (N/2)+1 carries out It compares one by one, determines corresponding binary code k, then in this way, then N-INT (N/2) -1 equal hornblocks after determining Corresponding binary code l, k and l combination constitutes single two code a processed, then calculates all two codes processed for waiting hornblocks in matrix-block, A kind of a series of corresponding binary codes of the above-mentioned multidimensional code of combination producing.
Embodiment 2
A kind of multidimensional code of the present embodiment, including two dimensional code (can be paper, plastic material or any in carrier Can print or apply the supporting body for being covered with figure) on the matrix-block of two dimensional code is divided into the single matrix-block of area equation, Also add third dimension, the third dimension, by a certain right angle (right angle in the right-angled vertical direction in single matrix-block Side is as y-axis, and the right-angle side in the right-angled horizontal direction is as x-axis) 2 equal portions are divided into, as shown in figure 3, along where the right angle Single matrix-block is divided into the hornblocks such as 2 parts by position, and it is 1 that every portion isogonism block, which fills corresponding binary system value when color, each Part etc. hornblocks when not tinting corresponding binary system value be 0, as shown in Fig. 3,3-1,3-2 and 3-3, corresponding binary code difference It is 00,10,01 and 11, these binary codes can be used to carry respectively other needs such as logistics information, identity information and identify Information.
Embodiment 3
A kind of coding method of multidimensional code of the present embodiment is suitable for embodiment 2, as shown in Figure 1, according to above-described A kind of multidimensional code pre-generates matrix-block, as shown in figure 8, including locating piece 4 in matrix-block, matrix-block is divided into multiple lists A matrix-block, N=2, the binary code a of input one 2, binary code a is converted to ten's digit b, b < 3, by matrix-block Each of a certain right angle in single matrix-block be divided into 2 equal portions, single matrix-block is divided along the right angle position At the hornblocks such as 2 parts (every portion isogonism block when filling color corresponding binary system value be 1, every portion isogonism block is corresponding when not tinting Binary system value be 0).
In the value of each and single matrix-block of each single matrix-block correspondence one binary code a, binary code a The state of tinting of every portion isogonism block is corresponding, and first, the left side of binary code a is made with a right-angle side in single matrix-block State of tinting for first of side length equal hornblock (in corresponding diagram 3 marked as 202 equal hornblocks) is corresponding, and adjacent second The state of tinting of equal hornblocks (in corresponding diagram 3 marked as 201 equal hornblocks) is corresponding with the left side second of binary code a.
When binary code a is respectively 00,10,01 and 11, the single matrix-block of production is corresponding respectively such as Fig. 3,3-1,3-2 With shown in 3-3.
According to the value of binary code a to the equal hornblocks of the same position in the single matrix-block of each of matrix-block into Row is tinted, and is respectively formed a multidimensional code figure, all multidimensional code figures are grouped together into a kind of above-described multidimensional code.
Embodiment 3
A kind of coding/decoding method of multidimensional code of the present embodiment is suitable for embodiment 2, and identification equipment scanning is according to the above The coding method of multidimensional code a kind of be formed by a kind of above-described multidimensional code, identification equipment is according to the locating piece of two dimensional code 4 (as shown in Figure 8) position matrix-block, then carry out the positioning and identification of single matrix-block, by each single matrix Block is converted to corresponding binary coding a, and multidimensional code is finally identified as a series of binary code.
Embodiment 4
A kind of coding/decoding method of multidimensional code of the present embodiment is suitable for embodiment 2, described on the basis of embodiment 3 The process of positioning and the identification of single matrix-block:
Equipment is identified using right-angle side among the above as y-axis, using another right-angle side as x-axis, such as Fig. 3,3-1,3-2 and Shown in 3-3, the single matrix-block of above-mentioned a kind of multidimensional code scanned for identification equipment is positioned, according to 2 delimited in advance Part etc. hornblocks position, each equal hornblocks it is parallel with x-axis while there are the part of line segment and the hornblocks such as each it is parallel with y-axis while There are the part of line segment, (lines in Fig. 3,3-1 and 3-2 are virtual, are to the hornblocks such as divide and need and be arranged, reality herein It is not present in the use of border, only when tinting on corresponding equal hornblocks, corresponding line segment just exists), the corresponding position binary code a Number value is 1, remaining digit value is 0, to decode one group of binary code a for generating single matrix-block, repeats above step, Decoding, a kind of a series of binary codes of the above-mentioned multidimensional code of combination producing are scanned to each single matrix-block.
Embodiment 5
A kind of coding/decoding method of multidimensional code of the present embodiment is suitable for embodiment 2, on the basis of embodiment 3, when single The painted portion of matrix-block is since a right-angle side when continuous coloring, or the also continuous coloring since another right-angle side When, as shown in fig. 6, being a kind of angle coding/decoding method, the positioning of the single matrix-block and identification process are as follows: identification equipment Using right-angle side among the above as y-axis, using another right-angle side as x-axis, the above-mentioned one kind scanned for identification equipment The single matrix-block of multidimensional code positions, and then sensor detects that y-axis in single matrix-block is right-angle side as side length When one equal hornblock is in and tints state, angular transducer measures the angle value c (0 °, 45 ° and 90 °) of the painted portion, by angle Angle value c (0 °, 45 ° and 90 °) and the angle value for the hornblocks such as 2 parts delimited in advance compare, to determine that angle value includes several parts Tint equal hornblocks (0 ° correspond to 00,45 ° correspond to 01,90 ° correspond to 11), can be obtained single matrix-block corresponding two into Code a processed from left to right takes several 1 altogether, and sensor detects that x-axis is first etc. of right-angle side as side length in single matrix-block Hornblock is in when tinting state, and angular transducer measures the angle value d of the painted portion, by angle value d and in advance delimit 2 parts The angle value of equal hornblocks compares, with determine angle value include several parts of isogonisms of tinting (0 ° corresponds to 00,45 ° and corresponds to 10, 90 ° correspond to 11) block, and the corresponding binary code a of single matrix-block can be obtained and take several 1 altogether from right to left, according to above-mentioned side Method is scanned decoding to each single matrix-block, to determine the corresponding binary code a of each single matrix-block, combination producing A kind of a series of (two two dimensional code sequences take or) above-mentioned corresponding binary codes (00,10,01 and 11) of multidimensional code.
Embodiment 6
A kind of coding/decoding method of multidimensional code of the present embodiment is suitable for embodiment 2, on the basis of embodiment 3, i.e. area Scanning method, comprising the following steps:
Step 1: calculate from y-axis first 1 of single matrix when N=2 is even number and wait the corresponding area S1 of hornblocks, Area value when i.e. corresponding etc. hornblocks 202 are tinted, that is, correspond to a unique binary code e, the two dimensional code of latter 1 equal hornblock and On the contrary, corresponding to binary code f, e and f combine to form binary code a;
Step 2: the data of step 1 are all stored on server associated by identification equipment;
Step 3: N=2 identifies that the sensor of equipment detects individually according to the hornblocks such as 2 parts delimited in advance for even number In matrix-block, first 1 is waited hornblocks corresponding the area value S that tints, S 0, corresponding binary code 0;S is not 0, corresponding binary code 1;Then in this way, the corresponding binary code f of 1 equal hornblock then after determining, i.e. f can be 0, can also combine for 1, e and f Single two code a processed are constituted, then calculate two codes processed of all equal hornblocks in matrix-block, a kind of above-mentioned multidimensional code pair of combination producing A series of binary codes (00,10,01 and 11) answered.
Embodiment 7
A kind of coding/decoding method of multidimensional code of the present embodiment is suitable for embodiment 2, on the basis of embodiment 3, i.e. length Scanning method, comprising the following steps:
Step 1: calculating from y-axis first 1 of single matrix when N is even number and waiting hornblocks corresponding flat with x-axis The length on capable side, that is, correspond to a unique binary code I, it is rear 1 grade hornblocks two dimensional code in contrast, correspond to two into Code J, I and J processed combine to form binary code a;
Step 2: the data of step 1 are all stored on server associated by identification equipment;
Step 3:, according to the hornblocks such as 2 parts delimited in advance, identifying that the sensor of equipment detects individually when N is even number In matrix-block, in the corresponding painted portion of preceding 1 equal hornblock the length on the side parallel with x-axis and, by the length and with first 1 etc. The length on the corresponding side parallel with x-axis of hornblock compares, and determines that (length 0 corresponds to corresponding binary code I Binary code is 0, and length is not 0, corresponding binary code be 1), then in this way, then after determining 1 equal hornblock is corresponding Binary code J, I and J combination constitute single two code a processed, then calculate two codes processed of all equal hornblocks in matrix-block, organize symphysis At a kind of a series of above-mentioned corresponding binary codes of multidimensional code.
Embodiment 8
A kind of multidimensional code of the present embodiment, including two dimensional code, are divided into area for the matrix-block of two dimensional code on carrier Equal single matrix-block, also adds third dimension, and the third dimension divides a certain right angle in single matrix-block At 3 equal portions, single matrix-block is divided into the hornblocks such as 3 parts along the right angle position, when every portion isogonism block fills color pair The binary system value answered is 1, every portion isogonism block when not tinting corresponding binary system value be 0 (corresponding binary code difference Be 000,100,010,001,101,110,011 and 111, respectively correspond such as Fig. 4,4-1,4-2,4-3,4-4,4-5,4-6 and Shown in 4-7).
Embodiment 9
A kind of coding method of multidimensional code of the present embodiment is suitable for embodiment 8, as shown in Figure 1, according to above-described A kind of multidimensional code, pre-generates matrix-block, and matrix-block generates multiple single matrix-blocks, the binary code a of input one 3, and two Ary codes a is converted to ten's digit b, b < 4, and a certain right angle in the single matrix-block of each of matrix-block is divided into 4 Equal portions, single matrix-block is divided into the hornblocks such as 4 parts along the right angle position, and (every portion isogonism block is corresponding when filling color Binary system value is 1, every portion isogonism block when not tinting corresponding binary system value be 0).
In the value of each and single matrix-block of each single matrix-block correspondence one binary code a, binary code a The state of tinting of every portion isogonism block is corresponding, and first, the left side of binary code a is made with a right-angle side in single matrix-block First for side length is waited tinting for hornblocks (corresponding to the label 301 in Fig. 4,4-1,4-2,4-3,4-4,4-5,4-6 and 4-7) State is corresponding, and adjacent second equal hornblocks (correspond to the label in Fig. 4,4-1,4-2,4-3,4-4,4-5,4-6 and 4-7 302) state of tinting is corresponding with the left side second of binary code a, the equal hornblocks of adjacent third (correspond to Fig. 4,4-1, Label 303 in 4-2,4-3,4-4,4-5,4-6 and 4-7) state of tinting it is corresponding with the left side third position of binary code a.
According to the value of binary code a to the equal hornblocks of the same position in the single matrix-block of each of matrix-block into Row is tinted, and is respectively formed a multidimensional code figure, all multidimensional code figures are grouped together into a kind of above-described multidimensional code.
Embodiment 10
A kind of coding/decoding method of multidimensional code of the present embodiment is suitable for embodiment 8, and identification equipment scanning is according to the above The coding method of multidimensional code a kind of be formed by a kind of above-described multidimensional code, identification equipment is according to the locating piece of two dimensional code 4 (as shown in Figure 8) position matrix-block, then carry out the positioning and identification of single matrix-block, by each single matrix Block is converted to corresponding binary coding a, and multidimensional code is finally identified as a series of binary code.
Embodiment 11
A kind of coding/decoding method of multidimensional code of the present embodiment is suitable for embodiment 8, described on the basis of embodiment 10 Single matrix-block positioning and identification process include:
Equipment is identified using right-angle side among the above as y-axis, using another right-angle side as x-axis, for identification equipment scanning To the single matrix-block of above-mentioned multidimensional code a kind of position, according to the position for the hornblocks such as 3 parts delimited in advance, each isogonism Block it is parallel with x-axis while there are the part of line segment and each equal hornblocks it is parallel with y-axis while there are the part of line segment, binary systems The corresponding digit value of code a is 1, remaining digit value is 0, so that one group of binary code a for generating single matrix-block is decoded, weight Multiple above step is scanned decoding to each single matrix-block, and a series of the two of a kind of above-mentioned multidimensional code of combination producing Ary codes.
Embodiment 12
A kind of coding/decoding method of multidimensional code of the present embodiment is suitable for embodiment 8 and works as list on the basis of embodiment 10 The painted portion of a matrix-block is since a right-angle side when continuous coloring, or the also continuous coloring since another right-angle side When (in the present embodiment be suitable for 000,100,110,111,011 and 001), as shown in fig. 6, be a kind of angle coding/decoding method, The positioning of the single matrix-block and identification process are as follows: identification equipment using right-angle side among the above as y-axis, will be another A kind of single matrix-block for above-mentioned multidimensional code that a right-angle side is scanned as x-axis, for identification equipment positions, and then senses Device detect y-axis in single matrix-block be right-angle side as side length first equal hornblock in tint state when, angle sensor Device measures the angle value c of the painted portion, and angle value c and the angle value of tinting for the hornblocks such as 3 parts delimited in advance are compared, To determine that angle value of tinting includes the hornblocks such as several parts (if c for 0, exactly waits hornblocks without any tint;If c is 90 °/3, Then there is one piece of equal hornblock of tinting, corresponding binary code is 100, if c is 90 °/3*2, there are 2 pieces to tint and waits hornblocks, corresponding Binary code be that 110), the corresponding binary code a of single matrix-block can be obtained and from left to right take several 1 altogether, sensor inspection Measure x-axis in single matrix-block be right-angle side as side length first isogonism (label 301) block in tint state when, angle The angle value d of the sensor measurement painted portion, angle value d and the angle value for the hornblocks such as 3 parts delimited in advance are compared, To determine that angle value includes the hornblocks such as several parts (if d for 0, exactly waits hornblocks without any tint;If d is 90 °/3, have One piece of equal hornblock of tinting, corresponding binary code is 001, if d is 90 °/3*2, has 2 pieces to tint and waits hornblocks, corresponding two Ary codes are that 011), the corresponding binary code a of single matrix-block can be obtained and take several 1 altogether from right to left, according to the method described above Decoding is scanned to each single matrix-block, to determine the corresponding binary code a of each single matrix-block, combines (binary system Code take or) generate a kind of a series of above-mentioned corresponding binary codes of multidimensional code.
Embodiment 13
A kind of coding/decoding method of multidimensional code of the present embodiment is suitable for embodiment 8, on the basis of embodiment 10, in addition A kind of coding/decoding method of multidimensional code as described below, i.e. area scanning method can also be used, comprising the following steps:
Step 1: N=3 is odd number, calculate from the corresponding area S1 of the y-axis of single matrix first 2 equal hornblocks, S2, and calculate the numerical value (S1+S2) that they combine addition, that is, correspond to the area that any combination is added when different equal hornblocks are tinted Numerical value, i.e., a corresponding unique binary code g (area just exists when tinting, thus S1, S2 and S1+S2 be corresponding in turn to as 10, 01,11,00) area corresponds to when being 0, and latter 1 is waited the two dimensional code of hornblocks in contrast, corresponds to binary code h (when tinting Area just exists, so S3 corresponds to 1,0), g and h are grouped together into binary code a;As shown in Figure 7;
Step 2: the data of step 1 are all stored on server associated by identification equipment;
Step 3: N=3 identifies that the sensor of equipment detects individually according to the hornblocks such as 3 parts delimited in advance for odd number In matrix-block, first 2 are waited the corresponding area value S that tints of hornblocks, by the single equal hornblocks in tint the area value S and step 2 Area value is compared one by one with the area value that any combination is added when different equal hornblocks are tinted is corresponded to, and is determined corresponding Binary code g, then in this way, then after determining corresponding binary code h, g and the h combination of 1 equal hornblock constitutes single two Code a processed, then two codes processed of all equal hornblocks in matrix-block are calculated, a kind of above-mentioned multidimensional code of combination producing is corresponding a series of Binary code.
Embodiment 14
A kind of coding/decoding method of multidimensional code of the present embodiment is suitable for embodiment 8, on the basis of embodiment 10, secondly A kind of coding/decoding method of multidimensional code as described below, i.e. length scanning method can also be used, comprising the following steps:
Step 1: N=3 is odd number, calculates from y-axis first 2 of single matrix and wait hornblocks corresponding parallel with x-axis Side length, and calculate the numerical value of their any combination addition, i.e., correspond to when the equal hornblocks that any combination is added are tinted and x The length that the parallel side of axis is added corresponds to a unique binary code k, latter 1 is waited the two dimensional code of hornblocks in contrast, right It should be binary code l, k and l combine to form binary code a;
Step 2: the data of step 1 are all stored on server associated by identification equipment;
Step 3: N=3 identifies that the sensor of equipment detects individually according to the hornblocks such as 3 parts delimited in advance for odd number In matrix-block, in the corresponding painted portion of preceding 2 equal hornblocks the length on the side parallel with x-axis and, by the length and with first 2 etc. The numerical value that the length on the corresponding side parallel with x-axis of hornblock and their any combination are added is compared one by one, is determined therewith Corresponding binary code k, then in this way, then after determining 1 equal hornblock corresponding binary code l, k and l combine structure At single two code a processed, then two codes processed of all equal hornblocks in matrix-block are calculated, a kind of above-mentioned multidimensional code of combination producing is corresponding A series of binary codes.
Embodiment 15
A kind of multidimensional code of the present embodiment, including two dimensional code, are divided into area for the matrix-block of two dimensional code on carrier Equal single matrix-block, also adds third dimension, and the third dimension divides a certain right angle in single matrix-block At 8 equal portions, single matrix-block is divided into the hornblocks such as 8 parts along the right angle position, when every portion isogonism block fills color pair The binary system value answered is 1, every portion isogonism block when not tinting corresponding binary system value be 0.
A kind of coding method of multidimensional code, as shown in Fig. 2, pre-generating matrix according to a kind of above-described multidimensional code Block, matrix-block generate multiple single matrix-blocks, and the binary code a of input one 8, binary code a are converted to ten's digit A certain right angle in the single matrix-block of each of matrix-block is divided into 8 equal portions by b, b < 9, will along the right angle position Single matrix-block is divided into the hornblocks such as 8 parts, and (it is 1 that every portion isogonism block, which fills corresponding binary system value when color, every portion isogonism When block is not tinted 0) corresponding binary system value is.
In the value of each and single matrix-block of each single matrix-block correspondence one binary code a, binary code a The state of tinting of every portion isogonism block is corresponding, and first, the left side of binary code a is made with a right-angle side in single matrix-block State of tinting for first equal hornblocks (label 101 in corresponding diagram 5) of side length is corresponding, and adjacent second is waited hornblocks The state third isogonism corresponding with the left side second of binary code a, adjacent of tinting of (label 102 in corresponding diagram 5) The state of tinting of block (label 103 in corresponding diagram 5) is corresponding with the left side third position of binary code a, and so on, single square Tint state and two of another right-angle side as the last one grade hornblocks (label 108 in corresponding diagram 5) of side length in battle array block First, the right ary codes a is corresponding.
The possibility value state of corresponding two dimensional code a is respectively 0,000 0000,0,000 0001,0,000 0010,,, 1111 1111 shared 2^8 kind situations only list the binary code value condition of several single matrix-blocks in the present embodiment, such as The corresponding binary code a of Fig. 5,5-1,5-2,5-3,5-4,5-5 and 5-6 is 0,000 0000,1,000 0000,0100 0000,0,010 0000,0,010 0100,0,101 0101 and 1,111 1111.
According to the value of binary code a to the equal hornblocks of the same position in the single matrix-block of each of matrix-block into Row is tinted, and is respectively formed a multidimensional code figure, all multidimensional code figures are grouped together into a kind of above-described multidimensional code.
I.e. as shown in figure 5, when handling entire matrix-block, first to equal hornblocks identical in each single matrix-block The two dimensional code of position is confirmed, for example assumes to share 10 single matrix-blocks in entire matrix-block, it is corresponding share 10 two into Code a processed is independent of one another, according to the first of binary code a, corresponds to the equal hornblocks 101 in single matrix, first generates each list In a matrix-block 101 positions state of tinting (if first, the left side of the corresponding two dimensional code a of first single matrix-block is 0, It does not tint at equal 101 position of hornblocks of so first single matrix-block;If the corresponding two dimensional code a of first single matrix-block First, the left side be 1, then filling color at equal 101 position of hornblocks of first single matrix-block, then individually to second Matrix-block is handled, if first, the left side of the corresponding two dimensional code a of second single matrix-block is 0, second list It does not tint at equal 101 position of hornblocks of a matrix-block;If first, the left side of the corresponding two dimensional code a of second single matrix-block It is 1, then color is filled at equal 101 position of hornblocks of second single matrix-block, and so on, until to the tenth single square Equal 101 position of the hornblocks processing of battle array block is completed, and first multidimensional code figure is generated), 102 in each individually matrix-block of regeneration (if first, the left side of the corresponding two dimensional code a of first single matrix-block is 0, first single for the state of tinting set It does not tint at equal 102 position of hornblocks of matrix-block;If first, the left side of the corresponding two dimensional code a of first single matrix-block is 1, then filling color at equal 102 position of hornblocks of first single matrix-block, then second single matrix-block is handled, If first, the left side of the corresponding two dimensional code a of second single matrix-block is 0, the equal hornblocks of second single matrix-block It does not tint at 102 positions;If first, the left side of the corresponding two dimensional code a of second single matrix-block is 1, second Color is filled at equal 102 position of hornblocks of single matrix-block, and so on, until the equal hornblocks 101 to the tenth single matrix-block Position processing is completed, and second multidimensional code figure is generated), and so on, until generating the 8th multidimensional code figure, by this eight The figure of multidimensional code is synthesized together to form multidimensional code figure.
A kind of coding/decoding method of multidimensional code, identification equipment scanning is according to a kind of above-described coding method institute of multidimensional code The above-described a kind of multidimensional code formed, identification equipment carry out matrix-block according to the locating piece 4 (as shown in Figure 8) of two dimensional code Positioning, then carries out the positioning and identification of single matrix-block, each single matrix-block is converted to corresponding binary coding Multidimensional code is finally identified as a series of binary code by a.
The positioning of the single matrix-block and identification process are as follows: identification equipment using right-angle side among the above as y-axis, Using another right-angle side as x-axis, a kind of single matrix-block of the above-mentioned multidimensional code scanned for identification equipment is positioned, root According to the position for the hornblocks such as 8 parts delimited in advance, there are the parts of line segment and each equal hornblocks on each side for waiting hornblocks parallel with x-axis The side parallel with y axis there are the part of line segment (during actually generating multidimensional code and there is no Fig. 5,5-1,5-2,5-3, Lines in 5-4 and 5-5, the lines at this are only used for distinguishing each equal hornblocks and being arranged, only tint in practice etc. Hornblock exists, other lines may be not present.), the corresponding digit value of binary code a is 1, remaining digit value is 0, to solve Code generates one group of binary code a of single matrix-block, for example in Fig. 5-2, there are line segment portions on the side for waiting hornblocks 102 parallel with x-axis Point, and wait hornblocks 102 corresponding with binary code a left side second value, so binary code a is 0,100 0000;For example scheme In 5-5, waiting hornblocks 102 and the side for waiting hornblocks 104 parallel with x-axis, there are line segment parts, wait hornblocks 106 and equal hornblocks 108 and y There are line segment parts on axis parallel side, and wait hornblocks 102, etc. hornblocks 104, etc. hornblocks 106 and hornblocks 108 is waited to respectively correspond with two The left side ary codes a second, the 4th, the 6th and first, the right value are corresponding, so binary code a is 0,101 0101. Above step is repeated, decoding, a kind of above-mentioned multidimensional code of combination producing are scanned to the single matrix-block of each in matrix-block A series of binary codes.
It is opened when the painted portion of single matrix-block continuous coloring since a right-angle side, or from another right-angle side Begin (to wait hornblocks 101 to tint when also continuous coloring, wait hornblocks 101 and 102 while tinting, wait hornblocks 101,102 and 103 simultaneously Tint,, the value of corresponding binary code a is respectively 1,000 0000,1,100 0000,1,110 0000 or waits hornblocks 108 tint, wait hornblocks 108 and 107 while tinting, wait hornblocks 108,107 and 106 and meanwhile tint,, corresponding binary code a Value is respectively 0,000 0001,0,000 0011,0,000 0111 ,), as shown in fig. 6, be a kind of angle coding/decoding method, it is described Single matrix-block positioning and identification process it is as follows: identification equipment using right-angle side among the above as y-axis, by another A kind of single matrix-block for above-mentioned multidimensional code that right-angle side is scanned as x-axis, for identification equipment positions, then sensor Detect y-axis in single matrix-block be right-angle side as side length first equal hornblock in tint state when, angular transducer The angle value c for measuring the painted portion, angle value c and the angle value for the hornblocks such as 8 parts delimited in advance is compared, with determination Angle value includes the hornblocks such as several parts, and the corresponding binary code a of single matrix-block can be obtained and from left to right take several 1 (to work as angle altogether When angle value c is 0, binary code a from left to right takes 01 altogether, and corresponding binary code a is 0,000 0000;When angle value c is When 90 °/8, binary code a from left to right takes 11 altogether, and corresponding binary code a is 1,000 0000;When angle value c be 90 °/ When 8*2, binary code a from left to right takes 21 altogether, corresponding binary code a is 1,100 0000,, when angle value c is 90 ° When, binary code a from left to right takes 81 altogether, and 1111) for 1111, sensor detects single matrix to corresponding binary code a In block x-axis be right-angle side as first of side length equal hornblock in tint state when, angular transducer measures the painted portion Angle value d, angle value d and the angle value for the hornblocks such as 8 parts delimited in advance are compared, to determine that angle value includes several parts Equal hornblocks, can be obtained the corresponding binary code a of single matrix-block take several 1 altogether from right to left (when angle value d is 0, two Ary codes a from left to right takes 01 altogether, and corresponding binary code a is 0,000 0000;When angle value d is 90 °/8, binary system Code a from left to right takes 11 altogether, and corresponding binary code a is 0,000 0001;When angle value d is 90 °/8*2, binary code a From left to right take 21 altogether, corresponding binary code a is 0,000 0011,, when angle value d is 90 °, binary code a is from a left side 81 are taken altogether to the right side, 1111) corresponding binary code a, is according to the method described above scanned each single matrix-block for 1111 Decoding, to determine each single corresponding binary code a of matrix-block (two binary codes take or obtain), combination producing is above-mentioned A kind of a series of corresponding binary codes of multidimensional code.
In addition it can use a kind of coding/decoding method of multidimensional code as described below, i.e. area scanning method, including following step It is rapid:
Step 1: N=8 is even number, calculate from the corresponding area S1 of the y-axis of single matrix first 4 equal hornblocks, S2, S3 and S4, and calculate numerical value (S1+S2, S1+S3, S1+S4, S2+S3, S3+S4, S2+ of the addition of their any combination S4, S1+S2+S3, S1+S2+S3+S4, S1+S2+S4, S4+S2+S3 and S1+S4+S3), that is, when corresponding to different equal hornblocks and tinting The area value that any combination is added, i.e., (S1+S2 corresponds to binary code 1,100 0000, S1 to a corresponding unique binary code e + S3 corresponds to binary code 1,010 0000, and S1+S4 corresponds to binary code 1,001 0000, and S2+S3 corresponds to binary code 0110 0000, S3+S4 corresponds to binary code 0,011 0000, and S2+S4 corresponds to binary code 0,101 0000, and S1+S2+S3 corresponds to binary system 1,110 0000, S1+S2+S3+S4 of code corresponds to binary code 1,111 0000, and S1+S2+S4 corresponds to binary code 1,101 0000, S2 0000) the corresponding binary code 0,111 0000 of+S3+S4 and S1+S3+S4 correspond to binary code 1011, latter 4 are waited hornblocks (isogonism The area of block 105 be S5, etc. hornblocks 106 area be S6, etc. the areas of hornblocks 107 be S7 and to wait the area of hornblocks 108 be S8, Wherein S5 is equal with S4, and S6 is equal with S3, and S7 is equal with S2, and S8 is equal with S1) two dimensional code in contrast, correspond to binary system (S7+S8 corresponds to binary code 0,000 0011 to code f, and S8+S6 corresponds to binary code 0,000 0101, and S8+S6 corresponds to binary code 0000 1001, S7+S6 correspond to binary code 0,000 0110, and S6+S5 corresponds to binary code 0,000 1100, S6+S8 corresponding two into Code 0,000 0101 processed, S8+S6+S7 correspond to binary code 0,000 0111, the corresponding binary code 0000 of S5+S6+S7+S8 1111, S8+S7+S5 correspond to binary code 0,000 1011, and S6+S7+S8 corresponds to binary code 0,000 0111 and S8+S7+S5 pairs Answer binary code 0,000 1011), e and f combination (take or) form binary code a;
Step 2: the data of step 1 are all stored on server associated by identification equipment;
Step 3: N=8 identifies that the sensor of equipment detects individually according to the hornblocks such as 8 parts delimited in advance for even number In matrix-block, first 4 are waited the corresponding area value S that tints of hornblocks, by the single equal hornblocks in tint the area value S and step 1 Area value is compared one by one with the area value that any combination is added when different equal hornblocks are tinted is corresponded to, and is determined corresponding Binary code e, then in this way, then after determining corresponding binary code f, e and the f combination of 4 equal hornblocks constitutes single two Code a processed, then two codes processed of all equal hornblocks in matrix-block are calculated, a kind of above-mentioned multidimensional code of combination producing is corresponding a series of Binary code.
Secondly a kind of coding/decoding method of multidimensional code as described below, i.e. length scanning method, including following step can also be used It is rapid:
Step 1: N=8 is even number, calculates from y-axis first 4 of single matrix and wait hornblocks corresponding parallel with x-axis Side length, and calculate their any combination addition numerical value, that is, correspond to a unique binary code I, rear 4 isogonisms The two dimensional code of block in contrast, corresponds to binary code J, and I and J combine to form binary code a;
Step 2: the data of step 1 are all stored on server associated by identification equipment;
Step 3: N=8 identifies that the sensor of equipment detects individually according to the hornblocks such as 8 parts delimited in advance for even number In matrix-block, in the corresponding painted portion of preceding 4 equal hornblocks the length on the side parallel with x-axis and, by the length and with first 4 etc. The numerical value that the length on the corresponding side parallel with x-axis of hornblock and their any combination are added is compared one by one, is determined therewith Corresponding binary code I, then in this way, then after determining 4 equal hornblocks corresponding binary code J, I and J combine structure At single two code a processed, then calculate two codes processed of all equal hornblocks in all matrix-blocks, a kind of above-mentioned multidimensional code of combination producing A series of corresponding binary codes.
Schematically the present invention and embodiments thereof are described above, description is not limiting, institute in attached drawing What is shown is also one of embodiments of the present invention, and actual structure is not limited to this.So if the common skill of this field Art personnel are enlightened by it, without departing from the spirit of the invention, are not inventively designed and the technical solution Similar frame mode and embodiment, are within the scope of protection of the invention.

Claims (3)

1. a kind of coding/decoding method of multidimensional code, it is characterised in that:
It is decoded for a kind of multidimensional code, the multidimensional code includes two dimensional code, by the matrix-block of two dimensional code on carrier It is divided into the single matrix-block of area equation, also adds third dimension, the third dimension, by certain in single matrix-block One right angle is divided into N equal portions, and single matrix-block is divided into the hornblocks such as N parts, every portion isogonism block along the right angle position Filling when color corresponding binary system value is 1, every portion isogonism block when not tinting corresponding binary system value be 0, the N is Integer, and N >=2;
Identify that equipment scans multidimensional code, identification equipment positions matrix-block according to the locating piece of multidimensional code, by each list A matrix-block is converted to corresponding binary coding a, and multidimensional code is finally identified as a series of binary code;
The positioning of single matrix-block and identification process are as follows: identification equipment will be divided into the right angle of N equal portions in single matrix-block The right-angle side of vertical direction identifies that equipment scanning is arrived as y-axis, and using the right-angle side in the right-angled horizontal direction as x-axis The single matrix-block of multidimensional code positions, according to the position of the hornblocks such as the N part delimited in advance, if waiting hornblocks parallel with x-axis While there are line segments there are line segment or while parallel with y-axis, then the equal hornblocks correspond to binary system value 1, otherwise correspond to binary system Value 0 repeats above step to decode one group of binary code a for generating single matrix-block, to each single matrix-block into Row scan decoder, a series of binary codes of combination producing multidimensional code.
2. a kind of coding/decoding method of multidimensional code, comprising the following steps:
It is decoded for a kind of multidimensional code, the multidimensional code includes two dimensional code, by the matrix-block of two dimensional code on carrier It is divided into the single matrix-block of area equation, also adds third dimension, the third dimension, by certain in single matrix-block One right angle is divided into N equal portions, and single matrix-block is divided into the hornblocks such as N parts, every portion isogonism block along the right angle position Filling when color corresponding binary system value is 1, every portion isogonism block when not tinting corresponding binary system value be 0, the N is Integer, and N >=2;The right-angle side in the right-angled vertical direction of N equal portions will be divided into single matrix-block as y-axis, and by the right angle The right-angle side of horizontal direction is as x-axis;
Step 1: calculating from N/2 before the y-axis of single matrix-block when N is even number and waiting hornblocks corresponding area Sn, n =1,2 ..., N/2, and calculate the numerical value that their any combination are added, that is, correspond to any combination phase when different equal hornblocks are tinted The area value added corresponds to a unique binary code e, then in this way, latter N/2 is waited the two dimensional code of hornblocks to correspond to Binary code f, e and f combine to form binary code a;
Step 2: calculating from INT (N/2)+1 before the y-axis of single matrix-block when N is odd number and waiting hornblocks corresponding Area Sn, n=1,2 ..., INT (N/2)+1, and calculate the numerical value of their any combination addition, that is, it corresponds to different equal hornblocks and applies The area figures that any combination is added when color correspond to a unique binary code g, then in this way, rear N-INT (N/ 2) two dimensional code of -1 equal hornblock corresponds to binary code h, g and h and combines to form binary code a;
Step 3: the data of step 1 and step 2 are all stored on server associated by identification equipment;
Step 4:, according to hornblocks such as the N parts delimited in advance, identifying that the sensor of equipment detects single matrix when N is even number In block, the corresponding area value S that tints of hornblocks is waited from N/2 before the y-axis of single matrix-block, by tint area value S and the step The area value of single equal hornblocks in rapid one carries out one by one with the area value that any combination is added when different equal hornblocks are tinted is corresponded to Comparison, determines corresponding binary code e, then in this way, then the N/2 corresponding binary system of grade hornblocks after determining Code f, e and f combination constitutes single binary code a, then calculates the binary code of all single matrix-blocks in two dimensional code matrix-block, A series of corresponding binary codes of combination producing multidimensional code;
Step 5:, according to hornblocks such as the N parts delimited in advance, identifying that the sensor of equipment detects single matrix when N is odd number In block, the corresponding area value S that tints of hornblocks is waited from INT (N/2)+1 before the y-axis of single matrix-block, by the area of tinting When value S tints from the area value of the single equal hornblocks in step 2 and corresponding different equal hornblocks the area value of any combination addition into Row compare one by one, determine corresponding binary code g, then in this way, then determine after -1 isogonism of N-INT (N/2) Corresponding binary code h, g and the h combination of block constitutes single binary code a, then calculates all single in two dimensional code matrix-block The binary code of matrix-block, a series of corresponding binary codes of combination producing multidimensional code.
3. a kind of coding/decoding method of multidimensional code, comprising the following steps:
It is decoded for a kind of multidimensional code, the multidimensional code includes two dimensional code, by the matrix-block of two dimensional code on carrier It is divided into the single matrix-block of area equation, also adds third dimension, the third dimension, by certain in single matrix-block One right angle is divided into N equal portions, and single matrix-block is divided into the hornblocks such as N parts, every portion isogonism block along the right angle position Filling when color corresponding binary system value is 1, every portion isogonism block when not tinting corresponding binary system value be 0, the N is Integer, and N >=2;The right-angle side in the right-angled vertical direction of N equal portions will be divided into single matrix-block as y-axis, and by the right angle The right-angle side of horizontal direction is as x-axis;
Step 1: calculating when N is even number and waiting hornblocks corresponding flat with x-axis from N/2 before the y-axis of single matrix-block The length on capable side, and calculate the numerical value of their any combination addition, that is, a unique binary code I is corresponded to, after calculating N/2 is waited the length on the corresponding side parallel with y-axis of hornblocks, and calculates the numerical value of their any combination addition, corresponds to two Ary codes J, I and J combine to form binary code a;
Step 2: calculating from INT (N/2)+1 before the y-axis of single matrix-block when N is odd number and waiting hornblocks corresponding The length on the side parallel with x-axis, and calculate the numerical value of their any combination addition, i.e., correspond to the equal hornblocks that any combination is added The length that the side parallel with x-axis is added when tinting, i.e., corresponding a unique binary code k, N-INT (N/2) -1 after calculating The length on the corresponding side parallel with y-axis of hornblocks is waited, and calculates the numerical value of their any combination addition, corresponds to binary code L, k and l combine to form binary code a;
Step 3: the data of step 1 and step 2 are all stored on server associated by identification equipment;
Step 4:, according to hornblocks such as the N parts delimited in advance, identifying that the sensor of equipment detects single matrix when N is even number In block, the length on side parallel with x-axis in the corresponding painted portion of hornblocks is waited from first N/2 of the y-axis of single matrix-block With the length and their any combination on the length and the side parallel with x-axis corresponding with the preceding N/2 equal hornblocks are added Numerical value compared one by one, determine corresponding binary code I, identify that the sensor of equipment detects single matrix-block In, from latter N/2 of the y-axis of single matrix-block equal hornblock corresponding painted portion the length on the side parallel with y-axis and, The length on the corresponding side parallel with y-axis of hornblocks and their any combination is waited to be added by the length and with described latter N/2 Numerical value is compared one by one, then determines that described latter N/2 is waited corresponding binary code J, I and the J combination of hornblocks to constitute single two Ary codes a, then calculate the binary code of all equal hornblocks in matrix-block, a series of corresponding binary systems of combination producing multidimensional code Code;
Step 5:, according to hornblocks such as the N parts delimited in advance, identifying that the sensor of equipment detects single matrix when N is odd number In block, side parallel with x-axis in the corresponding painted portion of hornblocks is waited from preceding INT (N/2)+1 of the y-axis of single matrix-block Length and, by the length on the length and the side parallel with x-axis corresponding with the preceding INT (N/2)+1 equal hornblocks and it Any combination be added numerical value compared one by one, determine corresponding binary code k, identify equipment sensor examine It measures in single matrix-block, waits the corresponding painted portion of hornblocks from rear N-INT (N/2) -1 of the y-axis of single matrix-block In the side parallel with y-axis length and, by the length and with it is described after N-INT (N/2) -1 equal hornblocks it is corresponding parallel with y-axis Side length and the numerical value that is added of their any combination compared determine described N-INT (N/2) -1 etc. afterwards again one by one Corresponding binary code l, k and the l combination of hornblock constitutes single binary code a, then calculates all single matrixes in matrix-block The binary code of block, a series of corresponding binary codes of combination producing multidimensional code.
CN201710185591.8A 2017-03-26 2017-03-26 A kind of coding/decoding method of multidimensional code Active CN106934441B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710185591.8A CN106934441B (en) 2017-03-26 2017-03-26 A kind of coding/decoding method of multidimensional code

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710185591.8A CN106934441B (en) 2017-03-26 2017-03-26 A kind of coding/decoding method of multidimensional code

Publications (2)

Publication Number Publication Date
CN106934441A CN106934441A (en) 2017-07-07
CN106934441B true CN106934441B (en) 2019-01-04

Family

ID=59425791

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710185591.8A Active CN106934441B (en) 2017-03-26 2017-03-26 A kind of coding/decoding method of multidimensional code

Country Status (1)

Country Link
CN (1) CN106934441B (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109582295B (en) * 2017-09-28 2022-06-21 北京国双科技有限公司 Data processing method and device, storage medium and processor
CN108549828B (en) * 2017-12-27 2021-02-19 黄毅峰 Equivalent binary square matrix identification system and identification method thereof
CN108959999A (en) * 2018-07-16 2018-12-07 张启 A kind of multidimensional code and its recognition methods
CN109255415A (en) * 2018-08-16 2019-01-22 章健 Four-dimensional code and its recognition methods, identification device and server
CN109389199B (en) * 2018-09-27 2022-02-01 张伟 Multi-dimensional code system and coding and decoding method
CN111709504B (en) * 2020-06-01 2023-04-28 上海吉拜生物科技有限公司 Coding and decoding method of multidimensional code
CN114511055A (en) * 2022-02-23 2022-05-17 深圳市中钞信达金融科技有限公司 Method for generating and decoding bar-shaped spliced two-dimensional code

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
MX2008015959A (en) * 2006-06-14 2009-03-02 Veritec Inc Multi-dimensional symbologies and related methods.
CN105740931B (en) * 2016-02-05 2018-12-04 上海孔诚物联网科技股份有限公司 Multidimensional security code label, its production method and recognition methods
CN106503770A (en) * 2016-11-02 2017-03-15 曾广标 A kind of coded method of three-dimension code and application

Also Published As

Publication number Publication date
CN106934441A (en) 2017-07-07

Similar Documents

Publication Publication Date Title
CN106934441B (en) A kind of coding/decoding method of multidimensional code
CN103632181B (en) The generation of a kind of 3-D view code and analytic method and device thereof
US6047893A (en) Method of locating an object-applied optical code
US20100021068A1 (en) System and method for extracting boundary elements of an object
WO2004023399A3 (en) Method and apparatus for rendering three-dimensional objets
CN107031033B (en) It is a kind of can 3D printing hollow out two dimensional code model generating method and system
CN101882205B (en) Bar code image scanning method
CN105959702A (en) Spherical video coding method and device
CN111881892B (en) Ordered point cloud 5D texture grid data structure generation method, device, equipment and medium
CN1014835B (en) Method of producing font and system
CN102763121B (en) Method for decoding a linear bar code
CN103983188A (en) Volume measurement method and device of moving object
CN112002015A (en) Method, device, equipment and medium for generating grid data structure by using disordered point cloud
CN109242184A (en) A kind of order-picking optimization method based on hierarchical clustering
CN109859204A (en) Convolutional neural networks Model Checking and device
Pu Fractional calculus approach to texture of digital image
CN105095937A (en) Visual identification method based on linear clustering circular array graphic code
CN111311497B (en) Bar code image angle correction method and device
CN108062759A (en) A kind of more pixel-parallel labeling methods and system for being used to mark bianry image
CN106803266A (en) A kind of hull complexity outside plate point cloud costal line extracting method and device
CN109492450A (en) A kind of bar code localization method based on printed page analysis
Ramer The transformation of photographic images into stroke arrays
CN106446751A (en) Bar code recognition method and apparatus
CN107506572A (en) The method and apparatus for obtaining the height of target point
CN108052754B (en) Analysis method of mechanical response of tunnel lining and terminal equipment

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