CN103854298B - A kind of method that picture and Quick Response Code merge and terminal - Google Patents

A kind of method that picture and Quick Response Code merge and terminal Download PDF

Info

Publication number
CN103854298B
CN103854298B CN201410050540.0A CN201410050540A CN103854298B CN 103854298 B CN103854298 B CN 103854298B CN 201410050540 A CN201410050540 A CN 201410050540A CN 103854298 B CN103854298 B CN 103854298B
Authority
CN
China
Prior art keywords
picture
quick response
response code
minimum unit
color
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
Application number
CN201410050540.0A
Other languages
Chinese (zh)
Other versions
CN103854298A (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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201410050540.0A priority Critical patent/CN103854298B/en
Publication of CN103854298A publication Critical patent/CN103854298A/en
Application granted granted Critical
Publication of CN103854298B publication Critical patent/CN103854298B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Image Processing (AREA)

Abstract

The invention discloses a kind of method that picture merges with Quick Response Code, including: the information of the Quick Response Code to be generated user inputted generates Quick Response Code, the picture to be merged choosing user carries out pretreatment, obtain pretreated picture, described pretreated picture is equivalently-sized with described Quick Response Code, and only black and white effect, according to preset convergence strategy, described pretreated picture is merged with described Quick Response Code, generating picture Quick Response Code, pretreated picture described in described picture Quick Response Code merges in the whole region being distributed in described Quick Response Code.The method that the picture that the embodiment of the present invention provides merges with Quick Response Code, can be fused to picture in Quick Response Code, improve the bandwagon effect of Quick Response Code.

Description

A kind of method that picture and Quick Response Code merge and terminal
Technical field
The present invention relates to planar bar code technology field, be specifically related to method and end that a kind of picture merges with Quick Response Code End.
Background technology
Quick Response Code (2-dimensional bar code), also known as two-dimensional bar code, it is to use specific geometric figure The chequered with black and white figure of distribution on two dimensional surface direction according to certain rules.
In existing technical scheme, picture to be merged with Quick Response Code, be the most all the appearance utilizing Quick Response Code Error rate, directly overlies in Quick Response Code in certain zonule after being reduced by picture, usual area is not more than two dimension The 10% of code area.
It was found by the inventors of the present invention that picture can only be covered in the appointment region of Quick Response Code by prior art, The bandwagon effect causing Quick Response Code is single.
Summary of the invention
The embodiment of the present invention provides a kind of method that picture merges with Quick Response Code, picture can be fused to two dimension In Ma, improve the bandwagon effect of Quick Response Code.The embodiment of the present invention additionally provides corresponding terminal.
First aspect present invention provides a kind of method that picture merges with Quick Response Code, including:
The information of the Quick Response Code to be generated user inputted generates Quick Response Code;
The picture to be merged choosing user carries out pretreatment, obtains pretreated picture, described pre-place Picture after reason is equivalently-sized with described Quick Response Code, and only black and white effect;
According to preset convergence strategy, described pretreated picture is merged with described Quick Response Code, raw Picture Quick Response Code, the fusion of pretreated picture described in described picture Quick Response Code is become to be distributed in described Quick Response Code Whole region in.
Second aspect present invention provides a kind of terminal, including:
Signal generating unit, the information of the Quick Response Code to be generated for user being inputted generates Quick Response Code;
Picture processing unit, carries out pretreatment for the picture to be merged choosing user, obtains pretreatment After picture, the size phase of the described Quick Response Code that described pretreated picture and described signal generating unit generate With, and only black and white effect;
Integrated unit, for according to preset convergence strategy, by the described pretreated figure of picture processing unit The Quick Response Code that sheet generates with described signal generating unit merges, and generates picture Quick Response Code, described picture Quick Response Code Described in pretreated picture merge and be distributed in the whole region of described Quick Response Code.
The embodiment of the present invention uses the information of the Quick Response Code to be generated user inputted to generate Quick Response Code, to user The picture to be merged chosen carries out pretreatment, obtains pretreated picture, described pretreated picture Equivalently-sized with described Quick Response Code, and only black and white effect, according to preset convergence strategy, by described pre- Picture after process merges with described Quick Response Code, generates picture Quick Response Code, institute in described picture Quick Response Code State pretreated picture to merge in the whole region being distributed in described Quick Response Code.Simply will with prior art Picture covers and compares in the appointment region of Quick Response Code, and the picture that the embodiment of the present invention provides merges with Quick Response Code Method, can be fused to picture in Quick Response Code, improve the bandwagon effect of Quick Response Code.
Accompanying drawing explanation
For the technical scheme being illustrated more clearly that in the embodiment of the present invention, institute in embodiment being described below The accompanying drawing used is needed to be briefly described, it should be apparent that, the accompanying drawing in describing below is only the present invention Some embodiments, for those skilled in the art, on the premise of not paying creative work, also Other accompanying drawing can be obtained according to these accompanying drawings.
Fig. 1 is an embodiment schematic diagram of the method that picture merges with Quick Response Code in the embodiment of the present invention;
Fig. 2 A-2E is another embodiment signal of the method that picture merges with Quick Response Code in the embodiment of the present invention Figure;
Fig. 3 is an embodiment schematic diagram of terminal in the embodiment of the present invention;
Fig. 4 is another embodiment schematic diagram of terminal in the embodiment of the present invention;
Fig. 5 is another embodiment schematic diagram of terminal in the embodiment of the present invention;
Fig. 6 is another embodiment schematic diagram of terminal in the embodiment of the present invention;
Fig. 7 is another embodiment schematic diagram of terminal in the embodiment of the present invention.
Detailed description of the invention
The embodiment of the present invention provides a kind of method that picture merges with Quick Response Code, picture can be fused to two dimension In Ma, improve the bandwagon effect of Quick Response Code.The embodiment of the present invention additionally provides corresponding terminal.Hereinafter divide It is not described in detail.
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 clearly Chu, be fully described by, it is clear that described embodiment be only a part of embodiment of the present invention rather than Whole embodiments.Based on the embodiment in the present invention, those skilled in the art are not making creative labor The every other embodiment obtained under dynamic premise, broadly falls into the scope of protection of the invention.
Refering to Fig. 1, an embodiment of the method that the picture that the embodiment of the present invention provides merges with Quick Response Code includes:
101, the information of the Quick Response Code to be generated user inputted generates Quick Response Code.
The information of Quick Response Code to be generated can be the information such as word, numeral, network address.
The information of the Quick Response Code to be generated user inputted carries out coding and generates Quick Response Code, and its coded system is permissible Use quickly response (Quick Response, QR) coding.
102, the picture to be merged chosen user carries out pretreatment, obtains pretreated picture, institute State the equivalently-sized of pretreated picture and described Quick Response Code, and only black and white effect.
In the embodiment of the present invention, pretreatment may include that picture is zoomed in and out process, gray processing process and Binary conversion treatment, does not limit scaling and processes the order processed with gray processing.
Processed by scaling, by the size scaling of picture to the size identical with Quick Response Code.
Processed by gray processing and colour picture is converted to gray-scale map, then gray-scale map is turned by binary conversion treatment It is changed to the black and white picture of only black and white effect, if picture is originally as black and white picture, the most only need to zoom in and out place Manage.
103, according to preset convergence strategy, described pretreated picture is melted with described Quick Response Code Closing, generate picture Quick Response Code, the fusion of pretreated picture described in described picture Quick Response Code is distributed in described In the whole region of Quick Response Code.
At the size scaling of picture to time identical with Quick Response Code, can by picture with Quick Response Code according to identical ratio Example divides, such as: according to the ratio cut partition of 20*20, then picture and Quick Response Code all can be divided into 400 junior units, are fused to the junior unit in picture in Quick Response Code in the junior unit of correspondence position, so that it may Picture is merged branch in the whole region of Quick Response Code.
The embodiment of the present invention uses the information of the Quick Response Code to be generated user inputted to generate Quick Response Code, to user The picture to be merged chosen carries out pretreatment, obtains pretreated picture, described pretreated picture Equivalently-sized with described Quick Response Code, and only black and white effect, according to preset convergence strategy, by described pre- Picture after process merges with described Quick Response Code, generates picture Quick Response Code, institute in described picture Quick Response Code State pretreated picture to merge in the whole region being distributed in described Quick Response Code.Simply will with prior art Picture covers and compares in the appointment region of Quick Response Code, and the picture that the embodiment of the present invention provides merges with Quick Response Code Method, can be fused to picture in Quick Response Code, improve the bandwagon effect of Quick Response Code.
Alternatively, on the basis of the embodiment that above-mentioned Fig. 1 is corresponding, the embodiment of the present invention provide picture with In another embodiment of the method that Quick Response Code merges, the described picture to be merged choosing user carries out pre-place Reason, obtains pretreated picture, and described pretreated picture is equivalently-sized with described Quick Response Code, and Only black and white effect, may include that
The picture to be merged described user chosen is scaled to the size identical with described Quick Response Code, and by institute State the picture after scaling and be converted into gray-scale map;
The described picture being converted into gray-scale map is carried out binary conversion treatment, obtains the pretreatment of only black and white effect After picture.
In the embodiment of the present invention, processed by scaling, by the size scaling of picture to the chi identical with Quick Response Code Very little.Processed by gray processing and colour picture is converted to gray-scale map, then gray-scale map is turned by binary conversion treatment It is changed to the black and white picture of only black and white effect, if picture is originally as black and white picture, the most only need to zoom in and out place Manage.
Alternatively, on the basis of the alternative embodiment that embodiment corresponding for above-mentioned Fig. 1 or Fig. 1 are corresponding, this In another embodiment of the method that picture and the Quick Response Code that bright embodiment provides merges, described melt according to preset Close strategy, described pretreated picture is merged with described Quick Response Code, generate picture Quick Response Code, can To include:
It is N*N little lattice according to the ratio cut partition of N*N respectively by the first minimum unit and the second minimum unit, Described first minimum unit is identical with the size of described second minimum unit, and described first minimum unit is described The minimum unit of Quick Response Code, described second minimum unit is the minimum unit of described pretreated picture, institute Stating N is the integer more than 1;
The minimum unit of Quick Response Code i.e. the code element of Quick Response Code in the embodiment of the present invention, code element or completely black, The whitest, say, that the first minimum unit is exactly the code element of Quick Response Code.
With described in color according to the first minimum unit described at same position and described second minimum unit The quantity of the little lattice that the first minimum unit color is identical and distributing position, and preset color blend strategy Table, determines in described picture Quick Response Code the color of each little lattice in the minimum unit at same position.
In the embodiment of the present invention, N can be 2,3,4 or other numerical value.Quick Response Code is usually 21*21's Minimum unit is distributed, and the color of each minimum unit can only be black or white, if by 21*21 Quick Response Code in each minimum unit according still further to the ratio cut partition of 3*3, then this Quick Response Code reforms into as 63*63 Unit figure, because of size and Quick Response Code equivalently-sized of picture, thus the minimum unit of picture also with two dimension Code-phase is same, but the color in the minimum unit of picture can differ, and can white exist with black simultaneously, But in the minimum unit of picture, it is identical according to the color in each little lattice after the ratio cut partition of 3*3, Completely black or the whitest.
Displaying situation after minimum unit is drawn according to the ratio of 3*3 can understand refering to table 1:
Table 1: minimum unit divides figure
1 2 3
4 5 6
7 8 9
If the first minimum unit of Quick Response Code is black, then determine in 9 little lattice of the second minimum unit The quantity of the little lattice of black, and the position of the little lattice of black, and preset color blend Policy Table, determine institute State in picture Quick Response Code the color of each little lattice in the minimum unit at same position.
Color blend Policy Table pre-set for developer, such as: the color in the embodiment of the present invention is melted Close Policy Table to understand refering to table 2:
Table 2: color blend Policy Table
As shown in table 2, list Quick Response Code and picture minimum unit according to 3*3 ratio cut partition after, work as Quick Response Code Minimum unit when being black, in the minimum unit of picture, 9 little lattice are convergence strategy during different colours, When the minimum unit of Quick Response Code is white, if the color of 9 little lattice of minimum unit on picture Quick Response Code In upper table 2, on picture Quick Response Code, the color of 9 little lattice of minimum unit negates, i.e. on picture Quick Response Code The color of 9 little lattice of minimum unit be originally white then become black, be originally black then becomes white Color.
At scanned picture Quick Response Code, when identifying the information in picture Quick Response Code, terminal only need to scan minimum unit, According to preset convergence strategy table, according to the branch of minimum unit medium and small lattice color, it is possible to determine this two dimension Code minimum unit is completely black or entirely white, thus identifies the information in picture Quick Response Code.
Above-mentioned is to illustrate with situation about dividing according to 3*3, when according to other ratio cut partitions, all may be used To copy above-mentioned convergence strategy to realize the fusion of Quick Response Code and picture.
Alternatively, on the basis of above-described embodiment, the picture that the embodiment of the present invention provides merges with Quick Response Code Method another embodiment in, the described color according to the first minimum unit described at same position and described The quantity of little lattice identical with described first minimum unit color in the second minimum unit and distributing position, and Preset Quick Response Code and picture color convergence strategy table, determine in described picture Quick Response Code at same position In junior unit before the color of each little lattice, described method can also include:
Determine described at the color of the first minimum unit, and described same position described at described same position The color of each little lattice and distributing position in second minimum unit.
Alternatively, on the basis of above-described embodiment, the picture that the embodiment of the present invention provides merges with Quick Response Code Method another embodiment in, described method can also include:
Described pretreated picture in described picture Quick Response Code is carried out color rendering, obtains comprising gray scale The picture Quick Response Code of picture or colour picture.
In the embodiment of the present invention, according in the picture Quick Response Code that front several embodiments generate, the color of picture is Black and white, in order to strengthen visual effect, the described pretreated picture in picture Quick Response Code can be carried out Color rendering, makes described pretreated picture become gray scale picture or colour picture, such that it is able to strengthen The visual effect of picture Quick Response Code, carrying out can be with the color before pre-recorded lower picture pretreatment when color renders Branch, then according to the color branch of the picture of record renders.
Refering to Fig. 2 A-2E, as a example by an application scenarios, picture and Quick Response Code in the embodiment of the present invention are described The process merged:
The website information that user is inputtedhttp://www.qq.comCarry out coding and generate Quick Response Code, its coding staff Formula can use QR to encode, as shown in Figure 2 A, for comprisinghttp://www.qq.comQuick Response Code, by one Open the picture comprising QQ image shown in Fig. 2 B and zoom in and out process and gray proces, obtain shown in Fig. 2 C The equivalently-sized gray-scale map of size and the Quick Response Code shown in Fig. 2 A, uses gray scale by the picture shown in Fig. 2 C Error diffusion algorithm, generates binaryzation picture, as shown in Figure 2 D, then, is pressed by picture 2A and picture 2D Merge according to the color blend Policy Table shown in table 2, obtain the picture Quick Response Code shown in Fig. 2 E.
The picture Quick Response Code merging generation in the embodiment of the present invention, picture is distributed in whole Quick Response Code, depending on Feel that effect is more directly perceived.
Refering to Fig. 3, an embodiment of the terminal that the embodiment of the present invention provides includes:
Signal generating unit 201, the information of the Quick Response Code to be generated for user being inputted generates Quick Response Code;
Picture processing unit 202, carries out pretreatment for the picture to be merged choosing user, obtains pre- Picture after process, the described Quick Response Code that described pretreated picture generates with described signal generating unit 201 Equivalently-sized, and only black and white effect;
Integrated unit 203, for according to preset convergence strategy, by the pretreatment of described picture processing unit 202 After the Quick Response Code that generates of picture and described signal generating unit 201 merge, generate picture Quick Response Code, described Pretreated picture described in picture Quick Response Code merges in the whole region being distributed in described Quick Response Code.
In the embodiment of the present invention, the information of the Quick Response Code to be generated that user is inputted by signal generating unit 201 generates two Dimension code, the picture to be merged that user is chosen by picture processing unit 202 carries out pretreatment, obtains pretreatment After picture, the size of the described Quick Response Code that described pretreated picture and described signal generating unit 201 generate Identical, and only black and white effect, integrated unit 203 is according to preset convergence strategy, by described picture processing The Quick Response Code that the pretreated picture of unit 202 generates with described signal generating unit 201 merges, and generates picture Quick Response Code, the fusion of pretreated picture described in described picture Quick Response Code is distributed in the whole of described Quick Response Code In region.Compared with simply being covered by picture in prior art in the appointment region of Quick Response Code, the present invention implements The terminal that example provides, can be fused to picture in Quick Response Code, improve the bandwagon effect of Quick Response Code.
Alternatively, on the basis of the embodiment that above-mentioned Fig. 3 is corresponding, refering to Fig. 4, the embodiment of the present invention provides Terminal another embodiment in, described picture processing unit 202 includes:
Scaling subelement 2021, is scaled to and described two dimension for the picture to be merged described user chosen The size that code-phase is same;
Conversion subelement 2022, the picture after being used for and being scaled by described scaling subelement 2021 is converted into gray scale Figure;
Processing subelement 2023, carrying out two for described conversion subelement 2022 being converted into the picture of gray-scale map Value processes, and obtains the pretreated picture of only black and white effect.
Alternatively, on the basis of the embodiment that above-mentioned Fig. 3 is corresponding, refering to Fig. 5, the embodiment of the present invention provides Terminal another embodiment in, described integrated unit 203 includes:
Divide subelement 2031, for by the first minimum unit and the second minimum unit respectively according to the ratio of N*N Example is divided into N*N little lattice, and described first minimum unit is identical with the size of described second minimum unit, institute State the minimum unit that the first minimum unit is described Quick Response Code, after described second minimum unit is described pretreatment The minimum unit of picture, described N is the integer more than 1;
Determine subelement 2032, for the color according to the first minimum unit described at same position and described the In two minimum units identical with described first minimum unit color described in change molecular cell 2031 divide after The quantity of little lattice and distributing position, and preset color blend Policy Table, determine in described picture Quick Response Code The color of each little lattice in minimum unit at same position.
Alternatively, on the basis of the embodiment that above-mentioned Fig. 5 is corresponding, the terminal that the embodiment of the present invention provides In another embodiment,
Described determine subelement 2032, be additionally operable to determine the face of the first minimum unit described at described same position The color of each little lattice and distributing position in second minimum unit described at color, and described same position.
Alternatively, on the basis of the embodiment that above-mentioned Fig. 3 is corresponding, refering to Fig. 6, the embodiment of the present invention provides Terminal another embodiment in, described terminal 20 also includes:
Color rendering unit 204, in the described picture Quick Response Code after merging described integrated unit 203 Described pretreated picture carries out color rendering, obtains comprising the picture two of gray scale picture or colour picture Dimension code.
Refer to Fig. 7 and it illustrates embodiment of the present invention terminal structure schematic diagram, this terminal may be used for implementing There is provided in above-described embodiment plants the method that picture merges with Quick Response Code.Specifically:
Terminal 1200 can include RF(Radio Frequency, radio frequency) circuit 110, include one Or the memorizer 120 of more than one computer-readable recording medium, input block 130, display unit 140, Sensor 150, voicefrequency circuit 160, WiFi (wireless fidelity, Wireless Fidelity) module 170, include There are one or more than one parts such as the processor 180 processing core and power supply 190.This area skill Art personnel are appreciated that the terminal structure shown in Fig. 7 is not intended that the restriction to terminal, can include ratio Illustrate more or less of parts, or combine some parts, or different parts are arranged.Wherein:
RF circuit 110 can be used for receiving and sending messages or in communication process, the reception of signal and transmission, especially, After the downlink information of base station is received, transfer to one or more than one processor 180 processes;It addition, will Relate to up data and be sent to base station.Generally, RF circuit 110 include but not limited to antenna, at least one Individual amplifier, tuner, one or more agitator, subscriber identity module (SIM) card, transceiver, Bonder, LNA(Low Noise Amplifier, low-noise amplifier), duplexer etc..Additionally, RF Circuit 110 can also be communicated with network and other equipment by radio communication.Described radio communication can use Arbitrary communication standard or agreement, include but not limited to GSM (Global System of Mobile Communication, global system for mobile communications), GPRS (General Packet Radio Service, logical With packet wireless service), CDMA (Code Division Multiple Access, CDMA), WCDMA (Wideband Code Division Multiple Access, WCDMA), LTE (Long Term Evolution, Long Term Evolution), Email, SMS (Short Messaging Service, short message Service) etc..
Memorizer 120 can be used for storing software program and module, and processor 180 is stored in by operation The software program of reservoir 120 and module, thus perform the application of various function and data process.Memorizer 120 can mainly include store program area and storage data field, wherein, storage program area can store operating system, Application program (such as sound-playing function, image player function etc.) etc. needed at least one function;Deposit Storage data field can store data (the such as voice data, phone directory that the use according to terminal 1200 is created Deng) etc..Additionally, memorizer 120 can include high-speed random access memory, it is also possible to include non-volatile Property memorizer, for example, at least one disk memory, flush memory device or other volatile solid-state Part.Correspondingly, memorizer 120 can also include Memory Controller, to provide processor 180 and input The unit 130 access to memorizer 120.
Input block 130 can be used for receive input numeral or character information, and produce with user setup with And function controls relevant keyboard, mouse, action bars, optics or the input of trace ball signal.Specifically, Input block 130 can include Touch sensitive surface 131 and other input equipments 132.Touch sensitive surface 131, also It is referred to as touching display screen or Trackpad, user can be collected thereon or neighbouring touch operation (such as user Use any applicable object such as finger, stylus or adnexa on Touch sensitive surface 131 or at Touch sensitive surface 131 Neighbouring operation), and drive corresponding attachment means according to formula set in advance.Optionally, touch-sensitive table Face 131 can include touch detecting apparatus and two parts of touch controller.Wherein, touch detecting apparatus detection The touch orientation of user, and detect the signal that touch operation brings, transmit a signal to touch controller;Touch Touch controller from touch detecting apparatus, receive touch information, and be converted into contact coordinate, then give place Reason device 180, and order that processor 180 sends can be received and performed.Furthermore, it is possible to employing resistance The polytypes such as formula, condenser type, infrared ray and surface acoustic wave realize Touch sensitive surface 131.Except touch-sensitive table Face 131, input block 130 can also include other input equipments 132.Specifically, other input equipments 132 can include but not limited to physical keyboard, function key (such as volume control button, switch key etc.), One or more in trace ball, mouse, action bars etc..
Display unit 140 can be used for showing the information inputted by user or the information being supplied to user and end End 1200 various graphical user interface, these graphical user interface can by figure, text, icon, Video and its combination in any are constituted.Display unit 140 can include display floater 141, optionally, permissible Use LCD (Liquid Crystal Display, liquid crystal display), OLED (Organic Light-Emitting Diode, Organic Light Emitting Diode) etc. form configure display floater 141.Further, Touch sensitive surface 131 Display floater 141 can be covered, when Touch sensitive surface 131 detects thereon or after neighbouring touch operation, pass Give processor 180 to determine the type of touch event, with preprocessor 180 according to the type of touch event Display floater 141 provides corresponding visual output.Although in the figure 7, Touch sensitive surface 131 and display Panel 141 is to realize input and input function as two independent parts, but in some embodiment In, can be by integrated to Touch sensitive surface 131 and display floater 141 and realize input and output function.
Terminal 1200 may also include at least one sensor 150, such as optical sensor, motion sensor with And other sensors.Specifically, optical sensor can include ambient light sensor and proximity transducer, wherein, Ambient light sensor can regulate the brightness of display floater 141, proximity transducer according to the light and shade of ambient light Display floater 141 and/or backlight can be closed when terminal 1200 moves in one's ear.As motion sensor One, Gravity accelerometer can detect the size of (generally three axles) acceleration in all directions, Can detect that size and the direction of gravity time static, can be used for identifying application (the such as horizontal/vertical screen of mobile phone attitude Switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, percussion) Deng;The gyroscope that can also configure as terminal 1200, barometer, drimeter, thermometer, infrared ray pass Other sensors such as sensor, do not repeat them here.
Voicefrequency circuit 160, speaker 161, microphone 162 can provide the sound between user and terminal 1200 Frequently interface.The signal of telecommunication after the voice data conversion that voicefrequency circuit 160 can will receive, is transferred to speaker 161, speaker 161 be converted to acoustical signal output;On the other hand, the sound that microphone 162 will be collected Tone signal is converted to the signal of telecommunication, voicefrequency circuit 160 be converted to voice data after receiving, then by voice data After output processor 180 processes, through RF circuit 110 to be sent to such as another terminal, or by audio frequency Data export to memorizer 120 to process further.Voicefrequency circuit 160 is also possible that earphone jack, To provide the communication of peripheral hardware earphone and terminal 1200.
WiFi belongs to short range wireless transmission technology, and terminal 1200 can be helped by WiFi module 170 User sends and receive e-mail, browses webpage and access streaming video etc., and it has provided the user wireless broadband Internet access.Although Fig. 7 shows WiFi module 170, but it is understood that, it does not belong to In must be configured into of terminal 1200, completely can be as required in not changing the scope of essence of invention Omit.
Processor 180 is the control centre of terminal 1200, utilizes various interface and the whole mobile phone of connection Various piece, by run or perform be stored in the software program in memorizer 120 and/or module, with And call the data being stored in memorizer 120, perform the various functions of terminal 1200 and process data, Thus mobile phone is carried out integral monitoring.Optionally, processor 180 can include one or more process core; Preferably, processor 180 can integrated application processor and modem processor, wherein, application processor Mainly processing operating system, user interface and application program etc., modem processor mainly processes channel radio Letter.It is understood that above-mentioned modem processor can not also be integrated in processor 180.
Terminal 1200 also includes the power supply 190(such as battery powered to all parts), it is preferred that power supply Can be logically contiguous with processor 180 by power-supply management system, thus realize pipe by power-supply management system The functions such as reason charging, electric discharge and power managed.Power supply 190 can also include one or more Direct current or alternating current power supply, recharging system, power failure detection circuit, power supply changeover device or inverter, The random component such as power supply status indicator.
Although not shown, terminal 1200 can also include photographic head, bluetooth module etc., does not repeats them here. It is concrete that the display unit of terminal is touch-screen display, and terminal also includes memorizer in the present embodiment, And one or more than one program, one of them or more than one program is stored in memorizer, And it is configured to be performed to state one by one or more than one processor or more than one program comprises use In the instruction carrying out following operation:
The information of the Quick Response Code to be generated user inputted generates Quick Response Code;
The picture to be merged choosing user carries out pretreatment, obtains pretreated picture, described pre-place Picture after reason is equivalently-sized with described Quick Response Code, and only black and white effect;
According to preset convergence strategy, described pretreated picture is merged with described Quick Response Code, raw Picture Quick Response Code, the fusion of pretreated picture described in described picture Quick Response Code is become to be distributed in described Quick Response Code Whole region in.
Assume above-mentioned for the first possible embodiment, then based on the embodiment that the first is possible And in the possible embodiment of the second of providing, in the memorizer of described terminal, also comprise for perform with The instruction of lower operation:
The picture to be merged described user chosen is scaled to the size identical with described Quick Response Code, and by institute State the picture after scaling and be converted into gray-scale map;
The described picture being converted into gray-scale map is carried out binary conversion treatment, obtains the pretreatment of only black and white effect After picture.
Based on the embodiment that the first or the second are possible and the third the possible enforcement provided In mode, in the memorizer of described terminal, also comprise for performing the following instruction operated:
It is N*N little lattice according to the ratio cut partition of N*N respectively by the first minimum unit and the second minimum unit, Described first minimum unit is identical with the size of described second minimum unit, and described first minimum unit is described The minimum unit of Quick Response Code, described second minimum unit is the minimum unit of described pretreated picture, institute Stating N is the integer more than 1;
With described in color according to the first minimum unit described at same position and described second minimum unit The quantity of the little lattice that the first minimum unit color is identical and distributing position, and preset color blend strategy Table, determines in described picture Quick Response Code the color of each little lattice in the minimum unit at same position.
In the 4th kind of possible embodiment provided based on the embodiment that the third is possible, institute State in the memorizer of terminal, also comprise for performing the following instruction operated:
Determine described at the color of the first minimum unit, and described same position described at described same position The color of each little lattice and distributing position in second minimum unit.
Based on the embodiment that the first or the second are possible and the 5th kind of possible enforcement provided In mode, in the memorizer of described terminal, also comprise for performing the following instruction operated:
Described pretreated picture in described picture Quick Response Code is carried out color rendering, obtains comprising gray scale The picture Quick Response Code of picture or colour picture.
In sum, the terminal that the present embodiment provides, use the information of the Quick Response Code to be generated user inputted Generating Quick Response Code, the picture to be merged choosing user carries out pretreatment, obtains pretreated picture, Described pretreated picture is equivalently-sized with described Quick Response Code, and only black and white effect, according to preset Convergence strategy, merges described pretreated picture with described Quick Response Code, generates picture Quick Response Code, Pretreated picture described in described picture Quick Response Code merges in the whole region being distributed in described Quick Response Code. Compared with simply being covered by picture in prior art in the appointment region of Quick Response Code, the embodiment of the present invention provides Terminal, can be fused to picture in Quick Response Code, improve the bandwagon effect of Quick Response Code.
As on the other hand, yet another embodiment of the invention additionally provides a kind of computer-readable recording medium, should Computer-readable recording medium can be that the computer-readable included in the memorizer in above-described embodiment is deposited Storage media;Can also be individualism, be unkitted the computer-readable recording medium allocating in terminal.Described meter Calculation machine readable storage medium storing program for executing storage has one or more than one program, one or more than one program It is used for performing the method that a picture merges, described side with Quick Response Code by one or more than one processor Method includes:
The information of the Quick Response Code to be generated user inputted generates Quick Response Code;
The picture to be merged choosing user carries out pretreatment, obtains pretreated picture, described pre-place Picture after reason is equivalently-sized with described Quick Response Code, and only black and white effect;
According to preset convergence strategy, described pretreated picture is merged with described Quick Response Code, raw Picture Quick Response Code, the fusion of pretreated picture described in described picture Quick Response Code is become to be distributed in described Quick Response Code Whole region in.
Assume above-mentioned for the first possible embodiment, then based on the embodiment that the first is possible And in the possible embodiment of the second of providing, the described picture to be merged choosing user carries out pre-place Reason, obtains pretreated picture, and described pretreated picture is equivalently-sized with described Quick Response Code, and Only black and white effect, including:
The picture to be merged described user chosen is scaled to the size identical with described Quick Response Code, and by institute State the picture after scaling and be converted into gray-scale map;
The described picture being converted into gray-scale map is carried out binary conversion treatment, obtains the pretreatment of only black and white effect After picture.
Based on the embodiment that the first or the second are possible and the third the possible enforcement provided In mode, described according to preset convergence strategy, described pretreated picture is carried out with described Quick Response Code Merge, generate picture Quick Response Code, including:
It is N*N little lattice according to the ratio cut partition of N*N respectively by the first minimum unit and the second minimum unit, Described first minimum unit is identical with the size of described second minimum unit, and described first minimum unit is described The minimum unit of Quick Response Code, described second minimum unit is the minimum unit of described pretreated picture, institute Stating N is the integer more than 1;
With described in color according to the first minimum unit described at same position and described second minimum unit The quantity of the little lattice that the first minimum unit color is identical and distributing position, and preset color blend strategy Table, determines in described picture Quick Response Code the color of each little lattice in the minimum unit at same position.
In the 4th kind of possible embodiment provided based on the embodiment that the third is possible, institute State in the color according to the first minimum unit described at same position and described second minimum unit with described The quantity of the little lattice that one minimum unit color is identical and distributing position, and preset Quick Response Code and picture color Convergence strategy table, determines in described picture Quick Response Code the color of each little lattice in the minimum unit at same position Before, described method also includes:
Determine described at the color of the first minimum unit, and described same position described at described same position The color of each little lattice and distributing position in second minimum unit.
Based on the embodiment that the first or the second are possible and the 5th kind of possible enforcement provided In mode, described method also includes:
Described pretreated picture in described picture Quick Response Code is carried out color rendering, obtains comprising gray scale The picture Quick Response Code of picture or colour picture.
One of ordinary skill in the art will appreciate that all or part of step in the various methods of above-described embodiment Suddenly the program that can be by completes to instruct relevant hardware, and this program can be stored in a computer-readable In storage medium, storage medium may include that ROM, RAM, disk or CD etc..
Method and terminal that the picture provided the embodiment of the present invention above merges with Quick Response Code are carried out Being discussed in detail, principle and the embodiment of the present invention are set forth by specific case used herein, with The explanation of upper embodiment is only intended to help to understand method and the core concept thereof of the present invention;Simultaneously for this The those skilled in the art in field, according to the thought of the present invention, the most all can Change part, and in sum, this specification content should not be construed as limitation of the present invention.

Claims (8)

1. the method that a picture merges with Quick Response Code, it is characterised in that including:
The information of the Quick Response Code to be generated user inputted generates Quick Response Code;
The picture to be merged choosing user carries out pretreatment, obtains pretreated picture, described pre- Picture after process is equivalently-sized with described Quick Response Code, and only black and white effect;
It is N*N little lattice according to the ratio cut partition of N*N respectively by the first minimum unit and the second minimum unit, Described first minimum unit is identical with the size of described second minimum unit, and described first minimum unit is institute Stating the minimum unit of Quick Response Code, described second minimum unit is the minimum unit of described pretreated picture, Described N is the integer more than 1;
With described in color according to the first minimum unit described at same position and described second minimum unit The quantity of the little lattice that the first minimum unit color is identical and distributing position, and preset color blend strategy Table, determines in the picture Quick Response Code that described pretreated picture obtains after merging with described Quick Response Code, with The color of each little lattice in the minimum unit of one position, pretreated described in described picture Quick Response Code Picture merges in the whole region being distributed in described Quick Response Code.
Method the most according to claim 1, it is characterised in that described user is chosen to merge Picture carry out pretreatment, obtain pretreated picture, described pretreated picture and described two dimension Code equivalently-sized, and only black and white effect, including:
The picture to be merged described user chosen is scaled to the size identical with described Quick Response Code, and will Picture after described scaling is converted into gray-scale map;
The described picture being converted into gray-scale map is carried out binary conversion treatment, obtains the pre-place of only black and white effect Picture after reason.
Method the most according to claim 1, it is characterised in that described according to described at same position The color of the first minimum unit is identical with described first minimum unit color with in described second minimum unit The quantity of little lattice and distributing position, and preset Quick Response Code and picture color convergence strategy table, determine institute State in the picture Quick Response Code obtained after pretreated picture merges with described Quick Response Code, at same position In minimum unit before the color of each little lattice, described method also includes:
Determine the color of the first minimum unit described at described same position, and described same position place State color and the distributing position of each little lattice in the second minimum unit.
Method the most according to claim 1 and 2, it is characterised in that described method also includes:
Described pretreated picture in described picture Quick Response Code is carried out color rendering, obtains comprising ash Degree picture or the picture Quick Response Code of colour picture.
5. a terminal, it is characterised in that including:
Signal generating unit, the information of the Quick Response Code to be generated for user being inputted generates Quick Response Code;
Picture processing unit, carries out pretreatment for the picture to be merged choosing user, obtains pre-place Picture after reason, the size of the described Quick Response Code that described pretreated picture generates with described signal generating unit Identical, and only black and white effect;
Integrated unit, for according to preset convergence strategy, by pretreated for described picture processing unit The Quick Response Code that picture generates with described signal generating unit merges, and generates picture Quick Response Code, described picture two Described in dimension code, pretreated picture merges in the whole region being distributed in described Quick Response Code;
Described integrated unit includes:
Divide subelement, for by the first minimum unit and the second minimum unit respectively according to the ratio of N*N Being divided into N*N little lattice, described first minimum unit is identical with the size of described second minimum unit, institute Stating the minimum unit that the first minimum unit is described Quick Response Code, described second minimum unit is described pretreatment After the minimum unit of picture, described N is the integer more than 1;
Determine subelement, for the color and described second according to the first minimum unit described at same position The little lattice after the division of described division subelement identical with described first minimum unit color in minimum unit Quantity and distributing position, and preset color blend Policy Table, determine in described picture Quick Response Code same The color of each little lattice in the minimum unit of position.
Terminal the most according to claim 5, it is characterised in that described picture processing unit includes:
Scaling subelement, is scaled to and described Quick Response Code for the picture to be merged described user chosen Identical size;
Conversion subelement, the picture after being used for and being scaled by described scaling subelement is converted into gray-scale map;
Processing subelement, carrying out at binaryzation for described conversion subelement being converted into the picture of gray-scale map Reason, obtains the pretreated picture of only black and white effect.
Terminal the most according to claim 5, it is characterised in that described terminal also includes:
Described determine subelement, be additionally operable to determine the color of the first minimum unit described at described same position, And the color of each little lattice and distributing position in the second minimum unit described at described same position.
8. according to the terminal described in claim 5 or 6, it is characterised in that described terminal also includes: Color rendering unit, the described pre-place in described picture Quick Response Code after described integrated unit is merged Picture after reason carries out color rendering, obtains comprising the picture Quick Response Code of gray scale picture or colour picture.
CN201410050540.0A 2014-02-13 2014-02-13 A kind of method that picture and Quick Response Code merge and terminal Active CN103854298B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410050540.0A CN103854298B (en) 2014-02-13 2014-02-13 A kind of method that picture and Quick Response Code merge and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410050540.0A CN103854298B (en) 2014-02-13 2014-02-13 A kind of method that picture and Quick Response Code merge and terminal

Publications (2)

Publication Number Publication Date
CN103854298A CN103854298A (en) 2014-06-11
CN103854298B true CN103854298B (en) 2016-08-17

Family

ID=50861908

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410050540.0A Active CN103854298B (en) 2014-02-13 2014-02-13 A kind of method that picture and Quick Response Code merge and terminal

Country Status (1)

Country Link
CN (1) CN103854298B (en)

Families Citing this family (21)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104778657B (en) * 2015-01-28 2018-12-07 北大方正集团有限公司 Two-dimensional image code fusion method and device
CN104778732B (en) * 2015-01-30 2017-09-26 北大方正集团有限公司 The two-dimensional code generation method and device of image
CN105095936B (en) * 2015-07-22 2018-01-16 黄鹤南 A kind of two-dimensional image code and its generation method and system based on Information hiding
CN105069497B (en) * 2015-07-27 2018-01-23 南京风力舰信息技术有限公司 A kind of method for the Quick Response Code for generating beautification
CN105117760B (en) * 2015-09-15 2018-04-27 牛建伟 A kind of method that Quick Response Code is merged to generation color image Quick Response Code with color image
CN105913101A (en) * 2015-12-15 2016-08-31 乐视网信息技术(北京)股份有限公司 Commodity information generation method and terminal equipment
CN106709543B (en) * 2016-08-31 2019-06-28 腾讯科技(深圳)有限公司 Pattern identification code generating method and device
CN106408066A (en) * 2016-09-06 2017-02-15 北京三快在线科技有限公司 Two-dimensional code-based image processing method, device and two-dimensional code
CN106682717B (en) * 2016-12-19 2019-12-31 合肥阿巴赛信息科技有限公司 Method and system for generating halftone two-dimensional code
CN106991462B (en) * 2017-03-13 2018-04-17 三维码(厦门)网络科技有限公司 Three-dimensional code generating method
CN107984915A (en) * 2017-03-18 2018-05-04 宁波亿诺维信息技术有限公司 two-dimensional code generation method
CN108665434B (en) * 2017-03-29 2021-10-22 鸿富锦精密工业(深圳)有限公司 Image synthesis method and device
CN107563476B (en) * 2017-07-25 2020-05-15 浙江惠码科技有限公司 Two-dimensional code beautifying and anti-counterfeiting method
CN107563966A (en) * 2017-08-01 2018-01-09 北京诺君安信息技术股份有限公司 A kind of Quick Response Code and image interfusion method and Quick Response Code
CN107729970A (en) * 2017-10-26 2018-02-23 天津大学 A kind of and Quick Response Code has the generation method and device of the image of identical storage information
CN108229234B (en) * 2017-12-07 2020-07-03 北京航空航天大学 Scannable image generation method fusing digital coding
CN110378453A (en) * 2018-04-13 2019-10-25 乌镇中品安(桐乡)科技有限公司 Color trellis code and its recognition methods
CN110378454A (en) * 2018-04-13 2019-10-25 乌镇中品安(桐乡)科技有限公司 Expansible two dimensional code and its recognition methods
CN108734250B (en) * 2018-05-29 2021-06-15 西安理工大学 Visual two-dimensional code generation method based on Sobel operator
CN109376830B (en) 2018-10-17 2022-01-11 京东方科技集团股份有限公司 Two-dimensional code generation method and device
CN109492735B (en) * 2018-11-23 2020-06-09 清华大学 Two-dimensional code generation method and computer-readable storage medium

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103235948B (en) * 2013-04-22 2016-04-20 中山大学 A kind of adaptive threshold binarization method of two-dimensional bar code
CN103325107B (en) * 2013-05-22 2016-12-28 小米科技有限责任公司 Image processing method, device and terminal unit
CN103413283B (en) * 2013-07-12 2016-08-10 西北工业大学 A kind of multi-focus image fusing method based on two dimension EMD with improvement local energy

Also Published As

Publication number Publication date
CN103854298A (en) 2014-06-11

Similar Documents

Publication Publication Date Title
CN103854298B (en) A kind of method that picture and Quick Response Code merge and terminal
CN103327102B (en) A kind of method and apparatus recommending application program
CN104219617B (en) Service acquisition method and device
CN103500063B (en) virtual keyboard display method, device and terminal
CN104618217B (en) Share method, terminal, server and the system of resource
CN104978115A (en) Content display method and device
CN104902531B (en) Connect method, application authorization server, terminal and the router of network
CN104751410B (en) Image and two-dimensional code fusion method and device
CN106502834A (en) The backup method of data, apparatus and system
CN106162316A (en) The data processing method of a kind of video flowing, device and system
CN104915091B (en) A kind of method and apparatus for the prompt information that Shows Status Bar
CN103713804B (en) Apparatus control method, device and electronic equipment
CN105022616A (en) Method and device for generating web page
CN103678259B (en) The adaptation method of a kind of page, device and terminal unit
CN104134043B (en) Content is hidden, separates method, device and the terminal hidden
CN105094809A (en) Combined picture layout modification method and device and terminal equipment
CN103853819A (en) Information acquisition method, terminal and system
CN104090879A (en) Picture sharing method, device and system
CN106203459A (en) Image processing method and device
CN109067981A (en) Split screen application switching method, device, storage medium and electronic equipment
CN108958606A (en) Multi-screen display method, device, storage medium and electronic equipment
CN105957544A (en) Lyric display method and device
CN106293738A (en) The update method of a kind of facial expression image and device
CN106570847A (en) Image processing method and image processing device
CN103399657B (en) The control method of mouse pointer, device and terminal unit

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant