CN108280500A - Coding method, coding/decoding method, relevant apparatus and the equipment of Quick Response Code - Google Patents
Coding method, coding/decoding method, relevant apparatus and the equipment of Quick Response Code Download PDFInfo
- Publication number
- CN108280500A CN108280500A CN201710011030.6A CN201710011030A CN108280500A CN 108280500 A CN108280500 A CN 108280500A CN 201710011030 A CN201710011030 A CN 201710011030A CN 108280500 A CN108280500 A CN 108280500A
- Authority
- CN
- China
- Prior art keywords
- quick response
- data
- response code
- code
- slot
- 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
- 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/06046—Constructional details
- G06K19/06131—Constructional details the marking comprising a target pattern, e.g. for indicating the center of the bar code or for helping a bar code reader to properly orient the scanner or to retrieve the bar code inside of an image
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Compression, Expansion, Code Conversion, And Decoders (AREA)
Abstract
This application discloses a kind of coding method of Quick Response Code, coding/decoding method, relevant apparatus and equipment.The coding method of Quick Response Code, including:Obtain data to be transmitted;According to predetermined two-dimensional code data capacity, the data to be transmitted is divided at least two data slots so that the information content size of each data slot after division is no more than the two-dimensional code data capacity;Each data slot after division is encoded respectively, generates the Quick Response Code of each data slot;Wherein, it is one first identifier in the Quick Response Code sequence being made of multiple Quick Response Codes to be provided in the data field of the Quick Response Code of each data slot for characterizing current two-dimension.According to the technical solution of the embodiment of the present application, it can solve the problems, such as that the capacity of single Quick Response Code is limited, greatly improve the application range of Quick Response Code.
Description
Technical field
The present disclosure relates generally to field of computer technology, and in particular to planar bar code technology field more particularly to a kind of two dimension
Coding method, coding/decoding method, relevant apparatus and the equipment of code.
Background technology
With the development of information technology, people need to indicate more information, bar code skill in limited geometric space
Art develops two-dimensional bar code later on, also known as Quick Response Code from one-dimensional bar code.
Currently, Quick Response Code is widely used in the fields such as list, anti-fake, advertisement and logistics, it is mainly used between electronic equipment
(such as printed matter and mobile phone) transmits information between (such as mobile phone and mobile phone) and Non-electronic devices and electronic equipment.
Existing planar bar code technology is to store data information by the black-white point array of transverse and longitudinal in a rectangle frame, in order to
Convenient for the reading of scanning device, functional areas and data field are typically provided with, the information of functional areas is used for telling how scanning device is read
Access evidence, the information of data field are used for storing data itself, and in order to remain to be read correctly number the case where Quick Response Code is stained
According to error correcting code being also added in data field, error correcting code accounting is higher, and error correcting capability is stronger.
Therefore, the capacity that the data field of Quick Response Code is actually used in recording data information is very limited, once it needs to pass
The information content for the data information passed is excessive, and the data field of Quick Response Code can not carry, then the data information just can not use two dimension
Code is transmitted, and the application range of existing Quick Response Code is caused to be greatly limited.
Invention content
In view of drawbacks described above in the prior art or deficiency, it is intended to provide a kind of by Quick Response Code transmission large information capacity data
Scheme.
In a first aspect, the embodiment of the present application provides a kind of coding method of Quick Response Code, including:
Obtain data to be transmitted;
According to predetermined two-dimensional code data capacity, the data to be transmitted is divided at least two data slots,
So that the information content size of each data slot after dividing is no more than the two-dimensional code data capacity;
Each data slot after division is encoded, the Quick Response Code of each data slot is generated;Wherein, described
It is two be made of multiple Quick Response Codes to be provided in the data field of the Quick Response Code of each data slot for characterizing current two-dimension
Tie up one first identifier in code sequence.
Second aspect, the embodiment of the present application also provides a kind of coding/decoding methods of Quick Response Code, including:
Scan the two-dimensional code sequence;Wherein, the Quick Response Code sequence is made of at least two Quick Response Codes, and each Quick Response Code
It is one first identifier in the Quick Response Code sequence to be provided in data field for characterizing current two-dimension;
Each Quick Response Code in the Quick Response Code sequence is decoded, the corresponding data slice of each Quick Response Code is obtained
Section;
According to the corresponding data slot of each Quick Response Code, partial data is generated.
The third aspect, the embodiment of the present application also provides a kind of code devices of Quick Response Code, including:
Acquiring unit, for obtaining data to be transmitted;
Division unit, for according to predetermined two-dimensional code data capacity, the acquiring unit being obtained to be transmitted
Data are divided at least two data slots so that the information content size of each data slot after division is no more than described two
Tie up code data capacity;
Coding unit is encoded for each data slot after being divided to the division unit, respectively described in generation
The Quick Response Code of each data slot;Wherein, it is provided in the data field of the Quick Response Code of each data slot and works as characterizing
Preceding Quick Response Code is one first identifier in the Quick Response Code sequence being made of multiple Quick Response Codes.
Fourth aspect, the embodiment of the present application also provides a kind of decoding apparatus of Quick Response Code, including:
Scanning element, for scanning the two-dimensional code sequence;Wherein, the Quick Response Code sequence is made of at least two Quick Response Codes,
And it is provided in the data field of each Quick Response Code for characterizing current two-dimension as first of one in the Quick Response Code sequence
Mark;
Decoding unit, each Quick Response Code in Quick Response Code sequence for being scanned to the scanning element solve respectively
Code, obtains the corresponding data slot of each Quick Response Code;
Generation unit, the corresponding data slot of each Quick Response Code for being obtained according to the decoding unit generate complete
Data.
5th aspect, the embodiment of the present application also provides a kind of encoding device of Quick Response Code, including processor and memory,
Wherein memory includes the instruction that can be executed by processor so that processor executes the side provided according to various embodiments of the present invention
Method.
6th aspect, the embodiment of the present application also provides a kind of decoding device of Quick Response Code, including processor and memory,
Wherein memory includes the instruction that can be executed by processor so that processor executes the side provided according to various embodiments of the present invention
Method.
Quick Response Code coding and decoding scheme provided by the embodiments of the present application, after obtaining data to be transmitted, according to predetermined two
Code data capacity is tieed up, data to be transmitted is divided into multiple data slots so that the information content of each data slot after division
Size encodes respectively no more than the two-dimensional code data capacity, and to each data slot after division, generates per number
According to the Quick Response Code of the corresponding two-dimensional code data segment of segment, accordingly even when it is large information capacity data to need the data transmitted, also can
Realize smoothly transmission.It, can be with using multiple same data of Quick Response Code common transport according to the technical solution of the embodiment of the present application
It solves the problems, such as that the capacity of single Quick Response Code is limited, greatly improves the application range of Quick Response Code.
Quick Response Code decoding scheme provided by the embodiments of the present application, after scanning the two-dimensional code sequence, to every in Quick Response Code sequence
A Quick Response Code is decoded respectively, obtains the corresponding data slot of each Quick Response Code, further according to the corresponding data of each Quick Response Code
Segment generates partial data.According to the technical solution of the embodiment of the present application, multiple same numbers of Quick Response Code common transport are utilized
According to can solve the problems, such as that the capacity of single Quick Response Code is limited, greatly improve the application range of Quick Response Code.
Description of the drawings
By reading a detailed description of non-restrictive embodiments in the light of the attached drawings below, the application's is other
Feature, objects and advantages will become more apparent upon:
Fig. 1 shows the exemplary flow for the coding method that Quick Response Code is encoded according to the Quick Response Code of the application one embodiment
Figure;
Fig. 2 shows the exemplary streams for the coding method that Quick Response Code is encoded according to the Quick Response Code of the application another embodiment
Cheng Tu;
Fig. 3 shows the exemplary process diagram of the coding/decoding method of the Quick Response Code according to the application one embodiment;
Fig. 4 shows that the Quick Response Code according to the application another embodiment decodes the exemplary stream of the coding/decoding method of Quick Response Code
Cheng Tu;
Fig. 5 shows the exemplary block diagram of the code device of the Quick Response Code according to the application one embodiment;
Fig. 6 shows the exemplary block diagram of the decoding apparatus of the Quick Response Code according to the application one embodiment;
Fig. 7 shows the decoding device of the encoding device and Quick Response Code of the Quick Response Code suitable for being used for realizing the embodiment of the present application
Computer system structural schematic diagram.
Specific implementation mode
The application is described in further detail with reference to the accompanying drawings and examples.It is understood that this place is retouched
The specific embodiment stated is used only for explaining related invention, rather than the restriction to the invention.It also should be noted that in order to
Convenient for description, is illustrated only in attached drawing and invent relevant part.
It should be noted that in the absence of conflict, the features in the embodiments and the embodiments of the present application can phase
Mutually combination.The application is described in detail below with reference to the accompanying drawings and in conjunction with the embodiments.
With reference to figure 1, it illustrates the exemplary process diagrams according to the coding method of the Quick Response Code of the application one embodiment.
This method comprises the following steps:
Step 100, data to be transmitted is obtained.
In the present embodiment, data to be transmitted can be the data such as text and image.
Step 110, according to predetermined two-dimensional code data capacity, data to be transmitted is divided at least two data slices
Section so that the information content size of each data slot after division is no more than the two-dimensional code data capacity.
In the present embodiment, can two-dimensional code data capacity be directly arranged according to customer requirement, it can also be according to specifically answering
With field to select Quick Response Code coded format, and two-dimensional code data capacity is determined according to selected Quick Response Code coded format.
Different Quick Response Code coded formats, two-dimensional code data capacity are different.
Step 120, each data slot after division is encoded respectively, generates the Quick Response Code of each data slot;
Wherein, it is to be made of multiple Quick Response Codes to be provided in the data field of the Quick Response Code of each data slot for characterizing current two-dimension
Quick Response Code sequence in one first identifier.
In the present embodiment, when scanning device, which identifies, is provided with first identifier in the data field of Quick Response Code, you can judge
It is one in Quick Response Code sequence to go out the Quick Response Code, and the information which carries is only partial information, it should according to Quick Response Code
The scan mode of sequence is scanned it.
In addition, in order to enable scanning device correctly to scan reduction data to be transmitted, it can also be in each data slot
Second identifier and third mark are set in the data field of Quick Response Code, wherein second identifier is used to characterize the length of the Quick Response Code sequence
Degree, third are identified for characterizing sequence number of the current two-dimension in the Quick Response Code sequence.
In this way, when scanning device scans these Quick Response Codes, can judge to sweep according to the second identifier and third mark
Whether the two-dimentional number of codes retouched is complete, and when the two-dimentional number of codes for determining to scan is complete, can be according to Quick Response Code
In the correct reduction data to be transmitted of third mark.It is to be passed according to being carried in Quick Response Code that this method can be such that scanning device is not necessarily to
The tandem of transmission of data is scanned, and can also correctly restore data to be transmitted.
Further, step 120 can also be realized as follows:
First, the Quick Response Code coded format of each data slot is determined;Wherein, the Quick Response Code of at least two data slots is compiled
Code format differs;
Specifically, at least two Quick Response Code coded formats, then root can be selected first according to the data type of data to be transmitted
According to the selected quantity of Quick Response Code coded format, the quantity of data slot and pre-set allocation rule, each data are determined
The Quick Response Code coded format of segment.
It should be noted that pre-set allocation rule can be by the self-defined setting of customer demand in the present embodiment.
For example, according to the data type of data to be transmitted, two kinds of Quick Response Code coded formats, respectively 1 He of format are had selected
Format 2, the quantity of data slot are 8, then the Quick Response Code coded format of preceding 4 data slots can be determined as to format 1, rear 4
The Quick Response Code coded format of a data slot is determined as format 2, can also compile the Quick Response Code of the 1st, 3,5 and 7 data slot
Code format is determined as format 1, and the Quick Response Code coded format of the 2nd, 4,6 and 8 data slot is determined as format 2.
Then, according to the Quick Response Code coded format of determining each data slot, to each data slot after division point
It is not encoded, generates the Quick Response Code of each data slot.
In the embodiment of the present application, according to predetermined two-dimensional code data capacity, data to be transmitted is divided into multiple numbers
According to segment so that the information content size of each data slot after division no more than the two-dimensional code data capacity, and to divide
Each data slot afterwards is encoded, and the Quick Response Code of each data slot is generated, accordingly even when it is big to need the data transmitted
Information content data can also realize smooth transmission.
With reference to figure 2, it illustrates the exemplary flows according to the coding method of the Quick Response Code of the application another embodiment
Figure.This method comprises the following steps:
Step 200, data to be transmitted is obtained.
In the present embodiment, data to be transmitted can be the data such as text and image.
Step 210, the Quick Response Code coded format of the data to be transmitted is selected, and according to selected Quick Response Code coded format,
Determine two-dimensional code data capacity.
Wherein, Quick Response Code coded format is different, and two-dimensional code data capacity is also different.Same Quick Response Code coded format
Version is different, and two-dimensional code data capacity also differs.By taking QR Code codes as an example, the data capacity of the QR Code codes of version 20 is
1085 code words, and the data capacity of the QR Code codes of edition 40 is 3706 code words.
In the step 210, if selected Quick Response Code coded format is at least two, both Quick Response Codes can be compiled
Smaller two-dimensional code data capacity is determined as the two-dimensional code data capacity in the present embodiment in code format.
Step 220, the information content of data to be transmitted is judged whether more than determining two-dimensional code data capacity, when number to be transmitted
According to information content be more than determining two-dimensional code data capacity when, execute step 230, it is no to then follow the steps 250.
Step 230, according to determining two-dimensional code data capacity, data to be transmitted is divided at least two data slots,
So that the information content size of each data slot after dividing is no more than the two-dimensional code data capacity.
In the present embodiment, data to be transmitted is divided at least two data slots, by taking N number of data slot as an example, N is more than
Equal to 2, then the information content of N-1 data slot can be divided according to two-dimensional code data capacity, make this N-1 data slice
The information content of section is equal to two-dimensional code data capacity, and the information content of the last one remaining data slot is held less than two-dimensional code data
Amount.It can also be by the way of averagely dividing, as long as ensureing that the information neck of each data slot is less than two-dimensional code data capacity i.e.
It can.
Step 240, each data slot after division is encoded respectively according to selected Quick Response Code coded format, it is raw
At the Quick Response Code of each data slot.
Wherein, it is by multiple two to be provided in the data field of the Quick Response Code of each data slot for characterizing current two-dimension
One first identifier in the Quick Response Code sequence of code composition, the second identifier of the length for characterizing Quick Response Code sequence are tieed up, with
And the third for characterizing sequence number of the current two-dimension in Quick Response Code sequence identifies.Flow terminates.
It should be noted that first identifier, second identifier and third mark are in the data field of Quick Response Code in the application
Position can be voluntarily arranged.
It is of little use for two for example, first identifier can be the 1st and the 2nd padding bytes in the data field of Quick Response Code
Special ascii characters;
Second identifier can be located at the 3rd byte of the data field of Quick Response Code, this Quick Response Code sequence longest can be at this time
Support 256 Quick Response Codes;
Third mark can be located at the 4th byte of the data field of Quick Response Code.
For another example, first identifier can be located at the 1st and the 2nd byte of the data field of Quick Response Code;
Second identifier can be located at the 3rd and the 4th byte of the data field of Quick Response Code, this Quick Response Code sequence longest can at this time
To support 256*256=65536 Quick Response Code;
Third mark can be located at 5 and 6 bytes of the data field of Quick Response Code.
For another example, first identifier can be located at the 1st and the 2nd byte of the data field of Quick Response Code;
Second identifier and third mark are respectively positioned on the 3rd byte of the data field of Quick Response Code, wherein can use the 3rd byte
The first half 4bit indicates that the length of Quick Response Code sequence, later half 4bit indicate order of the current two-dimension in Quick Response Code sequence
Number.This Quick Response Code sequence longest can support 16 Quick Response Codes at this time.
Step 250, data to be transmitted is encoded according to selected Quick Response Code coded format, generates the data to be transmitted
Quick Response Code.Flow terminates.
Embodiment of the embodiment of Fig. 2 compared to Fig. 1, when obtaining data to be transmitted, further by comparing to be transmitted
The information content of data and the two-dimensional code data capacity predefined out, when the information content of data to be transmitted is more than to predefine out
When two-dimensional code data capacity, then data to be transmitted is divided, multiple same numbers of Quick Response Code common transport are utilized to realize
According to.Due to having carried out preliminary judgement, the only number to be transmitted to meeting condition to the size of the information content of data to be transmitted first
According to just being divided, therefore unnecessary workload can be greatly reduced, improve code efficiency.
Based on the encoding scheme of above-mentioned Quick Response Code, the embodiment of the present application gives a kind of decoding scheme of Quick Response Code.
With reference to figure 3, it illustrates the exemplary process diagrams according to the coding/decoding method of the Quick Response Code of the application one embodiment.
This method comprises the following steps:
Step 300, sequence is scanned the two-dimensional code;Wherein, which is made of at least two Quick Response Codes, and each two
It ties up and is provided in the data field of code for characterizing current two-dimension as one first identifier in Quick Response Code sequence.
Step 310, each Quick Response Code in Quick Response Code sequence is decoded, obtains the corresponding data slice of each Quick Response Code
Section.
Step 320, according to the corresponding data slot of each Quick Response Code, partial data is generated.
It should be noted that in the present embodiment, if being not provided with sequence number in the Quick Response Code of each data slot, need
End of scan is wanted to scan and recognize in order, it otherwise cannot correct restoring data;If in the Quick Response Code of each data slot
Sequence number is set, then end of scan, also can correct restoring data without scanning and recognizing in order.
With reference to figure 4, it illustrates the exemplary flows according to the coding/decoding method of the Quick Response Code of the application another embodiment
Figure.This method comprises the following steps:
Step 400, sequence is scanned the two-dimensional code.
Wherein, which is made of at least two Quick Response Codes, and is arranged in the data field of each Quick Response Code useful
In characterization current two-dimension be one first identifier in Quick Response Code sequence, length for characterizing Quick Response Code sequence second
Mark, and the third mark for characterizing sequence number of the current two-dimension in the Quick Response Code sequence.
Step 410, according to the second identifier and third mark in the data field of each Quick Response Code, judge that Quick Response Code sequence is
No scanning is complete, when judging that Quick Response Code sequence scanning is complete, executes step 420, no to then follow the steps 440.
Step 420, each Quick Response Code in Quick Response Code sequence is decoded, obtains the corresponding data slice of each Quick Response Code
Section.
Step 430, the order indicated by the second identifier being arranged in the data field of each Quick Response Code, will each two dimension
The corresponding data slot of code is integrated, and partial data is generated.Flow terminates.
Step 440, output error prompts.Flow terminates.
It should be noted that although describing the operation of the method for the present invention with particular order in the accompanying drawings, this is not required that
Or imply and must execute these operations according to the particular order, it could the realization phase or have to carry out operation shown in whole
The result of prestige.On the contrary, the step of describing in flow chart, which can change, executes sequence.
The coding and decoding methods of above-mentioned Quick Response Code in specific application, when generating the two dimension being made of N number of Quick Response Code
, can be on sending ending equipment with this N number of Quick Response Code of frequency A carousels when code sequence, or that this is presented on static print is N number of
Quick Response Code.And receiving device then can be with each Quick Response Code of frequency scanning higher than frequency A, to collect the number of neat N number of Quick Response Code
According to for terminate.Or scan this Quick Response Code sequence from printed matter.
With further reference to Fig. 5, it illustrates according to the exemplary of the code device of the Quick Response Code of the application one embodiment
Structure diagram.
The code device of the Quick Response Code may include:
Acquiring unit 500, for obtaining data to be transmitted;
Division unit 510, for according to predetermined two-dimensional code data capacity, the acquiring unit 500 to be obtained
Data to be transmitted is divided at least two data slots so that the information content size of each data slot after division no more than
The two-dimensional code data capacity;
Coding unit 520 encodes respectively for each data slot after being divided to the division unit 510, raw
At the Quick Response Code of each data slot;Wherein, it is provided with and is used in the data field of the Quick Response Code of each data slot
Characterization current two-dimension is one first identifier in the Quick Response Code sequence being made of multiple Quick Response Codes.
Optionally, it is additionally provided in the data field of the Quick Response Code of each data slot:
Second identifier for the length for characterizing the Quick Response Code sequence, and for characterizing the current two-dimension in institute
State the third mark of the sequence number in Quick Response Code sequence.
Optionally, which can also include:
Judging unit 530, for judging whether the information content of the data to be transmitted is more than the two-dimensional code data capacity;
Then
The division unit 510, is specifically used for:
When the judging unit 530 judges that the information content of the data to be transmitted is more than the two-dimensional code data capacity
When, according to predetermined two-dimensional code data capacity, the data to be transmitted is divided at least two data slots.
Optionally, which can also include:
Coded format selectes unit 540, the Quick Response Code coded format for selecting the data to be transmitted;
Data capacity determination unit 550 encodes lattice for selecting the selected Quick Response Code of unit 540 according to the coded format
Formula determines the two-dimensional code data capacity.
Optionally, coding unit 520 can specifically include:
Coded format determination unit 5210, the Quick Response Code coded format for determining each data slot;Wherein, until
The Quick Response Code coded format of few two data slots differs;
Generation unit 5220, each data slot for being used to be determined according to the coded format determination unit 5210
Quick Response Code coded format encodes each data slot after division respectively, generates the two dimension of each data slot
Code.
Optionally, the coded format determination unit 5210, is specifically used for:
According to the data type of the data to be transmitted, at least two Quick Response Code coded formats are selected;
It is advised according to the quantity of selected Quick Response Code coded format, the quantity of the data slot and pre-set distribution
Then, the Quick Response Code coded format of each data slot is determined.
It should be appreciated that systems or unit described in the code device of the Quick Response Code with reference to figure 1- Fig. 2 description
Each step in method is corresponding.As a result, the Quick Response Code is equally applicable to above with respect to the operation and feature of method description
Code device and unit wherein included, details are not described herein.
With further reference to Fig. 6, it illustrates according to the exemplary of the decoding apparatus of the Quick Response Code of the application one embodiment
Structure diagram.
The decoding apparatus of the Quick Response Code may include:
Scanning element 600, for scanning the two-dimensional code sequence;Wherein, the Quick Response Code sequence is by least two two-dimentional code characters
At, and be provided in the data field of each Quick Response Code for characterizing that current two-dimension is one in the Quick Response Code sequence the
One mark;
Decoding unit 610, for each Quick Response Code in the Quick Response Code sequence that is scanned to the scanning element 600 respectively into
Row decoding, obtains the corresponding data slot of each Quick Response Code;
Generation unit 620, the corresponding data slot of each Quick Response Code for being obtained according to the decoding unit 610 are raw
At partial data.
Optionally, it is additionally provided in the data field of each Quick Response Code in the Quick Response Code sequence:
Second identifier for the length for characterizing the Quick Response Code sequence, and for characterizing the current two-dimension in institute
State the third mark of the sequence number in Quick Response Code sequence.
Optionally, which can also include:
Whether judging unit 630 judges the Quick Response Code sequence for being identified according to the second identifier and the third
Scanning is complete;Then
The generation unit 620, is specifically used for:
When the judging unit 630 judges that the Quick Response Code sequence has scanned complete, according to the number of each Quick Response Code
According to the order indicated by the second identifier being arranged in area, the corresponding data slot of each Quick Response Code is integrated, is generated
Partial data.
Optionally, which can also include:
Output unit 640, it is defeated for when the judging unit 630 judges that the Quick Response Code sequence does not scan complete
Make mistake prompt.
It should be appreciated that systems or unit described in the decoding apparatus of the Quick Response Code with reference to figure 3- Fig. 4 description
Each step in method is corresponding.As a result, the Quick Response Code is equally applicable to above with respect to the operation and feature of method description
Decoding apparatus and unit wherein included, details are not described herein.
Below with reference to Fig. 7, it illustrates suitable for the Quick Response Code for realizing the embodiment of the present application encoding device and decoding
The structural schematic diagram of the computer system of equipment.
It, can be according to being stored in read-only storage as shown in fig. 7, computer system includes central processing unit (CPU) 701
Program in device (ROM) 702 is held from the program that storage section 15708 is loaded into random access storage device (RAM) 703
The various actions appropriate of row and processing.In RAM 703, it is also stored with various programs and data needed for system operatio.
CPU701, ROM 702 and RAM703 is connected with each other by bus 704.Input/output (I/O) interface 705 is also connected to bus
704。
It is connected to I/O interfaces 705 with lower component:Importation 15706 including keyboard, mouse etc.;Including such as cathode
The output par, c 707 of ray tube (CRT), liquid crystal display (LCD) etc. and loud speaker etc.;Storage section including hard disk etc.
708;And the communications portion 709 of the network interface card including LAN card, modem etc..Communications portion 709 is via all
As the network of internet executes communication process.Driver 710 is also according to needing to be connected to I/O interfaces 705.Detachable media 711,
Such as disk, CD, magneto-optic disk, semiconductor memory etc. are mounted on driver 710, as needed in order to from thereon
The computer program of reading is mounted into storage section 708 as needed.
Particularly, in accordance with an embodiment of the present disclosure, it may be implemented as computer above with reference to the process of Fig. 1-Fig. 4 descriptions
Software program.For example, embodiment of the disclosure includes a kind of computer program product comprising be tangibly embodied in machine readable
Computer program on medium, the computer program include the program code of the method for executing Fig. 1-Fig. 4.Such
In embodiment, which can be downloaded and installed by communications portion 709 from network, and/or is situated between from detachable
Matter 711 is mounted.
Flow chart in attached drawing and block diagram, it is illustrated that according to the system of various embodiments of the invention, method and computer journey
The architecture, function and operation in the cards of sequence product.In this regard, each box in flowchart or block diagram can generation
A part for a part for one module, program segment, or code of table, the module, program segment, or code includes one or more
Executable instruction for implementing the specified logical function.It should also be noted that in some implementations as replacements, institute in box
The function of mark can also occur in a different order than that indicated in the drawings.For example, two boxes succeedingly indicated are practical
On can be basically executed in parallel, they can also be executed in the opposite order sometimes, this is depended on the functions involved.Also it wants
It is noted that the combination of each box in block diagram and or flow chart and the box in block diagram and or flow chart, Ke Yiyong
The dedicated hardware based system of defined functions or operations is executed to realize, or can be referred to specialized hardware and computer
The combination of order is realized.
Being described in unit or module involved in the embodiment of the present application can be realized by way of software, can also
It is realized by way of hardware.Described unit or module can also be arranged in the processor.These units or module
Title does not constitute the restriction to the unit or module itself under certain conditions.
As on the other hand, present invention also provides a kind of computer readable storage medium, the computer-readable storage mediums
Matter can be computer readable storage medium included in device described in above-described embodiment;Can also be individualism, not
The computer readable storage medium being fitted into equipment.There are one computer-readable recording medium storages or more than one journey
Sequence, described program are used for executing the formula input method for being described in the application by one or more than one processor.
Above description is only the preferred embodiment of the application and the explanation to institute's application technology principle.People in the art
Member should be appreciated that invention scope involved in the application, however it is not limited to technology made of the specific combination of above-mentioned technical characteristic
Scheme, while should also cover in the case where not departing from the inventive concept, it is carried out by above-mentioned technical characteristic or its equivalent feature
Other technical solutions of arbitrary combination and formation.Such as features described above has similar work(with (but not limited to) disclosed herein
Can technical characteristic replaced mutually and the technical solution that is formed.
Claims (22)
1. a kind of coding method of Quick Response Code, which is characterized in that the method includes:
Obtain data to be transmitted;
According to predetermined two-dimensional code data capacity, the data to be transmitted is divided at least two data slots so that
The information content size of each data slot after division is no more than the two-dimensional code data capacity;
Each data slot after division is encoded respectively, generates the Quick Response Code of each data slot;Wherein, described
It is two be made of multiple Quick Response Codes to be provided in the data field of the Quick Response Code of each data slot for characterizing current two-dimension
Tie up one first identifier in code sequence.
2. according to the method described in claim 1, it is characterized in that, in the data field of the Quick Response Code of each data slot also
It is provided with:
Second identifier for the length for characterizing the Quick Response Code sequence, and for characterizing the current two-dimension described two
Tie up the third mark of the sequence number in code sequence.
3. according to the method described in claim 1, it is characterized in that, described according to predetermined two-dimensional code data capacity, general
The data to be transmitted is divided into before at least two data slots, and the method further includes:
Judge whether the information content of the data to be transmitted is more than the two-dimensional code data capacity, and
It is described that the data to be transmitted is divided at least two data slots, including:
When the information content of the data to be transmitted is more than the two-dimensional code data capacity, according to predetermined two-dimensional code data
The data to be transmitted is divided at least two data slots by capacity.
4. according to the method described in claim 1, it is characterized in that, described be divided at least two numbers by the data to be transmitted
Before segment, the method further includes:
Select the Quick Response Code coded format of the data to be transmitted;
According to selected Quick Response Code coded format, the two-dimensional code data capacity is determined.
5. according to the method described in claim 1, it is characterized in that, each data slot after described pair of division is compiled respectively
Code generates the Quick Response Code of each data slot, specifically includes:
Determine the Quick Response Code coded format of each data slot;Wherein, the Quick Response Code of at least two data slots encodes lattice
Formula differs;
According to the Quick Response Code coded format of determining each data slot, each data slot after division is carried out respectively
Coding generates the Quick Response Code of each data slot.
6. according to the method described in claim 5, it is characterized in that, the Quick Response Code coding of the determination each data slot
Format, including:
According to the data type of the data to be transmitted, at least two Quick Response Code coded formats are selected;
According to the quantity of selected Quick Response Code coded format, the quantity of the data slot and pre-set allocation rule, really
The Quick Response Code coded format of fixed each data slot.
7. a kind of coding/decoding method of Quick Response Code, which is characterized in that the method includes:
Scan the two-dimensional code sequence;Wherein, the Quick Response Code sequence is made of at least two Quick Response Codes, and the data of each Quick Response Code
It is one first identifier in the Quick Response Code sequence to be provided in area for characterizing current two-dimension;
Each Quick Response Code in the Quick Response Code sequence is decoded respectively, obtains the corresponding data slice of each Quick Response Code
Section;
According to the corresponding data slot of each Quick Response Code, partial data is generated.
8. the method according to the description of claim 7 is characterized in that the data field of each Quick Response Code in the Quick Response Code sequence
In be additionally provided with:
Second identifier for the length for characterizing the Quick Response Code sequence, and for characterizing the current two-dimension described two
Tie up the third mark of the sequence number in code sequence.
9. according to the method described in claim 8, it is characterized in that, each Quick Response Code in the Quick Response Code sequence into
Before row decoding, the method further includes:
It is identified according to the second identifier and the third, judges whether the Quick Response Code sequence scans completely, and
It is described that partial data is generated according to the corresponding data slot of each Quick Response Code, including:
When judging that the Quick Response Code sequence has scanned complete, according to the second identifier being arranged in the data field of each Quick Response Code
The corresponding data slot of each Quick Response Code is integrated, generates partial data by indicated order.
10. according to the method described in claim 9, it is characterized in that, being identified according to the second identifier and the third, judgement
After whether the Quick Response Code sequence scans completely, the method further includes:
When judging that the Quick Response Code sequence does not scan complete, output error prompt.
11. a kind of code device of Quick Response Code, which is characterized in that described device includes:
Acquiring unit, for obtaining data to be transmitted;
Division unit is used for according to predetermined two-dimensional code data capacity, the data to be transmitted that the acquiring unit is obtained
It is divided at least two data slots so that the information content size of each data slot after division is no more than the Quick Response Code
Data capacity;
Coding unit encodes respectively for each data slot after being divided to the division unit, generates described each
The Quick Response Code of data slot;Wherein, it is provided in the data field of the Quick Response Code of each data slot and works as the first two for characterizing
Dimension code is one first identifier in the Quick Response Code sequence being made of multiple Quick Response Codes.
12. according to the devices described in claim 11, which is characterized in that in the data field of the Quick Response Code of each data slot
It is additionally provided with:
Second identifier for the length for characterizing the Quick Response Code sequence, and for characterizing the current two-dimension described two
Tie up the third mark of the sequence number in code sequence.
13. according to the devices described in claim 11, which is characterized in that described device further includes:
Judging unit, for judge the data to be transmitted information content whether be more than the two-dimensional code data capacity, and
The division unit is specifically used for:
When the judging unit judges that the information content of the data to be transmitted is more than the two-dimensional code data capacity, according to pre-
First determining two-dimensional code data capacity, at least two data slots are divided by the data to be transmitted.
14. according to the devices described in claim 11, which is characterized in that described device further includes:
Coded format selectes unit, the Quick Response Code coded format for selecting the data to be transmitted;
Data capacity determination unit determines institute for selecting the selected Quick Response Code coded format of unit according to the coded format
State two-dimensional code data capacity.
15. device according to claim 14, which is characterized in that the coding unit is specifically used for:
Coded format determination unit, the Quick Response Code coded format for determining each data slot;Wherein, at least two number
It is differed according to the Quick Response Code coded format of segment;
The Quick Response Code of generation unit, each data slot for being determined according to the coded format determination unit encodes lattice
Formula encodes each data slot after division respectively, generates the Quick Response Code of each data slot.
16. device according to claim 15, which is characterized in that the coded format determination unit is specifically used for:
According to the data type of the data to be transmitted, at least two Quick Response Code coded formats are selected;
According to the quantity of selected Quick Response Code coded format, the quantity of the data slot and pre-set allocation rule, really
The Quick Response Code coded format of fixed each data slot.
17. a kind of decoding apparatus of Quick Response Code, which is characterized in that described device includes:
Scanning element, for scanning the two-dimensional code sequence;Wherein, the Quick Response Code sequence is made of at least two Quick Response Codes, and every
It is one first identifier in the Quick Response Code sequence to be provided in the data field of a Quick Response Code for characterizing current two-dimension;
Decoding unit, each Quick Response Code in Quick Response Code sequence for being scanned to the scanning element are decoded, obtain respectively
To the corresponding data slot of each Quick Response Code;
Generation unit, the corresponding data slot of each Quick Response Code for being obtained according to the decoding unit generate partial data.
18. device according to claim 17, which is characterized in that the data of each Quick Response Code in the Quick Response Code sequence
It is additionally provided in area:
Second identifier for the length for characterizing the Quick Response Code sequence, and for characterizing the current two-dimension described two
Tie up the third mark of the sequence number in code sequence.
19. device according to claim 18, which is characterized in that described device further includes:
Judging unit judges whether the Quick Response Code sequence scans through for being identified according to the second identifier and the third
It is whole, and
The generation unit is specifically used for:
When the judging unit judges that the Quick Response Code sequence has scanned complete, set according in the data field of each Quick Response Code
The corresponding data slot of each Quick Response Code is integrated, generates partial data by the order indicated by second identifier set.
20. device according to claim 19, which is characterized in that described device further includes:
Output unit, for when the judging unit judges that the Quick Response Code sequence does not scan complete, output error to prompt.
21. a kind of encoding device of Quick Response Code, including processor and memory;It is characterized in that:
The memory includes can be by instruction that the processor executes so that the processor executes:
Obtain data to be transmitted;
According to predetermined two-dimensional code data capacity, the data to be transmitted is divided at least two data slots so that
The information content size of each data slot after division is no more than the two-dimensional code data capacity;
Each data slot after division is encoded respectively, generates the Quick Response Code of each data slot;Wherein, described
It is two be made of multiple Quick Response Codes to be provided in the data field of the Quick Response Code of each data slot for characterizing current two-dimension
Tie up one first identifier in code sequence.
22. a kind of decoding device of Quick Response Code, including processor and memory;It is characterized in that:
The memory includes can be by instruction that the processor executes so that the processor executes:
Scan the two-dimensional code sequence;Wherein, the Quick Response Code sequence is made of at least two Quick Response Codes, and the data of each Quick Response Code
It is one first identifier in the Quick Response Code sequence to be provided in area for characterizing current two-dimension;
Each Quick Response Code in the Quick Response Code sequence is decoded respectively, obtains the corresponding data slice of each Quick Response Code
Section;
According to the corresponding data slot of each Quick Response Code, partial data is generated.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710011030.6A CN108280500A (en) | 2017-01-06 | 2017-01-06 | Coding method, coding/decoding method, relevant apparatus and the equipment of Quick Response Code |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710011030.6A CN108280500A (en) | 2017-01-06 | 2017-01-06 | Coding method, coding/decoding method, relevant apparatus and the equipment of Quick Response Code |
Publications (1)
Publication Number | Publication Date |
---|---|
CN108280500A true CN108280500A (en) | 2018-07-13 |
Family
ID=62799172
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710011030.6A Pending CN108280500A (en) | 2017-01-06 | 2017-01-06 | Coding method, coding/decoding method, relevant apparatus and the equipment of Quick Response Code |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108280500A (en) |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109144363A (en) * | 2018-07-24 | 2019-01-04 | 联想(北京)有限公司 | A kind of information processing method and electronic equipment |
CN109446826A (en) * | 2018-10-24 | 2019-03-08 | 北京橙鑫数据科技有限公司 | Information processing unit, method, system and storage medium |
CN109948389A (en) * | 2019-03-28 | 2019-06-28 | 尤尼泰克(嘉兴)信息技术有限公司 | A kind of drafting of extension two dimensional code and recognition methods accommodating large capacity |
CN110059519A (en) * | 2019-04-23 | 2019-07-26 | 福州符号信息科技有限公司 | A kind of bar code reading method and apparatus with security level processing |
CN111275152A (en) * | 2020-01-16 | 2020-06-12 | 北京迈格威科技有限公司 | Two-dimensional code, encoding method and decoding method of two-dimensional code, decoding device of two-dimensional code and electronic system |
CN111723891A (en) * | 2019-03-18 | 2020-09-29 | 北京京东尚科信息技术有限公司 | Graphic code generation method and device and computer readable storage medium |
CN112070195A (en) * | 2020-09-22 | 2020-12-11 | 澳新银行营运服务(成都)有限公司 | Two-dimensional code identification and generation method and device, electronic equipment and storage medium |
CN114826485A (en) * | 2022-04-25 | 2022-07-29 | 中国建设银行股份有限公司 | Data transmission method, device and storage medium |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101645140A (en) * | 2008-08-06 | 2010-02-10 | 华为技术有限公司 | Two-dimensional code generation method, decoding method and device |
CN103745252A (en) * | 2013-12-27 | 2014-04-23 | 广州市宝比塑料制品有限公司 | Coding line, two-dimensional coding method and two-dimensional decoding method |
CN104143109A (en) * | 2014-01-28 | 2014-11-12 | 深圳市雁联计算***有限公司 | Two-dimensional code coding method, two-dimensional code decoding method and two-dimensional code print |
US20160132708A1 (en) * | 2014-11-06 | 2016-05-12 | Kuei-Sheng Tsou | Displaying method and decoding method for a dynamic recognizable two-dimensional code |
-
2017
- 2017-01-06 CN CN201710011030.6A patent/CN108280500A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101645140A (en) * | 2008-08-06 | 2010-02-10 | 华为技术有限公司 | Two-dimensional code generation method, decoding method and device |
CN103745252A (en) * | 2013-12-27 | 2014-04-23 | 广州市宝比塑料制品有限公司 | Coding line, two-dimensional coding method and two-dimensional decoding method |
CN104143109A (en) * | 2014-01-28 | 2014-11-12 | 深圳市雁联计算***有限公司 | Two-dimensional code coding method, two-dimensional code decoding method and two-dimensional code print |
US20160132708A1 (en) * | 2014-11-06 | 2016-05-12 | Kuei-Sheng Tsou | Displaying method and decoding method for a dynamic recognizable two-dimensional code |
Cited By (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109144363A (en) * | 2018-07-24 | 2019-01-04 | 联想(北京)有限公司 | A kind of information processing method and electronic equipment |
CN109144363B (en) * | 2018-07-24 | 2021-09-14 | 联想(北京)有限公司 | Information processing method and electronic equipment |
CN109446826A (en) * | 2018-10-24 | 2019-03-08 | 北京橙鑫数据科技有限公司 | Information processing unit, method, system and storage medium |
CN111723891A (en) * | 2019-03-18 | 2020-09-29 | 北京京东尚科信息技术有限公司 | Graphic code generation method and device and computer readable storage medium |
CN109948389A (en) * | 2019-03-28 | 2019-06-28 | 尤尼泰克(嘉兴)信息技术有限公司 | A kind of drafting of extension two dimensional code and recognition methods accommodating large capacity |
CN110059519A (en) * | 2019-04-23 | 2019-07-26 | 福州符号信息科技有限公司 | A kind of bar code reading method and apparatus with security level processing |
CN111275152A (en) * | 2020-01-16 | 2020-06-12 | 北京迈格威科技有限公司 | Two-dimensional code, encoding method and decoding method of two-dimensional code, decoding device of two-dimensional code and electronic system |
CN112070195A (en) * | 2020-09-22 | 2020-12-11 | 澳新银行营运服务(成都)有限公司 | Two-dimensional code identification and generation method and device, electronic equipment and storage medium |
CN114826485A (en) * | 2022-04-25 | 2022-07-29 | 中国建设银行股份有限公司 | Data transmission method, device and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108280500A (en) | Coding method, coding/decoding method, relevant apparatus and the equipment of Quick Response Code | |
US9665817B2 (en) | Techniques for generating customized two-dimensional barcodes | |
US9177238B2 (en) | Techniques for generating customized two-dimensional barcodes | |
US10997481B2 (en) | System and method for collecting and analyzing multi-fields two-dimensional code | |
CN103516952B (en) | Image processing apparatus, image processing system and Method of printing | |
AU2008202785B2 (en) | Information processing device, printing device, information processing system, method, and program | |
CN111190557A (en) | Certificate printing method and system for configurable printing items | |
CN109948762A (en) | Method and apparatus for generating two dimensional code | |
JPWO2014103251A1 (en) | Data conversion system, data conversion device, and data conversion method | |
CN105117759A (en) | Dynamic two-dimensional code generating method, reading method, generating apparatuses and reading apparatuses | |
CN106203231B (en) | A kind of voucher cloud print system for supporting active reading code to print | |
CN111240609A (en) | Data printing method and device, electronic equipment and storage medium | |
JP2018195032A (en) | Code reader, code generation device, printed matter, cord reading method, code generation method, code reading program, and code generation program | |
US20080019561A1 (en) | Printing system, printer, printing method, reader, and reading method | |
CN108268920B (en) | Method and device for generating bar code | |
CN111240785A (en) | Page generation method and device | |
CN114872449B (en) | Label printing method and device and electronic equipment | |
JP6465425B2 (en) | Barcode instruction generator | |
CN110851883B (en) | Equipment fingerprint generation method and device based on picture drawing | |
JP4538173B2 (en) | Access destination input program and access destination input device | |
CN110020317B (en) | Webpage container bottom supporting file determining method, device, equipment and readable storage medium | |
CN114676097A (en) | OFD file processing method, device, equipment and medium | |
US20040073696A1 (en) | Image output apparatus having online help function and method of providing help function using the same | |
KR101728919B1 (en) | Access control system and method for registering multi-dimensional code to provide distributed landing page in advance and multi-dimensional code providing system and mehtod for distributing multi-dimensional code | |
US20140246486A1 (en) | Printing barcodes from an enterprise resource planning (erp) system |
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 |
Application publication date: 20180713 |
|
RJ01 | Rejection of invention patent application after publication |