CN104751410A - Image and two-dimensional code fusion method and device - Google Patents

Image and two-dimensional code fusion method and device Download PDF

Info

Publication number
CN104751410A
CN104751410A CN201310754632.2A CN201310754632A CN104751410A CN 104751410 A CN104751410 A CN 104751410A CN 201310754632 A CN201310754632 A CN 201310754632A CN 104751410 A CN104751410 A CN 104751410A
Authority
CN
China
Prior art keywords
image
quick response
response code
area
region
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
CN201310754632.2A
Other languages
Chinese (zh)
Other versions
CN104751410B (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 CN201310754632.2A priority Critical patent/CN104751410B/en
Publication of CN104751410A publication Critical patent/CN104751410A/en
Application granted granted Critical
Publication of CN104751410B publication Critical patent/CN104751410B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Image Processing (AREA)

Abstract

The invention discloses an image and two-dimensional code fusion method and device, and belongs to the technical field of information processing. The method comprises the steps of acquiring an image and a two-dimensional code to be fused; dividing the image into a plurality of image areas according to the unit size of the two-dimensional code; covering the value of the first area in the two-dimensional code to the center of the corresponding image area; covering the value of the second area in the two-dimensional code to the corresponding image area to obtain the image fused two-dimensional code. According to the method, the image and the two-dimensional code to be fused are acquired, the image is divided into the plurality of image areas according to the unit size of the two-dimensional code, the value of the first area in the two-dimensional code covers the corresponding center position of the image area, and the value of the second area in the two-dimensional code covers the corresponding image area, so as to obtain the image fused two-dimensional code; therefore, the display area of the image can be expanded; the display effect of the fused two-dimensional code can be optimized.

Description

The fusion method of image and Quick Response Code and device
Technical field
The present invention relates to technical field of information processing, particularly the fusion method of a kind of image and Quick Response Code and device.
Background technology
Along with the development of the information processing technology, the features such as Quick Response Code is wide with its coding range, fault-tolerant ability is strong are widely used.Common Quick Response Code be by with specific geometric figure according to certain rules in the chequered with black and white graphic recording information of two dimensional surface distribution, the information recorded in Quick Response Code comprises data encoding information, error correction information, view finding figure and positioning pattern information and level of error correction information.This Quick Response Code needs to use Quick Response Code scanning software scanning Quick Response Code just can know the information recorded in Quick Response Code, and the display of Quick Response Code is single, is unfavorable for the application of Quick Response Code.And image can show information intuitively, by image and Quick Response Code being merged, obtaining image in 2 D code, not only increasing the sight of Quick Response Code, also just can understand without the need to scanning Quick Response Code the information recorded in Quick Response Code.Therefore, how image and Quick Response Code are merged, become the key improving Quick Response Code performance.
Prior art utilizes the serious forgiveness of Quick Response Code to add in Quick Response Code by image, the viewing area of usual image is not more than 10% of whole Quick Response Code viewing area, specific implementation process comprises: downscaled images, and the image after reducing is replaced the predeterminable area in Quick Response Code, this predeterminable area is generally the center of Quick Response Code.
Realizing in process of the present invention, inventor finds that prior art at least exists following problem:
Due to needs downscaled images, cause the image of display less, be unfavorable for the discovery of image; In addition, due to the restriction of serious forgiveness, further limit the display size of image, and image and Quick Response Code merge after poor effect.
Summary of the invention
In order to solve the problem of prior art, embodiments provide fusion method and the device of a kind of image and Quick Response Code.Described technical scheme is as follows:
On the one hand, provide the fusion method of a kind of image and Quick Response Code, described method comprises:
Obtain image to be fused and Quick Response Code;
Described image is divided into multiple image-region by the cell size according to described Quick Response Code, and the unit of each image-region and described Quick Response Code sets up corresponding relation;
The value of first area in described Quick Response Code is covered the center of corresponding image-region, and the value of second area in described Quick Response Code is covered corresponding image-region, obtain the Quick Response Code after fused images;
Wherein, described first area is that described second area is other regions outside described first area by the data content of encoding and error correction information code region.
On the other hand, provide the fusing device of a kind of image and Quick Response Code, described device comprises:
First acquisition module, for obtaining image to be fused;
Second acquisition module, for obtaining Quick Response Code to be fused;
Divide module, be divided into and multiple image-region by described image for the cell size according to described Quick Response Code, the unit of each image-region and described Quick Response Code sets up corresponding relation;
First overlay module, for covering the center of corresponding image-region by the value of first area in described Quick Response Code;
Second overlay module, for the value of second area in described Quick Response Code being covered corresponding image-region, obtains the Quick Response Code after fused images;
Wherein, described first area is that described second area is other regions outside described first area by the data content of encoding and error correction information code region.
The beneficial effect that the technical scheme that the embodiment of the present invention provides is brought is:
By obtaining image to be fused and Quick Response Code, and according to the cell size of Quick Response Code, image is divided into multiple image-region, again the value of first area in Quick Response Code is covered the center of corresponding image-region, and the value of second area in Quick Response Code is covered corresponding image-region, obtain the Quick Response Code after fused images, thus expand the viewing area of image, optimize the display effect of the Quick Response Code after fusion.
Accompanying drawing explanation
In order to be illustrated more clearly in the technical scheme in the embodiment of the present invention, below the accompanying drawing used required in describing embodiment is briefly described, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, 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 fusion method process flow diagram of the image that provides of the embodiment of the present invention one and Quick Response Code;
Fig. 2 is the fusion method process flow diagram of the image that provides of the embodiment of the present invention two and Quick Response Code;
Fig. 3 is the schematic diagram of the image inputting interface that the embodiment of the present invention two provides;
Fig. 4 is the schematic diagram of the Quick Response Code mode interface that the embodiment of the present invention two provides;
Fig. 5 is the schematic diagram of the Quick Response Code that the embodiment of the present invention two provides;
Fig. 6 is the schematic diagram of the image-region that the embodiment of the present invention two provides;
Fig. 7 is the schematic diagram of the Quick Response Code after the fused images that provides of the embodiment of the present invention two;
Fig. 8 is the structural representation of the fusing device of the image that provides of the embodiment of the present invention three and Quick Response Code;
Fig. 9 is the structural representation of the first overlay module that the embodiment of the present invention three provides;
Figure 10 is the structural representation of the first acquisition module that the embodiment of the present invention three provides;
Figure 11 is the structural representation of the second acquisition module that the embodiment of the present invention three provides;
Figure 12 is the structural representation of the terminal that the embodiment of the present invention four provides.
Embodiment
For making the object, technical solutions and advantages of the present invention clearly, below in conjunction with accompanying drawing, embodiment of the present invention is described further in detail.
Embodiment one
Embodiments provide the fusion method of a kind of image and Quick Response Code, in order to improve clicking rate and the conversion ratio of Quick Response Code, image is fused in Quick Response Code by method that the present embodiment provides completely, the fault-tolerance of Quick Response Code is utilized to make the feature of the existing image of Quick Response Code after fusion, comprise again the information of Quick Response Code, take into account the resolution of Quick Response Code and the similarity of image.See Fig. 1, the method flow that the present embodiment provides comprises:
101: obtain image to be fused and Quick Response Code;
Further, obtain image to be fused, comprising: the image obtaining input, and pre-service is carried out to the image of input, obtain image to be fused.
Further, pre-service is carried out to the image of input, obtains image to be fused, comprising:
Face datection is carried out to the image of input, and size cutting and convergent-divergent process are carried out to the facial image detected, obtain image to be fused.
Further, obtain Quick Response Code to be fused, comprising:
Obtain the character string of input, and character string is encoded, obtain Quick Response Code to be fused;
Wherein, character string is character string corresponding at least one information in website information, card information, text message and code information.
102: image is divided into multiple image-region by the cell size according to Quick Response Code, and the unit of each image-region and Quick Response Code sets up corresponding relation;
103: the center value of first area in Quick Response Code being covered corresponding image-region, and the value of second area in Quick Response Code is covered corresponding image-region, obtain the Quick Response Code after fused images.
Wherein, first area is that second area is other regions outside first area by the data content of encoding and error correction information code region.
Further, the value of first area in Quick Response Code is covered the center of corresponding image-region, comprising:
Image-region each in image is divided into the sub-image area of predetermined number, and in the sub-image area of each image-region, determines sub-image area, center;
The value of first area in Quick Response Code is covered the sub-image area, center of corresponding image-region.
The method that the embodiment of the present invention provides, by obtaining image to be fused and Quick Response Code, and according to the cell size of Quick Response Code, image is divided into multiple image-region, again the value of first area in Quick Response Code is covered the center of corresponding image-region, and the value of second area in Quick Response Code is covered corresponding image-region, obtain the Quick Response Code after fused images, thus expand the viewing area of image, optimize the display effect of the Quick Response Code after fusion.
Embodiment two
Embodiments provide the fusion method of a kind of image and Quick Response Code.For convenience of explanation, be black and white Quick Response Code for Quick Response Code to be fused, in conjunction with the content of above-described embodiment one, the image provide the embodiment of the present invention and the method for melting of Quick Response Code explain explanation in detail, and see Fig. 2, method flow comprises:
201: obtain image to be fused and Quick Response Code;
Particularly, obtain image to be fused, include but not limited to: the image obtaining input, and pre-service is carried out to the image of input, obtain image to be fused.
About the mode obtaining the image inputted, the present embodiment does not do concrete restriction.During concrete enforcement, can provide image inputting interface, user is by image inputting interface input picture.Certainly, except aforesaid way, other modes can also be adopted to obtain the image of input.Such as, provide multiple images for user to select, image user selected is as the mode such as image of the input got.
For the ease of understanding, be described for image inputting interface as shown in Figure 3.This image inputting interface shows the signal language of " image that to be fused please be select ", and show select button; After detecting that user clicks select button, the catalogue of display local file; This catalogue comprises the directory information of 3 images, is respectively image 1, image 2 and image 3, the corresponding image of each directory information; When the directory information image that user selects being detected is image 1, using the image of the image of image 1 correspondence as the input got, and on image inputting interface, show the image of input.
Further, pre-service is carried out to the image of input, includes but not limited to: Face datection is carried out to the image of input, and size cutting and convergent-divergent process are carried out to the facial image detected, obtain image to be fused.
Preferably, when carrying out pre-service to the image of input, also include but not limited to the face image processing detected to become the to be fused image identical with Quick Response Code size.That is, image to be fused and the size of Quick Response Code can be the same or different, and the present embodiment does not do concrete restriction to this.
The image of the method that the present embodiment provides to input carries out Face datection, realizes the fusion of facial image and Quick Response Code, makes the Quick Response Code after fusion abundanter.Such as, the Quick Response Code after fusion may be used for making face Quick Response Code business card etc.The mode of Face datection can have multiple, and the present embodiment does not do concrete restriction to this, can adopt the mode of any one Face datection.About the mode triggering Face datection, the present embodiment does not do concrete restriction equally, when specifically implementing, can provide option, is selected whether to generate the Quick Response Code merged with facial image by user.Certainly, except aforesaid way, after the image obtaining input can also be adopted, directly trigger other modes such as Face datection.
For the ease of understanding, be described for Quick Response Code mode interface as shown in Figure 4.Quick Response Code mode interface shows Face datection button, after detecting that user clicks Face datection button, Face datection is carried out to the image of input, and show the facial image detected; Prompting user " detects facial image, generate the Quick Response Code merged with facial image? ", and show "Yes" and "No" two buttons.If detect that user clicks "Yes" button, then generate the Quick Response Code merged with facial image; If detect that user clicks "No" button, then the image of the input before Face datection and Quick Response Code are merged.
By carrying out size cutting and convergent-divergent process to facial image, make the facial image after size cutting and convergent-divergent process identical with the size of Quick Response Code, image and Quick Response Code can complete fusion.In addition, except the processing mode of size cutting and convergent-divergent, can also carry out other special effect processing to the image of input, to expand the application scenarios of Quick Response Code, the present embodiment does not do concrete restriction to image procossing mode.Such as, by process such as photo card Tonghua.
In order to image and Quick Response Code are merged, also need to obtain Quick Response Code.Obtain Quick Response Code to be fused, include but not limited to: the character string obtaining input, and character string is encoded, obtain Quick Response Code to be fused; Wherein, character string is character string corresponding at least one information in website information, card information, text message and code information.
About the mode obtaining the character string inputted, the present embodiment does not do concrete restriction.During concrete enforcement, can adopt and provide the mode of character string inputting interface to obtain the character string of input.Wherein, character string content can according to user need input voluntarily.After getting character string, character string is encoded, generate the Quick Response Code corresponding with character string, and using this Quick Response Code as Quick Response Code to be fused.About the mode of encoding to character string, the present embodiment does not do concrete restriction, and the Quick Response Code obtained can be as shown in Figure 5.
It should be noted that, owing to being image and Quick Response Code are merged, the order obtaining image to be fused and Quick Response Code does not have dividing of priority, can first obtain image to be fused, then obtain Quick Response Code to be fused; Also can first obtain Quick Response Code to be fused, then obtain image to be fused.
202: image is divided into multiple image-region by the cell size according to Quick Response Code, and the unit of each image-region and Quick Response Code sets up corresponding relation;
In order to image and Quick Response Code being merged, the method that the present embodiment provides is after acquisition image to be fused and Quick Response Code, image is divided into multiple image-region by the cell size according to Quick Response Code, and the unit of each image-region and Quick Response Code sets up corresponding relation.
Wherein, the unit of Quick Response Code refers to the minimum unit of recorded information in Quick Response Code.For the black and white matrix two-dimensional code of 21*21, this Quick Response Code is made up of 21*21 grid, and each grid is the unit of a Quick Response Code.Encoded by distribution that is black, white pixel different grids in a matrix, in the grid of matrix, the side's of appearance point, round dot or other shape points represent binary one, the side's of appearance point, round dot or other shape points do not represent binary " 0 ", and the permutation and combination of different grid mid point determines the information that matrix two-dimensional code comprises.
When image being divided into multiple image-region according to the cell size of Quick Response Code, the quantity of the image-region that image is divided into can be identical with the element number of Quick Response Code, image-region on same position is corresponding with the unit of Quick Response Code, and namely the unit of each image-region and Quick Response Code sets up corresponding relation.Such as, if Quick Response Code is made up of the unit of 21*21, then image is divided into 21*21 image-region, each image-region is corresponding with the unit of the Quick Response Code in same position, makes the unit of each image-region and Quick Response Code set up corresponding relation.Such as, if Quick Response Code and image-region use matrix representation respectively, the unit being arranged in Quick Response Code the 1st row the 1st row be arranged in the image-region that image the 1st row the 1st arranges and set up corresponding relation.The unit being arranged in Quick Response Code the 1st row the 2nd row be arranged in the image-region that image the 1st row the 2nd arranges and set up corresponding relation etc.
203: sub-image area image-region each in image being divided into predetermined number, and in the sub-image area of each image-region, determine sub-image area, center;
The present embodiment does not do concrete restriction to predetermined number, when specifically implementing, each image-region can be divided into an odd number sub-image area, thus can determine sub-image area, one or more center.Such as, each image-region is divided into 3*3,5*5 with the sub-image area of 7*7 etc., the one or more sub-image areas being positioned at center are defined as sub-image area, center.Or, an even numbers sub-image area can be divided into, the one or more sub-image areas being positioned at center are defined as sub-image area, center.Such as, each image-region is divided into 2*2,4*4 with the sub-image area of 8*8 etc.In addition, the present embodiment is equally to determining that in the sub-image area of each image-region the mode of sub-image area, center does concrete restriction.
For the ease of understanding, be described for the such as image-region shown in Fig. 6 (1).Wherein, image-region is divided into the sub-image area of 3*3.Each sub-image area of this image-region is numbered, is respectively 1 to 9, and will the sub-image area of 5 be numbered as the sub-image area, center determined.
Again such as, be described for the such as image-region shown in Fig. 6 (2).Wherein, image-region is divided into the sub-image area of 5*5.Each sub-image area of this image-region is numbered, is respectively 1 to 25, will the sub-image area of 7,8,9,12,13,14,17,18,19 be numbered as the sub-image area, center determined.
Again such as, be described for the such as image-region shown in Fig. 6 (3).Wherein, image-region is divided into the sub-image area of 2*2.Each sub-image area of this image-region is numbered, is respectively 1 to 4, will the sub-image area of 1 be numbered as the sub-image area, center determined.
Again such as, be described for the such as image-region shown in Fig. 6 (4).Wherein, image-region is divided into the sub-image area of 4*4.Each sub-image area of this image-region is numbered, is respectively 1 to 16, will the sub-image area of 6,7,10,11 be numbered as the sub-image area, center determined.
204: the sub-image area, the center value of first area in Quick Response Code being covered corresponding image-region, and the value of second area in Quick Response Code is covered corresponding image-region, obtain the Quick Response Code after fused images.
Wherein, first area is that second area is other regions outside first area by the data content of encoding and error correction information code region.In Quick Response Code, first area and second area form by the unit of Quick Response Code, when thus the value of first area in Quick Response Code being covered the sub-image area, center of corresponding image-region, the value of each unit in first area in Quick Response Code can be covered and set up in the sub-image area, center of the image-region of corresponding relation with this unit.Such as, if be arranged in the unit of Quick Response Code the 10th row the 10th row in first area, this unit is black, and this unit be arranged in the image-region that image the 10th row the 10th arranges and set up corresponding relation, then will be arranged in the sub-image area, center of the image-region of value overlay image the 10th row the 10th row of the unit of Quick Response Code the 10th row the 10th row, be set to black by the sub-image area, center of the image-region of the 10th row the 10th row in image.In like manner, if be arranged in the unit of Quick Response Code the 20th row the 20th row in first area, this unit is white, and this unit be arranged in the image-region that image the 20th row the 20th arranges and set up corresponding relation, then will be arranged in the sub-image area, center of the image-region of value overlay image the 20th row the 20th row of the unit of Quick Response Code the 20th row the 20th row, be set to white by the sub-image area, center of the image-region of the 20th row the 20th row in image.
When the value of second area in Quick Response Code being covered corresponding image-region, the value of each unit in second area in Quick Response Code can be covered the image-region setting up corresponding relation with this unit.Such as, if be arranged in the unit of Quick Response Code the 15th row the 15th row at second area, this unit is black, and this unit be arranged in the image-region that image the 15th row the 15th arranges and set up corresponding relation, then will be arranged in the image-region of value overlay image the 15th row the 15th row of the unit of Quick Response Code the 15th row the 15th row, the image-region arranged by the 15th row the 15th in image is set to black.In like manner, if be arranged in the unit of Quick Response Code the 13rd row the 13rd row at second area, this unit is white, and this unit be arranged in the image-region that image the 13rd row the 13rd arranges and set up corresponding relation, then will be arranged in the image-region of value overlay image the 13rd row the 13rd row of the unit of Quick Response Code the 13rd row the 13rd row, the image-region arranged by the 13rd row the 13rd in image is set to white.
In order to the whole region of Quick Response Code is all merged with image, again owing to have recorded error correction information in the first area of Quick Response Code, then the value of first area in Quick Response Code is covered the sub-image area, center of corresponding image-region, make except overseas other image-regions in sub-image regions, center can also show the information of image, expand the indication range of image, reduce the region that image is capped.
Second area due to Quick Response Code have recorded location, the information such as form and version of Quick Response Code usually, correctly identify to enable the Quick Response Code after fusion, the value of second area in Quick Response Code is covered corresponding image-region, and then obtain the Quick Response Code after fused images.Such as, the Quick Response Code after fused images can be Quick Response Code as shown in Figure 7.Quick Response Code after fused images, to the more friendly visual experience of user, improves clicking rate and the conversion ratio of Quick Response Code.
The method that the present embodiment provides, by obtaining image to be fused and Quick Response Code, and according to the cell size of Quick Response Code, image is divided into multiple image-region, again the value of first area in Quick Response Code is covered the center of corresponding image-region, and the value of second area in Quick Response Code is covered corresponding image-region, obtain the Quick Response Code after fused images, thus expand the viewing area of image, optimize the display effect of the Quick Response Code after fusion.
Embodiment three
See Fig. 8, embodiments provide the fusing device of a kind of image and Quick Response Code, this device comprises:
First acquisition module 801, for obtaining image to be fused;
Second acquisition module 802, for obtaining Quick Response Code to be fused;
Divide module 803, for the cell size according to Quick Response Code, image is divided into multiple image-region, the unit of each image-region and Quick Response Code sets up corresponding relation;
First overlay module 804, for covering the center of corresponding image-region by the value of first area in Quick Response Code;
Second overlay module 805, for the value of second area in Quick Response Code being covered corresponding image-region, obtains the Quick Response Code after fused images;
Wherein, first area is that second area is other regions outside first area by the data content of encoding and error correction information code region.
As a kind of preferred embodiment, see Fig. 9, the first overlay module 804, comprising:
Deng subdivision 8041, for image-region each in image being divided into the sub-image area of predetermined number;
Determining unit 8042, for determining sub-image area, center in the sub-image area of each image-region;
Capping unit 8043, for covering the sub-image area, center of corresponding image-region by the value of first area in Quick Response Code.
As a kind of preferred embodiment, see Figure 10, the first acquisition module 801, comprising:
Acquiring unit 8011, for obtaining the image of input;
Pretreatment unit 8012, for carrying out pre-service to the image of input, obtains image to be fused.
As a kind of preferred embodiment, pretreatment unit 8012, for carrying out Face datection to the image of input, and carrying out size cutting and convergent-divergent process to the facial image detected, obtaining image to be fused.
As a kind of preferred embodiment, see Figure 11, the second acquisition module 802, comprising:
Acquiring unit 8021, for obtaining the character string of input;
Coding unit 8022, for encoding to character string, obtains Quick Response Code to be fused;
Wherein, character string is character string corresponding at least one information in website information, card information, text message and code information.
In sum, the device that the embodiment of the present invention provides, by obtaining image to be fused and Quick Response Code, and according to the cell size of Quick Response Code, image is divided into multiple image-region, again the value of first area in Quick Response Code is covered the center of corresponding image-region, and the value of second area in Quick Response Code is covered corresponding image-region, obtain the Quick Response Code after fused images, thus expand the viewing area of image, optimize the display effect of the Quick Response Code after fusion.
Embodiment four
Embodiments provide a kind of terminal, please refer to Figure 12, it illustrates the structural representation of the terminal involved by the embodiment of the present invention, this terminal may be used for the fusion method implementing image and the Quick Response Code provided in above-described embodiment.Specifically:
Terminal 1200 can comprise RF(Radio Frequency, radio frequency) circuit 110, the storer 120 including one or more computer-readable recording mediums, input block 130, display unit 140, sensor 150, voicefrequency circuit 160, WiFi(Wireless Fidelity, Wireless Fidelity) module 170, include the parts such as processor 180 and power supply 190 that more than or processes core.It will be understood by those skilled in the art that the restriction of the not structure paired terminal of the terminal structure shown in Figure 12, the parts more more or less than diagram can be comprised, 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 being received by the downlink information of base station, transfer to more than one or one processor 180 to process; In addition, base station is sent to by relating to up data.Usually, RF circuit 110 includes but not limited to antenna, at least one amplifier, tuner, one or more oscillator, subscriber identity module (SIM) card, transceiver, coupling mechanism, LNA(Low Noise Amplifier, low noise amplifier), diplexer etc.In addition, RF circuit 110 can also by radio communication and network and other devices communicatings.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, general packet radio service), CDMA (Code Division Multiple Access, CDMA), WCDMA (Wideband CodeDivision Multiple Access, Wideband Code Division Multiple Access (WCDMA)), LTE (Long Term Evolution, Long Term Evolution), Email, SMS (Short Messaging Service, Short Message Service) etc.
Storer 120 can be used for storing software program and module, and processor 180 is stored in software program and the module of storer 120 by running, thus performs the application of various function and data processing.Storer 120 mainly can comprise storage program district and store data field, and wherein, storage program district can store operating system, application program (such as sound-playing function, image player function etc.) etc. needed at least one function; Store data field and can store the data (such as voice data, phone directory etc.) etc. created according to the use of terminal 1200.In addition, storer 120 can comprise high-speed random access memory, can also comprise nonvolatile memory, such as at least one disk memory, flush memory device or other volatile solid-state parts.Correspondingly, storer 120 can also comprise Memory Controller, to provide the access of processor 180 and input block 130 pairs of storeies 120.
Input block 130 can be used for the numeral or the character information that receive input, and produces and to arrange with user and function controls relevant keyboard, mouse, control lever, optics or trace ball signal and inputs.Particularly, input block 130 can comprise Touch sensitive surface 131 and other input equipments 132.Touch sensitive surface 131, also referred to as touch display screen or Trackpad, user can be collected or neighbouring touch operation (such as user uses any applicable object or the operations of annex on Touch sensitive surface 131 or near Touch sensitive surface 131 such as finger, stylus) thereon, and drive corresponding coupling arrangement according to the formula preset.Optionally, Touch sensitive surface 131 can comprise touch detecting apparatus and touch controller two parts.Wherein, touch detecting apparatus detects the touch orientation of user, and detects the signal that touch operation brings, and sends signal to touch controller; Touch controller receives touch information from touch detecting apparatus, and converts it to contact coordinate, then gives processor 180, and the order that energy receiving processor 180 is sent also is performed.In addition, the polytypes such as resistance-type, condenser type, infrared ray and surface acoustic wave can be adopted to realize Touch sensitive surface 131.Except Touch sensitive surface 131, input block 130 can also comprise other input equipments 132.Particularly, other input equipments 132 can include but not limited to one or more in physical keyboard, function key (such as volume control button, switch key etc.), trace ball, mouse, control lever etc.
Display unit 140 can be used for the various graphical user interface showing information or the information being supplied to user and the terminal 1200 inputted by user, and these graphical user interface can be made up of figure, text, icon, video and its combination in any.Display unit 140 can comprise display panel 141, optionally, the form such as LCD (Liquid Crystal Display, liquid crystal display), OLED (Organic Light-Emitting Diode, Organic Light Emitting Diode) can be adopted to configure display panel 141.Further, Touch sensitive surface 131 can cover display panel 141, when Touch sensitive surface 131 detects thereon or after neighbouring touch operation, send processor 180 to determine the type of touch event, on display panel 141, provide corresponding vision to export with preprocessor 180 according to the type of touch event.Although in fig. 12, Touch sensitive surface 131 and display panel 141 be as two independently parts realize input and input function, in certain embodiments, can by Touch sensitive surface 131 and display panel 141 integrated and realize input and output function.
Terminal 1200 also can comprise at least one sensor 150, such as optical sensor, motion sensor and other sensors.Particularly, optical sensor can comprise ambient light sensor and proximity transducer, and wherein, ambient light sensor the light and shade of environmentally light can regulate the brightness of display panel 141, proximity transducer when terminal 1200 moves in one's ear, can cut out display panel 141 and/or backlight.As the one of motion sensor, Gravity accelerometer can detect the size of all directions (are generally three axles) acceleration, size and the direction of gravity can be detected time static, can be used for identifying the application (such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating) of mobile phone attitude, Vibration identification correlation function (such as passometer, knock) etc.; As for terminal 1200 also other sensors such as configurable gyroscope, barometer, hygrometer, thermometer, infrared ray sensor, do not repeat them here.
Voicefrequency circuit 160, loudspeaker 161, microphone 162 can provide the audio interface between user and terminal 1200.Voicefrequency circuit 160 can by receive voice data conversion after electric signal, be transferred to loudspeaker 161, by loudspeaker 161 be converted to voice signal export; On the other hand, the voice signal of collection is converted to electric signal by microphone 162, voice data is converted to after being received by voicefrequency circuit 160, after again voice data output processor 180 being processed, through RF circuit 110 to send to such as another terminal, or export voice data to storer 120 to process further.Voicefrequency circuit 160 also may comprise 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 help user to send and receive e-mail by WiFi module 170, browse webpage and access streaming video etc., and its broadband internet wireless for user provides is accessed.Although Figure 12 shows WiFi module 170, be understandable that, it does not belong to must forming of terminal 1200, can omit in the scope of essence not changing invention as required completely.
Processor 180 is control centers of terminal 1200, utilize the various piece of various interface and the whole mobile phone of connection, software program in storer 120 and/or module is stored in by running or performing, and call the data be stored in storer 120, perform various function and the process data of terminal 1200, thus integral monitoring is carried out to mobile phone.Optionally, processor 180 can comprise one or more process core; Preferably, processor 180 accessible site application processor and modem processor, wherein, application processor mainly processes operating system, user interface and application program etc., and modem processor mainly processes radio communication.Be understandable that, above-mentioned modem processor also can not be integrated in processor 180.
Terminal 1200 also comprises the power supply 190(such as battery of powering to all parts), preferably, power supply can be connected with processor 180 logic by power-supply management system, thus realizes the functions such as management charging, electric discharge and power managed by power-supply management system.Power supply 190 can also comprise one or more direct current or AC power, recharging system, power failure detection circuit, power supply changeover device or the random component such as inverter, power supply status indicator.
Although not shown, terminal 1200 can also comprise camera, bluetooth module etc., does not repeat them here.Specifically in the present embodiment, the display unit of terminal is touch-screen display, terminal also includes storer, and one or more than one program, one of them or more than one program are stored in storer, and be configured to be performed by more than one or one processor, described more than one or one routine package is containing the instruction for performing following operation:
Obtain image to be fused and Quick Response Code;
Image is divided into multiple image-region by the cell size according to Quick Response Code, and the unit of each image-region and described Quick Response Code sets up corresponding relation;
The value of first area in Quick Response Code is covered the center of corresponding image-region, and the value of second area in Quick Response Code is covered corresponding image-region, obtain the Quick Response Code after fused images;
Wherein, first area is that second area is other regions outside first area by the data content of encoding and error correction information code region.
Suppose that above-mentioned is the first possible embodiment, then, in the embodiment that the second provided based on the embodiment that the first is possible is possible, in the storer of terminal, also comprise the instruction for performing following operation:
The value of first area in Quick Response Code is covered the center of corresponding image-region, comprising:
Image-region each in image is divided into the sub-image area of predetermined number, and in the sub-image area of each image-region, determines sub-image area, center;
The value of first area in Quick Response Code is covered the sub-image area, center of corresponding image-region.
In the third the possible embodiment provided based on the embodiment that the first is possible, in the storer of terminal, also comprise the instruction for performing following operation:
Obtain image to be fused, comprising: the image obtaining input, and pre-service is carried out to the image of input, obtain image to be fused.
In the 4th kind of possible embodiment provided based on the embodiment that the third is possible, in the storer of terminal, also comprise the instruction for performing following operation:
Pre-service is carried out to the image of input, obtains image to be fused, comprising:
Face datection is carried out to the image of input, and size cutting and convergent-divergent process are carried out to the facial image detected, obtain image to be fused.
In the 5th kind of possible embodiment provided based on the embodiment that the first is possible, in the storer of terminal, also comprise the instruction for performing following operation:
Obtain Quick Response Code to be fused, comprising:
Obtain the character string of input, and character string is encoded, obtain Quick Response Code to be fused;
Wherein, character string is character string corresponding at least one information in website information, card information, text message and code information.
In sum, the terminal that the embodiment of the present invention provides, by obtaining image to be fused and Quick Response Code, and according to the cell size of Quick Response Code, image is divided into multiple image-region, again the value of first area in Quick Response Code is covered the center of corresponding image-region, and the value of second area in Quick Response Code is covered corresponding image-region, obtain the Quick Response Code after fused images, thus expand the viewing area of image, optimize the display effect of the Quick Response Code after fusion.
Embodiment five
The embodiment of the present invention additionally provides a kind of computer-readable recording medium, and this computer-readable recording medium can be the computer-readable recording medium comprised in the storer in above-described embodiment; Also can be individualism, be unkitted the computer-readable recording medium allocated in terminal.This computer-readable recording medium stores more than one or one program, and this more than one or one program is used for the fusion method of execution image and Quick Response Code by one or more than one processor, the method comprises:
Obtain image to be fused and Quick Response Code;
Image is divided into multiple image-region by the cell size according to Quick Response Code, and the unit of each image-region and described Quick Response Code sets up corresponding relation;
The value of first area in Quick Response Code is covered the center of corresponding image-region, and the value of second area in Quick Response Code is covered corresponding image-region, obtain the Quick Response Code after fused images;
Wherein, first area is that second area is other regions outside first area by the data content of encoding and error correction information code region.
Suppose that above-mentioned is the first possible embodiment, then, in the embodiment that the second provided based on the embodiment that the first is possible is possible, in the storer of terminal, also comprise the instruction for performing following operation:
The value of first area in Quick Response Code is covered the center of corresponding image-region, comprising:
Image-region each in image is divided into the sub-image area of predetermined number, and in the sub-image area of each image-region, determines sub-image area, center;
The value of first area in Quick Response Code is covered the sub-image area, center of corresponding image-region.
In the third the possible embodiment provided based on the embodiment that the first is possible, in the storer of terminal, also comprise the instruction for performing following operation:
Obtain image to be fused, comprising: the image obtaining input, and pre-service is carried out to the image of input, obtain image to be fused.
In the 4th kind of possible embodiment provided based on the embodiment that the third is possible, in the storer of terminal, also comprise the instruction for performing following operation:
Pre-service is carried out to the image of input, obtains image to be fused, comprising:
Face datection is carried out to the image of input, and size cutting and convergent-divergent process are carried out to the facial image detected, obtain image to be fused.
In the 5th kind of possible embodiment provided based on the embodiment that the first is possible, in the storer of terminal, also comprise the instruction for performing following operation:
Obtain Quick Response Code to be fused, comprising:
Obtain the character string of input, and character string is encoded, obtain Quick Response Code to be fused;
Wherein, character string is character string corresponding at least one information in website information, card information, text message and code information.
In sum, the computer-readable recording medium that the embodiment of the present invention provides, by obtaining image to be fused and Quick Response Code, and according to the cell size of Quick Response Code, image is divided into multiple image-region, again the value of first area in Quick Response Code is covered the center of corresponding image-region, and the value of second area in Quick Response Code is covered corresponding image-region, obtain the Quick Response Code after fused images, thus expand the viewing area of image, optimize the display effect of the Quick Response Code after fusion.
Embodiment six
Provide a kind of graphical user interface in the embodiment of the present invention, this graphical user interface is used in terminal, and this terminal comprises touch-screen display, storer and one or more than one processor for performing one or more than one program; This graphical user interface comprises:
Obtain image to be fused and Quick Response Code;
Image is divided into multiple image-region by the cell size according to Quick Response Code, and the unit of each image-region and described Quick Response Code sets up corresponding relation;
The value of first area in Quick Response Code is covered the center of corresponding image-region, and the value of second area in Quick Response Code is covered corresponding image-region, obtain the Quick Response Code after fused images;
Wherein, first area is that second area is other regions outside first area by the data content of encoding and error correction information code region.
In sum, the graphical user interface that the embodiment of the present invention provides, obtain image to be fused and Quick Response Code, and according to the cell size of Quick Response Code, image is divided into multiple image-region, again the value of first area in Quick Response Code is covered the center of corresponding image-region, and the value of second area in Quick Response Code is covered corresponding image-region, obtain the Quick Response Code after fused images, thus expand the viewing area of image, optimize the display effect of the Quick Response Code after fusion.
It should be noted that: the fusing device of the image that above-described embodiment provides and Quick Response Code is when merging image and Quick Response Code, only be illustrated with the division of above-mentioned each functional module, in practical application, can distribute as required and by above-mentioned functions and be completed by different functional modules, inner structure by device is divided into different functional modules, to complete all or part of function described above.In addition, the fusion method embodiment of the fusing device of the image that above-described embodiment provides and Quick Response Code and image and Quick Response Code belongs to same design, and its specific implementation process refers to embodiment of the method, repeats no more here.
The invention described above embodiment sequence number, just to describing, does not represent the quality of embodiment.
One of ordinary skill in the art will appreciate that all or part of step realizing above-described embodiment can have been come by hardware, the hardware that also can carry out instruction relevant by program completes, described program can be stored in a kind of computer-readable recording medium, the above-mentioned storage medium mentioned can be ROM (read-only memory), disk or CD etc.
The foregoing is only preferred embodiment of the present invention, not in order to limit the present invention, within the spirit and principles in the present invention all, any amendment done, equivalent replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (10)

1. a fusion method for image and Quick Response Code, is characterized in that, described method comprises:
Obtain image to be fused and Quick Response Code;
Described image is divided into multiple image-region by the cell size according to described Quick Response Code, and the unit of each image-region and described Quick Response Code sets up corresponding relation;
The value of first area in described Quick Response Code is covered the center of corresponding image-region, and the value of second area in described Quick Response Code is covered corresponding image-region, obtain the Quick Response Code after fused images;
Wherein, described first area is that described second area is other regions outside described first area by the data content of encoding and error correction information code region.
2. method according to claim 1, is characterized in that, the described center value of first area in described Quick Response Code being covered corresponding image-region, comprising:
Image-region each in described image is divided into the sub-image area of predetermined number, and in the sub-image area of each image-region, determines sub-image area, center;
The value of first area in described Quick Response Code is covered the sub-image area, center of corresponding image-region.
3. method according to claim 1, is characterized in that, the image that described acquisition is to be fused, comprising: the image obtaining input, and carries out pre-service to the image of input, obtains image to be fused.
4. method according to claim 3, is characterized in that, the described image to input carries out pre-service, obtains image to be fused, comprising:
Face datection is carried out to the image of input, and size cutting and convergent-divergent process are carried out to the facial image detected, obtain image to be fused.
5. method according to claim 1, is characterized in that, the Quick Response Code that described acquisition is to be fused, comprising:
Obtain the character string of input, and described character string is encoded, obtain Quick Response Code to be fused;
Wherein, described character string is character string corresponding at least one information in website information, card information, text message and code information.
6. a fusing device for image and Quick Response Code, is characterized in that, described device comprises:
First acquisition module, for obtaining image to be fused;
Second acquisition module, for obtaining Quick Response Code to be fused;
Divide module, for the cell size according to described Quick Response Code, described image is divided into multiple image-region, the unit of each image-region and described Quick Response Code sets up corresponding relation;
First overlay module, for covering the center of corresponding image-region by the value of first area in described Quick Response Code;
Second overlay module, for the value of second area in described Quick Response Code being covered corresponding image-region, obtains the Quick Response Code after fused images;
Wherein, described first area is that described second area is other regions outside described first area by the data content of encoding and error correction information code region.
7. device according to claim 6, is characterized in that, described first overlay module, comprising:
Deng subdivision, for image-region each in described image being divided into the sub-image area of predetermined number;
Determining unit, for determining sub-image area, center in the sub-image area of each image-region;
Capping unit, for covering the sub-image area, center of corresponding image-region by the value of first area in described Quick Response Code.
8. device according to claim 6, is characterized in that, described first acquisition module, comprising:
Acquiring unit, for obtaining the image of input;
Pretreatment unit, for carrying out pre-service to the image of input, obtains image to be fused.
9. device according to claim 8, is characterized in that, described pretreatment unit, for carrying out Face datection to the image of input, and carrying out size cutting and convergent-divergent process to the facial image detected, obtaining image to be fused.
10. device according to claim 6, is characterized in that, described second acquisition module, comprising:
Acquiring unit, for obtaining the character string of input;
Coding unit, for encoding to described character string, obtains Quick Response Code to be fused;
Wherein, described character string is character string corresponding at least one information in website information, card information, text message and code information.
CN201310754632.2A 2013-12-31 2013-12-31 Image and two-dimensional code fusion method and device Active CN104751410B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310754632.2A CN104751410B (en) 2013-12-31 2013-12-31 Image and two-dimensional code fusion method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310754632.2A CN104751410B (en) 2013-12-31 2013-12-31 Image and two-dimensional code fusion method and device

Publications (2)

Publication Number Publication Date
CN104751410A true CN104751410A (en) 2015-07-01
CN104751410B CN104751410B (en) 2017-05-24

Family

ID=53591033

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310754632.2A Active CN104751410B (en) 2013-12-31 2013-12-31 Image and two-dimensional code fusion method and device

Country Status (1)

Country Link
CN (1) CN104751410B (en)

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105069497A (en) * 2015-07-27 2015-11-18 南京风力舰信息技术有限公司 Method for generating beautified two-dimensional code
CN105095939A (en) * 2015-09-07 2015-11-25 郑州普天信息技术有限公司 Two-dimensional code vision optimization method
CN107123087A (en) * 2017-03-29 2017-09-01 深圳市赛亿科技开发有限公司 The fusion method and device of image and Quick Response Code
CN107563966A (en) * 2017-08-01 2018-01-09 北京诺君安信息技术股份有限公司 A kind of Quick Response Code and image interfusion method and Quick Response Code
CN108073963A (en) * 2016-11-18 2018-05-25 苏州码蛋信息科技有限公司 A kind of fusion two-dimensional code generation method and device
CN108073964A (en) * 2016-11-18 2018-05-25 苏州码蛋信息科技有限公司 A kind of perspective two-dimensional code generation method and device
CN110096190A (en) * 2019-04-22 2019-08-06 聚好看科技股份有限公司 A kind of method and terminal of two-dimensional code display
CN110175661A (en) * 2019-04-17 2019-08-27 深圳壹账通智能科技有限公司 The generation method and device in two dimensional code sharing path
WO2020114215A1 (en) * 2018-12-07 2020-06-11 腾讯科技(深圳)有限公司 Image information processing method and apparatus, and storage medium
CN112200286A (en) * 2020-08-25 2021-01-08 中国物品编码中心 Method and device for character string coding

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110774787A (en) * 2019-09-24 2020-02-11 山东泰宝防伪技术产品有限公司 Special anti-counterfeiting code pattern paper and preparation method thereof

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102968654A (en) * 2012-10-26 2013-03-13 吴东杰 Method and system for producing information recognizable by naked eyes in plane of two-dimensional (2D) code and 2D code
JP3182350U (en) * 2013-01-08 2013-03-21 株式会社 弘久社 Fusion card of fragrance, music and story

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102968654A (en) * 2012-10-26 2013-03-13 吴东杰 Method and system for producing information recognizable by naked eyes in plane of two-dimensional (2D) code and 2D code
JP3182350U (en) * 2013-01-08 2013-03-21 株式会社 弘久社 Fusion card of fragrance, music and story

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
HUNG-KUO CHU 等: "Halftone QR Codes", 《ACM TRANSACTIONS ON GRAPHICS (TOG) - PROCEEDINGS OF ACM SIGGRAPH ASIA 2013》 *

Cited By (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105069497A (en) * 2015-07-27 2015-11-18 南京风力舰信息技术有限公司 Method for generating beautified two-dimensional code
CN105069497B (en) * 2015-07-27 2018-01-23 南京风力舰信息技术有限公司 A kind of method for the Quick Response Code for generating beautification
CN105095939A (en) * 2015-09-07 2015-11-25 郑州普天信息技术有限公司 Two-dimensional code vision optimization method
CN108073963B (en) * 2016-11-18 2020-09-29 穆亚南 Fusion two-dimensional code generation method and device
CN108073963A (en) * 2016-11-18 2018-05-25 苏州码蛋信息科技有限公司 A kind of fusion two-dimensional code generation method and device
CN108073964A (en) * 2016-11-18 2018-05-25 苏州码蛋信息科技有限公司 A kind of perspective two-dimensional code generation method and device
CN108073964B (en) * 2016-11-18 2020-09-29 穆亚南 Perspective two-dimensional code generation method and device
CN107123087A (en) * 2017-03-29 2017-09-01 深圳市赛亿科技开发有限公司 The fusion method and device of image and Quick Response Code
CN107563966A (en) * 2017-08-01 2018-01-09 北京诺君安信息技术股份有限公司 A kind of Quick Response Code and image interfusion method and Quick Response Code
WO2020114215A1 (en) * 2018-12-07 2020-06-11 腾讯科技(深圳)有限公司 Image information processing method and apparatus, and storage medium
US11386933B2 (en) 2018-12-07 2022-07-12 Tencent Technology (Shenzhen) Company Limited Image information processing method and apparatus, and storage medium
CN110175661A (en) * 2019-04-17 2019-08-27 深圳壹账通智能科技有限公司 The generation method and device in two dimensional code sharing path
CN110096190A (en) * 2019-04-22 2019-08-06 聚好看科技股份有限公司 A kind of method and terminal of two-dimensional code display
CN112200286A (en) * 2020-08-25 2021-01-08 中国物品编码中心 Method and device for character string coding
CN112200286B (en) * 2020-08-25 2023-10-03 中国物品编码中心 Character string coding method and device

Also Published As

Publication number Publication date
CN104751410B (en) 2017-05-24

Similar Documents

Publication Publication Date Title
CN104751410A (en) Image and two-dimensional code fusion method and device
CN103389863B (en) A kind of display control method and device
CN105005457A (en) Geographical location display method and apparatus
CN104978115A (en) Content display method and device
CN103854298A (en) Method for integrating pictures with two-dimension codes and terminal
CN104636047A (en) Method and device for operating objects in list and touch screen terminal
CN104618217A (en) Method, terminal, server and system for sharing resource
CN103442330A (en) Position notification method and device
CN104142868A (en) Connection establishment method and device
CN104134043B (en) Content is hidden, separates method, device and the terminal hidden
CN105022616A (en) Method and device for generating web page
CN103853819A (en) Information acquisition method, terminal and system
CN105094809A (en) Combined picture layout modification method and device and terminal equipment
CN104571787A (en) Message display method and communication terminal
CN104238893A (en) Video preview image displaying method and device
CN104915091A (en) Method and device for displaying status bar prompt message
CN103488450A (en) Method, device and terminal equipment for projecting picture
CN104954159A (en) Network information statistics method and device
CN104157007A (en) Video processing method and apparatus
CN104869465A (en) Video playing control method and device
CN104199596A (en) Scene interface switching method and device
CN104516624A (en) Method and device for inputting account information
CN105630517A (en) Configuration information setting method, configuration information setting device and communication system
CN105303591A (en) Method for superposing place information in puzzle, terminal and server
CN104820546A (en) Functional information exhibition method and apparatus

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