CN104408503A - Processing method and system for two-dimensional code - Google Patents

Processing method and system for two-dimensional code Download PDF

Info

Publication number
CN104408503A
CN104408503A CN201410595438.9A CN201410595438A CN104408503A CN 104408503 A CN104408503 A CN 104408503A CN 201410595438 A CN201410595438 A CN 201410595438A CN 104408503 A CN104408503 A CN 104408503A
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.)
Granted
Application number
CN201410595438.9A
Other languages
Chinese (zh)
Other versions
CN104408503B (en
Inventor
常鹏
邱宗炽
魏鹏
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Xiamen Meiya Pico Information Co Ltd
Original Assignee
Xiamen Meiya Pico Information Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Xiamen Meiya Pico Information Co Ltd filed Critical Xiamen Meiya Pico Information Co Ltd
Priority to CN201410595438.9A priority Critical patent/CN104408503B/en
Publication of CN104408503A publication Critical patent/CN104408503A/en
Application granted granted Critical
Publication of CN104408503B publication Critical patent/CN104408503B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Image Processing (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The invention provides a processing method and system for a two-dimensional code. At a two-dimensional code generation device side, the method comprises: receiving to-be-coded data and determining a preset matrix element width value; carrying out processing on the to-be-coded data to generate a two-dimensional code whose matrix element width is equal to one pixel and the matrix element is in a square shape and storing the two-dimensional code in a compression-free picture format, and storing the determined preset matrix element width value into preset information; and when receiving an instruction of sending the two-dimensional code to a two-dimensional code display device, sending the two-dimensional code or the two-dimensional code and the preset information to the two-dimensional code display, thereby extending the matrix element width of the two-dimensional code into the preset matrix element width value and displaying the value by the two-dimensional code display device. According to the method, the storage space occupied by the generated two-dimensional code and the transmission bandwidth occupied by the generated two-dimensional code are reduced. There is no need to support other picture formats and the processor cost for storing and displaying two-dimensional code can be saved.

Description

The disposal route of Quick Response Code and system
Technical field
The present invention relates to the communications field, particularly a kind of disposal route of Quick Response Code and system.
Background technology
Quick Response Code (Two-dimensional code), also known as two-dimensional bar code, it is according to certain rules at the chequered with black and white figure of the upper distribution of plane (two-dimensional directional) with specific geometric figure, Quick Response Code is from one-dimension code technical development, 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, Quick Response Code can be widely used in a lot of aspect, such as: product false proof/trace to the source, advertisement pushing, web site url, data download, commodity transaction, location/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 Quick Response Code) is based upon computer image processing technology, a kind of New Graphics symbol automatically identifying and reading process code system on the bases such as assembly coding principle, it is by black at one, white pixel different distributions in a matrix carries out the coffin of encoding, in matrix element, the side of appearance point, round dot or other shape points represent binary one, appearance point does not represent binary " 0 ", the permutation and combination of point determines the meaning representated by matrix two-dimensional code, representative matrix two-dimensional code has: Code One, Maxi Code, QR Code, Data Matrix etc.
In order to make Quick Response Code, there is higher readability, when generating Quick Response Code, the width of each matrix element is set to N (N>1) individual pixel usually, so each matrix element needs the pixel quantity taken to be N × N number of pixel, for the QR Quick Response Code of the square area be made up of M × M matrix element, the pixel quantity that then whole Quick Response Code takies is the individual pixel of (N × M) × (N × M), if the Quick Response Code of above-mentioned generation is carried out preserving and transmitting with contracting picture format with no pressure, a large amount of storage spaces and the waste of transmission bandwidth will certainly be caused, therefore, in the prior art, usually can select as under type processes:
1. adopt contracting picture format with no pressure (as BMP bitmap format) store Quick Response Code and do not compress (compressing as by winrar, winzip etc.) Quick Response Code, this kind of mode can be wasted large quantity space when storing and also can waste transmission bandwidth when transmitting;
2. adopt Lossless Compression picture format to store Quick Response Code, this kind of mode additionally needs to support corresponding Lossless Compression picture format, and compared with contracting picture format with no pressure, this kind of mode can increase the expense of processor when carrying out compression process;
3. adopt lossy compression method picture format to store Quick Response Code, this kind of mode will certainly cause the decline of the picture quality of Quick Response Code, and then can reduce the readability of Quick Response Code;
4. adopt contracting picture format with no pressure to store Quick Response Code to compress (compressing as by winrar, winzip etc.) Quick Response Code again, go forward side by side the enforcement used time when receiving this kind of Quick Response Code, could normally use after needing first to decompress to this Quick Response Code, therefore, understand this kind of mode carrying out compressing, the process such as decompression time can increase the expense of processor, also can increase the complexity of use simultaneously.
In a word, the existing processing mode to Quick Response Code is desirable not enough.
Summary of the invention
The invention provides a kind of disposal route and system of Quick Response Code, the storage space that the Quick Response Code generated by the method is taken and when transmitting the transmission bandwidth that takies all less, and picture quality and the readability of the Quick Response Code demonstrated can be ensured, because the Quick Response Code of this generation stores with the picture format without compression, without the need to additionally supporting other picture formats and processor expense can being saved when storing and showing this Quick Response Code.
According to an aspect of the present invention, the present invention proposes a kind of disposal route of Quick Response Code, comprise Quick Response Code and generate equipment and Quick Response Code display device, described Quick Response Code generates equipment and described Quick Response Code display device communicates to connect,
Generate equipment side at Quick Response Code, described method comprises:
Receive data to be encoded and determine preset matrix element width value;
Described data to be encoded generator matrix element width is 1 pixel and matrix element is foursquare Quick Response Code and stores with contracting picture format with no pressure, and the preset matrix element width value determined is stored in presupposed information;
When receive described Quick Response Code is sent to the instruction of Quick Response Code display device time, then described Quick Response Code or described Quick Response Code and described presupposed information are sent to described Quick Response Code display device, so that described Quick Response Code display device is according to the preset matrix element width value corresponding with described Quick Response Code got, show after the matrix element width of Quick Response Code is expanded to preset matrix element width value.
Further, described the preset matrix element width value determined is stored in for be stored in the formatted message of Quick Response Code by the preset matrix element width value determined in presupposed information,
Described Quick Response Code or described Quick Response Code and described presupposed information are sent to described Quick Response Code display device, are specially:
The Quick Response Code comprising preset matrix element width value in formatted message is sent to described Quick Response Code display device, so that described Quick Response Code equipment obtains the preset matrix element width value corresponding with described Quick Response Code by the preset matrix element width value read in described formatted message.
Further, described the preset matrix element width value determined is stored in presupposed information for the preset matrix element width value determined is stored in described Quick Response Code formatted message outside presupposed information in,
Described Quick Response Code or described Quick Response Code and described presupposed information are sent to described Quick Response Code display device, are specially:
Described Quick Response Code and described presupposed information are sent to described Quick Response Code display device respectively, so that described Quick Response Code display device obtains the preset matrix element width value corresponding with described Quick Response Code by the preset matrix element width value read in described presupposed information.
The invention allows for a kind of disposal route of Quick Response Code, comprise Quick Response Code and generate equipment and Quick Response Code display device, described Quick Response Code generates equipment and described Quick Response Code display device communicates to connect,
In Quick Response Code display device side, described method comprises:
Receive described Quick Response Code and generate the Quick Response Code sent of equipment or Quick Response Code and presupposed information;
The preset matrix element width value corresponding with described Quick Response Code is obtained according to the described Quick Response Code received or described presupposed information;
Show after the matrix element width of Quick Response Code being expanded to preset matrix element width value according to the described preset matrix element width value got;
Wherein, to be matrix element width be 1 pixel to described Quick Response Code and matrix element is foursquare Quick Response Code.
Further, described preset matrix element width value is be stored in the formatted message of Quick Response Code,
Obtain the preset matrix element width value corresponding with described Quick Response Code according to the described Quick Response Code received or described presupposed information, be specially:
The preset matrix element width value corresponding with described Quick Response Code is obtained by the preset matrix element width value read in the formatted message of described Quick Response Code.
Further, described preset matrix element width value be stored in described Quick Response Code formatted message outside presupposed information in,
Obtain the preset matrix element width value corresponding with described Quick Response Code according to the described Quick Response Code received or described presupposed information, be specially:
The preset matrix element width value corresponding with described Quick Response Code is obtained by the preset matrix element width value read in described presupposed information.
According to a further aspect in the invention, the present invention proposes a kind of disposal system of Quick Response Code, comprise Quick Response Code and generate equipment and Quick Response Code display device, described Quick Response Code generates equipment and described Quick Response Code display device communicates to connect,
Generate equipment side at Quick Response Code, described system comprises:
First receiving element, for receiving data to be encoded and determining preset matrix element width value;
Quick Response Code generation unit, for described data to be encoded generator matrix element width being 1 pixel and matrix element is foursquare Quick Response Code and stores with contracting picture format with no pressure, and is stored in presupposed information by the preset matrix element width value determined;
Transmitting element, for when receiving the instruction described Quick Response Code being sent to described Quick Response Code display device, then described Quick Response Code or described Quick Response Code and described presupposed information are sent to described Quick Response Code display device, so that described Quick Response Code display device is according to the preset matrix element width value corresponding with described Quick Response Code got, show after the matrix element width of described Quick Response Code is expanded to preset matrix element width value.
Further, described the preset matrix element width value determined is stored in for be stored in the formatted message of Quick Response Code by the preset matrix element width value determined in presupposed information,
Described transmitting element, specifically for:
The Quick Response Code comprising preset matrix element width value in formatted message is sent to described Quick Response Code display device, so that described Quick Response Code equipment obtains the preset matrix element width value corresponding with described Quick Response Code by the preset matrix element width value read in described formatted message.
Further, described the preset matrix element width value determined is stored in presupposed information for the preset matrix element width value determined is stored in described Quick Response Code formatted message outside presupposed information in,
Described transmitting element, specifically for:
Described Quick Response Code and described presupposed information are sent to described Quick Response Code display device respectively, so that described Quick Response Code display device obtains the preset matrix element width value corresponding with described Quick Response Code by the preset matrix element width value read in described presupposed information.
The present invention also proposes a kind of disposal system of Quick Response Code, and comprise Quick Response Code and generate equipment and Quick Response Code display device, described Quick Response Code generates equipment and described Quick Response Code display device communicates to connect,
In Quick Response Code display device side, described system comprises:
Second receiving element, generates the Quick Response Code sent of equipment or Quick Response Code and presupposed information for receiving described Quick Response Code;
Acquiring unit, for obtaining the preset matrix element width value corresponding with described Quick Response Code according to the described Quick Response Code received or described presupposed information;
Display unit, for showing after the matrix element width of described Quick Response Code being expanded to preset matrix element width value according to the described preset matrix element width value that gets;
Wherein, to be matrix element width be 1 pixel to described Quick Response Code and matrix element is foursquare Quick Response Code.
Further, described preset matrix element width value is be stored in the formatted message of Quick Response Code,
Described acquiring unit, specifically for:
The preset matrix element width value corresponding with described Quick Response Code is obtained by the preset matrix element width value read in the formatted message of described Quick Response Code.
Further, described preset matrix element width value be stored in described Quick Response Code formatted message outside presupposed information in,
Described acquiring unit, specifically for:
The preset matrix element width value corresponding with described Quick Response Code is obtained by the preset matrix element width value read in described presupposed information.
According to specific embodiment provided by the invention, the invention discloses following technique effect:
The disposal route of the Quick Response Code of the embodiment of the present invention and system, can be used for the generation of Quick Response Code, send and display, equipment side is generated at Quick Response Code, can be 1 pixel and matrix element is foursquare Quick Response Code and stores with contracting picture format with no pressure by generator matrix element width, and the preset matrix element width value determined is stored in presupposed information, according to the memory location of preset matrix element width value, Quick Response Code or Quick Response Code and presupposed information are sent to Quick Response Code display device again, the Quick Response Code generated with this can reduce the amount of pixels taken, therefore can reduce the storage space taken and the bandwidth taken when transmitting can be reduced, and adopt contracting picture format with no pressure to carry out storing and not only additionally support other picture formats without the need to equipment, and in storage and the expense also saving process when showing this Quick Response Code, in Quick Response Code display device side, show again after the matrix element width of the Quick Response Code received can being expanded according to the preset matrix element width value got, to ensure that the Quick Response Code demonstrated has due amount of pixels, ensure the picture quality of Quick Response Code, and then ensure that Quick Response Code has higher readability.
Certainly, implement arbitrary product of the present invention might not need to reach above-described all advantages simultaneously.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, be briefly described to the accompanying drawing used required in embodiment below, apparently, accompanying drawing in the following describes is only some embodiments of the application, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
Fig. 1 is the schematic flow sheet of the disposal route embodiment one of Quick Response Code of the present invention;
Fig. 2 is the schematic flow sheet of the disposal route embodiment two of Quick Response Code of the present invention;
Fig. 3 is the structural representation of the disposal system embodiment one of Quick Response Code of the present invention;
Fig. 4 is the structural representation of the disposal 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, be clearly and completely described the technical scheme in the embodiment of the present invention, obviously, described embodiment is only some embodiments of the present application, instead of whole embodiments.Based on the embodiment in the present invention, the every other embodiment that those of ordinary skill in the art obtain, all belongs to the scope of the application's protection.
The embodiment of the present invention relates to Quick Response Code and generates equipment and Quick Response Code display device, and Quick Response Code can be generated between equipment and Quick Response Code display device and communicate to connect.In specific implementation process, Quick Response Code generates equipment and Quick Response Code display device is independent separately, connects each other simultaneously, jointly realizes the technical scheme that the embodiment of the present invention provides.For convenience of description, generate the angle of equipment side and Quick Response Code display device side below respectively from Quick Response Code, the embodiment of the present invention is introduced.
Referring to Fig. 1, it is the schematic flow sheet of the disposal route embodiment one of Quick Response Code of the present invention.
In this embodiment, generate equipment side at Quick Response Code, the method comprises the steps:
S101, receives data to be encoded and determines preset matrix element width value.
Such as can generate at this Quick Response Code the application that equipment side is provided with the generation of default Quick Response Code, and the application that this Quick Response Code generates can comprise the corresponding Quick Response Code generation page, the control of the data to be encoded for receiving input can be comprised in this Quick Response Code generation page, for arranging the control of preset matrix element width value.
When user generates in the page at this Quick Response Code, data to be encoded (such as inputting a network address) are inputted in the control of the data to be encoded for receiving input, after preset matrix element width value being chosen or inputted in the control for arranging preset matrix element width value, can complete and receive data to be encoded and determine preset matrix element width value.
Wherein, this preset matrix element width value can pixel be unit (the preset matrix element width value such as arranged is 5 pixels).
S102, is 1 pixel by data to be encoded generator matrix element width and matrix element is foursquare Quick Response Code and stores with contracting picture format with no pressure, and is stored in presupposed information by the preset matrix element width value determined.
Such as generate in the page at above-mentioned Quick Response Code and also can comprise ACK button, when this ACK button is triggered, then the data to be encoded generator matrix element width received in S101 can be 1 pixel and matrix element is foursquare Quick Response Code, also just say that the pixel quantity that each matrix element of the Quick Response Code of this generation takies is 1 × 1 pixel, and the shape of each matrix element is square.
Again the Quick Response Code of generation is stored with contracting picture format with no pressure, avoid the unnecessary expense of processor with this, and equipment can be made without the need to additionally supporting other picture format again.
And then the preset matrix element width value determined is stored in presupposed information, the following two kinds implementation can be comprised:
A kind of mode is stored in the formatted message of Quick Response Code by the preset matrix element width value determined, wherein, the region at the formatted message place of Quick Response Code, refers in Quick Response Code except the region for preserving except by the data content of encoding and error correcting code region.In the present embodiment, the position that is used for saving presets matrix element width value can be preset in the region at the formatted message place of this Quick Response Code.
Another kind of mode be the preset matrix element width value determined is stored in Quick Response Code formatted message outside presupposed information in, such as can pre-set one and be specifically designed to the information storing preset matrix element width value.
S103, when receiving instruction Quick Response Code being sent to Quick Response Code display device, then Quick Response 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 the preset matrix element width value corresponding with Quick Response Code got, show after the matrix element width of Quick Response Code is expanded to preset matrix element width value.
Such as can generate the page at Quick Response Code and comprise transmission button, when this transmission button is triggered, then can be expressed as the instruction receiving and the Quick Response Code of generation is sent to Quick Response Code display device, because the memory location of the above-mentioned preset matrix element width value determined is different, can select only Quick Response Code to be sent to Quick Response Code display device, or Quick Response Code and presupposed information are all sent to Quick Response Code display device.
Concrete, under the feelings that the preset matrix element width value determined is stored in the formatted message of Quick Response Code, directly the Quick Response Code comprising preset matrix element width value in formatted message can be sent to Quick Response Code display device, so that after Quick Response Code display device receives Quick Response Code, obtain the preset matrix element width value corresponding with this Quick Response Code by the preset matrix element width value read in the formatted message of Quick Response Code.
In presupposed information outside the formatted message that the preset matrix element width value determined is stored in Quick Response Code, Quick Response Code and presupposed information the form of packet (this presupposed information can) can be sent to Quick Response Code display device respectively, so that after Quick Response Code display device receives Quick Response Code and presupposed information, obtain the preset matrix element width value corresponding with this Quick Response Code by the preset matrix element width value read in presupposed information.
On the other hand, the embodiment of the present invention also provides a kind of disposal route of Quick Response Code from the angle of Quick Response Code display device.
Shown in Fig. 2, it is the schematic flow sheet of the disposal route embodiment two of Quick Response Code of the present invention.
In this embodiment, in Quick Response Code display device side, the method comprises the steps:
S201, receives Quick Response Code and generates the Quick Response Code sent of equipment or Quick Response Code and presupposed information.Wherein, to be matrix element width be 1 pixel to this Quick Response Code and matrix element is foursquare Quick Response Code.
S202, obtains the preset matrix element width value corresponding with Quick Response Code according to the Quick Response Code received or presupposed information.
Two kinds of situations can be distinguished in memory location due to preset matrix element width value, are therefore also divided into two kinds of situations when receiving.
When preset matrix element width value is in the formatted message being stored in Quick Response Code, then can receive only the Quick Response Code sent by Quick Response Code generation equipment, and obtain the preset matrix element width value corresponding with Quick Response Code by the preset matrix element width value in the formatted message of reading Quick Response Code.
When in presupposed information outside the formatted message that preset matrix element width value is stored in Quick Response Code, then can receive the Quick Response Code and presupposed information sent by Quick Response Code generation equipment, and obtain the preset matrix element width value corresponding with this Quick Response Code by the preset matrix element width value read in presupposed information.
S203, shows after the matrix element width of Quick Response Code being expanded to preset matrix element width value according to the preset matrix element width value got.
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 to 5 pixels, the pixel quantity by this Quick Response Code expands to 500 × 500 pixels.
When showing, suppose with the pixel in the upper left corner of Quick Response Code for true origin, then coordinate points (1,1) pixel is actual in taking (1 to 5,1 to 5) individual pixel when showing, and coordinate points is (1,2) pixel is actual in taking (1 to 6,6 to 10) individual pixel when showing, by that analogy.
The disposal route of the Quick Response Code of the embodiment of the present invention, can be used for the generation of Quick Response Code, send and display, equipment side is generated at Quick Response Code, can be 1 pixel and matrix element is foursquare Quick Response Code and stores with contracting picture format with no pressure by generator matrix element width, and the preset matrix element width value determined is stored in presupposed information, according to the memory location of preset matrix element width value, Quick Response Code or Quick Response Code and presupposed information are sent to Quick Response Code display device again, the Quick Response Code generated with this can reduce the amount of pixels taken, therefore can reduce the storage space taken and the bandwidth taken when transmitting can be reduced, and adopt contracting picture format with no pressure to carry out storing and not only additionally support other picture formats without the need to equipment, and in storage and the expense also saving process when showing this Quick Response Code, in Quick Response Code display device side, show again after the matrix element width of the Quick Response Code received can being expanded according to the preset matrix element width value got, to ensure that the Quick Response Code demonstrated has due amount of pixels, ensure the picture quality of Quick Response Code, and then ensure that Quick Response Code has higher readability.
The disposal route embodiment of corresponding the invention described above Quick Response Code, additionally provides the disposal system embodiment of Quick Response Code, is specifically described below in conjunction with accompanying drawing.
Fig. 3 shows the structural representation of the disposal system embodiment one of Quick Response Code of the present invention.
Generate equipment side at Quick Response Code, this system comprises:
First receiving element 31, for receiving data to be encoded and determining preset matrix element width value.
Quick Response Code generation unit 32, is the Quick Response Code of 1 pixel by data to be encoded generator matrix element width and stores with contracting picture format with no pressure, and is stored in presupposed information by the preset matrix element width value determined.
Transmitting element 33, for when receiving instruction Quick Response Code being sent to Quick Response Code display device, then Quick Response 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 the preset matrix element width value corresponding with Quick Response Code got, show after the matrix element width of Quick Response Code is expanded to preset matrix element width value.
Wherein, the preset matrix element width value determined can be stored in the formatted message of Quick Response Code by Quick Response Code generation unit 32,
Based on this, transmitting element 33 can be specifically for:
The Quick Response Code comprising preset matrix element width value in formatted message is sent to Quick Response Code display device, so that Quick Response Code equipment obtains the preset matrix element width value corresponding with Quick Response Code by the preset matrix element width value in reading format information.
In presupposed information outside the formatted message that the preset matrix element width value determined can be stored in Quick Response Code by Quick Response Code generation unit 32,
Based on this, transmitting element 33 can be specifically for:
Quick Response Code and presupposed information are sent to Quick Response Code display device respectively, so that Quick Response Code display device obtains the preset matrix element width value corresponding with Quick Response Code by the preset matrix element width value read in presupposed information.
Shown in Fig. 4, it is the structural representation of the disposal system embodiment two of Quick Response Code of the present invention.
In Quick Response Code display device side, this system comprises:
Second receiving element 41, generates the Quick Response Code sent of equipment or Quick Response Code and presupposed information for receiving Quick Response Code.
Wherein, to be matrix element width be 1 pixel to described Quick Response Code and matrix element is foursquare Quick Response Code.
Acquiring unit 42, for obtaining the preset matrix element width value corresponding with Quick Response Code according to the Quick Response Code received or presupposed information.
Display unit 43, for showing after the matrix element width of Quick Response Code being expanded to preset matrix element width value according to the preset matrix element width value that gets.
Wherein, when preset matrix element width value is in the formatted message being stored in Quick Response Code,
Acquiring unit 42 can be specifically for: obtain the preset matrix element width value corresponding with described Quick Response Code by the preset matrix element width value read in the formatted message of described Quick Response Code.
When preset matrix element width value be stored in Quick Response Code formatted message outside presupposed information in,
Acquiring unit 42 can be specifically for:
The preset matrix element width value corresponding with described Quick Response Code is obtained by the preset matrix element width value read in described presupposed information.
The disposal system of the Quick Response Code of the embodiment of the present invention, can be used for the generation of Quick Response Code, send and display, equipment side is generated at Quick Response Code, can be 1 pixel and matrix element is foursquare Quick Response Code and stores with contracting picture format with no pressure by generator matrix element width, and the preset matrix element width value determined is stored in presupposed information, according to the memory location of preset matrix element width value, Quick Response Code or Quick Response Code and presupposed information are sent to Quick Response Code display device again, the Quick Response Code generated with this can reduce the amount of pixels taken, therefore can reduce the storage space taken and the bandwidth taken when transmitting can be reduced, and adopt contracting picture format with no pressure to carry out storing and not only additionally support other picture formats without the need to equipment, and in storage and the expense also saving process when showing this Quick Response Code, in Quick Response Code display device side, show again after the matrix element width of the Quick Response Code received can being expanded according to the preset matrix element width value got, to ensure that the Quick Response Code demonstrated has due amount of pixels, ensure 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 well understood to the mode that the application can add required general hardware platform by software and realizes.Based on such understanding, the technical scheme of the application can embody with the form of software product the part that prior art contributes in essence in other words, this computer software product can be stored in storage medium, as ROM/RAM, magnetic disc, CD etc., comprising some instructions in order to make a computer equipment (can be personal computer, server, or the network equipment etc.) perform the method described in some part of each embodiment of the application or embodiment.
Each embodiment in this instructions all adopts the mode of going forward one by one to describe, between each embodiment identical similar part mutually see, what each embodiment stressed is the difference with other embodiments.Especially, for system or system embodiment, because it is substantially similar to embodiment of the method, so describe fairly simple, relevant part illustrates see the part of embodiment of the method.System described above and system embodiment are only schematic, the wherein said unit illustrated as separating component or can may not be and physically separates, parts as unit display can be or may not be physical location, namely can be positioned at a place, or also can be distributed in multiple network element.Some or all of module wherein can be selected according to the actual needs to realize the object of the present embodiment scheme.Those of ordinary skill in the art, when not paying creative work, are namely appreciated that and implement.
Above the disposal route of Quick Response Code provided by the present invention and system are described in detail, apply specific case herein to set forth the principle of the application and embodiment, the explanation of above embodiment is just for helping method and the core concept thereof of understanding the application; Meanwhile, for one of ordinary skill in the art, according to the thought of the application, all will change in specific embodiments and applications.In sum, this description should not be construed as the restriction to the application.

Claims (12)

1. a disposal route for Quick Response Code, is characterized in that, comprise Quick Response Code and generate equipment and Quick Response Code display device, described Quick Response Code generates equipment and described Quick Response Code display device communicates to connect,
Generate equipment side at Quick Response Code, described method comprises:
Receive data to be encoded and determine preset matrix element width value;
Described data to be encoded generator matrix element width is 1 pixel and matrix element is foursquare Quick Response Code and stores with contracting picture format with no pressure, and the preset matrix element width value determined is stored in presupposed information;
When receive described Quick Response Code is sent to the instruction of Quick Response Code display device time, then described Quick Response Code or described Quick Response Code and described presupposed information are sent to described Quick Response Code display device, so that described Quick Response Code display device is according to the preset matrix element width value corresponding with described Quick Response Code got, show after the matrix element width of Quick Response Code is expanded to preset matrix element width value.
2. the method for claim 1, is characterized in that, is describedly stored in for be stored in the formatted message of Quick Response Code by the preset matrix element width value determined in presupposed information by the preset matrix element width value determined,
Described Quick Response Code or described Quick Response Code and described presupposed information are sent to described Quick Response Code display device, are specially:
The Quick Response Code comprising preset matrix element width value in formatted message is sent to described Quick Response Code display device, so that described Quick Response Code equipment obtains the preset matrix element width value corresponding with described Quick Response Code by the preset matrix element width value read in described formatted message.
3. the method for claim 1, is characterized in that, described the preset matrix element width value determined is stored in presupposed information for the preset matrix element width value determined is stored in described Quick Response Code formatted message outside presupposed information in,
Described Quick Response Code or described Quick Response Code and described presupposed information are sent to described Quick Response Code display device, are specially:
Described Quick Response Code and described presupposed information are sent to described Quick Response Code display device respectively, so that described Quick Response Code display device obtains the preset matrix element width value corresponding with described Quick Response Code by the preset matrix element width value read in described presupposed information.
4. a disposal route for Quick Response Code, is characterized in that, comprise Quick Response Code and generate equipment and Quick Response Code display device, described Quick Response Code generates equipment and described Quick Response Code display device communicates to connect,
In Quick Response Code display device side, described method comprises:
Receive described Quick Response Code and generate the Quick Response Code sent of equipment or Quick Response Code and presupposed information;
The preset matrix element width value corresponding with described Quick Response Code is obtained according to the described Quick Response Code received or described presupposed information;
Show after the matrix element width of Quick Response Code being expanded to preset matrix element width value according to the described preset matrix element width value got;
Wherein, to be matrix element width be 1 pixel to described Quick Response Code and matrix element is foursquare Quick Response Code.
5. method as claimed in claim 4, it is characterized in that, described preset matrix element width value is be stored in the formatted message of Quick Response Code,
Obtain the preset matrix element width value corresponding with described Quick Response Code according to the described Quick Response Code received or described presupposed information, be specially:
The preset matrix element width value corresponding with described Quick Response Code is obtained by the preset matrix element width value read in the formatted message of described Quick Response Code.
6. method as claimed in claim 4, is characterized in that, described preset matrix element width value be stored in described Quick Response Code formatted message outside presupposed information in,
Obtain the preset matrix element width value corresponding with described Quick Response Code according to the described Quick Response Code received or described presupposed information, be specially:
The preset matrix element width value corresponding with described Quick Response Code is obtained by the preset matrix element width value read in described presupposed information.
7. a disposal system for Quick Response Code, is characterized in that, comprise Quick Response Code and generate equipment and Quick Response Code display device, described Quick Response Code generates equipment and described Quick Response Code display device communicates to connect,
Generate equipment side at Quick Response Code, described system comprises:
First receiving element, for receiving data to be encoded and determining preset matrix element width value;
Quick Response Code generation unit, for described data to be encoded generator matrix element width being 1 pixel and matrix element is foursquare Quick Response Code and stores with contracting picture format with no pressure, and is stored in presupposed information by the preset matrix element width value determined;
Transmitting element, for when receiving the instruction described Quick Response Code being sent to described Quick Response Code display device, then described Quick Response Code or described Quick Response Code and described presupposed information are sent to described Quick Response Code display device, so that described Quick Response Code display device is according to the preset matrix element width value corresponding with described Quick Response Code got, show after the matrix element width of described Quick Response Code is expanded to preset matrix element width value.
8. system as claimed in claim 7, is characterized in that, is describedly stored in for be stored in the formatted message of Quick Response Code by the preset matrix element width value determined in presupposed information by the preset matrix element width value determined,
Described transmitting element, specifically for:
The Quick Response Code comprising preset matrix element width value in formatted message is sent to described Quick Response Code display device, so that described Quick Response Code equipment obtains the preset matrix element width value corresponding with described Quick Response Code by the preset matrix element width value read in described formatted message.
9. system as claimed in claim 7, is characterized in that, described the preset matrix element width value determined is stored in presupposed information for the preset matrix element width value determined is stored in described Quick Response Code formatted message outside presupposed information in,
Described transmitting element, specifically for:
Described Quick Response Code and described presupposed information are sent to described Quick Response Code display device respectively, so that described Quick Response Code display device obtains the preset matrix element width value corresponding with described Quick Response Code by the preset matrix element width value read in described presupposed information.
10. a disposal system for Quick Response Code, is characterized in that, comprise Quick Response Code and generate equipment and Quick Response Code display device, described Quick Response Code generates equipment and described Quick Response Code display device communicates to connect,
In Quick Response Code display device side, described system comprises:
Second receiving element, generates the Quick Response Code sent of equipment or Quick Response Code and presupposed information for receiving described Quick Response Code;
Acquiring unit, for obtaining the preset matrix element width value corresponding with described Quick Response Code according to the described Quick Response Code received or described presupposed information;
Display unit, for showing after the matrix element width of described Quick Response Code being expanded to preset matrix element width value according to the described preset matrix element width value that gets;
Wherein, to be matrix element width be 1 pixel to described Quick Response Code and matrix element is foursquare Quick Response Code.
11. systems as claimed in claim 10, is characterized in that, described preset matrix element width value is be stored in the formatted message of Quick Response Code,
Described acquiring unit, specifically for:
The preset matrix element width value corresponding with described Quick Response Code is obtained by the preset matrix element width value read in the formatted message of described Quick Response Code.
12. systems as claimed in claim 10, is characterized in that, described preset matrix element width value be stored in described Quick Response Code formatted message outside presupposed information in,
Described acquiring unit, specifically for:
The preset matrix element width value corresponding with described Quick Response Code is obtained by the preset matrix element width value read in described presupposed information.
CN201410595438.9A 2014-10-30 2014-10-30 The processing method and system of Quick Response Code Active CN104408503B (en)

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 true CN104408503A (en) 2015-03-11
CN104408503B 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)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105117751A (en) * 2015-08-27 2015-12-02 努比亚技术有限公司 Two-dimensional code transmission method and apparatus
CN107169393A (en) * 2017-04-12 2017-09-15 北京小米移动软件有限公司 Two-dimensional code scanning method and device
CN109410286A (en) * 2018-11-09 2019-03-01 华南理工大学 A kind of decoding method of Intelligent concealed gridiron pattern scaling board
CN109934321A (en) * 2019-03-18 2019-06-25 刘兴丹 A kind of method, apparatus of dynamic matrix two dimensional code

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050213830A1 (en) * 2004-03-25 2005-09-29 Noriaki Nagashima Image processing device and method
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

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050213830A1 (en) * 2004-03-25 2005-09-29 Noriaki Nagashima Image processing device and method
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

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105117751A (en) * 2015-08-27 2015-12-02 努比亚技术有限公司 Two-dimensional code transmission method and apparatus
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
CN109410286A (en) * 2018-11-09 2019-03-01 华南理工大学 A kind of decoding method of Intelligent concealed gridiron pattern scaling board
CN109934321A (en) * 2019-03-18 2019-06-25 刘兴丹 A kind of method, apparatus of dynamic matrix two dimensional code

Also Published As

Publication number Publication date
CN104408503B (en) 2017-08-01

Similar Documents

Publication Publication Date Title
CN103400174B (en) The coded method of a kind of Quick Response Code, coding/decoding method and system
CN103942585B (en) Method for converting information into two-dimensional codes
CN203057193U (en) Data processing apparatus
CN104408503A (en) Processing method and system for two-dimensional code
CN107392583B (en) Two-dimensional code graphic data generation method and device
CN102054185A (en) Two-dimension code generation method, user mobile terminal and mobile communication system
CN103870861A (en) Method and device for generating two-dimensional code
CN102801784A (en) Distributed type data storing method and equipment
WO2015000395A1 (en) A method and device for identifying two-dimensional barcodes
CN111880752A (en) Seal printing method and device, electronic equipment and storage medium
CN111064471A (en) Data processing method and device and electronic equipment
CN108256610A (en) A kind of word is around the generation system and generation method of Quick Response Code
CN109408191A (en) Method for updating pages, device, equipment and storage medium
US20160210542A1 (en) Image printing method and printer
CN102982046B (en) A kind of web data compression and storage method and system
CN104077374A (en) Method and device for achieving internet protocol (IP) disk file storage
US10762317B2 (en) Quick response (QR) code deformation
CN107301017B (en) Data storage method and device
CN110968255A (en) Data processing method, data processing device, storage medium and processor
CN104442054A (en) Two-dimension code printing method and device based on mainframe platform
US20180336446A1 (en) Lost and found systems, methods, and devices
CN103399864A (en) Image conversion method and device
CN106874979B (en) Bar code processing, displaying and reading method and device
CN104902449A (en) Service processing method, device, server, and system based on two-dimension code
CN112464618A (en) Method and device for paging document data, storage medium and electronic equipment

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