CN105760917B - three-dimensional code encoding method and system - Google Patents

three-dimensional code encoding method and system Download PDF

Info

Publication number
CN105760917B
CN105760917B CN201610080300.4A CN201610080300A CN105760917B CN 105760917 B CN105760917 B CN 105760917B CN 201610080300 A CN201610080300 A CN 201610080300A CN 105760917 B CN105760917 B CN 105760917B
Authority
CN
China
Prior art keywords
code
color
information
matrix
shape
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
CN201610080300.4A
Other languages
Chinese (zh)
Other versions
CN105760917A (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 CN201610080300.4A priority Critical patent/CN105760917B/en
Publication of CN105760917A publication Critical patent/CN105760917A/en
Application granted granted Critical
Publication of CN105760917B publication Critical patent/CN105760917B/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
    • 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

Landscapes

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

Abstract

The present invention provides a kind of three-dimensional code encoding method and system, wherein, this method includes:Data message to be encoded is obtained, background picture is obtained;Matrix exponent number, color set system and shape set system are determined, color set system includes code-point colouring information, code frame colouring information, code eye colouring information, and shape set system includes code-point shape information, code frame shape information, code eye shape information;According to matrix exponent number, color set system, data message to be encoded, three-dimension code matrix is determined;According to color set system, the colouring information of background picture, color coding schedule is determined;According to shape set, system determines shape coding table;The code value of each grid of three-dimension code matrix is determined according to three-dimension code matrix, color coding schedule, shape coding table, the coding information of three-dimension code is generated, code value includes position code value, color code value and shape code value.Three-dimension code has coding information, the information of background picture, be easy to user intuitively observe the information of three-dimension code there is provided three-dimension code there are more information.

Description

Three-dimensional code encoding method and system
Technical field
The present invention relates to information coding technique, more particularly to a kind of three-dimensional code encoding method and system.
Background technology
With the development of information coding technique, Quick Response Code is more and more applied in life.Terminal barcode scanning can be passed through Quick Response Code, to obtain the corresponding information of Quick Response Code, the information is network address or merchandise news or electronics membership information or map letter Breath etc..
But in the prior art, Quick Response Code has only corresponded to an information, two dimension can be obtained by terminal barcode scanning Quick Response Code The corresponding information of code;The Limited information that Quick Response Code is included in the prior art, it is impossible to meet the demand of user.
The content of the invention
The present invention provides a kind of three-dimensional code encoding method and system, to solve the information that Quick Response Code in the prior art is included It is limited, it is impossible to the problem of meeting the demand of user.
It is an aspect of the present invention to provide a kind of three-dimensional code encoding method, including:
Data message to be encoded is obtained, and obtains background picture;
Matrix exponent number, color set system and the shape set system of three-dimension code are determined, wherein, the color set system includes code-point color Information, code frame colouring information, code eye colouring information, the shape set system include code-point shape information, code frame shape information, code eye Shape information;
According to the matrix exponent number, color set system, the data message to be encoded, the three-dimension code of three-dimension code is determined Matrix, wherein, the three-dimension code matrix is made up of grid;
According to color set system, the colouring information of the background picture, the color coding schedule of three-dimension code is determined;
Covered according to the shape is to determine the shape coding table of three-dimension code;
According to the three-dimension code matrix, the color coding schedule and the shape coding table, three-dimension code matrix is determined The code value of each grid, to generate the coding information of three-dimension code, wherein, the code value includes position code value, color code value and shape Shape code value.
In method as described above, after the acquisition background picture, in addition to:
Adjust the size of the background picture.
It is described to be believed according to the matrix exponent number, color set system, the data to be encoded in method as described above Breath, determines the three-dimension code matrix of three-dimension code, including:
The first recognizable code for characterizing the matrix exponent number is generated according to the matrix exponent number, and system is covered according to the color Generation characterizes the second recognizable code of the color set system;
According to the matrix exponent number and the data message to be encoded, number of squares and the valid data position of three-dimension code are determined Put;
According to the number of squares and valid data position, first recognizable code, second recognizable code, three are determined Tie up the three-dimension code matrix of code.
It is described to be compiled according to the three-dimension code matrix, the color coding schedule and the shape in method as described above Code table, determines the code value of each grid of three-dimension code matrix, to generate the coding information of three-dimension code, including:
According to the three-dimension code matrix, the position code value of each grid in the three-dimension code matrix is determined;
According to the color coding schedule, the color code value of each grid in the three-dimension code matrix is determined;
According to the shape coding table, the shape code value of each grid in the three-dimension code matrix is determined;
According to the position code value of each grid, color code value, shape code value in the three-dimension code matrix, generation three-dimension code Coding information.
In method as described above, the data message to be encoded, including any one in following information:
Website information, pictorial information, text information, digital information and alphabetical information.
Another aspect of the present invention is to provide a kind of three-dimension code coded system, including:
Acquisition module, the data message to be encoded for obtaining, and obtain background picture;
Information determination module, matrix exponent number, color set system and shape set system for determining three-dimension code, wherein, the face Color set system includes code-point colouring information, code frame colouring information, code eye colouring information, and the shape set system includes code-point shape letter Breath, code frame shape information, code eye shape information;
Matrix deciding module, for covering system, the data message to be encoded according to the matrix exponent number, the color, The three-dimension code matrix of three-dimension code is determined, wherein, the three-dimension code matrix is made up of grid;
Color determining module, for the colouring information according to color set system, the background picture, determines three-dimension code Color coding schedule;
Shape determination module, is to determine the shape coding table of three-dimension code for being covered according to the shape;
Generation module, for according to the three-dimension code matrix, the color coding schedule and the shape coding table, it is determined that The code value of each grid of three-dimension code matrix, to generate the coding information of three-dimension code, wherein, the code value include position code value, Color code value and shape code value.
In system as described above, in addition to:
Adjusting module, after obtaining background picture in the acquisition module, adjusts the size of the background picture.
In system as described above, the matrix deciding module, specifically for:
The first recognizable code for characterizing the matrix exponent number is generated according to the matrix exponent number, and system is covered according to the color Generation characterizes the second recognizable code of the color set system;
According to the matrix exponent number and the data message to be encoded, number of squares and the valid data position of three-dimension code are determined Put;
According to the number of squares and valid data position, first recognizable code, second recognizable code, three are determined Tie up the three-dimension code matrix of code.
In system as described above, the generation module, specifically for:
According to the three-dimension code matrix, the position code value of each grid in the three-dimension code matrix is determined;
According to the color coding schedule, the color code value of each grid in the three-dimension code matrix is determined;
According to the shape coding table, the shape code value of each grid in the three-dimension code matrix is determined;
According to the position code value of each grid, color code value, shape code value in the three-dimension code matrix, generation three-dimension code Coding information.
The present invention obtains background picture by obtaining data message to be encoded;Determine matrix exponent number, the face of three-dimension code Color set system and shape cover system, wherein, color set system includes code-point colouring information, code frame colouring information, code eye colouring information, shape Set system includes code-point shape information, code frame shape information, code eye shape information;According to matrix exponent number, color set system, it is to be encoded Data message, determines the three-dimension code matrix of three-dimension code, wherein, three-dimension code matrix is made up of grid;According to color set system, Background The colouring information of piece, determines the color coding schedule of three-dimension code;Covered according to shape is to determine the shape coding table of three-dimension code;According to Three-dimension code matrix, color coding schedule and shape coding table, determine the code value of each grid of three-dimension code matrix, to generate three-dimensional The coding information of code, wherein, code value includes position code value, color code value and shape code value.It is a kind of with Background so as to generate The colored three-dimension code of piece, while each grid of three-dimension code has default shape;It is comprehensive according to the color of determination cover system with And the colouring information of background picture, go to determine the color of each grid in three-dimension code;And system is covered according to the shape of determination, it is determined that The shape of each grid in three-dimension code;The coding information of the three-dimension code of generation, constitutes three-dimension code, is compiled so that three-dimension code has Code information, while three-dimension code has the information of background picture, is easy to user intuitively to observe the information of three-dimension code, and user can be with Obtain the information that three-dimension code is characterized, at the same can obtain information in three-dimension code in background picture there is provided three-dimension code have more Many information.
Brief description of the drawings
Fig. 1 is the flow chart for the three-dimensional code encoding method that the embodiment of the present invention one is provided;
Fig. 2 is the flow chart for the three-dimensional code encoding method that the embodiment of the present invention two is provided;
Fig. 3 is the structural representation for the three-dimension code coded system that the embodiment of the present invention three is provided;
Fig. 4 is the structural representation for the three-dimension code coded system that the embodiment of the present invention four is provided.
Embodiment
To make the purpose, technical scheme and advantage of the embodiment of the present invention clearer, below in conjunction with the embodiment of the present invention In accompanying drawing, the technical scheme in the embodiment of the present invention is clearly and completely described, it is clear that described embodiment is A part of embodiment of the present invention, rather than whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art The every other embodiment obtained under the premise of creative work is not made, belongs to the scope of protection of the invention.
Fig. 1 is the flow chart for the three-dimensional code encoding method that the embodiment of the present invention one is provided, as shown in figure 1, the present embodiment Method includes:
Step 101, acquisition data message to be encoded, and obtain background picture.
In the present embodiment, specifically, user can input the data such as network address to be encoded, word, numeral, letter letter Breath, it is follow-up to need to go life according to this data message to be encoded so as to get the data message that some is to be encoded Into three-dimension code, terminal scanning three-dimension code can just get data message to be encoded.Then, user can input Background Piece, so as to get on a background picture, the background picture can be three-dimension code represent company pictorial trademark, Logo patterns or the recommended information of company of three-dimension code etc..
Step 102, the matrix exponent number for determining three-dimension code, color set system and shape set system, wherein, color set system includes code-point Colouring information, code frame colouring information, code eye colouring information, shape set system include code-point shape information, code frame shape information, code eye Shape information.
In the present embodiment, specifically, user can select the matrix exponent number of three-dimension code, matrix exponent number can be 12*12, Can be 16*16 or 20*20 etc., user can according to actual demand selection matrix exponent number.Wrapped in three-dimension code Code-point, code frame and code eye are included;Wherein code frame is three larger frames in three-dimension code, and code eye is the code-point in code frame.
Meanwhile, the color set system of user's selection three-dimension code, color set includes code-point colouring information, code frame color letter in being Breath, code eye colouring information, so that it is determined that going out the color set system of three-dimension code.For example, the color of code-point can be set as green, So as to get green corresponding colouring information, the colouring information is code-point colouring information;The color of code frame is set as Huang Color, so as to get the corresponding colouring information of yellow, the colouring information is code frame colouring information;Set code eye color as Red, so as to get red corresponding colouring information, the colouring information is code eye colouring information.
Meanwhile, the shape set system of user's selection three-dimension code, shape set includes code-point shape information, code frame shape letter in being Breath, code eye shape information, so that it is determined that going out the shape set system of three-dimension code.For example, can set code-point, code frame, code eye Shape is all circle, is believed so as to get with circular corresponding code-point shape information, code frame shape information, code eye-shaped shape Breath.Again for example, can set code-point be shaped as it is square, so as to get square corresponding shape information, the shape Shape information is code-point shape information;Set code frame is shaped as circle, so as to get circular corresponding shape information, should Shape information is code frame shape information;Set code eye is shaped as heart, so as to get heart-shaped corresponding shape information, The shape information is code eye shape information.
Step 103, according to matrix exponent number, color set system, data message to be encoded, determine the three-dimension code square of three-dimension code Battle array, wherein, three-dimension code matrix is made up of grid.
In the present embodiment, specifically, according to matrix exponent number and data message to be encoded, determining the three of three-dimension code The arrangement of code matrix is tieed up, three-dimension code matrix is arranged by grid and constituted.Meanwhile, it is to determine three-dimension code to be covered according to color Three-dimension code matrix medium square color coding.
Step 104, according to color cover system, background picture colouring information, determine the color coding schedule of three-dimension code.
In the present embodiment, specifically, covering the Background obtained in system, step 101 according to the color determined in step 102 The colouring information of piece, the comprehensive color coding schedule for determining three-dimension code;Wherein, have in color coding schedule every in three-dimension code The colouring information of one grid.All code-point, code frame, code eye have all corresponded to the grid in the three-dimension code matrix of three-dimension code. In the present embodiment, background picture is located at the middle part of three-dimension code.
For code frame, no and background picture is overlapped at the position of code frame, so that the colouring information of code frame is step In the code frame colouring information determined in 102, code frame code eye colouring information be step 102 in determine code eye colouring information, The color at position between code frame and code eye is the color for being different from yard frame color and code eye color, so that it is determined that code frame with Colouring information between code eye at position is different and code frame colouring information, the colouring information of code eye colouring information.
For code-point, if no and background picture is overlapped at the position of code-point, so that the colouring information of code-point is step The code-point colouring information determined in rapid 102;In conventional black and white Quick Response Code, Quick Response Code background is white, the present embodiment Central Plains Originally it is that white grid can be filled with white, is also to be filled with the color for being different from code-point color, so that it is determined that its color is believed Breath;And then define the color of all grids in three-dimension code.For code-point, if at the position of code-point and background picture weight Close, then the color of the code-point overlapped is the color of background picture, so as to remodify code-point colouring information for background picture Colouring information.
According to the above, it may be determined that go out the colouring information of each grid of three-dimension code, colouring information include with respectively The corresponding color threshold range of grid, and color value corresponding with each grid.So as to the position of each grid of three-dimension code Mark, and colouring information corresponding with the station location marker of each grid, constitute the color coding schedule of three-dimension code.
Step 105, according to shape cover be, determine the shape coding table of three-dimension code.
In the present embodiment, specifically, it is to determine the side of each in three-dimension code to be covered according to the shape selected in step 102 The shape of lattice.Due to having determined that code-point shape information, code frame shape information, code eye shape information in step 102, select The shape of code-point, code frame and code eye is determined, so as to determine shapes values corresponding with each grid according to selected shape.From And the station location marker of each grid of three-dimension code, and shapes values corresponding with the station location marker of each grid, constitute three Tie up the shape coding table of code.
Step 106, according to three-dimension code matrix, color coding schedule and shape coding table, determine each of three-dimension code matrix The code value of grid, to generate the coding information of three-dimension code, wherein, code value includes position code value, color code value and shape code value.
In the present embodiment, specifically, three-dimension code is made up of the grid of matrix exponent number.It can be determined according in step 104 Color coding schedule, in each grid of three-dimension code filling corresponding with the station location marker of each grid colouring information is characterized Color;According in the shape coding table determined in step 105, shapes values corresponding with the station location marker of each grid are adjusted The shape of each grid of whole three-dimension code.Meanwhile, the code value of each grid can be determined, the code value of each grid with it is each The station location marker of individual grid is corresponding, wherein, code value includes position code value, color code value and shape code value.The three of three-dimension code The code value of each grid in code matrix is tieed up, the coding information of three-dimension code is constituted, so as to generate three-dimension code.
The present embodiment data message to be encoded by obtaining, and obtain background picture;Determine three-dimension code matrix exponent number, Color set system and shape cover system, wherein, color set system includes code-point colouring information, code frame colouring information, code eye colouring information, shape Shape set system includes code-point shape information, code frame shape information, code eye shape information;According to matrix exponent number, color set system, it is to be encoded Data message, determine the three-dimension code matrix of three-dimension code, wherein, three-dimension code matrix is made up of grid;According to color set system, background The colouring information of picture, determines the color coding schedule of three-dimension code;Covered according to shape is to determine the shape coding table of three-dimension code;Root According to three-dimension code matrix, color coding schedule and shape coding table, the code value of each grid of three-dimension code matrix is determined, to generate three Tie up the coding information of code.So as to generate a kind of colored three-dimension code with background picture, while each grid tool of three-dimension code There is default shape.By the background picture of acquisition, and the color set system determined, it is comprehensive to determine each grid in three-dimension code Colouring information, the color of three-dimension code is filled according to comprehensive determination colouring information;Covered according to the color of selection is to determine three-dimension code In each grid shape;The coding information of the three-dimension code of generation, constitutes three-dimension code, so that there is three-dimension code coding to believe Breath, while three-dimension code has the information of background picture, is easy to user intuitively to observe the information of three-dimension code, user can obtain The information that three-dimension code is characterized, at the same can obtain information in three-dimension code in background picture there is provided three-dimension code have it is more Information.
Fig. 2 is the flow chart for the three-dimensional code encoding method that the embodiment of the present invention two is provided, on the basis of embodiment one, such as Shown in Fig. 2, the method for the present embodiment:
After step 101, in addition to:
Step 201, the size for adjusting background picture.
In the present embodiment, specifically, voluntarily have input background picture in user, and get a background picture it Afterwards, user can manually adjust the size of background picture, or the size for adjusting background picture of system voluntarily, make Background picture only occupy three-dimension code center section sub-fraction position.There is image information or word on background picture Information, and background picture can be characterized with colouring information.
Step 103 includes:
Step 1031, the first recognizable code according to matrix exponent number generation sign matrix exponent number, and according to the life of color set system Into the second recognizable code for characterizing color set system.
In the present embodiment, specifically, after user have selected matrix exponent number, one first can be generated and be can recognize that Code, the first recognizable code characterizes matrix exponent number.For example, matrix exponent number is 16*16, then can generate one first can know The matrix exponent number that other code is used to characterize current three-dimension code is 16*16.
User is determined after code-point colouring information, code frame colouring information and code eye colouring information, may thereby determine that The color set system of three-dimension code, can generate second recognizable code, the second recognizable code characterizes the color set of three-dimension code System.
Step 1032, according to matrix exponent number and data message to be encoded, determine the number of squares and valid data of three-dimension code Position.
In the present embodiment, specifically, according to the matrix exponent number of determination, it may be determined that the number of squares of three-dimension code;According to square Order of matrix number and data message to be encoded, it may be determined that the valid data position of three-dimension code.Specifically, if selection matrix exponent number For 16*16, it is determined that the number of squares of three-dimension code is 16*16;According to data message to be encoded, it may be determined that go out data message Position in a matrix, so that it is determined that going out valid data position, the information on these positions is terminal scanning available information.
Also, data message to be encoded can be website information, pictorial information, text information, digital information, letter letter Any one in breath.
Step 1033, according to number of squares and valid data position, the first recognizable code, the second recognizable code, it is determined that three-dimensional The three-dimension code matrix of code.
In the present embodiment, specifically, the size of the three-dimension code matrix of three-dimension code can be determined according to grid data;According to Valid data position, determines to be data message to be encoded on the grid in three-dimension code matrix at which position.Then integrate again First recognizable code, the second recognizable code, it may be determined that the three-dimension code matrix of three-dimension code.
Step 106 includes:
Step 1061, according to three-dimension code matrix, determine the position code value of each grid in three-dimension code matrix.
In the present embodiment, specifically, according to the three-dimension code matrix determined in step 1033, it may be determined that go out three-dimension code square The position code value of each grid in battle array, wherein includes the positional value of grid and the data message of grid on the code value of position Value.
Step 1062, according to color coding schedule, determine the color code value of each grid in three-dimension code matrix.
In the present embodiment, specifically, can be calculated according to the color coding schedule of the three-dimension code determined in step 104 Go out the color code value of each grid in three-dimension code matrix.For example, the color of code-point is set as green, and the color of code frame is Huang Color, the color of code eye is red, it may be determined that the color of the grid gone out between yard frame and code eye is different from yellow, red face Color, can be blueness or white;The color of the grid adjacent with code-point can be with black or white;Face on grid where background picture Color is exactly the color of background picture;So that it is determined that going out the color of each grid in three-dimension code matrix, and then determine three-dimension code Color coding schedule, then can calculate the color code of each grid according to the color of each grid in three-dimension code matrix Value, color code value can be indicated with the value of rgb color pattern, can also be indicated with the value of HSV color modes.
Step 1063, according to shape coding table, determine the shape code value of each grid in three-dimension code matrix.
In the present embodiment, specifically, can be according to the shape coding table determined in step 105, to determine three-dimension code square The shape code value of each grid in battle array.For example, setting code-point is shaped as square, and code frame is shaped as circle, code eye Heart is shaped as, shapes values corresponding with the station location marker of each grid are may thereby determine that, and then form shape coding table; Then, it is determined that going out the shape code value of each grid, shape code value is shape code value corresponding with each grid position, the shape of code-point Shape code value can be 1, code frame shape code value can be 2, code eye shape code value can be 3.
Step 1064, according to the position code value of each grid, color code value, shape code value in three-dimension code matrix, generation three Tie up the coding information of code.
In the present embodiment, can be with specifically, comprehensive position code value, color code value, shape code value according to each grid The coding information of each grid of three-dimension code is determined, and then constitutes the coding information of three-dimension code, so as to generate three-dimension code.
The present embodiment can cause the size of background picture to be given birth to suitable for the present embodiment by adjusting the size of background picture Into three-dimension code;According to matrix exponent number, color set system, data message to be encoded, it may be determined that go out in three-dimension code matrix can Identification code;Comprehensively utilize three-dimension code matrix, the color coding schedule that color set system generates with background picture, the shape of shape set system generation Shape coding schedule, it may be determined that go out the code value of each grid in three-dimension code matrix.So as to generate a kind of colour with background picture Three-dimension code, while each grid of three-dimension code has default shape.By the background picture of acquisition, and the color determined System is covered, the comprehensive colouring information for determining each grid in three-dimension code fills the face of three-dimension code according to comprehensive determination colouring information Color;Covered according to the color of selection is to determine the shape of each grid in three-dimension code;The coding information of the three-dimension code of generation, structure Into three-dimension code, so that three-dimension code has coding information, while three-dimension code has the information of background picture, it is easy to user intuitively It was observed that the information of three-dimension code, user can obtain the information of three-dimension code sign, while background picture in three-dimension code can be obtained In information there is provided three-dimension code there are more information.
Fig. 3 is the structural representation for the three-dimension code coded system that the embodiment of the present invention three is provided, as shown in figure 3, this implementation The three-dimension code coded system that example is provided, including:
Acquisition module 31, the data message to be encoded for obtaining, and obtain background picture;
Information determination module 32, matrix exponent number, color set system and shape set system for determining three-dimension code, wherein, color Set system includes code-point colouring information, code frame colouring information, code eye colouring information, and shape set system includes code-point shape information, code frame Shape information, code eye shape information;
Matrix deciding module 33, for according to matrix exponent number, color set system, data message to be encoded, determining three-dimension code Three-dimension code matrix, wherein, three-dimension code matrix is made up of grid;
Color determining module 34, for the colouring information according to color set system, background picture, determines that the color of three-dimension code is compiled Code table;
Shape determination module 35, is to determine the shape coding table of three-dimension code for being covered according to shape;
Generation module 36, for according to three-dimension code matrix, color coding schedule and shape coding table, determining three-dimension code matrix Each grid code value, to generate the coding information of three-dimension code, wherein, code value include position code value, color code value and shape Code value.
The three-dimension code coded system of the present embodiment can perform the three-dimensional code encoding method that the embodiment of the present invention one is provided, in fact Existing principle is similar, and here is omitted.
The present embodiment data message to be encoded by obtaining, and obtain background picture;Determine three-dimension code matrix exponent number, Color set system and shape cover system, wherein, color set system includes code-point colouring information, code frame colouring information, code eye colouring information, shape Shape set system includes code-point shape information, code frame shape information, code eye shape information;According to matrix exponent number, color set system, it is to be encoded Data message, determine the three-dimension code matrix of three-dimension code, wherein, three-dimension code matrix is made up of grid;According to color set system, background The colouring information of picture, determines the color coding schedule of three-dimension code;Covered according to shape is to determine the shape coding table of three-dimension code;Root According to three-dimension code matrix, color coding schedule and shape coding table, the code value of each grid of three-dimension code matrix is determined, to generate three Tie up the coding information of code.So as to generate a kind of colored three-dimension code with background picture, while each grid tool of three-dimension code There is default shape.By the background picture of acquisition, and the color set system determined, it is comprehensive to determine each grid in three-dimension code Colouring information, the color of three-dimension code is filled according to comprehensive determination colouring information;Covered according to the color of selection is to determine three-dimension code In each grid shape;The coding information of the three-dimension code of generation, constitutes three-dimension code, so that there is three-dimension code coding to believe Breath, while three-dimension code has the information of background picture, is easy to user intuitively to observe the information of three-dimension code, user can obtain The information that three-dimension code is characterized, at the same can obtain information in three-dimension code in background picture there is provided three-dimension code have it is more Information.
Fig. 4 is the structural representation for the three-dimension code coded system that the embodiment of the present invention four is provided, on the basis of embodiment three On, as shown in figure 4, the three-dimension code coded system that the present embodiment is provided, in addition to:
Adjusting module 41, after obtaining background picture in acquisition module 31, adjusts the size of background picture.
Matrix deciding module 33, specifically for:
The first recognizable code for characterizing matrix exponent number is generated according to matrix exponent number, and color is characterized according to the generation of color set system Cover the second recognizable code of system;
According to matrix exponent number and data message to be encoded, number of squares and the valid data position of three-dimension code are determined;
According to number of squares and valid data position, the first recognizable code, the second recognizable code, the three-dimension code of three-dimension code is determined Matrix.
Generation module 36, specifically for:
According to three-dimension code matrix, the position code value of each grid in three-dimension code matrix is determined;
According to color coding schedule, the color code value of each grid in three-dimension code matrix is determined;
According to shape coding table, the shape code value of each grid in three-dimension code matrix is determined;
According to the position code value of each grid, color code value, shape code value in three-dimension code matrix, the coding of three-dimension code is generated Information.
The three-dimension code coded system of the present embodiment can perform the three-dimensional code encoding method that the embodiment of the present invention two is provided, in fact Existing principle is similar, and here is omitted.
The present embodiment, by adjusting the size of background picture, can be that the size of background picture is generated suitable for the present embodiment Three-dimension code;According to matrix exponent number, color set system, data message to be encoded, it may be determined that go out knowing in three-dimension code matrix Other code;Comprehensively utilize three-dimension code matrix, the color coding schedule that color set system generates with background picture, the shape of shape set system generation Coding schedule, it may be determined that go out the code value of each grid in three-dimension code matrix.It is a kind of colored with background picture so as to generate Three-dimension code, while each grid of three-dimension code has default shape.By the background picture of acquisition, and the color set determined System, the comprehensive colouring information for determining each grid in three-dimension code fills the color of three-dimension code according to comprehensive determination colouring information; Covered according to the color of selection is to determine the shape of each grid in three-dimension code;The coding information of the three-dimension code of generation, is constituted Three-dimension code, so that three-dimension code has coding information, while three-dimension code has the information of background picture, is easy to user intuitively to observe To the information of three-dimension code, user can obtain the information of three-dimension code sign, while can obtain in three-dimension code in background picture Information there is provided three-dimension code there are more information.
One of ordinary skill in the art will appreciate that:Realizing all or part of step of above-mentioned each method embodiment can lead to The related hardware of programmed instruction is crossed to complete.Foregoing program can be stored in a computer read/write memory medium.The journey Sequence upon execution, performs the step of including above-mentioned each method embodiment;And foregoing storage medium includes:ROM, RAM, magnetic disc or Person's CD etc. is various can be with the medium of store program codes.
Finally it should be noted that:The above embodiments are merely illustrative of the technical solutions of the present invention, rather than its limitations;Although The present invention is described in detail with reference to the foregoing embodiments, it will be understood by those within the art that:It still may be used To be modified to the technical scheme described in foregoing embodiments, or equivalent substitution is carried out to which part technical characteristic; And these modification or replace, do not make appropriate technical solution essence depart from various embodiments of the present invention technical scheme spirit and Scope.

Claims (9)

1. a kind of three-dimensional code encoding method, it is characterised in that including:
Data message to be encoded is obtained, and obtains background picture;
Matrix exponent number, color set system and the shape set system of three-dimension code are determined, wherein, the color set system includes code-point color letter Breath, code frame colouring information and code eye colouring information, the code frame is three larger frames in three-dimension code, and the code eye is described Code-point in code frame, the code-point is the color point in three-dimension code;The shape set system includes code-point shape information, code frame shape Information and code eye shape information;
According to the matrix exponent number, color set system and the data message to be encoded, the three-dimension code square of three-dimension code is determined Battle array, wherein, the three-dimension code matrix is made up of grid;
The colouring information of system and the background picture is covered according to the color, the color coding schedule of three-dimension code is determined;
Covered according to the shape and be, set the code-point is shaped as square, and the code frame is shaped as circle, the code eye Heart is shaped as, to determine shapes values corresponding with the station location marker of each grid, the shape coding of three-dimension code is determined Table;
According to the three-dimension code matrix, the color coding schedule and the shape coding table, each of three-dimension code matrix is determined The code value of grid, to generate the coding information of three-dimension code, wherein, the code value includes position code value, color code value and shape code Value;
Wherein, the colouring information that system and the background picture are covered according to the color, determines the color coding schedule of three-dimension code, Including:
If without being overlapped with the background picture at the position of the code frame, the colouring information of the code frame is the color set Code frame colouring information in system, the colouring information of the code eye covers the code eye colouring information in system, the code frame for the color The color at position between code eye is the color for being different from the code frame colouring information and code eye colouring information;
If being overlapped at the position of the code frame with the background picture, the color of the colouring information of the code frame and code eye Information is the colouring information of the background picture overlapping position, and the color at position between code frame and the code eye is area Not in the color of the code frame colouring information and code eye colouring information;
If without being overlapped with the background picture at the position of the code-point, the colouring information of the code-point is the color set Code-point colouring information in system;
If being overlapped at the position of the code-point with the background picture, the color of the code-point overlapped is the back of the body at coincidence The color of scape picture.
2. according to the method described in claim 1, it is characterised in that after the acquisition background picture, in addition to:
Adjust the size of the background picture.
3. according to the method described in claim 1, it is characterised in that it is described according to the matrix exponent number, color set system and The data message to be encoded, determines the three-dimension code matrix of three-dimension code, including:
The first recognizable code for characterizing the matrix exponent number is generated according to the matrix exponent number, and according to the generation of color set system Characterize the second recognizable code of the color set system;
According to the matrix exponent number and the data message to be encoded, number of squares and the valid data position of three-dimension code are determined;
According to the number of squares and valid data position, first recognizable code and second recognizable code, it is determined that three-dimensional The three-dimension code matrix of code.
4. the method according to claim any one of 1-3, it is characterised in that it is described according to the three-dimension code matrix, it is described Color coding schedule and the shape coding table, determine the code value of each grid of three-dimension code matrix, to generate the volume of three-dimension code Code information, including:
According to the three-dimension code matrix, the position code value of each grid in the three-dimension code matrix is determined;
According to the color coding schedule, the color code value of each grid in the three-dimension code matrix is determined;
According to the shape coding table, the shape code value of each grid in the three-dimension code matrix is determined;
According to the position code value of each grid, color code value and shape code value in the three-dimension code matrix, the volume of three-dimension code is generated Code information.
5. the method according to claim any one of 1-3, it is characterised in that the data message to be encoded, including with Any one in lower information:
Website information, pictorial information, text information, digital information and alphabetical information.
6. a kind of three-dimension code coded system, it is characterised in that including:
Acquisition module, the data message to be encoded for obtaining, and obtain background picture;
Information determination module, matrix exponent number and color set system and shape set system for determining three-dimension code, wherein, the color set System includes code-point colouring information, code frame colouring information, code eye colouring information, and the code frame is three in three-dimension code larger Frame, the code eye is the code-point in the code frame, and the code-point is the color point in three-dimension code;The shape set system includes code-point Shape information, code frame shape information and code eye shape information;
Matrix deciding module, for being and the data message to be encoded according to the matrix exponent number, color set, it is determined that The three-dimension code matrix of three-dimension code, wherein, the three-dimension code matrix is made up of grid;
Color determining module, the colouring information for covering system and the background picture according to the color, determines the color of three-dimension code Color coding schedule;
Shape determination module, is that set the code-point is shaped as square, the shape of the code frame for being covered according to the shape For circle, the code eye is shaped as heart, to determine shapes values corresponding with the station location marker of each grid, it is determined that The shape coding table of three-dimension code;
Generation module, for according to the three-dimension code matrix, the color coding schedule and the shape coding table, it is determined that three-dimensional The code value of each grid of code matrix, to generate the coding information of three-dimension code, wherein, the code value includes position code value, color Code value and shape code value;
Wherein, the colouring information that system and the background picture are covered according to the color, determines the color coding schedule of three-dimension code, Including:
If without being overlapped with the background picture at the position of the code frame, the colouring information of the code frame is the color set Code frame colouring information in system, the colouring information of the code eye covers the code eye colouring information in system, the code frame for the color The color at position between code eye is the color for being different from the code frame colouring information and code eye colouring information;
If being overlapped at the position of the code frame with the background picture, the color of the colouring information of the code frame and code eye Information is the colouring information of the background picture overlapping position, and the color at position between code frame and the code eye is area Not in the color of the code frame colouring information and code eye colouring information;
If without being overlapped with the background picture at the position of the code-point, the colouring information of the code-point is the color set Code-point colouring information in system;
If being overlapped at the position of the code-point with the background picture, the color of the code-point overlapped is the back of the body at coincidence The color of scape picture.
7. system according to claim 6, it is characterised in that also include:
Adjusting module, after obtaining background picture in the acquisition module, adjusts the size of the background picture.
8. system according to claim 6, it is characterised in that the matrix deciding module, specifically for:
The first recognizable code for characterizing the matrix exponent number is generated according to the matrix exponent number, and according to the generation of color set system Characterize the second recognizable code of the color set system;
According to the matrix exponent number and the data message to be encoded, number of squares and the valid data position of three-dimension code are determined;
According to the number of squares and valid data position, first recognizable code and second recognizable code, it is determined that three-dimensional The three-dimension code matrix of code.
9. the system according to claim any one of 6-8, it is characterised in that the generation module, specifically for:
According to the three-dimension code matrix, the position code value of each grid in the three-dimension code matrix is determined;
According to the color coding schedule, the color code value of each grid in the three-dimension code matrix is determined;
According to the shape coding table, the shape code value of each grid in the three-dimension code matrix is determined;
According to the position code value of each grid, color code value and shape code value in the three-dimension code matrix, the volume of three-dimension code is generated Code information.
CN201610080300.4A 2016-02-04 2016-02-04 three-dimensional code encoding method and system Active CN105760917B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610080300.4A CN105760917B (en) 2016-02-04 2016-02-04 three-dimensional code encoding method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610080300.4A CN105760917B (en) 2016-02-04 2016-02-04 three-dimensional code encoding method and system

Publications (2)

Publication Number Publication Date
CN105760917A CN105760917A (en) 2016-07-13
CN105760917B true CN105760917B (en) 2017-10-13

Family

ID=56330604

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610080300.4A Active CN105760917B (en) 2016-02-04 2016-02-04 three-dimensional code encoding method and system

Country Status (1)

Country Link
CN (1) CN105760917B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108960383B (en) * 2018-05-21 2021-07-06 陈绳旭 Three-dimensional code intelligent license plate
CN109325570B (en) * 2018-09-18 2022-03-15 苏州广立信息技术有限公司 Method for generating lattice three-dimensional code intelligent doorplate
CN110942126B (en) * 2019-11-08 2020-09-18 广州追溯信息科技有限公司 Method for generating star array three-dimensional code
CN112364963B (en) * 2020-10-19 2022-11-15 三维码(厦门)网络科技有限公司 Three-dimensional code generation method and equipment for enhancing visual effect
CN112825148A (en) * 2020-12-01 2021-05-21 姜琳 Color three-dimensional code

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104463294B (en) * 2013-09-23 2017-12-12 北大方正集团有限公司 Color three dimension code generating method and system, analytic method and system and label
CN105117760B (en) * 2015-09-15 2018-04-27 牛建伟 A kind of method that Quick Response Code is merged to generation color image Quick Response Code with color image

Also Published As

Publication number Publication date
CN105760917A (en) 2016-07-13

Similar Documents

Publication Publication Date Title
CN105760917B (en) three-dimensional code encoding method and system
CN105447546B (en) The two dimensional code and its coding and decoding methods and equipment of embeddable large scale figure
EP2555138A1 (en) Two-dimensional code with a logo, device for generating a two-dimensional code with a logo, method for generating a two-dimensional code with a logo, and program
US8194070B2 (en) System and method of converting edge record based graphics to polygon based graphics
CN105844681A (en) Thermodynamic diagram drawing method and apparatus
CN109429519A (en) System and method for verifying the authenticity of certificate photograph
CN104657768A (en) Colorful three-dimensional code structure and colorful three-dimensional code reading method
CN104657698A (en) Method for encoding and decoding colored two-dimensional code capable of bearing multiple black and white two-dimensional codes
CN105989317A (en) Identification method of two-dimensional code and apparatus thereof
CN106022430A (en) Method and device for generating, recognizing and reading synthetic-type color two-dimensional diagram code
JP4969403B2 (en) Two-dimensional code with logo
CN106919966A (en) Taking care of books method and colored rectangles code label based on colored rectangles code
CN105894071B (en) Quick Response Code mixes generation method
CN106156820A (en) two-dimensional code generation method and device
CA3045391C (en) Method for detection and recognition of long-range high-density visual markers
CN104899629B (en) A kind of image in 2 D code generation method based on RBF
CN105894070B (en) A kind of two dimension code encoding method and device
CN106355592A (en) Educational toy suite and its circuit elements and electric wires identifying method thereof
CN105787541B (en) four-dimensional code encoding method and system
CN110399760A (en) A kind of batch two dimensional code localization method, device, electronic equipment and storage medium
CN110427792A (en) A kind of recognition matching process blocking two dimensional code and its application
CN109408177A (en) Method and device for configuring color of characters in picture and electronic equipment
CN110020702A (en) A kind of two dimensional code and its generation method
CN110033515A (en) Figure conversion method, device, computer equipment and storage medium
CN107292369A (en) The generation method and device of identification code

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant