CN104408503B - The processing method and system of Quick Response Code - Google Patents
The processing method and system of Quick Response Code Download PDFInfo
- Publication number
- CN104408503B CN104408503B CN201410595438.9A CN201410595438A CN104408503B CN 104408503 B CN104408503 B CN 104408503B CN 201410595438 A CN201410595438 A CN 201410595438A CN 104408503 B CN104408503 B CN 104408503B
- Authority
- CN
- China
- Prior art keywords
- quick response
- response code
- matrix element
- element width
- width value
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Landscapes
- Image Processing (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
The invention provides a kind of processing method of Quick Response Code and system, in Quick Response Code generation equipment side, method includes:Receive data to be encoded and determine preset matrix element width value;Data to be encoded generator matrix element width is 1 pixel and matrix element is the Quick Response Code of square and to be stored without compressed picture form, and the preset matrix element width value of determination is stored in presupposed information;When receive Quick Response Code is sent to the instruction of Quick Response Code display device when, then Quick Response Code or Quick Response Code and presupposed information are sent to Quick Response Code display device, so that the matrix element width of Quick Response Code is expanded to after preset matrix element width value and shown by Quick Response Code display device.The Quick Response Code of this method generation can reduce the occupancy of memory space and transmission bandwidth, not only without additionally supporting other picture formats, and storing and show also save processor expense during the Quick Response Code.
Description
Technical field
The present invention relates to the communications field, the processing method and system of more particularly to a kind of Quick Response Code.
Background technology
Quick Response Code(Two-dimensional code), also known as two-dimensional bar code, it is by certain with specific geometric figure
Rule is in plane(Two-dimensional directional)The chequered with black and white figure of upper distribution, Quick Response Code is developed from one-dimension code technology, but
Compared with one-dimension code, the memory capacity of Quick Response Code expands tens to hundred times and security is also higher.In modern commerce activity
In, Quick Response Code can be widely applied to many aspects, such as:Product false proof/trace to the source, advertisement pushing, web site url, data download,
Commodity transaction, positioning/navigation, E-business applications, vehicle management, information transmission etc..
Quick Response Code can be divided into capable row's formula Quick Response Code and matrix two-dimensional code, wherein, matrix two-dimensional code(Also known as checkerboard type two
Tie up code)A kind of New Graphics symbol on the basis of computer image processing technology, assembly coding principle etc. is built upon automatically to know
Processing code system is read, it is the coffin in a different distributions progress coding by black, white pixel in a matrix,
In matrix element, appearance side's point, round dot or other shapes point represent binary one, and it is binary " 0 " to occur without an expression, point
Permutation and combination meaning representated by matrix two-dimensional code is determined, representative matrix two-dimensional code has:Code One、
Maxi Code, QR Code, Data Matrix etc..
In order that Quick Response Code has higher readability, and when generating Quick Response Code, the width generally quilt of each matrix element
It is set as N (N>1) individual pixel, then each matrix element needs the pixel quantity taken to be N × N number of pixel, with by M × M
Exemplified by the QR Quick Response Codes of the square area of matrix element composition, then the pixel quantity that whole Quick Response Code takes is (N × M) × (N
× M) individual pixel, if by the Quick Response Code of above-mentioned generation to be preserved and be transmitted without compressed picture form, will certainly cause big
The waste of the memory space and transmission bandwidth of amount, therefore, in the prior art, it will usually select following manner to be handled:
1. using without compressed picture form(Such as BMP bitmap formats)Quick Response Code is stored and Quick Response Code not pressed
Contracting(Such as it is compressed by winrar, winzip etc.), such a mode storage when can waste big quantity space and transmission when
Also transmission bandwidth can be wasted;
2. being stored using Lossless Compression picture format to Quick Response Code, it is corresponding lossless that such a mode is additionally required support
Compressed picture form, and compared with without compressed picture form, such a mode can increase holding for processor when being compressed processing
Pin;
3. being stored using lossy compression method picture format to Quick Response Code, such a mode will certainly cause the picture of Quick Response Code
The decline of quality, and then the readability of Quick Response Code can be reduced;
4. Quick Response Code is compressed again using being stored without compressed picture form to Quick Response Code(Such as pass through
Winrar, winzip etc. are compressed), the enforcement used time is gone forward side by side, it is necessary to enter first to the Quick Response Code when receiving such a Quick Response Code
Could normally be used after row decompression, therefore, can such a mode can increase processor being compressed, when the processing such as decompress
Expense, while can also increase the complexity used.
In a word, the existing processing mode to Quick Response Code is preferable not enough.
The content of the invention
The invention provides a kind of processing method of Quick Response Code and system, what the Quick Response Code generated by this method took deposits
The storage space and transmission bandwidth that takes is all smaller in transmission, and the picture quality of Quick Response Code that shows can be ensured and readable
Property, because the Quick Response Code of the generation is stored with the picture format without compression, without additionally supporting other picture formats and in storage
And show processor expense can be saved during the Quick Response Code.
According to an aspect of the present invention, the present invention proposes a kind of processing method of Quick Response Code, including Quick Response Code generation is set
Standby and Quick Response Code display device, the Quick Response Code generation equipment is communicated to connect with the Quick Response Code display device,
In Quick Response Code generation equipment side, methods described includes:
Receive data to be encoded and determine preset matrix element width value;
By the data to be encoded generator matrix element width be 1 pixel and matrix element be square Quick Response Code and
To be stored without compressed picture form, and the preset matrix element width value of determination is stored in presupposed information;
When receive the Quick Response Code is sent to the instruction of Quick Response Code display device when, then by the Quick Response Code or described
Quick Response Code and the presupposed information are sent to the Quick Response Code display device, so that the Quick Response Code display device is according to getting
Preset matrix element width value corresponding with the Quick Response Code, the matrix element width of Quick Response Code is expanded into preset matrix element
After plain width value and shown.
Further, the described preset matrix element width value of determination is stored in presupposed information is by the preset of determination
Matrix element width value is stored in the formatted message of Quick Response Code,
The Quick Response Code or the Quick Response Code and the presupposed information are sent to the Quick Response Code display device, specifically
For:
Quick Response Code comprising preset matrix element width value in formatted message is sent to the Quick Response Code display device,
So that the two-dimentional decoding apparatus is obtained and described two by reading the preset matrix element width value in the formatted message
Tie up the corresponding preset matrix element width value of code.
Further, the described preset matrix element width value of determination is stored in presupposed information is by the preset of determination
Matrix element width value is stored in the presupposed information outside the formatted message of the Quick Response Code,
The Quick Response Code or the Quick Response Code and the presupposed information are sent to the Quick Response Code display device, specifically
For:
The Quick Response Code and the presupposed information are respectively sent to the Quick Response Code display device, so as to the Quick Response Code
Display device is corresponding with the Quick Response Code pre- to obtain by reading the preset matrix element width value in the presupposed information
Put matrix element width value.
The invention also provides a kind of processing method of Quick Response Code, including Quick Response Code generation equipment and Quick Response Code show and set
Standby, the Quick Response Code generation equipment is communicated to connect with the Quick Response Code display device,
In Quick Response Code display device side, methods described includes:
Receive Quick Response Code or Quick Response Code and presupposed information that the Quick Response Code generation equipment is sent;
Preset matrix element corresponding with the Quick Response Code is obtained according to the Quick Response Code received or the presupposed information
Plain width value;
The matrix element width of Quick Response Code is expanded to by preset square according to the preset matrix element width value got
Array element element width value after and shown;
Wherein, the Quick Response Code is that matrix element width is 1 pixel and matrix element is square Quick Response Code.
Further, the preset matrix element width value is to be stored in the formatted message of Quick Response Code,
Preset matrix element corresponding with the Quick Response Code is obtained according to the Quick Response Code received or the presupposed information
Plain width value, be specially:
Preset matrix element width value in formatted message by reading the Quick Response Code is obtained and the two dimension
The corresponding preset matrix element width value of code.
Further, the preset matrix element width value be stored in it is pre- outside the formatted message of the Quick Response Code
If in information,
Preset matrix element corresponding with the Quick Response Code is obtained according to the Quick Response Code received or the presupposed information
Plain width value, be specially:
It is corresponding with the Quick Response Code pre- to obtain by reading the preset matrix element width value in the presupposed information
Put matrix element width value.
According to another aspect of the present invention, the present invention proposes a kind of processing system of Quick Response Code, including Quick Response Code generation
Equipment and Quick Response Code display device, the Quick Response Code generation equipment are communicated to connect with the Quick Response Code display device,
In Quick Response Code generation equipment side, the system includes:
First receiving unit, for receiving data to be encoded and determining preset matrix element width value;
Quick Response Code generation unit, for being 1 pixel and matrix element by the data to be encoded generator matrix element width
Element stores the preset matrix element width value of determination for square Quick Response Code and to be stored without compressed picture form
In presupposed information;
Transmitting element, for when receive the Quick Response Code is sent to the instruction of the Quick Response Code display device when, then
The Quick Response Code or the Quick Response Code and the presupposed information are sent to the Quick Response Code display device, so as to the Quick Response Code
Display device is according to preset matrix element width value corresponding with the Quick Response Code is got, by the matrix element of the Quick Response Code
Plain width is expanded to after preset matrix element width value and shown.
Further, the described preset matrix element width value of determination is stored in presupposed information is by the preset of determination
Matrix element width value is stored in the formatted message of Quick Response Code,
The transmitting element, specifically for:
Quick Response Code comprising preset matrix element width value in formatted message is sent to the Quick Response Code display device,
So that the two-dimentional decoding apparatus is obtained and described two by reading the preset matrix element width value in the formatted message
Tie up the corresponding preset matrix element width value of code.
Further, the described preset matrix element width value of determination is stored in presupposed information is by the preset of determination
Matrix element width value is stored in the presupposed information outside the formatted message of the Quick Response Code,
The transmitting element, specifically for:
The Quick Response Code and the presupposed information are respectively sent to the Quick Response Code display device, so as to the Quick Response Code
Display device is corresponding with the Quick Response Code pre- to obtain by reading the preset matrix element width value in the presupposed information
Put matrix element width value.
The present invention also proposes a kind of processing system of Quick Response Code, including Quick Response Code generation equipment and Quick Response Code display device,
The Quick Response Code generation equipment is communicated to connect with the Quick Response Code display device,
In Quick Response Code display device side, the system includes:
Second receiving unit, for receiving Quick Response Code or Quick Response Code and default letter that the Quick Response Code generation equipment is sent
Breath;
Acquiring unit, for obtaining corresponding with the Quick Response Code according to the Quick Response Code or the presupposed information that receive
Preset matrix element width value;
Display unit, for according to the preset matrix element width value that gets by the matrix element of the Quick Response Code
Width is expanded to after preset matrix element width value and shown;
Wherein, the Quick Response Code is that matrix element width is 1 pixel and matrix element is square Quick Response Code.
Further, the preset matrix element width value is to be stored in the formatted message of Quick Response Code,
The acquiring unit, specifically for:
Preset matrix element width value in formatted message by reading the Quick Response Code is obtained and the two dimension
The corresponding preset matrix element width value of code.
Further, the preset matrix element width value be stored in it is pre- outside the formatted message of the Quick Response Code
If in information,
The acquiring unit, specifically for:
It is corresponding with the Quick Response Code pre- to obtain by reading the preset matrix element width value in the presupposed information
Put matrix element width value.
The specific embodiment provided according to the present invention, the invention discloses following technique effect:
The processing method and system of the Quick Response Code of the embodiment of the present invention, generation, transmission and display available for Quick Response Code,
Quick Response Code generation equipment side, can generator matrix element width be 1 pixel and matrix element is the Quick Response Code of square and with nothing
Compressed picture form is stored, and the preset matrix element width value of determination is stored in presupposed information, further according to preset matrix
Quick Response Code or Quick Response Code and presupposed information are sent to Quick Response Code display device by the storage location of element width value, are generated with this
Quick Response Code can reduce the amount of pixels of occupancy, therefore can reduce the memory space of occupancy and can reduce the bandwidth taken in transmission,
And other picture formats are not only additionally supported without equipment using being stored without compressed picture form, and storing and showing
The expense of processing can be also saved during the Quick Response Code;, can be wide according to the preset matrix element got in Quick Response Code display device side
Angle value is shown again after the matrix element width of the Quick Response Code received is extended, and is answered with ensureing that the Quick Response Code shown has
Some amount of pixels, it is ensured that the picture quality of Quick Response Code, and then ensure that Quick Response Code has higher readability.
Certainly, any product for implementing the present invention it is not absolutely required to while reaching all the above advantage.
Brief description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, below will be to institute in embodiment
The accompanying drawing needed to use is briefly described, it should be apparent that, drawings in the following description are only some implementations of the application
Example, for those of ordinary skill in the art, on the premise of not paying creative work, can also be obtained according to these accompanying drawings
Obtain other accompanying drawings.
Fig. 1 is the schematic flow sheet of the processing method embodiment one of Quick Response Code of the present invention;
Fig. 2 is the schematic flow sheet of the processing method embodiment two of Quick Response Code of the present invention;
Fig. 3 is the structural representation of the processing system embodiment one of Quick Response Code of the present invention;
Fig. 4 is the structural representation of the processing system embodiment two of Quick Response Code of the present invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete
Site preparation is described, it is clear that described embodiment is only some embodiments of the present application, rather than whole embodiments.It is based on
Embodiment in the present invention, the every other embodiment that those of ordinary skill in the art are obtained belongs to the application protection
Scope.
The present embodiments relate to generate equipment and Quick Response Code display device to Quick Response Code, and Quick Response Code can be generated equipment
It is communicatively coupled between Quick Response Code display device.During implementing, Quick Response Code generation equipment and Quick Response Code are shown
Equipment is each independent, while connecting each other, technical scheme provided in an embodiment of the present invention is realized jointly.For the ease of description,
The angle of equipment side and Quick Response Code display device side is generated from Quick Response Code separately below, the embodiment of the present invention is situated between
Continue.
It is the schematic flow sheet of the processing method embodiment one of Quick Response Code of the present invention referring to Fig. 1.
In this embodiment, in Quick Response Code generation equipment side, this method comprises the following steps:
S101, receives data to be encoded and determines preset matrix element width value.
It can such as generate the application that equipment side be provided with default Quick Response Code generation in the Quick Response Code, and Quick Response Code generation
Using may include the corresponding Quick Response Code generation page, it may include in the Quick Response Code generates the page for receiving the to be encoded of input
The control of data, the control for setting preset matrix element width value.
When user is in the Quick Response Code generation page, is inputted in the control of the data to be encoded for receiving input and wait to compile
Code data(Such as input a network address), it is wide to preset matrix element in the control for setting preset matrix element width value
After angle value is chosen or inputted, you can complete to receive data to be encoded and determine preset matrix element width value.
Wherein, the preset matrix element width value can be in units of pixel(The preset matrix element width value such as set
For 5 pixels).
S102, by data to be encoded generator matrix element width be 1 pixel and matrix element is square Quick Response Code
And to be stored without compressed picture form, and the preset matrix element width value of determination is stored in presupposed information.
Button such as is can also include validating in the above-mentioned Quick Response Code generation page, when the ACK button is triggered, then may be used
By the data to be encoded generator matrix element width received in S101 be 1 pixel and matrix element is square two dimension
Code, also just says that the pixel quantity that each matrix element of the Quick Response Code of the generation takes is 1 × 1 pixel, and each matrix element
Plain is shaped as square.
Again by the Quick Response Code of generation to be stored without compressed picture form, the unnecessary of processor is avoided to open with this
Pin, and may be such that equipment supports other picture formats without extra again.
Then the preset matrix element width value of determination is stored in presupposed information again, it may include the following two kinds realization side
Formula:
A kind of mode is that the preset matrix element width value of determination is stored in the formatted message of Quick Response Code, wherein,
Region where the formatted message of Quick Response Code, refers in Quick Response Code except for preserving data encoded content and entangling
Region outside error code region.In the present embodiment, one is preset in region that can be where the formatted message in the Quick Response Code
For saving presets the position of matrix element width value.
Another way is that the preset matrix element width value of determination is stored in outside the formatted message of Quick Response Code
In presupposed information, such as it can pre-set the information dedicated for storing preset matrix element width value.
S103, when receive Quick Response Code is sent to the instruction of Quick Response Code display device when, then by Quick Response Code or Quick Response Code
And presupposed information is sent to Quick Response Code display device, so that Quick Response Code display device is corresponding with Quick Response Code pre- according to getting
Matrix element width value is put, the matrix element width of Quick Response Code is expanded to after preset matrix element width value and shown.
Send button such as can be included in the Quick Response Code generation page, when the send button is triggered, be then represented by
The instruction that the Quick Response Code of generation is sent to Quick Response Code display device is received, due to the preset matrix element width of above-mentioned determination
The storage location of value is different, may be selected only to send Quick Response Code to Quick Response Code display device, or by Quick Response Code and presupposed information all
Send to Quick Response Code display device.
Specifically, it is determined that the feelings that are stored in the formatted message of Quick Response Code of preset matrix element width value under, can
Directly the Quick Response Code comprising preset matrix element width value in formatted message is sent to Quick Response Code display device, so as to
Quick Response Code display device is received after Quick Response Code, by reading the preset matrix element width value in the formatted message of Quick Response Code
To obtain preset matrix element width value corresponding with the Quick Response Code.
It is determined that the presupposed information that is stored in outside the formatted message of Quick Response Code of preset matrix element width value in
In the case of, can be by Quick Response Code and presupposed information(The presupposed information can be in the form of packet)It is respectively sent to Quick Response Code and shows set
It is standby, so that Quick Response Code display device is received after Quick Response Code and presupposed information, by reading the preset matrix element in presupposed information
Plain width value obtains preset matrix element width value corresponding with the Quick Response Code.
On the other hand, the embodiment of the present invention also provides a kind of processing side of Quick Response Code from the angle of Quick Response Code display device
Method.
Referring to the schematic flow sheet for the processing method embodiment two for shown in Fig. 2, being Quick Response Code of the present invention.
In this embodiment, in Quick Response Code display device side, this method comprises the following steps:
S201, receives Quick Response Code or Quick Response Code and presupposed information that Quick Response Code generation equipment is sent.Wherein, the Quick Response Code is
Matrix element width is 1 pixel and matrix element is the Quick Response Code of square.
S202, preset matrix element width corresponding with Quick Response Code is obtained according to the Quick Response Code or presupposed information received
Value.
Because the storage location of preset matrix element width value can distinguish two kinds of situations, therefore two kinds are also classified into when receiving
Situation.
In the case that preset matrix element width value is in the formatted message for be stored in Quick Response Code, then can only receive by
The Quick Response Code that Quick Response Code generation equipment is sent, and by reading the preset matrix element width value in the formatted message of Quick Response Code
To obtain preset matrix element width value corresponding with Quick Response Code.
In the case of in the presupposed information that preset matrix element width value is stored in outside the formatted message of Quick Response Code,
It can then receive and Quick Response Code and presupposed information that equipment is sent are generated by Quick Response Code, and by reading the preset matrix in presupposed information
Element width value obtains preset matrix element width value corresponding with the Quick Response Code.
S203, preset square is expanded to according to the preset matrix element width value got by the matrix element width of Quick Response Code
Array element element width value after and shown.
The pixel quantity of the Quick Response Code such as received is 100 × 100 pixels and matrix element width is 1 pixel,
The preset matrix element width value got is 5 pixels, then the matrix element width of the Quick Response Code received can be expanded into 5
Individual pixel, will the pixel quantity of the Quick Response Code expand to 500 × 500 pixels.
In display, it is assumed that using the pixel in the upper left corner of Quick Response Code as the origin of coordinates, then coordinate points(1,1)Pixel aobvious
It is actual for occupancy when showing(1 to 5,1 to 5)Individual pixel, coordinate points are(1,2)Pixel display when it is actual for take(1 to 6,6
To 10)Individual pixel, by that analogy.
The processing method of the Quick Response Code of the embodiment of the present invention, generation, transmission and display available for Quick Response Code, in Quick Response Code
Generate equipment side, can generator matrix element width be 1 pixel and matrix element is the Quick Response Code of square and to scheme without compression
Piece form is stored, and the preset matrix element width value of determination is stored in presupposed information, wide further according to preset matrix element
Quick Response Code or Quick Response Code and presupposed information are sent to Quick Response Code display device by the storage location of angle value, the Quick Response Code generated with this
The amount of pixels of occupancy can be reduced, therefore the memory space of occupancy can be reduced and the bandwidth taken in transmission can be reduced, and is adopted
Other picture formats are not only additionally supported without equipment with being stored without compressed picture form, and are storing and showing the two dimension
The expense of processing can be also saved during code;In Quick Response Code display device side, it can be incited somebody to action according to the preset matrix element width value got
The matrix element width of the Quick Response Code received is shown again after being extended, to ensure that the Quick Response Code shown has due picture
Element amount, it is ensured that the picture quality of Quick Response Code, and then ensure that Quick Response Code has higher readability.
The processing method embodiment of correspondence the invention described above Quick Response Code, additionally provides the processing system embodiment of Quick Response Code,
It is specifically described below in conjunction with the accompanying drawings.
Fig. 3 shows the structural representation of the processing system embodiment one of Quick Response Code of the present invention.
In Quick Response Code generation equipment side, the system includes:
First receiving unit 31, for receiving data to be encoded and determining preset matrix element width value.
Quick Response Code generation unit 32, by data to be encoded generator matrix element width for the Quick Response Code of 1 pixel and with nothing
Compressed picture form is stored, and the preset matrix element width value of determination is stored in presupposed information.
Transmitting element 33, for when receive Quick Response Code is sent to the instruction of Quick Response Code display device when, then by two dimension
Code or Quick Response Code and presupposed information are sent to Quick Response Code display device, so that Quick Response Code display device is according to getting and two dimension
The corresponding preset matrix element width value of code, the matrix element width of Quick Response Code is expanded to after preset matrix element width value simultaneously
Shown.
Wherein, the preset matrix element width value of determination can be stored in the formatting of Quick Response Code by Quick Response Code generation unit 32
In information,
Based on this, transmitting element 33 can be specifically for:
Quick Response Code comprising preset matrix element width value in formatted message is sent to Quick Response Code display device, so as to
Two-dimentional decoding apparatus obtains preset square corresponding with Quick Response Code by the preset matrix element width value in reading format information
Array element element width value.
The preset matrix element width value of determination can be stored in the formatted message of Quick Response Code by Quick Response Code generation unit 32
Outside presupposed information in,
Based on this, transmitting element 33 can be specifically for:
Quick Response Code and presupposed information are respectively sent to Quick Response Code display device, so that Quick Response Code display device is by reading
Preset matrix element width value in presupposed information obtains preset matrix element width value corresponding with Quick Response Code.
Referring to the structural representation for the processing system embodiment two for shown in Fig. 4, being Quick Response Code of the present invention.
In Quick Response Code display device side, the system includes:
Second receiving unit 41, for receiving Quick Response Code or Quick Response Code and presupposed information that Quick Response Code generation equipment is sent.
Wherein, the Quick Response Code is that matrix element width is 1 pixel and matrix element is square Quick Response Code.
Acquiring unit 42, for obtaining preset matrix corresponding with Quick Response Code according to the Quick Response Code or presupposed information that receive
Element width value.
Display unit 43, for being expanded the matrix element width of Quick Response Code according to the preset matrix element width value got
Open up after preset matrix element width value and to be shown.
Wherein, in the case where preset matrix element width value is in the formatted message for be stored in Quick Response Code,
Acquiring unit 42 can be specifically for:The preset matrix element in formatted message by reading the Quick Response Code is wide
Angle value obtains preset matrix element width value corresponding with the Quick Response Code.
Situation in preset matrix element width value is the presupposed information being stored in outside the formatted message of Quick Response Code
Under,
Acquiring unit 42 can be specifically for:
It is corresponding with the Quick Response Code pre- to obtain by reading the preset matrix element width value in the presupposed information
Put matrix element width value.
The processing system of the Quick Response Code of the embodiment of the present invention, generation, transmission and display available for Quick Response Code, in Quick Response Code
Generate equipment side, can generator matrix element width be 1 pixel and matrix element is the Quick Response Code of square and to scheme without compression
Piece form is stored, and the preset matrix element width value of determination is stored in presupposed information, wide further according to preset matrix element
Quick Response Code or Quick Response Code and presupposed information are sent to Quick Response Code display device by the storage location of angle value, the Quick Response Code generated with this
The amount of pixels of occupancy can be reduced, therefore the memory space of occupancy can be reduced and the bandwidth taken in transmission can be reduced, and is adopted
Other picture formats are not only additionally supported without equipment with being stored without compressed picture form, and are storing and showing the two dimension
The expense of processing can be also saved during code;In Quick Response Code display device side, it can be incited somebody to action according to the preset matrix element width value got
The matrix element width of the Quick Response Code received is shown again after being extended, to ensure that the Quick Response Code shown has due picture
Element amount, it is ensured that the picture quality of Quick Response Code, and then ensure that Quick Response Code has higher readability.
As seen through the above description of the embodiments, those skilled in the art can be understood that the application can
Realized by the mode of software plus required general hardware platform.Understood based on such, the technical scheme essence of the application
On the part that is contributed in other words to prior art can be embodied in the form of software product, the computer software product
It can be stored in storage medium, such as ROM/RAM, magnetic disc, CD, including some instructions are to cause a computer equipment
(Can be personal computer, server, or network equipment etc.)Perform some of each embodiment of the application or embodiment
Method described in part.
Each embodiment in this specification is described by the way of progressive, identical similar portion between each embodiment
Divide mutually referring to what each embodiment was stressed is the difference with other embodiment.Especially for system or
For system embodiment, because it is substantially similar to embodiment of the method, so describing fairly simple, related part is referring to method
The part explanation of embodiment.System and system embodiment described above is only schematical, wherein the conduct
The unit that separating component illustrates can be or may not be it is physically separate, the part shown as unit can be or
Person may not be physical location, you can with positioned at a place, or can also be distributed on multiple NEs.Can root
Some or all of module therein is factually selected to realize the purpose of this embodiment scheme the need for border.Ordinary skill
Personnel are without creative efforts, you can to understand and implement.
The processing method and system to Quick Response Code provided by the present invention are described in detail above, used herein
Specific case is set forth to the principle and embodiment of the application, and the explanation of above example is only intended to help and understands this
The method and its core concept of application;Simultaneously for those of ordinary skill in the art, according to the thought of the application, specific
It will change in embodiment and application.In summary, this specification content should not be construed as to the application's
Limitation.
Claims (12)
1. a kind of processing method of Quick Response Code, it is characterised in that generate equipment and Quick Response Code display device including Quick Response Code, described
Quick Response Code generates equipment and communicated to connect with the Quick Response Code display device,
In Quick Response Code generation equipment side, methods described includes:
Receive data to be encoded and determine preset matrix element width value;
The data to be encoded generator matrix element width is 1 pixel and matrix element is the Quick Response Code of square and with nothing
Compressed picture form is stored, and the preset matrix element width value of determination is stored in presupposed information;
When receive the Quick Response Code is sent to the instruction of Quick Response Code display device when, then by the Quick Response Code or the two dimension
Code and the presupposed information send to the Quick Response Code display device, so as to the Quick Response Code display device according to get with
The corresponding preset matrix element width value of the Quick Response Code, expands to preset matrix element wide by the matrix element width of Quick Response Code
After angle value and shown.
2. the method as described in claim 1, it is characterised in that it is described the preset matrix element width value of determination is stored in it is pre-
If for the preset matrix element width value of determination is stored in the formatted message of Quick Response Code in information,
The Quick Response Code or the Quick Response Code and the presupposed information are sent to the Quick Response Code display device, are specially:
Quick Response Code comprising preset matrix element width value in formatted message is sent to the Quick Response Code display device, so as to
The Quick Response Code display device is obtained and described two by reading the preset matrix element width value in the formatted message
Tie up the corresponding preset matrix element width value of code.
3. the method as described in claim 1, it is characterised in that it is described the preset matrix element width value of determination is stored in it is pre-
If being that the preset matrix element width value of determination is stored in the default letter outside the formatted message of the Quick Response Code in information
In breath,
The Quick Response Code or the Quick Response Code and the presupposed information are sent to the Quick Response Code display device, are specially:
The Quick Response Code and the presupposed information are respectively sent to the Quick Response Code display device, so that the Quick Response Code is shown
Equipment obtains preset square corresponding with the Quick Response Code by reading the preset matrix element width value in the presupposed information
Array element element width value.
4. a kind of processing method of Quick Response Code, it is characterised in that generate equipment and Quick Response Code display device including Quick Response Code, described
Quick Response Code generates equipment and communicated to connect with the Quick Response Code display device,
In Quick Response Code display device side, methods described includes:
Receive Quick Response Code or Quick Response Code and presupposed information that the Quick Response Code generation equipment is sent;
Preset matrix element corresponding with the Quick Response Code is obtained according to the Quick Response Code received or the presupposed information wide
Angle value;
The matrix element width of Quick Response Code is expanded to by preset matrix element according to the preset matrix element width value got
After plain width value and shown;
Wherein, the Quick Response Code is that matrix element width is 1 pixel and matrix element is square Quick Response Code.
5. method as claimed in claim 4, it is characterised in that the preset matrix element width value is to be stored in Quick Response Code
In formatted message,
Preset matrix element corresponding with the Quick Response Code is obtained according to the Quick Response Code received or the presupposed information wide
Angle value, be specially:
Preset matrix element width value in formatted message by reading the Quick Response Code is obtained and the Quick Response Code pair
The preset matrix element width value answered.
6. method as claimed in claim 4, it is characterised in that the preset matrix element width value is to be stored in the two dimension
In presupposed information outside the formatted message of code,
Preset matrix element corresponding with the Quick Response Code is obtained according to the Quick Response Code received or the presupposed information wide
Angle value, be specially:
Preset square corresponding with the Quick Response Code is obtained by reading the preset matrix element width value in the presupposed information
Array element element width value.
7. a kind of processing system of Quick Response Code, it is characterised in that generate equipment and Quick Response Code display device including Quick Response Code, described
Quick Response Code generates equipment and communicated to connect with the Quick Response Code display device,
In Quick Response Code generation equipment side, the system includes:
First receiving unit, for receiving data to be encoded and determining preset matrix element width value;
Quick Response Code generation unit, for being 1 pixel by the data to be encoded generator matrix element width and matrix element is
The Quick Response Code of square and to be stored without compressed picture form, and the preset matrix element width value of determination is stored in pre-
If in information;
Transmitting element, for when receive the Quick Response Code is sent to the instruction of the Quick Response Code display device when, then by institute
State Quick Response Code or the Quick Response Code and the presupposed information is sent to the Quick Response Code display device, so that the Quick Response Code is shown
Equipment is wide by the matrix element of the Quick Response Code according to preset matrix element width value corresponding with the Quick Response Code is got
Degree is expanded to after preset matrix element width value and shown.
8. system as claimed in claim 7, it is characterised in that it is described the preset matrix element width value of determination is stored in it is pre-
If for the preset matrix element width value of determination is stored in the formatted message of Quick Response Code in information,
The transmitting element, specifically for:
Quick Response Code comprising preset matrix element width value in formatted message is sent to the Quick Response Code display device, so as to
The Quick Response Code display device is obtained and described two by reading the preset matrix element width value in the formatted message
Tie up the corresponding preset matrix element width value of code.
9. system as claimed in claim 7, it is characterised in that it is described the preset matrix element width value of determination is stored in it is pre-
If being that the preset matrix element width value of determination is stored in the default letter outside the formatted message of the Quick Response Code in information
In breath,
The transmitting element, specifically for:
The Quick Response Code and the presupposed information are respectively sent to the Quick Response Code display device, so that the Quick Response Code is shown
Equipment obtains preset square corresponding with the Quick Response Code by reading the preset matrix element width value in the presupposed information
Array element element width value.
10. a kind of processing system of Quick Response Code, it is characterised in that generate equipment and Quick Response Code display device, institute including Quick Response Code
Quick Response Code generation equipment is stated to communicate to connect with the Quick Response Code display device,
In Quick Response Code display device side, the system includes:
Second receiving unit, for receiving Quick Response Code or Quick Response Code and presupposed information that the Quick Response Code generation equipment is sent;
Acquiring unit, for obtaining corresponding with the Quick Response Code pre- according to the Quick Response Code or the presupposed information that receive
Put matrix element width value;
Display unit, for according to the preset matrix element width value that gets by the matrix element width of the Quick Response Code
Expand to after preset matrix element width value and shown;
Wherein, the Quick Response Code is that matrix element width is 1 pixel and matrix element is square Quick Response Code.
11. system as claimed in claim 10, it is characterised in that the preset matrix element width value is to be stored in Quick Response Code
Formatted message in,
The acquiring unit, specifically for:
Preset matrix element width value in formatted message by reading the Quick Response Code is obtained and the Quick Response Code pair
The preset matrix element width value answered.
12. system as claimed in claim 10, it is characterised in that the preset matrix element width value is to be stored in described two
Tie up in the presupposed information outside the formatted message of code,
The acquiring unit, specifically for:
Preset square corresponding with the Quick Response Code is obtained by reading the preset matrix element width value in the presupposed information
Array element element width value.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410595438.9A CN104408503B (en) | 2014-10-30 | 2014-10-30 | The processing method and system of Quick Response Code |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410595438.9A CN104408503B (en) | 2014-10-30 | 2014-10-30 | The processing method and system of Quick Response Code |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104408503A CN104408503A (en) | 2015-03-11 |
CN104408503B true CN104408503B (en) | 2017-08-01 |
Family
ID=52646132
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410595438.9A Active CN104408503B (en) | 2014-10-30 | 2014-10-30 | The processing method and system of Quick Response Code |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104408503B (en) |
Families Citing this family (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105117751B (en) * | 2015-08-27 | 2018-12-07 | 努比亚技术有限公司 | Two-dimentional decoding transmission method and device |
CN107169393A (en) * | 2017-04-12 | 2017-09-15 | 北京小米移动软件有限公司 | Two-dimensional code scanning method and device |
CN109410286B (en) * | 2018-11-09 | 2021-12-28 | 华南理工大学 | Coding and decoding method for intelligent hidden chessboard grid calibration board |
CN109934321A (en) * | 2019-03-18 | 2019-06-25 | 刘兴丹 | A kind of method, apparatus of dynamic matrix two dimensional code |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101212660A (en) * | 2006-12-29 | 2008-07-02 | 安凯(广州)软件技术有限公司 | Sectionalized image decoding method |
CN101281588A (en) * | 2007-04-03 | 2008-10-08 | 报联新动力(北京)科技有限公司 | Two-dimension bar code system being suitable for mobile application as well as encoding-decoding method thereof |
CN102595109A (en) * | 2011-01-07 | 2012-07-18 | 安凯(广州)微电子技术有限公司 | Decoding method and device for JPEG image |
CN103530669A (en) * | 2013-11-08 | 2014-01-22 | 成都博格科技有限公司 | Data information two-dimensional code encoding method |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2005277908A (en) * | 2004-03-25 | 2005-10-06 | Nec Access Technica Ltd | Image processor, image processing method thereof, and portable telephone with camera |
-
2014
- 2014-10-30 CN CN201410595438.9A patent/CN104408503B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101212660A (en) * | 2006-12-29 | 2008-07-02 | 安凯(广州)软件技术有限公司 | Sectionalized image decoding method |
CN101281588A (en) * | 2007-04-03 | 2008-10-08 | 报联新动力(北京)科技有限公司 | Two-dimension bar code system being suitable for mobile application as well as encoding-decoding method thereof |
CN102595109A (en) * | 2011-01-07 | 2012-07-18 | 安凯(广州)微电子技术有限公司 | Decoding method and device for JPEG image |
CN103530669A (en) * | 2013-11-08 | 2014-01-22 | 成都博格科技有限公司 | Data information two-dimensional code encoding method |
Also Published As
Publication number | Publication date |
---|---|
CN104408503A (en) | 2015-03-11 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9665817B2 (en) | Techniques for generating customized two-dimensional barcodes | |
CN104408503B (en) | The processing method and system of Quick Response Code | |
US9177238B2 (en) | Techniques for generating customized two-dimensional barcodes | |
CN103400174B (en) | The coded method of a kind of Quick Response Code, coding/decoding method and system | |
US10764304B2 (en) | User location check method, controlled device access method, controlled device, and user terminal | |
CN103942585B (en) | Method for converting information into two-dimensional codes | |
CN102054185A (en) | Two-dimension code generation method, user mobile terminal and mobile communication system | |
CN103763178A (en) | Information pushing method, server, user terminal and system | |
WO2017041587A1 (en) | File display method and system | |
CN103870861A (en) | Method and device for generating two-dimensional code | |
CN111880752B (en) | Seal printing method and device, electronic equipment and storage medium | |
CN106934245A (en) | A kind of DICOM image display methods, device and system | |
CN104252613A (en) | Method, device and terminal for obtaining virtual object | |
Sahu et al. | QR code and application in India | |
US9846827B2 (en) | Image printing method and printer for segmenting an image to create first data files and first memory blocks and printing each data file using print position information | |
CN102982046B (en) | A kind of web data compression and storage method and system | |
CN104680197A (en) | Method for realizing two-dimensional code zoomed printing of 9-pin printer | |
US10762317B2 (en) | Quick response (QR) code deformation | |
CN104238965A (en) | Printing selection method and electronic device | |
US20180336446A1 (en) | Lost and found systems, methods, and devices | |
CN104442054A (en) | Two-dimension code printing method and device based on mainframe platform | |
CN103870543A (en) | Method and device for reconstructing document file | |
CN101611419A (en) | Be used to create code grid and with its method and apparatus that sends to portable communication device | |
CN113010113A (en) | Data processing method, device and equipment | |
CN112162713A (en) | File printing method, system and server |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |