CN108846466A - Two-dimensional code generation method and device, two-dimensional code identification method and device - Google Patents

Two-dimensional code generation method and device, two-dimensional code identification method and device Download PDF

Info

Publication number
CN108846466A
CN108846466A CN201810661274.3A CN201810661274A CN108846466A CN 108846466 A CN108846466 A CN 108846466A CN 201810661274 A CN201810661274 A CN 201810661274A CN 108846466 A CN108846466 A CN 108846466A
Authority
CN
China
Prior art keywords
dimensional code
pictures
coding
sub
code sub
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201810661274.3A
Other languages
Chinese (zh)
Inventor
于城
李晖
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China United Network Communications Group Co Ltd
Original Assignee
China United Network Communications Group Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China United Network Communications Group Co Ltd filed Critical China United Network Communications Group Co Ltd
Priority to CN201810661274.3A priority Critical patent/CN108846466A/en
Publication of CN108846466A publication Critical patent/CN108846466A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K19/00Record carriers for use with machines and with at least a part designed to carry digital markings
    • G06K19/06Record carriers for use with machines and with at least a part designed to carry digital markings characterised by the kind of the digital marking, e.g. shape, nature, code
    • G06K19/06009Record carriers for use with machines and with at least a part designed to carry digital markings characterised by the kind of the digital marking, e.g. shape, nature, code with optically detectable marking
    • G06K19/06037Record carriers for use with machines and with at least a part designed to carry digital markings characterised by the kind of the digital marking, e.g. shape, nature, code with optically detectable marking multi-dimensional coding
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • 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

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)
  • Compression Of Band Width Or Redundancy In Fax (AREA)
  • Compression Or Coding Systems Of Tv Signals (AREA)

Abstract

The invention discloses a kind of two-dimensional code generation methods and device, two-dimensional code identification method and device, two-dimensional code generation method to include:Generate two dimensional code mapping table, two dimensional code mapping table includes coding and two dimensional code sub-pictures corresponding with coding, the color of two dimensional code sub-pictures includes at least one of black, white and grey, and the figure of two dimensional code sub-pictures includes at least one of triangle, circle, diamond shape, trapezoidal and rectangle;It is obtained according to two dimensional code mapping table and encodes corresponding multiple two dimensional code sub-pictures with multidigit;Two dimensional code corresponding with multidigit coding is generated according to multiple two dimensional code sub-pictures.The present invention is able to ascend the capacity of the encoded information of two dimensional code storage.

Description

Two-dimensional code generation method and device, two-dimensional code identification method and device
Technical field
The present invention relates to two dimensional code field, in particular to a kind of two-dimensional code generation method and device, two-dimensional code identification method And device.
Background technique
Two dimensional code is widely used in the fields such as mobile phone shopping, sale of ticket, confidential data encryption and item tracing.It is existing Some two dimensional codes are generated using conventional black-and-white two color, and the capacity of this encoded information for causing two dimensional code may store has very much Limit.
Summary of the invention
The present invention is directed at least solve one of the technical problems existing in the prior art, a kind of two dimensional code generation side is provided Method and device, two-dimensional code identification method and device are able to ascend the capacity of the encoded information of two dimensional code storage.
To achieve the above object, the present invention provides a kind of two-dimensional code generation methods, including:
Two dimensional code mapping table is generated, the two dimensional code mapping table includes coding and two dimensional code subgraph corresponding with the coding Piece, the color of the two dimensional code sub-pictures include at least one of black, white and grey, the figure of the two dimensional code sub-pictures Shape includes at least one of triangle, circle, diamond shape, trapezoidal and rectangle;
It is obtained according to the two dimensional code mapping table and encodes corresponding multiple two dimensional code sub-pictures with multidigit;
Two dimensional code corresponding with multidigit coding is generated according to multiple two dimensional code sub-pictures.
Optionally, described specifically to be wrapped according to multiple two dimensional code sub-pictures generation two dimensional code corresponding with multidigit coding It includes:
It is corresponding with multidigit coding to generate that the multiple two dimensional code sub-pictures are arranged successively according to the form of nine grids Two dimensional code.
Optionally, corresponding multiple two-dimentional numerals with multidigit coding are obtained according to the two dimensional code mapping table described Further include before picture:
Multidigit coding corresponding with the encoded information is generated according to encoded information and pre-generated coding schedule.
To achieve the above object, the present invention also provides a kind of two dimensional code generating means, including:
First generation module, for generating two dimensional code mapping table, the two dimensional code mapping table include coding and with the volume The corresponding two dimensional code sub-pictures of code, the color of the two dimensional code sub-pictures includes at least one of black, white and grey, institute The figure for stating two dimensional code sub-pictures includes at least one of triangle, circle, diamond shape, trapezoidal and rectangle;
Module is obtained, for obtaining corresponding multiple two-dimentional numerals with multidigit coding according to the two dimensional code mapping table Picture;
Second generation module, for generating two dimensional code corresponding with multidigit coding according to multiple two dimensional code sub-pictures.
Optionally, second generation module is specifically used for being arranged successively the multiple two dimensional code according to the form of nine grids Sub-pictures are to generate two dimensional code corresponding with multidigit coding.
Optionally, first generation module be also used to be generated according to encoded information and pre-generated coding schedule with it is described The corresponding multidigit coding of encoded information.
To achieve the above object, the present invention also provides a kind of two-dimensional code identification methods, including:
Two dimensional code is carried out to decompose the multiple two dimensional code sub-pictures for generating and being arranged successively;
According to the multiple two dimensional code sub-pictures being arranged successively and pre-generated two dimensional code mapping table obtain with it is described The multiple two dimensional code sub-pictures being arranged successively corresponding multidigit coding, the two dimensional code mapping table include coding and with the coding Corresponding two dimensional code sub-pictures, the color of the two dimensional code sub-pictures include at least one of black, white and grey, described The figure of two dimensional code sub-pictures includes at least one of triangle, circle, diamond shape, trapezoidal and rectangle;
It is encoded according to the multidigit and pre-generated coding schedule generates encoded information corresponding with the two dimensional code.
Optionally, the multiple two dimensional code sub-pictures being arranged successively according to and pre-generated two dimensional code mapping table Multidigit coding corresponding with the multiple two dimensional code sub-pictures being arranged successively is obtained to specifically include:
Face is carried out to the multiple two dimensional code sub-pictures being arranged successively according to the pre-generated two dimensional code mapping table Color identification, and obtain coding corresponding with the two dimensional code sub-pictures that color in the multiple two dimensional code sub-pictures is monochrome;
Figure is carried out to the multiple two dimensional code sub-pictures being arranged successively according to the pre-generated two dimensional code mapping table Shape identification, and obtain be not with color in the multiple two dimensional code sub-pictures monochrome the corresponding coding of two dimensional code sub-pictures;
According to color in the multiple two dimensional code sub-pictures for the corresponding coding of monochromatic two dimensional code sub-pictures and with institute Stating color in multiple two dimensional code sub-pictures is not that the corresponding coding generation of monochromatic two dimensional code sub-pictures is arranged successively with described The corresponding multidigit coding of multiple two dimensional code sub-pictures.
To achieve the above object, the present invention also provides a kind of two-dimension code recognition devices, including:
Generation module decomposes the multiple two dimensional code sub-pictures for generating and being arranged successively for carrying out to two dimensional code;
Module is obtained, multiple two dimensional code sub-pictures and pre-generated two dimensional code mapping for being arranged successively according to Table obtains multidigit coding corresponding with the multiple two dimensional code sub-pictures being arranged successively, and the two dimensional code mapping table includes coding And two dimensional code sub-pictures corresponding with the coding, the color of the two dimensional code sub-pictures includes in black, white and grey At least one, the figure of the two dimensional code sub-pictures include at least one of triangle, circle, diamond shape, trapezoidal and rectangle;
The generation module is also used to be encoded according to the multidigit and pre-generated coding schedule generates and the two dimensional code Corresponding encoded information.
Optionally, the acquisition module is specifically used for successively being arranged according to the pre-generated two dimensional code mapping table described Multiple two dimensional code sub-pictures of column carry out color identification, and obtaining with color in the multiple two dimensional code sub-pictures is monochromatic two Tie up the corresponding coding of numeral picture;According to the pre-generated two dimensional code mapping table to the multiple two dimensional codes being arranged successively Sub-pictures carry out figure identification, and obtaining with color in the multiple two dimensional code sub-pictures is not monochromatic two dimensional code sub-pictures pair The coding answered;According to color in the multiple two dimensional code sub-pictures for the corresponding coding of monochromatic two dimensional code sub-pictures and with institute Stating color in multiple two dimensional code sub-pictures is not that the corresponding coding generation of monochromatic two dimensional code sub-pictures is arranged successively with described The corresponding multidigit coding of multiple two dimensional code sub-pictures.
The invention has the advantages that:
Two-dimensional code generation method provided by the invention, generate two dimensional code mapping table, two dimensional code mapping table include coding and with Corresponding two dimensional code sub-pictures are encoded, the color of two dimensional code sub-pictures includes at least one of black, white and grey, two dimension The figure of numeral picture include triangle, circle, diamond shape,
At least one of trapezoidal and rectangle obtains and multidigit coding corresponding multiple two according to two dimensional code mapping table Numeral picture is tieed up, generates two dimensional code corresponding with multidigit coding according to multiple two dimensional code sub-pictures.This method is able to ascend two dimension The capacity of the encoded information of code storage.
Detailed description of the invention
Fig. 1 is a kind of flow diagram for two-dimensional code generation method that the embodiment of the present invention one provides;
Fig. 2 is a kind of two dimensional code mapping table that the embodiment of the present invention one provides;
Fig. 3 is a kind of two dimensional code exemplary diagram that the embodiment of the present invention one provides;
Fig. 4 is a kind of structural schematic diagram of two dimensional code generating means provided by Embodiment 2 of the present invention;
Fig. 5 is a kind of flow diagram for two-dimensional code identification method that the embodiment of the present invention three provides;
Fig. 6 is a kind of structural schematic diagram for two-dimension code recognition device that the embodiment of the present invention four provides.
Specific embodiment
To make those skilled in the art more fully understand technical solution of the present invention, with reference to the accompanying drawing in the present invention Technical solution carry out clear, complete description, it is clear that described embodiment is a part of the embodiments of the present invention, without It is whole embodiments.Based on the embodiments of the present invention, those of ordinary skill in the art are not making creative work Under the premise of every other embodiment obtained, shall fall within the protection scope of the present invention.
Embodiment one
Fig. 1 is a kind of flow diagram for two-dimensional code generation method that the embodiment of the present invention one provides, as shown in Figure 1, should Method includes the following steps:
Step 101 generates multidigit volume corresponding with the encoded information according to encoded information and pre-generated coding schedule Code.
Preferably, each step is executed by two dimensional code generating means in the present embodiment.
Encoded information specifically refers to the information to be encoded for two dimensional code, and information to be encoded has capacity, information to be encoded Capacity is bigger, and the content for indicating that the information to be encoded is included is more, and it is more complicated to correspond to the two dimensional code generated.
Table one be a kind of coding schedule provided in this embodiment, as shown in Table 1, coding schedule include abbreviation/character and with contracting / corresponding the coding of character is write, coding can be binary coding, octal code, decimal coded or hexadecimal code. Such as:When information to be encoded is certain web site url, the corresponding volume of each character in the web site url character string is searched in coding schedule The corresponding coding of each character is arranged successively by code, ultimately generates multidigit coding corresponding with the web site url.
Table one
Further, coding schedule further includes explanation corresponding with abbreviation/character, is explained for illustrating the abbreviation/word Symbol.It is worth noting that the table one is only the reference example of coding schedule, coding schedule described in the present embodiment is not limited to table one Shown in coding schedule.
Step 102, generate two dimensional code mapping table, the two dimensional code mapping table include coding and with the coding corresponding two Numeral picture is tieed up, the color of the two dimensional code sub-pictures includes at least one of black, white and grey, the two dimension numeral The figure of picture includes at least one of triangle, circle, diamond shape, trapezoidal and rectangle.
The color of two dimensional code sub-pictures is black, white or grey, or any combination for three of the above color.Further Ground, it is to be understood that two dimensional code sub-pictures are integrally square, and the figure of two dimensional code sub-pictures described in the present embodiment refers to The figure for including on two dimensional code sub-pictures.
Fig. 2 is a kind of two dimensional code mapping table that the embodiment of the present invention one provides, as shown in Fig. 2, different codings is corresponding The color of different two dimensional code sub-pictures, different two dimensional code sub-pictures is different or figure is different.The two dimension of the corresponding white of coding 0 Numeral picture, the two dimensional code sub-pictures of the corresponding grey of coding 1, the two dimensional code sub-pictures of the corresponding black of coding 2, the corresponding packet of coding 3 The two dimensional code sub-pictures of triangle are included, the corresponding two dimensional code sub-pictures including diamond shape of coding 4, corresponding coding 5 includes the two of rectangle Numeral picture is tieed up, corresponding coding 6 includes trapezoidal two dimensional code sub-pictures, and corresponding coding 7 includes circular two dimensional code sub-pictures.
It is worth noting that the Fig. 2 is only the reference example of two dimensional code mapping table, two dimensional code described in the present embodiment reflects Firing table is not limited to two dimensional code mapping table shown in Fig. 2, two dimensional code mapping table can be carried out expanding according to practical application request or Modification is subject to and is able to ascend the capacity of encoded information of two dimensional code storage and is designed.Such as:Two dimensional code sub-pictures can design It is the two dimensional code sub-pictures for including a variety of figures.
Two dimensional code mapping table shown in Fig. 2 includes eight kinds of code type, multidigit described in the present embodiment in the present embodiment It is encoded to octal code.It, can be according to a number form for the type of coding that two dimensional code mapping table includes in actual use situation At binary coding or decimal coded or hexadecimal code.
Such as:For octal code 542615101, decimal system volume can be converted by mode shown in table two Code.
Table two
Step 103 obtains corresponding multiple two dimensional code sub-pictures with multidigit coding according to the two dimensional code mapping table.
Specifically, two dimensional code sub-pictures corresponding with every coding in multidigit coding are searched in two dimensional code mapping table.
Step 104 generates two dimensional code corresponding with multidigit coding according to multiple two dimensional code sub-pictures.
Optionally, the multiple two dimensional code sub-pictures are arranged successively according to the form of nine grids to generate and compile with the multidigit The corresponding two dimensional code of code.
Fig. 3 is a kind of two dimensional code exemplary diagram that the embodiment of the present invention one provides, when multidigit is encoded to 542615101, with It is as shown in Figure 3 that the multidigit encodes 542615101 corresponding two dimensional codes.It is searched in two dimensional code mapping table shown in Fig. 2 more with this Every 5,4,2,6,1,5,1,0,1 corresponding two dimensional code sub-pictures of coding in position coding 542615101, according to the shape of nine grids Formula is arranged successively every 5,4,2,6,1,5,1,0,1 corresponding two dimensional code sub-pictures of coding and produces and multidigit coding 542615101 corresponding two dimensional codes.
The step 104 is not limited to be arranged successively the multiple two dimensional code sub-pictures according to the form of nine grids to generate Two dimensional code corresponding with multidigit coding, multiple two dimensional code sub-pictures can according to the actual quantities of two dimensional code sub-pictures into Row arrangement is to generate two dimensional code.Such as:When the quantity of multiple two dimensional code sub-pictures is 16,16 are arranged successively in 4 × 4 form A two dimensional code sub-pictures are to generate two dimensional code.
This method of the present embodiment can generate multidigit coding corresponding with the information to be encoded of large capacity.
Two-dimensional code generation method provided in this embodiment, including:Two dimensional code mapping table is generated, two dimensional code mapping table includes compiling Code and two dimensional code sub-pictures corresponding with coding, the color of two dimensional code sub-pictures include at least one in black, white and grey Kind, the figure of two dimensional code sub-pictures includes at least one of triangle, circle, diamond shape, trapezoidal and rectangle, is reflected according to two dimensional code Firing table, which is obtained, encodes corresponding multiple two dimensional code sub-pictures with multidigit, is generated according to multiple two dimensional code sub-pictures and is compiled with multidigit The corresponding two dimensional code of code.The present embodiment uses grey and a variety of graphic hotsopt two dimensional codes, enriches the coding mode of two dimensional code, energy The capacity of enough encoded informations for effectively promoting two dimensional code storage.
Embodiment two
Fig. 4 is a kind of structural schematic diagram of two dimensional code generating means provided by Embodiment 2 of the present invention, as shown in figure 4, should Two dimensional code generating means include:First generation module 11 obtains module 12 and the second generation module 13.
First generation module 11 for generating two dimensional code mapping table, the two dimensional code mapping table include coding and with the volume The corresponding two dimensional code sub-pictures of code, the color of the two dimensional code sub-pictures includes at least one of black, white and grey, institute The figure for stating two dimensional code sub-pictures includes at least one of triangle, circle, diamond shape, trapezoidal and rectangle.
Module 12 is obtained to be used to obtain corresponding multiple two dimensional codes with multidigit coding according to the two dimensional code mapping table Sub-pictures.
Second generation module 13 is used to generate two dimensional code corresponding with multidigit coding according to multiple two dimensional code sub-pictures.
Further, the second generation module 13 is specifically used for being arranged successively the multiple two dimensional code according to the form of nine grids Sub-pictures are to generate two dimensional code corresponding with multidigit coding.
Further, the first generation module 11 be also used to be generated according to encoded information and pre-generated coding schedule with it is described The corresponding multidigit coding of encoded information.
Two dimensional code generating means provided in this embodiment can be used for realizing the two dimensional code generation side that above-described embodiment one provides Method.
Two dimensional code generating means provided in this embodiment, the first generation module is for generating two dimensional code mapping table, two dimensional code Mapping table includes coding and two dimensional code sub-pictures corresponding with coding, the color of two dimensional code sub-pictures include black, white and ash At least one of color, the figure of two dimensional code sub-pictures include at least one of triangle, circle, diamond shape, trapezoidal and rectangle, It obtains module to be used to obtain corresponding multiple two dimensional code sub-pictures with multidigit coding according to two dimensional code mapping table, second generates Module is used to generate two dimensional code corresponding with multidigit coding according to multiple two dimensional code sub-pictures.The device is able to ascend two dimensional code and deposits The capacity of the encoded information of storage.
Embodiment three
Fig. 5 is a kind of flow diagram for two-dimensional code identification method that the embodiment of the present invention three provides, as shown in figure 5, should Two-dimensional code identification method includes the following steps:
Step 201 carries out two dimensional code to decompose the multiple two dimensional code sub-pictures for generating and being arranged successively.
Such as:Two dimensional code shown in Fig. 3 is carried out to decompose the 9 two dimensional code sub-pictures for generating and being arranged successively.
Step 202, the multiple two dimensional code sub-pictures being arranged successively according to and pre-generated two dimensional code mapping table obtain Take corresponding with the multiple two dimensional code sub-pictures being arranged successively multidigit to encode, the two dimensional code mapping table include coding and with The corresponding two dimensional code sub-pictures of the coding, the color of the two dimensional code sub-pictures include in black, white and grey at least One kind, the figure of the two dimensional code sub-pictures include at least one of triangle, circle, diamond shape, trapezoidal and rectangle.
Specifically, step 202 includes the following steps:
Step 202a, according to the pre-generated two dimensional code mapping table to the multiple two dimensional code subgraphs being arranged successively Piece carries out color identification, and obtains volume corresponding with the two dimensional code sub-pictures that color in the multiple two dimensional code sub-pictures is monochrome Code.
Such as:What two dimensional code mapping table according to Fig.2, generated after decomposing to two dimensional code shown in Fig. 3 is arranged successively 9 two dimensional code sub-pictures carry out color identifications, and obtaining with color in 9 two dimensional code sub-pictures is monochrome (black, grey or white Color) the corresponding coding of two dimensional code sub-pictures, generate multidigit encode XX2X1X101.
Step 202b, according to the pre-generated two dimensional code mapping table to the multiple two dimensional code subgraphs being arranged successively Piece carries out figure identification, and obtaining with color in the multiple two dimensional code sub-pictures is not that monochromatic two dimensional code sub-pictures are corresponding Coding.
Step 202c, according to volume corresponding with the two dimensional code sub-pictures that color in the multiple two dimensional code sub-pictures is monochrome Code and with color in the multiple two dimensional code sub-pictures be not the corresponding coding of monochromatic two dimensional code sub-pictures generate and it is described according to The corresponding multidigit coding of multiple two dimensional code sub-pictures of secondary arrangement.
Such as:It is not monochromatic that two dimensional code mapping table according to Fig.2, which is obtained with color in above-mentioned 9 two dimensional code sub-pictures, The corresponding volume of two dimensional code sub-pictures (color is not that monochromatic two dimensional code sub-pictures are also the two dimensional code sub-pictures including figure) Code generates multidigit coding 542615101 corresponding with 9 two dimensional code sub-pictures.
Step 203, the coding schedule for being encoded and being pre-generated according to the multidigit generate coding corresponding with the two dimensional code Information.
Such as:Search character corresponding with every coding in multidigit coding respectively according to table one shown in embodiment one, Multiple characters are combined and produce encoded information corresponding with multidigit coding, encoded information corresponding with multidigit coding Encoded information as corresponding with the two dimensional code.
Two-dimensional code identification method provided in this embodiment can identify the two dimensional code generated in embodiment one.
Two-dimensional code identification method provided in this embodiment carries out two dimensional code to decompose the multiple two dimensional codes for generating and being arranged successively Sub-pictures are obtained and are arranged successively according to the multiple two dimensional code sub-pictures being arranged successively and pre-generated two dimensional code mapping table The corresponding multidigit coding of multiple two dimensional code sub-pictures, two dimensional code mapping table includes coding and two dimensional code subgraph corresponding with coding Piece, the color of two dimensional code sub-pictures include at least one of black, white and grey, and the figure of two dimensional code sub-pictures includes three At least one of angular, round, diamond shape, trapezoidal and rectangle, encode according to multidigit and pre-generated coding schedule generates and two Tie up the corresponding encoded information of code.This method can grey and a variety of figures be generated, are able to ascend two dimensional code storage to using The two dimensional code of capacity of encoded information identified.
Example IV
Fig. 6 is a kind of structural schematic diagram for two-dimension code recognition device that the embodiment of the present invention four provides, as shown in fig. 6, should Two-dimension code recognition device includes:Generation module 21 and acquisition module 22.
Generation module 21 is used to carry out two dimensional code to decompose the multiple two dimensional code sub-pictures for generating and being arranged successively.
It obtains multiple two dimensional code sub-pictures that module 22 is used to be arranged successively according to and the two dimensional code pre-generated is reflected Firing table obtains multidigit coding corresponding with the multiple two dimensional code sub-pictures being arranged successively, and the two dimensional code mapping table includes compiling Code and two dimensional code sub-pictures corresponding with the coding, the color of the two dimensional code sub-pictures includes in black, white and grey At least one, the figure of the two dimensional code sub-pictures includes at least one of triangle, circle, diamond shape, trapezoidal and rectangle.
The generation module 21 is also used to be encoded according to the multidigit and pre-generated coding schedule generates and the two dimension The corresponding encoded information of code.
Further, the acquisition module 22 be specifically used for according to the pre-generated two dimensional code mapping table to it is described according to Multiple two dimensional code sub-pictures of secondary arrangement carry out color identification, and obtaining with color in the multiple two dimensional code sub-pictures is monochrome The corresponding coding of two dimensional code sub-pictures;According to the pre-generated two dimensional code mapping table to multiple two be arranged successively It ties up numeral picture and carries out figure identification, and obtaining with color in the multiple two dimensional code sub-pictures is not monochromatic two dimensional code subgraph The corresponding coding of piece;According to color in the multiple two dimensional code sub-pictures be the corresponding coding of monochromatic two dimensional code sub-pictures and It is not that the corresponding coding generation of monochromatic two dimensional code sub-pictures is successively arranged with described with color in the multiple two dimensional code sub-pictures The corresponding multidigit coding of multiple two dimensional code sub-pictures of column.
The two-dimension code recognition device that the present embodiment four provides can be used for realizing the two dimensional code identification that above-described embodiment three provides Method.
Two-dimension code recognition device provided in this embodiment, generation module to two dimensional code carry out decompose generate be arranged successively it is more A two dimensional code sub-pictures obtain module according to the multiple two dimensional code sub-pictures being arranged successively and pre-generated two dimensional code mapping table Obtain corresponding with the multiple two dimensional code sub-pictures being arranged successively multidigit coding, generation module is also used to encode according to multidigit and pre- The coding schedule first generated generates encoded information corresponding with two dimensional code.The device can be generated to using grey and a variety of figures , the two dimensional code of capacity of encoded information that be able to ascend two dimensional code storage identified.
It is understood that the principle that embodiment of above is intended to be merely illustrative of the present and the exemplary implementation that uses Mode, however the present invention is not limited thereto.For those skilled in the art, essence of the invention is not being departed from In the case where mind and essence, various changes and modifications can be made therein, these variations and modifications are also considered as protection scope of the present invention.

Claims (10)

1. a kind of two-dimensional code generation method, which is characterized in that including:
Two dimensional code mapping table is generated, the two dimensional code mapping table includes coding and two dimensional code sub-pictures corresponding with the coding, The color of the two dimensional code sub-pictures includes at least one of black, white and grey, the figure of the two dimensional code sub-pictures Including at least one of triangle, circle, diamond shape, trapezoidal and rectangle;
It is obtained according to the two dimensional code mapping table and encodes corresponding multiple two dimensional code sub-pictures with multidigit;
Two dimensional code corresponding with multidigit coding is generated according to multiple two dimensional code sub-pictures.
2. two-dimensional code generation method according to claim 1, which is characterized in that described raw according to multiple two dimensional code sub-pictures It is specifically included at two dimensional code corresponding with multidigit coding:
The multiple two dimensional code sub-pictures are arranged successively according to the form of nine grids to generate and multidigit coding corresponding two Tie up code.
3. two-dimensional code generation method according to claim 1, which is characterized in that described according to the two dimensional code mapping table It obtains before encoding corresponding multiple two dimensional code sub-pictures with multidigit and further includes:
Multidigit coding corresponding with the encoded information is generated according to encoded information and pre-generated coding schedule.
4. a kind of two dimensional code generating means, which is characterized in that including:
First generation module, for generating two dimensional code mapping table, the two dimensional code mapping table include coding and with the coding pair The two dimensional code sub-pictures answered, the color of the two dimensional code sub-pictures include at least one of black, white and grey, and described two The figure for tieing up numeral picture includes at least one of triangle, circle, diamond shape, trapezoidal and rectangle;
Module is obtained, encodes corresponding multiple two dimensional code subgraphs with multidigit for obtaining according to the two dimensional code mapping table Piece;
Second generation module, for generating two dimensional code corresponding with multidigit coding according to multiple two dimensional code sub-pictures.
5. two dimensional code generating means according to claim 4, which is characterized in that second generation module is specifically used for pressing The multiple two dimensional code sub-pictures are arranged successively according to the form of nine grids to generate two dimensional code corresponding with multidigit coding.
6. two dimensional code generating means according to claim 4, which is characterized in that first generation module is also used to basis Encoded information and pre-generated coding schedule generate multidigit coding corresponding with the encoded information.
7. a kind of two-dimensional code identification method, which is characterized in that including:
Two dimensional code is carried out to decompose the multiple two dimensional code sub-pictures for generating and being arranged successively;
According to the multiple two dimensional code sub-pictures being arranged successively and pre-generated two dimensional code mapping table obtain with it is described successively Multiple two dimensional code sub-pictures corresponding multidigit coding of arrangement, the two dimensional code mapping table include coding and corresponding with the coding Two dimensional code sub-pictures, the color of the two dimensional code sub-pictures includes at least one of black, white and grey, the two dimension The figure of numeral picture includes at least one of triangle, circle, diamond shape, trapezoidal and rectangle;
It is encoded according to the multidigit and pre-generated coding schedule generates encoded information corresponding with the two dimensional code.
8. two-dimensional code identification method according to claim 7, which is characterized in that it is described be arranged successively according to it is multiple Two dimensional code sub-pictures and pre-generated two dimensional code mapping table obtain corresponding with the multiple two dimensional code sub-pictures being arranged successively Multidigit coding specifically include:
Color knowledge is carried out to the multiple two dimensional code sub-pictures being arranged successively according to the pre-generated two dimensional code mapping table Not, and coding corresponding with the two dimensional code sub-pictures that color in the multiple two dimensional code sub-pictures is monochrome is obtained;
Figure knowledge is carried out to the multiple two dimensional code sub-pictures being arranged successively according to the pre-generated two dimensional code mapping table Not, and obtain be not with color in the multiple two dimensional code sub-pictures monochrome the corresponding coding of two dimensional code sub-pictures;
According to color in the multiple two dimensional code sub-pictures be the corresponding coding of monochromatic two dimensional code sub-pictures and with it is described more In a two dimensional code sub-pictures color be not the corresponding coding generation of monochromatic two dimensional code sub-pictures with it is described be arranged successively it is multiple The corresponding multidigit coding of two dimensional code sub-pictures.
9. a kind of two-dimension code recognition device, which is characterized in that including:
Generation module decomposes the multiple two dimensional code sub-pictures for generating and being arranged successively for carrying out to two dimensional code;
Module is obtained, the multiple two dimensional code sub-pictures and pre-generated two dimensional code mapping table for being arranged successively according to obtain Take corresponding with the multiple two dimensional code sub-pictures being arranged successively multidigit to encode, the two dimensional code mapping table include coding and with The corresponding two dimensional code sub-pictures of the coding, the color of the two dimensional code sub-pictures include in black, white and grey at least One kind, the figure of the two dimensional code sub-pictures include at least one of triangle, circle, diamond shape, trapezoidal and rectangle;
The generation module is also used to be encoded according to the multidigit and pre-generated coding schedule generation is corresponding with the two dimensional code Encoded information.
10. two-dimension code recognition device according to claim 9, which is characterized in that the acquisition module is specifically used for basis The pre-generated two dimensional code mapping table carries out color identification to the multiple two dimensional code sub-pictures being arranged successively, and obtains Coding corresponding with the two dimensional code sub-pictures that color in the multiple two dimensional code sub-pictures is monochrome;According to described pre-generated Two dimensional code mapping table carries out figure identification to the multiple two dimensional code sub-pictures being arranged successively, and obtains and the multiple two dimension Color is not the monochromatic corresponding coding of two dimensional code sub-pictures in numeral picture;According to face in the multiple two dimensional code sub-pictures Color is the corresponding coding of monochromatic two dimensional code sub-pictures and is not monochromatic two dimension with color in the multiple two dimensional code sub-pictures The corresponding coding of numeral picture generates multidigit coding corresponding with the multiple two dimensional code sub-pictures being arranged successively.
CN201810661274.3A 2018-06-25 2018-06-25 Two-dimensional code generation method and device, two-dimensional code identification method and device Pending CN108846466A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810661274.3A CN108846466A (en) 2018-06-25 2018-06-25 Two-dimensional code generation method and device, two-dimensional code identification method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810661274.3A CN108846466A (en) 2018-06-25 2018-06-25 Two-dimensional code generation method and device, two-dimensional code identification method and device

Publications (1)

Publication Number Publication Date
CN108846466A true CN108846466A (en) 2018-11-20

Family

ID=64202609

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810661274.3A Pending CN108846466A (en) 2018-06-25 2018-06-25 Two-dimensional code generation method and device, two-dimensional code identification method and device

Country Status (1)

Country Link
CN (1) CN108846466A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109685187A (en) * 2018-12-28 2019-04-26 优城(宁波)地铁科技有限公司 A kind of module of batch signaling mode capabilities
CN111242259A (en) * 2020-01-08 2020-06-05 浙江码尚科技股份有限公司 Intelligent anti-counterfeiting code encoding and decoding method and system
CN112100206A (en) * 2020-11-13 2020-12-18 支付宝(杭州)信息技术有限公司 Digital label generation method, device, equipment and readable medium
CN113988246A (en) * 2021-11-08 2022-01-28 北京中馨智信科技有限公司 Curved surface two-dimensional code, curved surface two-dimensional code generation method and curved surface container

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1670763A (en) * 2004-03-15 2005-09-21 深圳矽感科技有限公司 A two dimensional bar codes and coding-decoding method thereof
CN101149813A (en) * 2007-07-13 2008-03-26 中兴通讯股份有限公司 Matrix type colorful two-dimensional bar code encoding and decoding method
CN103034835A (en) * 2012-12-14 2013-04-10 苏州阔地网络科技有限公司 Two-dimensional code processing method and two-dimensional code client-side
CN105074731A (en) * 2012-12-19 2015-11-18 电装波动株式会社 Information code, information code generation method, information code reader device, and information code usage system
CN105247543A (en) * 2013-03-27 2016-01-13 斯玛特格立弗有限公司 Optical code
CN106485306A (en) * 2016-09-14 2017-03-08 华南理工大学 One kind is based on color-coded Quick Response Code and preparation method thereof and recognition methods

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1670763A (en) * 2004-03-15 2005-09-21 深圳矽感科技有限公司 A two dimensional bar codes and coding-decoding method thereof
CN101149813A (en) * 2007-07-13 2008-03-26 中兴通讯股份有限公司 Matrix type colorful two-dimensional bar code encoding and decoding method
CN103034835A (en) * 2012-12-14 2013-04-10 苏州阔地网络科技有限公司 Two-dimensional code processing method and two-dimensional code client-side
CN105074731A (en) * 2012-12-19 2015-11-18 电装波动株式会社 Information code, information code generation method, information code reader device, and information code usage system
CN105247543A (en) * 2013-03-27 2016-01-13 斯玛特格立弗有限公司 Optical code
CN106485306A (en) * 2016-09-14 2017-03-08 华南理工大学 One kind is based on color-coded Quick Response Code and preparation method thereof and recognition methods

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109685187A (en) * 2018-12-28 2019-04-26 优城(宁波)地铁科技有限公司 A kind of module of batch signaling mode capabilities
CN109685187B (en) * 2018-12-28 2021-12-14 优城(宁波)地铁科技有限公司 Module with batch code sending mode function
CN111242259A (en) * 2020-01-08 2020-06-05 浙江码尚科技股份有限公司 Intelligent anti-counterfeiting code encoding and decoding method and system
CN112100206A (en) * 2020-11-13 2020-12-18 支付宝(杭州)信息技术有限公司 Digital label generation method, device, equipment and readable medium
CN113988246A (en) * 2021-11-08 2022-01-28 北京中馨智信科技有限公司 Curved surface two-dimensional code, curved surface two-dimensional code generation method and curved surface container
CN113988246B (en) * 2021-11-08 2024-04-19 北京中馨智信科技有限公司 Curved surface two-dimensional code, curved surface two-dimensional code generation method and curved surface container

Similar Documents

Publication Publication Date Title
CN108846466A (en) Two-dimensional code generation method and device, two-dimensional code identification method and device
CN105447546B (en) The two dimensional code and its coding and decoding methods and equipment of embeddable large scale figure
CN102724668A (en) Method and system for sharing WIFI (wireless fidelity) network information on basis of two-dimensional code graphs
WO2017198189A1 (en) Generation and reading method and device for colour identified colour two-dimensional figure code
CN106815544A (en) A kind of information concealing method based on Quick Response Code
WO2021169502A1 (en) A pixel image as well as its processing method and application system
CN102930192A (en) Method for generating and acquiring safety information and relevant devices
CN103870861A (en) Method and device for generating two-dimensional code
CN106886812B (en) Dynamic two-dimensional code generation equipment and generation method thereof, advertisement box and trigger
CN103632179B (en) Code And Decode method and the device of Three-Dimensional Bar Code
CN102867205A (en) Information management and two-dimensional code generation method and related devices
CN103413160A (en) Method, device and system for encoding and decoding
CN101515335A (en) Color two dimension bar code with high compression ratio Chinese character coding capability and its coding and decoding method
CN103347097A (en) Method and system for file transmission
CN104915698B (en) Chemical producting safety information quick search and complete period tracking digital labelling system
CN103259621A (en) Encoding method and device of colorized three-dimensional codes and application method and system of colorized three-dimensional codes
CN105894070B (en) A kind of two dimension code encoding method and device
CN111881444B (en) Identity verification system based on encrypted tag algorithm and working method thereof
CN104376307A (en) Fingerprint image information coding method
Abas et al. Increasing data storage of coloured QR code using compress, multiplexing and multilayered technique
WO2024113874A1 (en) Encoding method and decoding method for annular 2-dimensional bar code
CN101493946A (en) Mutual conversion method of freemans chain code and vertex chain code
CN109376825B (en) Two-dimensional code generation method and device
CN107798373B (en) Two-dimensional code anti-copying method and system
CN111783917B (en) Encrypted two-dimensional code with tracing and anti-counterfeiting functions

Legal Events

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

Application publication date: 20181120