CN110276428A - A kind of four-dimension code encoding and decoding method - Google Patents
A kind of four-dimension code encoding and decoding method Download PDFInfo
- Publication number
- CN110276428A CN110276428A CN201910486916.5A CN201910486916A CN110276428A CN 110276428 A CN110276428 A CN 110276428A CN 201910486916 A CN201910486916 A CN 201910486916A CN 110276428 A CN110276428 A CN 110276428A
- Authority
- CN
- China
- Prior art keywords
- data
- dimensional
- image
- code
- module
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06K—GRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
- G06K19/00—Record carriers for use with machines and with at least a part designed to carry digital markings
- G06K19/06—Record 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/06009—Record 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/06037—Record 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
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06K—GRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
- G06K7/00—Methods or arrangements for sensing record carriers, e.g. for reading patterns
- G06K7/10—Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation
- G06K7/14—Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation using light without selection of wavelength, e.g. sensing reflected white light
- G06K7/1404—Methods for optical code recognition
- G06K7/1408—Methods for optical code recognition the method being specifically adapted for the type of code
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, Expansion, Code Conversion, And Decoders (AREA)
Abstract
The present invention relates to a kind of four-dimensional code encoding and decoding methods, 11) coding method is the following steps are included: obtain information data to be encoded;12) information data to be encoded is divided into multiple data to be encoded sections;13) each data to be encoded section is converted into marker bit module and data to be encoded root module, and generates the two-dimensional matrix module and three-dimensional color module of data to be encoded section;14) three-dimension code coding is carried out according to the two-dimensional matrix module of each data to be encoded section and three-dimensional color module and generates a frame three-dimension code coded image, and be converted picture format;15) the 3-dimensional encoding image group that dynamic play is shown can be recycled by the three-dimension code coded image of whole format transformations being integrated boil down to, i.e., four-dimensional code coded image.Compared with prior art, the present invention have many advantages, such as to expand information capacity, not against network, error correcting capability is strong, time dimension extension, applicability are wide.
Description
Technical field
The present invention relates to information coding fields, more particularly, to a kind of four-dimensional code encoding and decoding method.
Background technique
In the epoch of science and technology and informationization rapid development, information-based and intelligent life has become current social development
Common trend.Development with information coding technique and invention and development to planar bar code technology, planar bar code technology have been used as one
Kind completely new information storage, transmitting and identification technology have received the concern of many national scientific research personnel in the world and have widely answered
In current daily life, including acquisition of information, website jump, the functions such as advertisement pushing, military to economy,
National security and people's daily life produce significant impact.
Planar bar code technology dexterously utilizes " 0 ", " 1 " bit stream for constituting computer-internal logical foundations in code compilation
Concept, indicate text numerical information using several geometrical bodies corresponding with binary system, pass through image input device
Or photoelectric scanning device automatically identifying and reading is to realize automatic processing of information.Two dimensional code is a kind of bar code lattice more more advanced than one-dimension code
Formula.One-dimension code (can only generally be horizontally oriented) expressing information in one direction, and two dimensional code is both horizontally and vertically all
It can store information.One-dimension code can only be made of numeral and letter, and two dimensional code can store the information such as Chinese character, number and picture,
Therefore the application field of two dimensional code wants much broader.
However in prior art scope, the coding mode of two dimensional code is limited for the code capacity of information, is not able to satisfy
The part of people needs, and must just can be carried out data exchange under the premise of networking.
Summary of the invention
It is an object of the present invention to overcome the above-mentioned drawbacks of the prior art and provide a kind of four-dimensional code coding and
Coding/decoding method.
The purpose of the present invention can be achieved through the following technical solutions:
A kind of four-dimension code encoding method, which includes two-dimensional surface, color and time four dimensions, including following
Step:
11) information data to be encoded is obtained;
12) information data to be encoded is divided into multiple data to be encoded sections, the amount of capacity of each data to be encoded section
It is equal with the capacity of a frame three-dimension code coded image;
13) each data to be encoded section is converted into marker bit module and data to be encoded root module, and generated to be encoded
The two-dimensional matrix module and three-dimensional color module of data segment;
14) three-dimension code coding is carried out according to the two-dimensional matrix module of each data to be encoded section and three-dimensional color module to generate
One frame three-dimension code coded image, and it is converted picture format;
15) three-dimensional that dynamic play is shown can be recycled by the three-dimension code coded image of whole format transformations being integrated boil down to
Coded image group, i.e., four-dimensional code coded image, is finally completed four dimension coding.
The information data to be encoded includes video data, audio data, image data and lteral data, Yong Hugen
According to different situations and different demands, the information for needing to carry out information coding can be carried out to coding and data exchange.
After obtaining data to be encoded information, data to be encoded information obtained is split, several letters are obtained
The proper data to be encoded section that can be accommodated by a frame three-dimension code coded image for ceasing amount of capacity, determines life after each data segment coding
At marker bit module and data to be encoded root module obtained to be encoded according to marker bit module and data to be encoded root module
The two-dimensional matrix module and three-dimensional color module of data segment.
In the step 13),
Marker bit module is to determine the encoded rear each frame three-dimension code code pattern generated of each data to be encoded section
The mark bit sequence number of picture, i.e., be marked since first data to be encoded section, if mark is completed in the data to be encoded section
Note is then in order marked next data to be encoded section, until all data segments complete to mark, finally obtain by
The data to be encoded section sequentially marked;
Data segment module, the original text part including each data to be encoded section, i.e., for storing and encoding data to be encoded
Information.
The data module of all data segments for being labeled and having generated ordered sequence number is obtained, acquisition, which has, to be labeled and produced
The data module of the data segment of ordered sequence number is given birth to, then each data segment and the marker bit module comprising indicating ordinal relation therebetween
Sequence number and data information segment comprising the former data to be encoded information in part.
Four-dimensional code coding is carried out to the data segment of each marker bit module and data module obtained, i.e., includes by each
The marker bit module of labeled sequence number and the data module containing data information transform into each frame module containing two-dimensional matrix
With the 3-D image of three-dimensional color module, user can select specific order according to different needs, can carry out four according to required
The size of the data information capacity of the data to be encoded of dimension code coding selects different matrix orders.
The three-dimension code coding specifically:
It is generated after being identified using different colors to the code block in two dimensional code on the basis of two dimensional code coding three-dimensional
Code coded image, three-dimensional color module indicate that different data are encoded using different colors, by utilizing different code blocks
Color representated by different code value data data information is encoded, each frame three-dimension code coded image includes original band
Coded data segment data information and the sequence number for representing the frame image sequence.
Each frame three-dimension code coded image is converted into GIF picture format, and by the three-dimension code code pattern of all GIF formats
As integration, compression and recombination.
A kind of four-dimension code coding/decoding method, comprising the following steps:
21) four-dimensional code coded image is obtained;
22) each frame image in the 3-dimensional encoding image group under GIF format is read respectively, obtains the mark in every frame image
The mark bit sequence number of will position module and data module for storing encoded digital information;
23) two-dimensional matrix and three-dimensional color matrix of every frame image are read in scanning, obtain every frame image according to matrix information
Color code value and data code value, to obtain the coded data of the frame image;
24) recombination is ranked up according to the coded data of every frame image, obtains one and orderly contains multiple coded datas
Data segment, the data segment be encode before original information to be encoded, complete decoding.
In the step 22), read from first data image through 3-dimensional encoding to last one through 3-dimensional encoding
Data image between all data images sequence number, if including first image sequence number and the last one figure
The sequence number of picture then proves that four-dimensional code coded image is read successfully, if the intermediate sequence number for having marker bit module of discovery lacks, i.e.,
When cannot read the sequence number of all modules, then continue to read each frame image in the 3-dimensional encoding image group under GIF format,
Until being read successfully to all four-dimensional code coded image marker bit module sequence numbers.
When reading the coded image in the 3-dimensional encoding image group under each frame GIF format, while reading coded image
Data module, if successfully completing the reading and detection of the marker bit module to each frame image, read data module
The as module of storing data information.
The coded image in 3-dimensional encoding image group under every frame GIF format includes encoding through three-dimension code coding mode
The two dimensional code matrix module image of different data coding is shown by color module, wherein in the three-dimension code coding mode
Color module includes the data information that different data coding is indicated using different colours, three-dimensional according to every frame in decoding process
The color of each code block numerical value corresponding in code table, obtains the color code value of each code block, according to two in code coded image
Code matrix module image is tieed up, the corresponding two dimensional code matrix module of every frame image is read, is corresponded to according to two dimensional code matrix module
The data code value of image.
In the step 24), according to the sequence of the logos bit sequence number of every frame 3-dimensional encoding image, by what is obtained
All 3-dimensional encoding image coded data sections generated are ranked up recombination, obtain one and orderly contain multiple coded datas
Data segment, by requiring data segment to be ranked up recombination by stringent sequence, to guarantee the integrality and correctness of data,
The encoded digital information of correct most original can finally be obtained.
Compared with prior art, the invention has the following advantages that
One, expand information capacity: the present invention is biggish on Spatial Dimension to expand data information capacity, holds comprising data
Amount is big, and encryption is good, and identification anti-counterfeit capability is strong.Compared with prior art, the present invention not only largely improves logarithm
It is believed that the code capacity of breath, and support of such mode independent of network, only relying on coding and decoding algorithm can be realized
The exchange of data is transmitted.
Two, not against network: due to four-dimensional code coding mode provided by the invention, can in the absence of a network,
By way of coding and decoding, data exchange carried out to the data of larger capacity, for example, can by scanning to four-dimensional code with
Reading directly acquires video, audio or picture information etc..
Three, error correcting capability is strong: the present invention provides a kind of one kind based on existing two dimensional code coding techniques to hold with information
Amount is bigger, error correction ability is stronger, using it is simple and safe and reliable the advantages that new coding mode, to meet user's
Related needs.
Four, time dimension extends: 3-dimensional encoding image group under the GIF format of recyclable dynamic play, according to acquisition to
The data information of coding content, in terms of difference, the number of several frame 3-dimensional encoding images generated at random is not yet
Identical, under the GIF format of the circulation encoded completion of dynamic play 3-dimensional encoding image group, that is, may be regarded as in time dimension
Extend the dimension of three-dimension code coding mode, the large range of information capacity improved to storing data.
Five, applicability is wide: because four-dimensional code coding mode provided by the present invention can largely improve the number of coding
According to capacity, user can will need the information for carrying out information coding to encode according to different situations and different demands is faced
And data exchange, user can convert video data to be encoded, audio data, image document, text and data information etc. to
Four dimension coding image.
Detailed description of the invention
Fig. 1 is the flow chart of the four-dimensional code encoding method of the present invention.
Fig. 2 is the flow chart of the four-dimensional code coding/decoding method of the present invention.
Specific embodiment
The present invention is described in detail with specific embodiment below in conjunction with the accompanying drawings.
Embodiment
As shown in Figure 1, coding method of the invention the following steps are included:
Step 01: reading data to be encoded information.
In step 01, user will can need to carry out information coding according to different situations and different demands is faced
Information carries out coding and data exchange.User can be by video data to be encoded, audio data, image document, text and data
Information etc. is converted into four dimension coding image.It, can be biggish in dimension due to four-dimensional code coding mode provided by the present invention
The four-dimensional code coding mode that extends the data information that existing image in 2 D code is stored, therefore can provide through the invention by our days
Often seen various information are converted into data information to be encoded, finally obtain the four dimension coding image that can accommodate all information.
Step 02: complete data to be encoded information is divided into several data to be encoded message segments.
In step 02, complete by conversion needed for user to be encoded is divided into several data to be encoded message segments.Its
In, each divided data to be encoded section information capacity size just can by a frame three-dimension code coded image accommodate
Data to be encoded section.Further, it may be regarded as splitting into original complete data to be encoded and several be stored in three-dimensional volume
The data to be encoded section of code image.
Step 03: each information data section to be encoded is converted into marker bit module and data module.
In step 03, marker bit module and data module two parts are converted by the data to be encoded section being split.
Wherein, marker bit module determines the mark of the encoded rear each frame three-dimension code coded image generated of each data to be encoded section
Bit sequence number is marked since first data to be encoded section, if label is completed in the data to be encoded section sequentially
Next data to be encoded section is marked, until all data segments complete to mark, finally obtain sequentially marked to
Coded data section, including the marker bit module comprising mark information and data to be encoded root module.Further, institute as above
That states is sequentially marked data to be encoded section, is to guarantee for all labeled data to be encoded sections to be reassembled into
The integrality and correctness of one complete data to be encoded.It, can if not coded and decoded by correct sequence rules
Lead to not correctly compile former information to be encoded, may cause in cataloged procedure and messy code occur or directly result in be unable to complete the four-dimension
Code cataloged procedure, therefore sequentially coding rule here is the sufficient and necessary condition for completing correct four-dimensional code coding.
In the present embodiment step 03, the data segment module, " original text " part including each data to be encoded section, i.e.,
For storing and encoding data information to be encoded, since four-dimensional code coding mode provided by the invention can theoretically provide nothing
Big memory space, therefore data to be encoded that can be different according to acquired in user demand are limited, video data, audio can be provided
The data information of the different-formats such as material, image document, text or letter carries out four-dimensional code coding, counts to primary data information (pdi)
According to coding and exchange.
Step 04: the marker bit module of each data segment being marked and generates corresponding sequence number
In step 04, wherein the process that the marker bit module of each data segment is marked in the present embodiment step
Specific step is identical in 03.Further, and to the marker bit module of all data to be encoded sections its correspondence is sequentially generated
Sequence number, wherein sequence number is as identifying between all data to be encoded sections the mutually unique identification information of sequence.It is decoding
In the process, according to the sequence of the corresponding sequence number of marker bit module, by all data to be encoded sections for accommodating encoded digital information
It sequentially recombinates, can just obtain complete, correct original information to be encoded.
Step 05: obtaining the data module of all data segments for being labeled and having generated ordered sequence number.
In step 05, specifically, obtaining the data module for having the data segment for being labeled and having generated ordered sequence number, then
Each data segment and comprising indicating the sequence number of the marker bit module of ordinal relation therebetween and including the former data to be encoded letter in part
The data information segment of breath.
Step 06: four-dimensional code coding is carried out to each data module obtained.
In step 06, specifically, to having been subjected to label and generating each data to be encoded section of corresponding marker bit module
Carry out four-dimensional code coding.Wherein, four-dimensional code coding is carried out to the data segment of each marker bit module and data module obtained.Into
One step, four-dimensional code coding carried out to data to be encoded section, i.e., by each include labeled sequence number marker bit module and
Data module containing data information transforms into 3-D image of each frame containing dimensional matrix data and three-dimensional color data.Tool
Body, user can select specific order according to different needs, can be according to the required data to be encoded for carrying out four-dimensional code coding
The size of data information capacity select different matrix orders.
Step 07: according to the marker bit module and data module of each data segment, generating two-dimensional matrix module and three-dimensional face
Color module generates every frame 3-dimensional encoding image.
It in step 07, specifically includes, each is included the marker bit module of labeled sequence number and believes containing data
Each data to be encoded section of the data module of breath, transforms into three of each frame containing dimensional matrix data and three-dimensional color data
Tie up image.Wherein, dimensional matrix data module is to be converted to specific data information using the prior art to be compiled with code table images
The data information that code indicates, i.e. our usually said planar bar code technologies;Three-dimensional color data module is to utilize different colors
It indicates that different data are encoded, further, passes through code value data pair different representated by the color using different code blocks
Data information is encoded.By generating two-dimensional matrix module and three-dimensional color module, 3-dimensional encoding image is generated.
In step 07, further, i.e., by treating encoded digital information on the basis of two dimensional code coding implementation
On, further indicate that different data are encoded using different colors, representated by this color using different code blocks
It is referred to as three-dimension code coding mode in the four-dimensional code cataloged procedure of the coding mode of different code values in the present invention.According to described
Three-dimensional color data module may be regarded as: two dimensional code matrix data module is generated in plane, i.e., to any number of plane
It can be indicated by x-axis, y-axis according to parameter.The introduced color module of three-dimensional color data module, by indicating not different colours
With data encoded, may be regarded as on the basis of the two-dimensional surface code determined by x-axis with y-axis high general of introducing Z axis layer
It reads, to be expanded to three-dimensional by two dimension to original coding mode.
In step 07, further, being generated according to each data to be encoded segment data information includes its own sequence number
, the 3-dimensional encoding image of data to be encoded segment data information can be accommodated.Wherein 3-dimensional encoding image refers in image in 2 D code,
On the basis of indicating specific data to be encoded information with code lattice information, while different volumes is indicated using different code lattice colors
The information coding image of code data.Wherein, the three-dimension code coded image of each frame include original band coded data number of segment it is believed that
Breath, and represent the sequence number of the frame image sequence.
Step 08: converting the formats such as GIF for the generated 3-dimensional encoding image of several frames.
In step 08, specifically, each frame comprising original band coded data segment data information and is contained the frame figure
As the three-dimension code coded image of the sequence number of sequence is converted to GIF (Graphics Interchange Format) format.Into one
The original meaning of the GIF (Graphics Interchange Format) of step is " graphic interchange format ".The data of gif file are one
The nondestructive compression type of continuous tone of the kind based on lzw algorithm.For its compression ratio generally 50% or so, it is not belonging to any application
Program.GIF format can deposit several color images, if the multiple image data being stored in a file are read and shown by width
Show on screen, so that it may constitute a kind of simplest animation.
Step 09: by the 3-dimensional encoding image integration of several frame GIF formats, compression, recombination and Dynamically Announce.
In step 09, specifically, converting the lossless of continuous tone for the 3-dimensional encoding image of several frame GIF formats
The GIF format of compressed format, and by the three-dimension code coded image of all GIF formats integration, compression, recombination, and by several three-dimensional
Coded image recycles Dynamically Announce by width.
Step 10: generating the 3-dimensional encoding image group (i.e. four dimension coding image) comprising former data to be encoded information.
In the present embodiment step 09, specifically, by the 3-dimensional encoding figure of several GIF formats after integration, compression, recombination
Picture, generate one can frame by frame image cycle Dynamically Announce, may include the 3-dimensional encoding image of all former data to be encoded information
Group, i.e. four dimension coding image.Further, whole data to be encoded information is stored, the cataloged procedure of four-dimensional code is completed.
In the present embodiment step 09, further, compiled according to three-dimensional under the GIF format of the recyclable dynamic play
Code image group, according to the data information to be encoded of acquisition content, in terms of difference, several frames three generated at random
The number for tieing up coded image is not also identical, the 3-dimensional encoding image group under the GIF format of the circulation encoded completion of dynamic play,
It may be regarded as the dimension that three-dimension code coding mode is extended in time dimension, the large range of letter improved to storing data
Cease capacity.
As shown in Fig. 2, coding/decoding method of the invention the following steps are included:
Step 01: one 3-dimensional encoding image group (i.e. four dimension coding image) comprising former data to be encoded information of scanning.
In step 01, by image identification system scanning, one encoded through four-dimensional code is read comprising all originals to original
The three-dimension code coded image group of encoded digital information.Further by three of several GIF formats after integration, compression, recombination
Tie up coded image, generate one can frame by frame image cycle Dynamically Announce, may include the three-dimensional of all former data to be encoded information
Coded image group, i.e. four dimension coding image.Obtain four-dimensional code coded image, that is, obtain by four-dimensional code coding mode coding can
3-dimensional encoding image group under the GIF format of reading.
Step 02: scanning is read, the 3-dimensional encoding image of each frame GIF format of detection Dynamically Announce.
In step 02, be scanned, identified by image identification system, read, detect circulation dynamic play it is encoded
The image identification system of 3-dimensional encoding image group under the GIF format of completion, can be according to the three-dimension code code pattern of specific GIF format
The display frequency of piece group read by scanning.In addition, it is unlimited for having been subjected to the four dimension coding image that four-dimensional code coding is completed
Circulation display, therefore the 3-dimensional encoding image of the GIF format then encoded through four-dimensional code has permanent readability.
Step 03: reading, store the marker bit module and data module of each frame 3-dimensional encoding image.
It in step 03, specifically includes, is compiled reading and detecting the three-dimensional of all each frame GIF formats dynamically shown
When code image, readings is scanned to each frame 3-D image, and store the marker bit module of each frame 3-dimensional encoding image with
Data module.Wherein marker bit module determines the encoded rear each frame three-dimension code code pattern generated of each data to be encoded section
The mark bit sequence number of picture;Data segment module includes the data information of each frame 3-dimensional encoding image storage, i.e., each to be encoded
" original text " part of data segment.
In step 03, further, image identification system is swept the Sign module to each frame 3-dimensional encoding image
During retouching, while the data module of each frame image is read and being stored, is called in the present embodiment step 05.
Step 04: reading, detect the image sequence number of the marker bit module storage of each frame three-dimension code image.
It in step 04, specifically includes, reads respectively, store, detect every in the 3-dimensional encoding image group under GIF format
One frame image, the other sequence number to every frame image are read out and detect, if can read in reading detection process from first
Sequence number of the data image through 3-dimensional encoding to all data images between a last data image through 3-dimensional encoding
(reading result can be unordered), including first and the sequence number of the last one image, then illustrates four-dimensional code coded image
It reads successfully.If cannot read the sequence number of all modules it was found that the intermediate sequence number for having marker bit module lacks, then continue
Each frame image in the 3-dimensional encoding image group under GIF format is read, until to all four-dimensional code coded image flag bit moulds
Block sequence number is read successfully.
In step 04, further, due to the 3-dimensional encoding image of the GIF format of several four dimension codings, according to
Certain frequency carries out dynamic circulation one by one and shows, the Infinite Cyclic when process of display, therefore image identification system is to every
When one frame three-dimension code image is scanned and reads, the nothing of scanning reading either since which frame 3-dimensional encoding image is at first
It fastens and wants, as long as guaranteeing the 3-D image for having contained respectively specific marker bit module sequence number to each frame in an encoding process
It completes scanning and reads.In addition, if, since light condition is unstable, equipment, which is shown, is obstructed during the reading of scanning
Etc. a series of objective extraneous factors, prevent image identification system is from disposably successfully reading the three of the GIF format of all frames
Code image is tieed up, then image identification system continues scanning reading, until all three-dimension code coded images are read.
Step 05: if all image sequences number read the data module for successfully calling all 3-dimensional encoding images.
In step 05, specifically include, if to it is all be labeled read by the 3-dimensional encoding image of specific sequence number
Success is taken, further, all data modules for being read successful 3-dimensional encoding image are called.Wherein, to three-dimensional
The calling of the data module of image is to store up in scanning reading process in the present embodiment step 03 in image identification system
The data module for the every frame 3-D image deposited.
Step 06: obtaining the data module of all 3-dimensional encoding images, read the two-dimensional matrix module of each data module
With three-dimensional color module.
In step 06, including the coded image in the 3-dimensional encoding image group under a frame GIF format, every frame coding is read
The two-dimensional matrix module and three-dimensional color module of image.Wherein, dimensional matrix data module is to utilize the prior art will be specific
Data information is converted to the data information with code table images coded representation, i.e. our usually said planar bar code technologies;Three-dimensional face
Color data module is to indicate that different data are encoded using different colors, further, by utilizing different code blocks
Different code value data representated by color encode data information.By obtaining all 3 d image datas being read
Module, generation can indicate the corresponding two-dimensional matrix module and three-dimensional color mould comprising piginal encoded data information of every frame image
Block.
Step 07: three-dimensional color module is read, corresponding color code table obtains the corresponding different colours code value of different colours,
Obtain corresponding color code Value Data.
In step 07, according to the color module in the three-dimension code coding mode, including being indicated with different colors
The data information of different data coding, in decoding process, according to the color of each code block in each frame three-dimension code coded image
Corresponding numerical value, obtains the color code Value Data of each code block in code table.
In step 07, further, for the present embodiment step 07 and the present embodiment step 08, not in logic
Precedence relationship, for read three-dimensional matrice module and two-dimensional matrix module be while, decoded according to the coding rule of the two
To primary data information (pdi) included by each frame 3-dimensional encoding image.
Step 08: reading two-dimensional matrix module, obtain the corresponding different matrix data code values of different code lattice, obtain corresponding
Square matrix code Value Data.
In step 08, by image identification system, the corresponding two dimensional code matrix module of every frame image is read, according to two dimension
Code matrix module obtains the data code value of correspondence image.Wherein, dimensional matrix data module is to utilize the prior art will be specific
Data information is converted to the data information with code table images coded representation, i.e. our usually said planar bar code technologies.By
To the corresponding different matrix data code value of different code lattice, corresponding square matrix code Value Data is obtained.
In step 08, further, for the present embodiment step 07 and the present embodiment step 08, not in logic
Precedence relationship, for read three-dimensional matrice module and two-dimensional matrix module be while, decoded according to the coding rule of the two
To primary data information (pdi) included by each frame 3-dimensional encoding image.
Step 09: according to color code Value Data and square matrix code Value Data, obtaining the coded data of the frame 3-dimensional encoding image.
In step 09, including the color code Value Data and square matrix code Value Data according to each frame 3-D image, it is somebody's turn to do
The coded data of frame 3-dimensional encoding.Further, it is emphasized explanation again herein: for the present embodiment step 07 and this implementation
Example step 08, is not two mutually independent coding steps, more without the sequencing in logic or process, here by the two
It is divided into two steps to consider, is intended merely to more intuitively distinguish color data module and matrix data module, specifically solve
During code, the two is according to certain coding, decoding rule while to carry out.
Step 10: according to the sequence number of every frame logos module, by the coded number of obtained every frame 3-dimensional encoding image
According to sequential collating and recombinate.
In step 10, it specifically includes, reads the logos bit sequence number of every frame 3-dimensional encoding image, and will obtain
According to sequence sequence, the recombination of above-mentioned sequence number, obtain one has all 3-dimensional encoding image coded data sections generated
The data segment containing several coded datas of sequence.Further, by requiring data segment to be ranked up recombination by stringent sequence,
To guarantee the integrality and correctness of data, the encoded digital information of correct most original could be finally obtained.
Step 11: an integration coded data section containing several coded datas orderly after being recombinated.
In the present embodiment step 11, further, by orderly one after integration recombination by several coded datas
Coded data section composition, with the identical complete coded data section of original data to be encoded information, that is, complete four
Tie up the decoding process of code.
Step 12: obtaining original data to be encoded information.
In step 12, it specifically includes, according to the original information to be encoded, because four-dimensional code provided by the present invention is compiled
Code mode can largely improve the data capacity of coding.User, can be with according to different situations and different demands is faced
The information for needing to carry out information coding is subjected to coding and data exchange.User can by video data to be encoded, audio data,
Image document, text and data information etc. are converted into four dimension coding image.
It in step 12, further, can be in the feelings of not network due to four-dimensional code coding mode provided by the invention
Under condition, by way of coding and decoding, data exchange is carried out to the data of larger capacity, such as can be by sweeping to four-dimensional code
It retouches and directly acquires video, audio or picture information etc. with reading.
The above description is merely a specific embodiment, but scope of protection of the present invention is not limited thereto, any
Those familiar with the art in the technical scope disclosed by the present invention, can easily think of the change or the replacement, and should all contain
Lid is within protection scope of the present invention.Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.
Claims (10)
1. a kind of four-dimension code encoding method, which includes that two-dimensional surface, color and time four dimensions, feature exist
In, comprising the following steps:
11) information data to be encoded is obtained;
12) information data to be encoded is divided into multiple data to be encoded sections, the amount of capacity and one of each data to be encoded section
The capacity of frame three-dimension code coded image is equal;
13) each data to be encoded section is converted into marker bit module and data to be encoded root module, and generates data to be encoded
The two-dimensional matrix module and three-dimensional color module of section;
14) three-dimension code coding is carried out according to the two-dimensional matrix module of each data to be encoded section and three-dimensional color module and generates a frame
Three-dimension code coded image, and it is converted picture format;
15) 3-dimensional encoding that dynamic play is shown can be recycled by the three-dimension code coded image of whole format transformations being integrated boil down to
Image group, i.e., four-dimensional code coded image, is finally completed four dimension coding.
2. a kind of four-dimensional code encoding method according to claim 1, which is characterized in that the information packet to be encoded
Include video data, audio data, image data and lteral data.
3. a kind of four-dimensional code encoding method according to claim 1, which is characterized in that in the step 13),
Marker bit module is to determine the encoded rear each frame three-dimension code coded image generated of each data to be encoded section
Indicate bit sequence number, i.e., be marked since first data to be encoded section, if label is completed in the data to be encoded section
Next data to be encoded section is marked in order, until all data segments are completed to mark, is finally obtained by sequentially
The data to be encoded section of label;
Data segment module, the original text part including each data to be encoded section, i.e., for storing and encoding data information to be encoded.
4. a kind of four-dimensional code encoding method according to claim 1, which is characterized in that described in the step 14)
Three-dimension code coding specifically:
Three-dimension code is generated after being identified the code block in two dimensional code using different colors on the basis of two dimensional code coding to compile
Code image, three-dimensional color module indicate that different data are encoded using different colors, pass through the face using different code blocks
Different code value data representated by color encode data information, and each frame three-dimension code coded image includes original band coding
Data bin data information and the sequence number for representing the frame image sequence.
5. a kind of four-dimensional code encoding method according to claim 1, which is characterized in that, will be each in the step 14)
Frame three-dimension code coded image is converted to GIF picture format, and by the integration of the three-dimension code coded image of all GIF formats, compression and
Recombination.
6. a kind of four-dimension code coding/decoding method, which comprises the following steps:
21) four-dimensional code coded image is obtained;
22) each frame image in the 3-dimensional encoding image group under GIF format is read respectively, obtains the flag bit in every frame image
The mark bit sequence number of module and data module for storing encoded digital information;
23) two-dimensional matrix and three-dimensional color matrix of every frame image are read in scanning, obtain the face of every frame image according to matrix information
Colour coding value and data code value, to obtain the coded data of the frame image;
24) recombination is ranked up according to the coded data of every frame image, obtains the orderly number containing multiple coded datas
According to section, which is the original information to be encoded before encoding, and completes decoding.
7. a kind of four-dimensional code encoding method according to claim 6, which is characterized in that in the step 22), read from
First data image through 3-dimensional encoding is to all data images between a last data image through 3-dimensional encoding
Sequence number, if the sequence number of sequence number and the last one image including first image, proves four-dimensional code code pattern
As reading successfully, if the intermediate sequence number for having marker bit module of discovery lacks, i.e., when cannot read the sequence number of all modules, then
Continue to read each frame image in the 3-dimensional encoding image group under GIF format, until to all four-dimensional code coded image marks
Position module serial number is read successfully.
8. a kind of four-dimensional code encoding method according to claim 7, which is characterized in that in the case where reading each frame GIF format
3-dimensional encoding image group in coded image when, while the data module of coded image is read, if successfully completing to each frame
The reading and detection of the marker bit module of image, then read data module is the module of storing data information.
9. a kind of four-dimensional code encoding method according to claim 6, which is characterized in that in the step 23), every frame
The coded image in 3-dimensional encoding image group under GIF format includes being shown by color module of encoding through three-dimension code coding mode
Show the two dimensional code matrix module image of different data coding, wherein the color module in the three-dimension code coding mode includes
The data information that different data coding is indicated using different colours, in decoding process, according in every frame three-dimension code coded image
The color of each code block numerical value corresponding in code table, obtains the color code value of each code block, according to two dimensional code matrix module
Image reads the corresponding two dimensional code matrix module of every frame image, obtains the numeric data code of correspondence image according to two dimensional code matrix module
Value.
10. a kind of four-dimensional code encoding method according to claim 6, which is characterized in that in the step 24), according to
The sequence of the logos bit sequence number of every frame 3-dimensional encoding image, all 3-dimensional encoding image codings generated that will be obtained
Data segment is ranked up recombination, obtains the orderly data segment containing multiple coded datas.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910486916.5A CN110276428A (en) | 2019-06-05 | 2019-06-05 | A kind of four-dimension code encoding and decoding method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910486916.5A CN110276428A (en) | 2019-06-05 | 2019-06-05 | A kind of four-dimension code encoding and decoding method |
Publications (1)
Publication Number | Publication Date |
---|---|
CN110276428A true CN110276428A (en) | 2019-09-24 |
Family
ID=67960516
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910486916.5A Pending CN110276428A (en) | 2019-06-05 | 2019-06-05 | A kind of four-dimension code encoding and decoding method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110276428A (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111291844A (en) * | 2020-01-16 | 2020-06-16 | 清华大学深圳国际研究生院 | Method for realizing volume holographic four-dimensional code anti-counterfeiting |
CN111709504A (en) * | 2020-06-01 | 2020-09-25 | 上海吉拜生物科技有限公司 | Coding and decoding method for multidimensional code |
CN112509605A (en) * | 2020-11-26 | 2021-03-16 | 鹏城实验室 | Multilayer holographic five-dimensional data storage method and system |
CN115134475A (en) * | 2022-08-31 | 2022-09-30 | 智联信通科技股份有限公司 | Weighing apparatus weight discrimination intelligent management system |
CN116600042A (en) * | 2023-07-17 | 2023-08-15 | 中国人民解放军国防科技大学 | Communication method, device and system between intelligent mobile terminal equipment and computer |
Citations (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20090302985A1 (en) * | 2008-04-04 | 2009-12-10 | Cedar Ridge Research Llc | Method for producing a code for defining field emission structures |
CA2790925A1 (en) * | 2010-03-05 | 2011-09-09 | Colour Code Technologies Co., Ltd. | Method for preparing and decoding two-dimensional color codes |
US20130306721A1 (en) * | 2012-05-16 | 2013-11-21 | Zhiping Meng | Method of Coding, Decoding and Usage of Three-Dimensional Code |
JP2014049063A (en) * | 2012-09-04 | 2014-03-17 | Casio Comput Co Ltd | Three-dimensional code reading method and three-dimensional code reading device |
CN103957340A (en) * | 2014-04-22 | 2014-07-30 | 北京航空航天大学 | Data transmission system based on color dynamic image |
CN104820817A (en) * | 2014-08-19 | 2015-08-05 | 崔明 | Four-dimensional code, image identification system and method as well as retrieval system and method based on four-dimensional code |
CN105426945A (en) * | 2015-11-20 | 2016-03-23 | 区华威 | Encoding system and method as well as decoding system and method of intelligent graph recognition two-dimension code |
CN105787541A (en) * | 2016-02-04 | 2016-07-20 | 陈绳旭 | Four-dimensional code encoding method and system |
US20160328611A1 (en) * | 2014-10-30 | 2016-11-10 | Ming Cui | Four-dimensional code, image identification system and image identification method based on the four-dimensional code, and retrieval system and retrieval method |
CN106485305A (en) * | 2016-09-07 | 2017-03-08 | 西北工业大学 | A kind of implementation method of color 2 D code |
CN106503769A (en) * | 2016-11-02 | 2017-03-15 | 曾广标 | A kind of coded method of four-dimensional code and application |
CN109255415A (en) * | 2018-08-16 | 2019-01-22 | 章健 | Four-dimensional code and its recognition methods, identification device and server |
-
2019
- 2019-06-05 CN CN201910486916.5A patent/CN110276428A/en active Pending
Patent Citations (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20090302985A1 (en) * | 2008-04-04 | 2009-12-10 | Cedar Ridge Research Llc | Method for producing a code for defining field emission structures |
CA2790925A1 (en) * | 2010-03-05 | 2011-09-09 | Colour Code Technologies Co., Ltd. | Method for preparing and decoding two-dimensional color codes |
US20130306721A1 (en) * | 2012-05-16 | 2013-11-21 | Zhiping Meng | Method of Coding, Decoding and Usage of Three-Dimensional Code |
JP2014049063A (en) * | 2012-09-04 | 2014-03-17 | Casio Comput Co Ltd | Three-dimensional code reading method and three-dimensional code reading device |
CN103957340A (en) * | 2014-04-22 | 2014-07-30 | 北京航空航天大学 | Data transmission system based on color dynamic image |
CN104820817A (en) * | 2014-08-19 | 2015-08-05 | 崔明 | Four-dimensional code, image identification system and method as well as retrieval system and method based on four-dimensional code |
JP2018501588A (en) * | 2014-08-19 | 2018-01-18 | 明 崔 | Four-dimensional code, image identification system and image identification method based on four-dimensional code, four-dimensional code retrieval system, and four-dimensional code retrieval method |
US20160328611A1 (en) * | 2014-10-30 | 2016-11-10 | Ming Cui | Four-dimensional code, image identification system and image identification method based on the four-dimensional code, and retrieval system and retrieval method |
CN105426945A (en) * | 2015-11-20 | 2016-03-23 | 区华威 | Encoding system and method as well as decoding system and method of intelligent graph recognition two-dimension code |
CN105787541A (en) * | 2016-02-04 | 2016-07-20 | 陈绳旭 | Four-dimensional code encoding method and system |
CN106485305A (en) * | 2016-09-07 | 2017-03-08 | 西北工业大学 | A kind of implementation method of color 2 D code |
CN106503769A (en) * | 2016-11-02 | 2017-03-15 | 曾广标 | A kind of coded method of four-dimensional code and application |
CN109255415A (en) * | 2018-08-16 | 2019-01-22 | 章健 | Four-dimensional code and its recognition methods, identification device and server |
Cited By (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111291844A (en) * | 2020-01-16 | 2020-06-16 | 清华大学深圳国际研究生院 | Method for realizing volume holographic four-dimensional code anti-counterfeiting |
CN111291844B (en) * | 2020-01-16 | 2023-03-14 | 清华大学深圳国际研究生院 | Method for realizing volume holographic four-dimensional code anti-counterfeiting |
CN111709504A (en) * | 2020-06-01 | 2020-09-25 | 上海吉拜生物科技有限公司 | Coding and decoding method for multidimensional code |
CN111709504B (en) * | 2020-06-01 | 2023-04-28 | 上海吉拜生物科技有限公司 | Coding and decoding method of multidimensional code |
CN112509605A (en) * | 2020-11-26 | 2021-03-16 | 鹏城实验室 | Multilayer holographic five-dimensional data storage method and system |
CN112509605B (en) * | 2020-11-26 | 2022-08-26 | 鹏城实验室 | Multilayer holographic five-dimensional data storage method and system |
CN115134475A (en) * | 2022-08-31 | 2022-09-30 | 智联信通科技股份有限公司 | Weighing apparatus weight discrimination intelligent management system |
CN115134475B (en) * | 2022-08-31 | 2022-11-08 | 智联信通科技股份有限公司 | Weighing apparatus weight discrimination intelligent management system |
CN116600042A (en) * | 2023-07-17 | 2023-08-15 | 中国人民解放军国防科技大学 | Communication method, device and system between intelligent mobile terminal equipment and computer |
CN116600042B (en) * | 2023-07-17 | 2023-09-22 | 中国人民解放军国防科技大学 | Communication method, device and system between intelligent mobile terminal equipment and computer |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110276428A (en) | A kind of four-dimension code encoding and decoding method | |
CN106529633B (en) | Generation method, coding/decoding method and the device of two dimensional code | |
CN105447546B (en) | The two dimensional code and its coding and decoding methods and equipment of embeddable large scale figure | |
CN103632181B (en) | The generation of a kind of 3-D view code and analytic method and device thereof | |
CN105095935B (en) | A kind of low-density having merged Chaos Encryption Technology, high coding capacity dot matrix Quick Response Code | |
TWI507909B (en) | Data-bearing encoding system and data-bearing decoding system | |
CN100377173C (en) | Two-dimensional code construction based on hexadecimal coding | |
CN105426945B (en) | Intelligent graphic identifies the coded system and method, decoding system and method for two dimensional code | |
CN104268615A (en) | Encoding method and decoding method for color two-dimensional code | |
CN108694430B (en) | Three-dimensional code generation and analysis method | |
CN103955730A (en) | Manufacturing method of anti-counterfeiting photo-etched two-dimensional code labels | |
CN1360710A (en) | Data strip and method for coding and decoding printed data | |
CN102054209A (en) | Method for transmitting driver pre-entered information data by using two-dimensional bar codes | |
CN103049720A (en) | Counterfeit identifying method of texture with encoding structure | |
CN109934322B (en) | Dynamic three-dimensional code generation method, generation device, identification method and identification device | |
JPH0485685A (en) | Image data processing method | |
CN112926714B (en) | Visual three-dimensional code integrating QR code, bar code and optical character and coding method thereof | |
WO2007013835A1 (en) | Information encoding and decoding method | |
CN104933386B (en) | The recognition methods of many GTG invisible two-dimensional codes | |
CN104573781B (en) | A kind of Quick Response Code encoding and decoding method | |
CN108921262A (en) | A kind of three primary colours bar code and its generation and reading method | |
CN105718982A (en) | Coding and decoding methods of colorful 2D bar code | |
CN105160378A (en) | Color invisible image code generating method | |
CN116306749A (en) | Super-large capacity invisible two-dimensional code based on true primary color multicolor halftone dot matrix | |
CN109389199A (en) | A kind of multidimensional code system and decoding method |
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: 20190924 |