CN109977716A - A kind of data decoding method, terminal and storage medium - Google Patents
A kind of data decoding method, terminal and storage medium Download PDFInfo
- Publication number
- CN109977716A CN109977716A CN201910195277.7A CN201910195277A CN109977716A CN 109977716 A CN109977716 A CN 109977716A CN 201910195277 A CN201910195277 A CN 201910195277A CN 109977716 A CN109977716 A CN 109977716A
- Authority
- CN
- China
- Prior art keywords
- data
- instruction
- information
- decoding
- decoded
- 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
- 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/10544—Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation by scanning of the records by radiation in the optical part of the electromagnetic spectrum
- G06K7/10821—Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation by scanning of the records by radiation in the optical part of the electromagnetic spectrum further details of bar or optical code scanning devices
-
- 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
- G06K7/1417—2D bar codes
-
- 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
- G06K2007/10504—Data fields affixed to objects or articles
Landscapes
- Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- Electromagnetism (AREA)
- Health & Medical Sciences (AREA)
- General Health & Medical Sciences (AREA)
- Toxicology (AREA)
- Artificial Intelligence (AREA)
- Computer Vision & Pattern Recognition (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Compression, Expansion, Code Conversion, And Decoders (AREA)
Abstract
The present embodiments relate to fields of communication technology, disclose a kind of data decoding method.In the present invention, the data information in two dimensional code is obtained;The first solution code instruction is obtained according to data information;First solution code instruction and the second solution code instruction are spliced, decoding instruction group is obtained, wherein the second decoding instruction is located in terminal;Data information is decoded according to decoding instruction group.So that the decoding to data information in two dimensional code is just able to achieve, to ensure that the safety of two-dimensional code data after completing the splicing to decoding instruction group.
Description
Technical field
The present embodiments relate to field of communication technology, in particular to a kind of data decoding method, terminal and storage medium.
Background technique
With the development of science and technology people increasingly pay attention to the confidentiality of data with safety, whether in national defense safety
Field can all be related to data encryption technology still in commercial technology field.And it is generally adopted by the prior art logical
It crosses secret key pair encryption data to be decrypted, for example, being decrypted and being restored in two dimensional code by the two dimensional code that secret key pair encrypts
The initial data saved is i.e. in plain text.
At least there are the following problems in the prior art for inventor's discovery: this in the prior art to be carried out using secret key pair data
The mode of decryption is then easily achieved and cracks to encryption data after other people obtain the secret key of encryption data, and safety is not
Reliably, therefore in the prior art there are no the safeties that a kind of effective data deciphering mode can guarantee two-dimensional code data.
Summary of the invention
Embodiment of the present invention is designed to provide a kind of data decoding method, terminal and storage medium, so that completing
After the splicing of decoding instruction group, it is just able to achieve the decoding to data information in two dimensional code, to ensure that two-dimensional code data
Safety.
In order to solve the above technical problems, embodiments of the present invention provide a kind of data decoding method, including following step
It is rapid: to obtain the data information in two dimensional code;The first solution code instruction is obtained according to data information;By the first solution code instruction and the second solution
Code instruction is spliced, and decoding instruction group is obtained, wherein the second decoding instruction is located in terminal;According to decoding instruction group logarithm
It is believed that breath is decoded.
Embodiments of the present invention additionally provide a kind of data decoding method, comprising: obtain the son in each two dimensional code
Data information, wherein the quantity at least two of two dimensional code;A son decoding is obtained respectively according to each subdata information to refer to
It enables;Each subsolution code instruction is spliced, decoding instruction group is obtained;According to decoding instruction group to each subdata information
It is decoded.
Embodiments of the present invention additionally provide a kind of terminal, comprising: at least one processor;And at least one
The memory of processor communication connection;Wherein, memory is stored with the instruction that can be executed by least one processor, instructs by extremely
A few processor executes, so that at least one processor is able to carry out the data decoding method in first way.
Embodiments of the present invention additionally provide a kind of computer readable storage medium, are stored with computer program, calculate
The data decoding method in first way is realized when machine program is executed by processor.
Embodiments of the present invention additionally provide a kind of terminal, comprising: at least one processor;And at least one
The memory of processor communication connection;Wherein, memory is stored with the instruction that can be executed by least one processor, instructs by extremely
A few processor executes, so that at least one processor is able to carry out the data decoding method in the second way.
Embodiments of the present invention provide a kind of computer readable storage medium, are stored with computer program, computer
The data decoding method in the second way is realized when program is executed by processor.
Embodiment of the present invention in terms of existing technologies, can be obtained according to the data information in the two dimensional code got
The first solution code instruction is got, and the second solution code instruction by will be saved in the first solution code instruction and terminal carries out splicing acquisition
To decoding instruction group, in the case where decoding instruction group splicing and completing, be just able to achieve logarithm it is believed that breath decoding, and in data
A part for preserving decoding instruction group in information and terminal respectively, to ensure that the safety of two-dimensional code data information.
In addition, the quantity of two dimensional code is one, the first solution code instruction is obtained according to data information, specifically includes: obtaining number
It is believed that the format information descriptor in breath;Code instruction and data to be decoded are solved according to format information descriptor acquiring first, wherein
Format information descriptor solves the position of code instruction and data to be decoded in data information for label first.In the realization,
When obtaining the first solution code instruction, specifically determine that the first decoding refers to using according to the format information descriptor in data information
The position of order, and the first solution code instruction is accurately obtained according to determining position, to ensure that the first decoding obtained refers to
The accuracy of order.
In addition, being decoded according to decoding instruction group to data information, specifically include: according to decoding instruction group to be decoded
Data are decoded.
In addition, the quantity at least two of two dimensional code, obtains the data information in two dimensional code, specifically includes: obtaining each
Subdata information in a two dimensional code.
In addition, obtaining the first solution code instruction according to data information, specifically includes: obtaining the lattice in each subdata information
Formula information descriptor;According to each format information descriptor obtain respectively subsolution code instruction in each subdata information and
Son data to be decoded, wherein format information descriptor is for marking each subsolution code instruction and each height data to be decoded
Position in each subdata information;Each subsolution code instruction is spliced, the first solution code instruction is obtained.The realization
In, save a part of the first solution code instruction respectively in different two dimensional code subdata information respectively, by by each
Subsolution code instruction in subdata information is spliced, and the first solution code instruction could be obtained, to further ensure each
The safety of subdata information.
In addition, being decoded according to decoding instruction group to data information, specifically include: according to decoding instruction group to each
Son data to be decoded are decoded.
In addition, obtaining a son solution code instruction respectively according to each subdata information, specifically includes: obtaining each height
Format information descriptor in data information;It is obtained in each subdata information respectively according to each format information descriptor
Subsolution code instruction and son data to be decoded, wherein format information descriptor is for marking each subsolution code instruction and each
Position of the height data to be decoded in each subdata information.In the realization, in obtaining each subdata information
When subsolution code instruction, each subsolution specifically is determined using according to the format information descriptor in each subdata information
The position of code instruction, and subsolution code instruction is accurately obtained according to determining position, each subsolution is obtained to ensure that
The accuracy of code instruction.
In addition, being decoded according to decoding instruction group to each subdata information, specifically include: according to decoding instruction group
Each height data to be decoded are decoded.
Detailed description of the invention
One or more embodiments are illustrated by the picture in corresponding attached drawing, these exemplary theorys
The bright restriction not constituted to embodiment, the element in attached drawing with same reference numbers label are expressed as similar element, remove
Non- to have special statement, composition does not limit the figure in attached drawing.
Fig. 1 is the flow chart of data decoding method in the application first embodiment;
Fig. 2 is the flow chart of data decoding method in the application second embodiment;
Fig. 3 is the flow chart of data decoding method in the application 3rd embodiment;
Fig. 4 is the flow chart of data decoding method in the application fourth embodiment;
Fig. 5 is the structural schematic diagram of terminal in the 5th embodiment of the application;
Fig. 6 is the structural schematic diagram of terminal in the application sixth embodiment.
Specific embodiment
In order to make the object, technical scheme and advantages of the embodiment of the invention clearer, below in conjunction with attached drawing to the present invention
Each embodiment be explained in detail.However, it will be understood by those skilled in the art that in each embodiment party of the present invention
In formula, in order to make the reader understand this application better, many technical details are proposed.But even if without these technical details
And various changes and modifications based on the following respective embodiments, the application technical solution claimed also may be implemented.
The first embodiment of the present invention is related to a kind of data decoding methods.Detailed process is as shown in Figure 1, include following step
It is rapid:
Step 101, the data information in two dimensional code is obtained.
Specifically, in the present embodiment, terminal can obtain the data information in two dimensional code by way of scanning, and
And acquired data information is specially binary data.
It should be noted that the quantity of two dimensional code can be only one in the present embodiment, or multiple.When
In the case that the quantity of two dimensional code is one, the data information in a two dimensional code can be directly acquired;When the quantity of two dimensional code
In the case where multiple, the subdata information in each two dimensional code can be obtained respectively in a different order.
For example, terminal obtains the data letter of the two dimensional code by scanning the two dimensional code when the quantity of two dimensional code is one
Breath, and the data information is binary data, can be indicated with 010011010101001;When the quantity of two dimensional code is two
When, then each two dimensional code is scanned by terminal respectively, obtains the subdata information in each two dimensional code, determines the obtained
Binary data in one two dimensional code is 011011101, determines that the binary data in second two dimensional code obtained is
011010001.And when the number of two dimensional code is multiple, the subdata information in each two dimensional code of acquisition is not limited
Sequencing.
Step 102, the first solution code instruction is obtained according to data information.
It specifically, in the present embodiment, can according to data information after getting the data information in two dimensional code
To get the first solution code instruction.And for the difference of two-dimentional number of codes, the mode for obtaining the first solution code instruction can also exist
Difference.
Specifically, when the quantity of two dimensional code is one, then the mode of the first solution code instruction is obtained according to data information
To obtain the format information descriptor in data information, solving code instruction and to be decoded according to format information descriptor acquiring first
Data, wherein format information descriptor solves the position of code instruction and data to be decoded in data information for label first;When
When the quantity at least two of two dimensional code, the format information descriptor in each subdata information is obtained, according to each lattice
Formula information descriptor obtains subsolution code instruction and son data to be decoded in each subdata information respectively, wherein format letter
Breath descriptor is for marking the position of each subsolution code instruction and each height data to be decoded in each subdata information
It sets, each subsolution code instruction is spliced, obtain the first solution code instruction.By above-mentioned analytic process it is known that at this
In embodiment when the quantity of two dimensional code is one, the first solution code instruction is directly obtained from the data information in a two dimensional code
It takes, and when the quantity at least two of two dimensional code, then the first solution code instruction is by from the subdata in each two dimensional code
Subsolution code instruction is obtained in information, and at least two son solution code instructions is subjected to splicing acquisition, therefore increase in the quantity of two dimensional code
The complexity of the first solution code instruction acquisition can be further increased in the case where adding.
Data letter in a concrete application, when the quantity of two dimensional code is one, and in the two dimensional code obtained
Breath is binary numeral 010011010101001, specifies first three bit value " 010 " presentation format information description of binary numeral
Symbol, terminal can carry out machine language identification according to the format information descriptor of acquisition, and determine in format information descriptor
The information for being included are as follows: the 4th numerical value to the 9th numerical value " 011010 " is solution code instruction, binary number in binary numeral
The tenth numerical value to the 15th numerical value " 101001 " is data to be decoded in value, to realize according to the data in a two dimensional code
Information can be directly obtained the first solution code instruction.How terminal is identified according to machine language, and determines format
Information included in information descriptor is not no longer to repeat in the emphasis of the application therefore the application embodiment.
At another in the specific implementation, when the quantity at least two of two dimensional code, in present embodiment for two
The data information in first two dimensional code for being illustrated, and obtaining is binary numeral 011011101, and specifies first
First three bit value " 011 " presentation format information descriptor of a binary numeral, terminal can be retouched according to the format information of acquisition
It states symbol and carries out machine language identification, and determine information included in format information descriptor are as follows: first binary numeral
In the 4th numerical value to the 6th numerical value " 011 " be that first son solves code instruction, the 7th number in first binary numeral
Value to the 9th numerical value " 101 " is first son data to be decoded;Obtain second two dimensional code in data information be two into
Numerical value 011010001 processed, and first three bit value " 011 " presentation format information description in specified second binary numeral
Symbol, terminal can carry out machine language identification according to the format information descriptor of acquisition, and determine in format information descriptor
The information for being included are as follows: the 4th numerical value to the 6th numerical value " 010 " is that second son decoding refers in second binary numeral
It enables, the 7th numerical value to the 9th numerical value " 001 " is second son data to be decoded in second binary numeral.Terminal is by
One son solution code instruction " 011 " is spliced with second son solution code instruction " 010 " according to preset sequence, and solution code instruction is obtained
"011010".Certainly, it is only to be illustrated by taking two two dimensional codes as an example in present embodiment, more than two two dimensional code is obtained
The mode for taking two two dimensional codes in the mode and present embodiment of solution code instruction to obtain solution code instruction is substantially the same, this embodiment party
It is no longer repeated in formula.
Step 103, the first solution code instruction and the second solution code instruction are spliced, obtains decoding instruction group.
Specifically, in the present embodiment, terminal itself saves the second solution code instruction, and terminal can save itself
Second solution code instruction is spliced with the first solution code instruction acquired from two dimensional code, obtains complete decoding instruction group.
For example, being illustrated by taking a two dimensional code as an example, when the first solution code instruction of the two dimensional code of acquisition is
" 011010 ", and the second solution code instruction saved in terminal is " 010 ", then can refer to the first solution code instruction and the second decoding
Order carries out splicing and obtains decoding instruction group " 011010010 ".
Step 104, data information is decoded according to decoding instruction group.
Specifically, in the present embodiment, in the case that two-dimentional number of codes is one, when terminal is obtained by splicing
To when completely decoding instruction group, the data to be decoded in one two dimensional code can be spliced according to decoding instruction group, and worked as
When the quantity at least two of two dimensional code, terminal gets complete instruction group by splicing, and according to decoding instruction group to every
Son data to be decoded in one two dimensional code are spliced.
Such as, however, it is determined that the second solution code instruction is " 010 ", when the quantity of two dimensional code is one, uses binary data
010011010101001 indicates, therefore acquired decoding instruction group is " 011010010 ", then according to decoding instruction group to this
Data to be decoded " 101001 " in two dimensional code are decoded, and getting decoding result is " today is fine ";Work as two dimensional code
Quantity at least two when, be illustrated for two in present embodiment, indicate with binary data 011011101
Subdata information in one two dimensional code indicates the subdata information in second two dimensional code with binary data 011010001,
And acquired decoding instruction group is " 011010010 ", then according to decoding instruction group to first in first two dimensional code
Son data " 101 " to be decoded are decoded, and getting decoding result is " weather today ", and according to decoding instruction group to second
Second son data to be decoded " 001 " in a two dimensional code is decoded, and getting decoding result is " very good ".And terminal can
To get the coherent final result " today, weather was very good " of a meaning of one's words according to the decomposition result in each two dimensional code, and
Final result can be shown.
Compared with prior art, the data decoding method in present embodiment, can be according in the two dimensional code got
Data information gets the first solution code instruction, and the second solution code instruction by that will be saved in the first solution code instruction and terminal into
Row splicing gets decoding instruction group, decode instruction group splicing complete in the case where, be just able to achieve logarithm it is believed that breath decoding,
And a part for preserving decoding instruction group respectively in data information and terminal, to ensure that two-dimensional code data information
Safety.
Second embodiment of the present invention is related to a kind of data decoding method.The present embodiment is on the basis of first embodiment
It is further improved, specific improvements are as follows: after being decoded according to decoding instruction group to data information, increase and sentence
The whether accurate step of disconnected decoding result.The process of data decoding method in the present embodiment is as shown in Figure 2.Specifically, exist
In the present embodiment, including step 201 is to step 205, wherein the step 101 in step 201 to step 204 and first embodiment
Roughly the same to step 104, details are not described herein again, mainly introduces difference below, not detailed description in the present embodiment
Technical detail, reference can be made to data decoding method provided by first embodiment, details are not described herein again.
After step 201 to step 204, step 205 is executed.
Step 205, judge whether decoding result is accurate, if so, terminating data decoding method, otherwise, execute step
201。
Specifically, in the present embodiment, it when terminal inner since transience communication failure occurs in transmission line, can make
Decoding data can not be treated at decoding instruction group effectively to be decoded, the case where messy code such as occurs, and it is clear can not to obtain the meaning of one's words
Decoding result, in response to this, terminal can pass through semantics identity or the side of image recognition after getting decoding result
Formula judges final decoding result, and in the case where determining decoding result mistake, reacquires the number in two dimensional code
It is believed that breath, and decoded again, to ensure that the accuracy of decoding result.
Compared with prior art, the data decoding method that present embodiment provides, can be according in the two dimensional code got
Data information get the first solution code instruction, and the second solution code instruction by will be saved in the first solution code instruction and terminal
It carries out splicing and gets decoding instruction group, in the case where decoding instruction group splicing completion, be just able to achieve logarithm it is believed that the solution ceased
Code, and preserve a part for decoding instruction group respectively in data information and terminal, to ensure that two-dimensional code data is believed
The safety of breath.By judging whether decoding result is accurate, and in the case where determining decoding result inaccuracy, two are reacquired
The data information in code is tieed up, to ensure that the accuracy of decoding result.
Third embodiment of the present invention is related to a kind of data decoding method, and detailed process is as shown in figure 3, include following step
It is rapid:
Step 301, the subdata information in each two dimensional code is obtained.
Specifically, in the present embodiment, the quantity at least two of two dimensional code, terminal can be by way of scannings
The subdata information in each two dimensional code is obtained, and each acquired subdata information is specially binary data.
And the subdata information in each two dimensional code can be obtained respectively according to preset scanning sequency.
For example, then scanning each two dimensional code respectively when the quantity of two dimensional code is two by terminal, obtaining each
Subdata information in two dimensional code determines that the binary data in first two dimensional code obtained is 011001111, determines and obtain
Second two dimensional code in binary data be 011011011.And it when the number of two dimensional code is multiple, does not limit and obtains
First two dimensional code in subdata information and the second two dimensional code in subdata information sequencing.
Step 302, a son solution code instruction is obtained according to each subdata information respectively.
Specifically, in the present embodiment, it after getting the subdata information in each two dimensional code, can obtain
Format information descriptor in each subdata information obtains each subnumber according to each format information descriptor respectively
It is believed that subsolution code instruction and son data to be decoded in breath, wherein format information descriptor is for marking each subsolution code to refer to
It enables and position of each height data to be decoded in each subdata information.
At one in the specific implementation, when the quantity of two dimensional code is two, and the son in first two dimensional code obtained
Data information is binary numeral 011001111, and first three bit value " 011 " of specified first binary numeral indicates lattice
Formula information descriptor, terminal can carry out machine language identification according to the format information descriptor of acquisition, and determine that format is believed
Cease information included in descriptor are as follows: the 4th numerical value to the 6th numerical value " 001 " is first in first binary numeral
Height solution code instruction, the 7th numerical value to the 9th numerical value " 111 " is first son number to be decoded in first binary numeral
According to;The data information in second two dimensional code obtained is binary numeral 011011011, and specifies second binary number
First three bit value " 011 " presentation format information descriptor in value, terminal can be carried out according to the format information descriptor of acquisition
Machine language identification, and determine information included in format information descriptor are as follows: the 4th in second binary numeral
Numerical value to the 6th numerical value " 011 " is that second son solves code instruction, and the 7th numerical value is to the 9th in second binary numeral
Numerical value " 011 " is second son data to be decoded.
Step 303, each subsolution code instruction is spliced, obtains decoding instruction group.
Specifically, in the present embodiment, terminal can splice each subsolution code instruction, obtain decoding and refer to
Group is enabled, by the way that the different piece for decoding instruction group is stored in respectively in different two dimensional codes, to ensure that the safety of data
Property.
For example, being illustrated by taking two two dimensional codes as an example, and the binary data in first two dimensional code is
01100111, the binary data in second two dimensional code is 011011011, first in first two dimensional code of acquisition
Subsolution code instruction " 001 ", the subsolution code instruction in second two dimensional code of acquisition are " 011 ", and terminal refers to first son decoding
It enables " 001 " to be spliced with second son solution code instruction " 011 " according to preset sequence, obtains decoding instruction group " 001011 ".
Certainly, it is only to be illustrated by taking two two dimensional codes as an example in present embodiment, decoding is obtained for the two dimensional code greater than two and is referred to
The mode that two two dimensional codes obtain decoding instruction group in the mode and present embodiment of group is enabled to be substantially the same, in present embodiment not
It is repeated again.
Step 304, each subdata information is decoded according to decoding instruction group.
Specific institute, terminal can be decoded each height data to be decoded according to decoding instruction group.When two dimensional code
It when quantity at least two, is illustrated for two in present embodiment, and acquired decoding instruction group is
" 001011 " is then decoded first son data to be decoded " 111 " in first two dimensional code according to decoding instruction group, obtains
Getting decoding result is " tomorrow ", and according to decoding instruction group to second son data to be decoded in second two dimensional code
" 011 " is decoded, and getting decoding result is " going to school ".And terminal can be according to the decomposition knot in each two dimensional code
Fruit gets the coherent final result " tomorrow goes to school " of a meaning of one's words, and final result can be shown.
Compared with prior art, the data decoding method in present embodiment, can be according to each two dimensional code of acquisition
In subdata information obtain a son solution code instruction respectively, and by splicing each subsolution code instruction, obtain solution
Code instruction group is just able to achieve the decoding to each subdata information in the case where decoding instruction group splicing and completing, and
A part for preserving decoding instruction group in each two dimensional code respectively, to ensure that the safety of two-dimensional code data information.
4th embodiment of the invention is related to a kind of data decoding method.The present embodiment is on the basis of 3rd embodiment
It is further improved, specific improvements are as follows: after being decoded according to decoding instruction group to each subdata information,
Increase the step for judging whether decoding result is accurate.The process of data decoding method in the present embodiment is as shown in Figure 4.Specifically
Say, in the present embodiment, including step 401 is to step 405, wherein in step 401 to step 404 and third embodiment
Step 301 is roughly the same to step 304, and details are not described herein again, mainly introduces difference below, not in the present embodiment in detail
The technical detail described to the greatest extent, reference can be made to data decoding method provided by first embodiment, details are not described herein again.
After step 401 to step 404, step 405 is executed.
Step 405, judge whether decoding result is accurate, if so, terminating data decoding method, otherwise, execute step
401。
Specifically, in the present embodiment, when terminal inner transience communication failure occurs due to transmission line, meeting
It causes decoding instruction group that can not effectively be decoded to each height data to be decoded, the case where messy code such as occurs, can not obtain
The specific decoding result of the meaning of one's words is obtained, in response to this, terminal can pass through semantics identity or figure after getting decoding result
As knowing otherwise, final decoding result is judged, and in the case where determining decoding result mistake, reacquired every
Subdata information in one two dimensional code, and decoded again, to ensure that the accuracy of decoding result.
Compared with prior art, the data decoding method in present embodiment, can be according to each two dimensional code of acquisition
In subdata information obtain a son solution code instruction respectively, and by splicing each subsolution code instruction, obtain solution
Code instruction group is just able to achieve the decoding to each subdata information in the case where decoding instruction group splicing and completing, and
A part for preserving decoding instruction group in each two dimensional code respectively, to ensure that the safety of two-dimensional code data information.
And in the case where determining decoding result mistake, the data information in two dimensional code is reacquired, and decoded again, to protect
The accuracy of decoding result is demonstrate,proved.
The step of various methods divide above, be intended merely to describe it is clear, when realization can be merged into a step or
Certain steps are split, multiple steps are decomposed into, as long as including identical logical relation, all in the protection scope of this patent
It is interior;To adding inessential modification in algorithm or in process or introducing inessential design, but its algorithm is not changed
Core design with process is all in the protection scope of the patent.
Fifth embodiment of the invention is related to a kind of terminal, as shown in figure 5, including at least one processor 501;And
With the memory 502 of at least one processor 501 communication connection;Wherein, be stored with can be by least one processor for memory 502
501 instructions executed, instruction are executed by least one processor 501, so that at least one processor 501 is able to carry out above-mentioned the
One or second embodiment in data decoding method.
In the present embodiment, for processor 501 is with central processing unit (Central Processing Unit, CPU), deposit
For reservoir 502 is with readable and writable memory (Random Access Memory, RAM).Processor 501, memory 502 can lead to
It crosses bus or other modes connects, in Fig. 5 for being connected by bus.Memory 502 is used as a kind of non-volatile calculating
Machine readable storage medium storing program for executing can be used for storing non-volatile software program, non-volatile computer executable program and module, such as
Realize that the program of data decoding method is stored in memory 502 in the embodiment of the present application.Processor 501 passes through operation storage
Non-volatile software program, instruction and module in memory 502, thereby executing the various function application and number of equipment
According to processing, that is, realize the data decoding method in above-mentioned first or second embodiments.
Memory 502 may include storing program area and storage data area, wherein storing program area can store operation system
Application program required for system, at least one function;It storage data area can the Save option list etc..In addition, memory can wrap
High-speed random access memory is included, can also include nonvolatile memory, for example, at least disk memory, a flash memories
Part or other non-volatile solid state memory parts.In some embodiments, it includes relative to processor 501 that memory 502 is optional
Remotely located memory, these remote memories can pass through network connection to external equipment.The example of above-mentioned network includes
But be not limited to internet, intranet, local area network, mobile radio communication and combinations thereof.
One or more program module is stored in memory 502, is executed when by one or more processor 501
When, execute the data decoding method in above-mentioned first or second embodiments.
Method provided by the embodiment of the present application can be performed in the said goods, has the corresponding functional module of execution method and has
Beneficial effect, the not technical detail of detailed description in the present embodiment, reference can be made to provided by the application first or second embodiments
Method.
Sixth embodiment of the invention is related to a kind of terminal, as shown in fig. 6, including at least one processor 601;And
With the memory 602 of at least one processor 601 communication connection;Wherein, be stored with can be by least one processor for memory 602
601 instructions executed, instruction are executed by least one processor 601, so that at least one processor 601 is able to carry out above-mentioned the
Three or fourth embodiment in data decoding method.
In the present embodiment, for processor 601 is with central processing unit (Central Processing Unit, CPU), deposit
For reservoir 602 is with readable and writable memory (Random Access Memory, RAM).Processor 601, memory 602 can lead to
It crosses bus or other modes connects, in Fig. 5 for being connected by bus.Memory 602 is used as a kind of non-volatile calculating
Machine readable storage medium storing program for executing can be used for storing non-volatile software program, non-volatile computer executable program and module, such as
Realize that the program of data decoding method is stored in memory 602 in the embodiment of the present application.Processor 601 passes through operation storage
Non-volatile software program, instruction and module in the memory 602, thereby executing the various function application and number of equipment
According to processing, that is, realize the data decoding method in above-mentioned third or fourth embodiment.
Memory 602 may include storing program area and storage data area, wherein storing program area can store operation system
Application program required for system, at least one function;It storage data area can the Save option list etc..In addition, memory can wrap
High-speed random access memory is included, can also include nonvolatile memory, for example, at least disk memory, a flash memories
Part or other non-volatile solid state memory parts.In some embodiments, it includes relative to processor 601 that memory 602 is optional
Remotely located memory, these remote memories can pass through network connection to external equipment.The example of above-mentioned network includes
But be not limited to internet, intranet, local area network, mobile radio communication and combinations thereof.
One or more program module stores in the memory 602, executes when by one or more processor 601
When, execute the data decoding method in above-mentioned third or fourth embodiment.
Method provided by the embodiment of the present application can be performed in the said goods, has the corresponding functional module of execution method and has
Beneficial effect, the not technical detail of detailed description in the present embodiment, reference can be made to provided by the application third or fourth embodiment
Method.
The 7th embodiment of the application is related to a kind of computer readable storage medium, in the computer readable storage medium
It is stored with computer program, which can be realized when being executed by processor involved in the present invention first or two embodiments
Data decoding method.
The 8th embodiment of the application is related to a kind of computer readable storage medium, in the computer readable storage medium
It is stored with computer program, which can be realized when being executed by processor involved in third of the present invention or four embodiments
Data decoding method.
It will be understood by those skilled in the art that implementing the method for the above embodiments is that can pass through
Program is completed to instruct relevant hardware, which is stored in a storage medium, including some instructions are used so that one
A equipment (can be single-chip microcontroller, chip etc.) or processor (processor) execute each embodiment the method for the application
All or part of the steps.And storage medium above-mentioned includes: USB flash disk, mobile hard disk, read-only memory (ROM, Read-Only
Memory), random access memory (RAM, Random Access Memory), magnetic or disk etc. are various can store journey
The medium of sequence code.
It will be understood by those skilled in the art that the respective embodiments described above are to realize specific embodiments of the present invention,
And in practical applications, can to it, various changes can be made in the form and details, without departing from the spirit and scope of the present invention.
Claims (13)
1. a kind of data decoding method, which is characterized in that be applied to terminal, comprising:
Obtain the data information in two dimensional code;
The first solution code instruction is obtained according to the data information;
The first solution code instruction and the second solution code instruction are spliced, decoding instruction group is obtained, wherein second decoding
Instruction is located in the terminal;
The data information is decoded according to the decoding instruction group.
2. data decoding method according to claim 1, which is characterized in that the quantity of the two dimensional code is one, described
The first solution code instruction is obtained according to the data information, is specifically included:
Obtain the format information descriptor in the data information;
The first solution code instruction and data to be decoded according to the format information descriptor acquiring, wherein the format information
Descriptor is used to mark the position of the first solution code instruction and the data to be decoded in the data information.
3. data decoding method according to claim 2, which is characterized in that it is described according to the decoding instruction group to described
Data information is decoded, and is specifically included:
The data to be decoded are decoded according to the decoding instruction group.
4. data decoding method according to claim 1, which is characterized in that the quantity at least two of the two dimensional code,
Data information in the acquisition two dimensional code, specifically includes:
Obtain the subdata information in each described two dimensional code.
5. data decoding method according to claim 4, which is characterized in that described to obtain first according to the data information
Code instruction is solved, is specifically included:
Obtain the format information descriptor in each described subdata information;
According to format information descriptor described in each obtain respectively subsolution code instruction in each described subdata information and
Son data to be decoded, wherein the format information descriptor for mark each described subsolution code instruction and each described in
Position of the son data to be decoded in each described subdata information;
Each described subsolution code instruction is spliced, the first solution code instruction is obtained.
6. data decoding method according to claim 5, which is characterized in that it is described according to the decoding instruction group to described
Data information is decoded, and is specifically included:
Each described son data to be decoded is decoded according to the decoding instruction group.
7. a kind of data decoding method, which is characterized in that be applied to terminal, comprising:
Obtain the subdata information in each two dimensional code, wherein the quantity at least two of the two dimensional code;
A son solution code instruction is obtained respectively according to subdata information described in each;
Each described subsolution code instruction is spliced, decoding instruction group is obtained;
Each described subdata information is decoded according to the decoding instruction group.
8. data decoding method according to claim 7, which is characterized in that described according to subdata information described in each
A son solution code instruction is obtained respectively, is specifically included:
Obtain the format information descriptor in each described subdata information;
According to format information descriptor described in each obtain respectively subsolution code instruction in each described subdata information and
Son data to be decoded, wherein the format information descriptor for mark each described subsolution code instruction and each described in
Position of the son data to be decoded in each described subdata information.
9. data decoding method according to claim 8, which is characterized in that it is described according to the decoding instruction group to each
A subdata information is decoded, and is specifically included:
Each described son data to be decoded is decoded according to the decoding instruction group.
10. a kind of terminal characterized by comprising
At least one processor;And
The memory being connect at least one described processor communication;Wherein,
The memory is stored with the instruction that can be executed by least one described processor, and described instruction is by described at least one
It manages device to execute, so that at least one described processor is able to carry out such as data decoding side as claimed in any one of claims 1 to 6
Method.
11. a kind of computer readable storage medium, is stored with computer program, which is characterized in that the computer program is located
Reason device realizes data decoding method as claimed in any one of claims 1 to 6 when executing.
12. a kind of terminal characterized by comprising
At least one processor;And
The memory being connect at least one described processor communication;Wherein,
The memory is stored with the instruction that can be executed by least one described processor, and described instruction is by described at least one
It manages device to execute, so that at least one described processor is able to carry out such as the described in any item data decoding sides of claim 7 to 9
Method.
13. a kind of computer readable storage medium, is stored with computer program, which is characterized in that the computer program is located
It manages when device executes and realizes the described in any item data decoding methods of claim 7 to 9.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910195277.7A CN109977716A (en) | 2019-03-14 | 2019-03-14 | A kind of data decoding method, terminal and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910195277.7A CN109977716A (en) | 2019-03-14 | 2019-03-14 | A kind of data decoding method, terminal and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109977716A true CN109977716A (en) | 2019-07-05 |
Family
ID=67078898
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910195277.7A Pending CN109977716A (en) | 2019-03-14 | 2019-03-14 | A kind of data decoding method, terminal and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109977716A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114330405A (en) * | 2021-12-28 | 2022-04-12 | 珠海格力电器股份有限公司 | Data acquisition method and device, electronic device and readable storage medium |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105976004A (en) * | 2016-04-25 | 2016-09-28 | 华南农业大学 | Color two-dimensional code multi-dimensional information encoding and decoding methods and devices |
CN106779002A (en) * | 2016-12-14 | 2017-05-31 | 北京龙贝世纪科技股份有限公司 | Complex encryption authentication method based on Quick Response Code and radio frequency compound marking |
CN107133270A (en) * | 2017-04-01 | 2017-09-05 | 广东电网有限责任公司清远供电局 | Two-dimensional code generation method and device, the data processing method of Quick Response Code and device |
CN107451643A (en) * | 2017-08-15 | 2017-12-08 | 北京航空航天大学 | Generation, recognition methods and the device of dynamic two-dimension code |
CN108229596A (en) * | 2016-12-09 | 2018-06-29 | 北京大码技术有限公司 | Combined two-dimension code, digital certificates carrier, generation, reading device and method |
CN108345925A (en) * | 2017-01-24 | 2018-07-31 | 北京大码技术有限公司 | Generation, reading method and the device of composite type two-dimensional code |
CN109344947A (en) * | 2018-10-25 | 2019-02-15 | 福建昇兴云物联网科技有限公司 | Digital content generation method, two-dimensional code generation method and the recognition methods of two dimensional code |
-
2019
- 2019-03-14 CN CN201910195277.7A patent/CN109977716A/en active Pending
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105976004A (en) * | 2016-04-25 | 2016-09-28 | 华南农业大学 | Color two-dimensional code multi-dimensional information encoding and decoding methods and devices |
CN108229596A (en) * | 2016-12-09 | 2018-06-29 | 北京大码技术有限公司 | Combined two-dimension code, digital certificates carrier, generation, reading device and method |
CN106779002A (en) * | 2016-12-14 | 2017-05-31 | 北京龙贝世纪科技股份有限公司 | Complex encryption authentication method based on Quick Response Code and radio frequency compound marking |
CN108345925A (en) * | 2017-01-24 | 2018-07-31 | 北京大码技术有限公司 | Generation, reading method and the device of composite type two-dimensional code |
CN107133270A (en) * | 2017-04-01 | 2017-09-05 | 广东电网有限责任公司清远供电局 | Two-dimensional code generation method and device, the data processing method of Quick Response Code and device |
CN107451643A (en) * | 2017-08-15 | 2017-12-08 | 北京航空航天大学 | Generation, recognition methods and the device of dynamic two-dimension code |
CN109344947A (en) * | 2018-10-25 | 2019-02-15 | 福建昇兴云物联网科技有限公司 | Digital content generation method, two-dimensional code generation method and the recognition methods of two dimensional code |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114330405A (en) * | 2021-12-28 | 2022-04-12 | 珠海格力电器股份有限公司 | Data acquisition method and device, electronic device and readable storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109388965B (en) | Desensitization method and system for mixed data | |
CN107609418B (en) | Desensitization method and device of text data, storage device and computer device | |
CN114648130B (en) | Longitudinal federal learning method, device, electronic equipment and storage medium | |
CN105577684A (en) | Anti-crawling methods, server, client and system | |
CN110266682B (en) | Data encryption method and device, mobile terminal and decryption method | |
CN109150903A (en) | A kind of account management method, device, storage medium and terminal device | |
CN110489466B (en) | Method and device for generating invitation code, terminal equipment and storage medium | |
CN109948347A (en) | A kind of date storage method and device, server and readable storage medium storing program for executing | |
US20190259126A1 (en) | Image hidden information detector | |
WO2020233047A1 (en) | Page test method and apparatus | |
CN111783139A (en) | Federal learning classification tree construction method, model construction method and terminal equipment | |
CN112397057A (en) | Voice processing method, device, equipment and medium based on generation countermeasure network | |
CN112052321A (en) | Man-machine conversation method, device, computer equipment and storage medium | |
CN104298926A (en) | Method and device for running encrypted file | |
CN106203141A (en) | The data processing method of a kind of application and device | |
CN109977716A (en) | A kind of data decoding method, terminal and storage medium | |
CN109088872B (en) | Using method and device of cloud platform with service life, electronic equipment and medium | |
CN110069907A (en) | Big data source tracing method and system based on digital watermarking | |
CN107644168B (en) | Information extraction method, terminal and computer readable storage medium | |
CN104484619A (en) | Method for accessing file system of smart card through application module | |
CN114925337B (en) | Data labeling method and device and electronic equipment | |
CN105610811B (en) | Authentication method and its relevant equipment and system | |
CN103491537A (en) | Method and device for getting access to wireless network | |
CN111538975A (en) | Image processing method and device | |
CN105159479A (en) | Handwriting input method and apparatus |
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: 20190705 |