CN104156476B - The method and device of image synthesis - Google Patents
The method and device of image synthesis Download PDFInfo
- Publication number
- CN104156476B CN104156476B CN201410422415.8A CN201410422415A CN104156476B CN 104156476 B CN104156476 B CN 104156476B CN 201410422415 A CN201410422415 A CN 201410422415A CN 104156476 B CN104156476 B CN 104156476B
- Authority
- CN
- China
- Prior art keywords
- identification information
- image
- picture identification
- region
- picture
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 230000015572 biosynthetic process Effects 0.000 title claims abstract description 38
- 238000003786 synthesis reaction Methods 0.000 title claims abstract description 38
- 238000000034 method Methods 0.000 title claims abstract description 37
- 230000004044 response Effects 0.000 claims description 29
- 238000004590 computer program Methods 0.000 claims 1
- 238000012805 post-processing Methods 0.000 abstract description 6
- 238000012545 processing Methods 0.000 description 12
- 238000005516 engineering process Methods 0.000 description 10
- 238000004891 communication Methods 0.000 description 8
- 238000010586 diagram Methods 0.000 description 6
- 241000190070 Sarracenia purpurea Species 0.000 description 4
- 230000008859 change Effects 0.000 description 4
- 230000000694 effects Effects 0.000 description 4
- 230000003287 optical effect Effects 0.000 description 4
- 230000005236 sound signal Effects 0.000 description 4
- 230000000712 assembly Effects 0.000 description 3
- 238000000429 assembly Methods 0.000 description 3
- 239000000284 extract Substances 0.000 description 3
- 230000004048 modification Effects 0.000 description 3
- 238000012986 modification Methods 0.000 description 3
- 230000001133 acceleration Effects 0.000 description 2
- 238000013461 design Methods 0.000 description 2
- 230000003993 interaction Effects 0.000 description 2
- 238000007726 management method Methods 0.000 description 2
- 230000002093 peripheral effect Effects 0.000 description 2
- KLDZYURQCUYZBL-UHFFFAOYSA-N 2-[3-[(2-hydroxyphenyl)methylideneamino]propyliminomethyl]phenol Chemical compound OC1=CC=CC=C1C=NCCCN=CC1=CC=CC=C1O KLDZYURQCUYZBL-UHFFFAOYSA-N 0.000 description 1
- 230000009471 action Effects 0.000 description 1
- 230000006978 adaptation Effects 0.000 description 1
- 230000003796 beauty Effects 0.000 description 1
- 238000013500 data storage Methods 0.000 description 1
- 201000001098 delayed sleep phase syndrome Diseases 0.000 description 1
- 208000033921 delayed sleep phase type circadian rhythm sleep disease Diseases 0.000 description 1
- 238000001514 detection method Methods 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 239000012092 media component Substances 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
- XLYOFNOQVPJJNP-UHFFFAOYSA-N water Substances O XLYOFNOQVPJJNP-UHFFFAOYSA-N 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T5/00—Image enhancement or restoration
- G06T5/50—Image enhancement or restoration using two or more images, e.g. averaging or subtraction
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Processing Or Creating Images (AREA)
Abstract
The disclosure is directed to a kind of method and device of image synthesis.Methods described includes:The picture identification information found a view in picture;According to the picture identification information, the region where the picture identification information is replaced with into the first image corresponding with described information;Generation includes the second image of described first image.Pass through the picture identification information in picture of finding a view, you can the region where picture identification information is directly replaced with to the image for wanting replacement, post-processing is carried out without user, realizes the synthesis between image so that more convenient during user's composograph.
Description
Technical field
This disclosure relates to image processing field, more particularly to a kind of method and device of image synthesis.
Background technology
In correlation technique, for most shooting user, it is intended to that oneself can be shot by natural landscape
The photo admired, but often due to limited by equipment or the reason such as style of shooting, user can not take oneself desired photo,
Therefore need to carry out post-processing to photo by corresponding synthetic technology.However, this carried out using synthetic technology to photo
The method of processing is very cumbersome, it is necessary to, just can not be right by manual operation, and for it will not use the user of synthetic technology
Photo carries out post-processing, to obtain the photo oneself admired.Meanwhile this side handled using synthetic technology photo
Method has certain limitation, and user is in photomontage, it is necessary to zoom in and out place respectively according to the ratio of different photos and scene
Reason and position adjustment etc., thus it is very troublesome, and easily produce error and make the photo after synthesis not natural enough.
The content of the invention
To overcome problem present in correlation technique, the disclosure provides a kind of method and device of image synthesis.
According to the first aspect of the embodiment of the present disclosure, there is provided a kind of method of image synthesis, including:
The picture identification information found a view in picture;
According to the picture identification information, the region where the picture identification information is replaced with corresponding with described information
The first image;
Generation includes the second image of described first image.
The technical scheme provided by this disclosed embodiment can include the following benefits:By in picture of finding a view
Picture identification information, you can the region where picture identification information is directly replaced with to the image for wanting replacement, entered without user
Row post-processing, realize the synthesis between image so that more convenient during user's composograph.
Optionally, the picture identification information in the picture of finding a view, including:
Identify the picture identification in picture of finding a view;
The picture identification information is extracted from the picture identification.
In alternative, by the way that picture identification information can be extracted from the picture identification in picture of finding a view, and then
According to picture identification information composograph.
Optionally, the picture identification information is Quick Response Code or bar code.
In alternative, Quick Response Code or bar code in picture of finding a view and into image.
Optionally, described first image is the pre-set image of local or network side.
In alternative, user can arbitrarily select the image of local or network side as the first image replaced.
Optionally, it is described according to the picture identification information, by the region where the picture identification information replace with
First image corresponding to described information, including:
Receive selection operation of the user to described first image;
According to the picture identification information, the region where the picture identification information is replaced with into the selection operation institute
First image of selection.
In alternative, after picture identification information is identified, user can manually select the image for wanting replacement, and then
Region where picture identification information is replaced with selected by user, image, obtain the image that user admires.
Optionally, it is described according to the picture identification information, by the region where the picture identification information replace with
First image corresponding to described information, including:
Identify the shape in the region where the picture identification information;
According to the shape, the region where the picture identification information is replaced with to first to match with the shape
Image.
In alternative, the shape in the region according to where picture identification information replaces image so as to be replaced
The shape in the region where the shape and picture identification information of image matches, so that the image effect after synthesis is more natural
It is attractive in appearance.
Optionally, it is described according to the shape, the region where the picture identification information is replaced with and the shape
The first image to match, including:
Described first image is zoomed in and out according to the shape, until the size of described first image and the shape
Size matches, and obtains the 3rd image;
Region where the picture identification information is replaced with into the 3rd image.
In alternative, the size in the region according to where picture identification information replaces image so as to be replaced
The size in the region where the size and picture identification information of image matches, so that the image effect after synthesis is more natural
It is attractive in appearance.
Optionally, it is described according to the shape, the region where the picture identification information is replaced with and the shape
The first image to match, including:
Identify the theme in described first image;
Described first image is zoomed in and out and/or intercepted according to the shape so that the theme is shown in the figure
Region where piece identification information, obtain the 4th image;
Region where the picture identification information is replaced with into the 4th image.
In alternative, the shape in the region according to where picture identification information, the image to be replaced is contracted
Put and/or intercept so that the theme in the image to be replaced can be more completely shown in region, so that the figure after synthesis
As effect more natural beauty.
According to the second aspect of the embodiment of the present disclosure, there is provided a kind of device of image synthesis, including:
Acquisition module, for the picture identification information in picture of finding a view;
Replacement module, for according to the picture identification information, the region where the picture identification information to be replaced with
The first image corresponding with described information;
Generation module, for generating the second image for including described first image.
Optionally, the acquisition module includes:
First identification submodule, for identifying the picture identification in picture of finding a view;
Extracting sub-module, for extracting the picture identification information from the picture identification.
Optionally, the replacement module includes:
Receiving submodule, for receiving selection operation of the user to described first image;
First replaces submodule, for according to the picture identification information, by the region where the picture identification information
Replace with the first image selected by the selection operation.
Optionally, the replacement module includes:
Second identification submodule, for identifying the shape in the region where the picture identification information;
Second replaces submodule, for according to the shape, by the region where the picture identification information replace with
The first image that the shape matches.
Optionally, the second replacement submodule is used for,
Described first image is zoomed in and out according to the shape, until the size of described first image and the shape
Size matches, and obtains the 3rd image;
Region where the picture identification information is replaced with into the 3rd image.
Optionally, the second replacement submodule is used for,
Identify the theme in described first image;
For described first image to be zoomed in and out and/or intercepted according to the shape so that the theme is shown in institute
The region where picture identification information is stated, obtains the 4th image;
For the region where the picture identification information to be replaced with into the 4th image.
According to the third aspect of the embodiment of the present disclosure, there is provided a kind of device of image synthesis, including:
Processor;
For storing the memory of processor-executable instruction;
Wherein, the processor is configured as:
The picture identification information found a view in picture;
According to the picture identification information, the region where the picture identification information is replaced with corresponding with described information
The first image;
Generation includes the second image of described first image.
It should be appreciated that the general description and following detailed description of the above are only exemplary and explanatory, not
The disclosure can be limited.
Brief description of the drawings
Accompanying drawing herein is merged in specification and forms the part of this specification, shows the implementation for meeting the disclosure
Example, and be used to together with specification to explain the principle of the disclosure.
Fig. 1 is a kind of flow chart of the method for image synthesis according to an exemplary embodiment;
Fig. 2 is the flow chart for the method that a kind of image exemplified according to a specific implementation synthesizes;
Fig. 3 is the design sketch after the image synthesis according to an exemplary embodiment;
Fig. 4 is a kind of flow chart of the method for image synthesis according to another specific embodiment;
Fig. 5 is the design sketch after the image synthesis according to an exemplary embodiment;
Fig. 6 is a kind of block diagram of the device of image synthesis according to an exemplary embodiment;
Fig. 7 is the block diagram of acquisition module in the device that a kind of image according to an exemplary embodiment synthesizes;
Fig. 8 is the block diagram of replacement module in the device that a kind of image according to an exemplary embodiment synthesizes;
Fig. 9 is a kind of block diagram of the device of image synthesis according to an exemplary embodiment.
Embodiment
Here exemplary embodiment will be illustrated in detail, its example is illustrated in the accompanying drawings.Following description is related to
During accompanying drawing, unless otherwise indicated, the same numbers in different accompanying drawings represent same or analogous key element.Following exemplary embodiment
Described in embodiment do not represent all embodiments consistent with the disclosure.On the contrary, they be only with it is such as appended
The example of the consistent apparatus and method of some aspects be described in detail in claims, the disclosure.
Fig. 1 is a kind of flow chart of the method for image synthesis according to an exemplary embodiment, as shown in figure 1, figure
As the method for synthesis is in terminal, comprising the following steps:
Step S11, the picture identification information in picture of finding a view;
Step S12, according to picture identification information, the region where picture identification information is replaced with corresponding with information
One image;
Step S13, generation include the second image of the first image.
The technical scheme that the present embodiment provides can include the following benefits:Pass through the picture mark in picture of finding a view
Know information, you can the region where picture identification information is directly replaced with to the image for wanting replacement, the later stage is carried out without user
Processing, realizes the synthesis between image so that more convenient during user's composograph.
In the above method, step S11 can be embodied as following steps:
Step S111, identify the picture identification in picture of finding a view;
Step S112, extracts picture identification information from picture identification.
Wherein, picture identification information can be Quick Response Code or bar code.When picture identification information is Quick Response Code, terminal exists
When taking pictures, identification is found a view the picture identification in picture, such as the note with Quick Response Code that holds of user or photo frame etc., works as identification
To after the Quick Response Code in note or photo frame, terminal extracts 2 D code information from the Quick Response Code.When picture identification information is bar shaped
During code, terminal identifies the picture identification in picture of finding a view, such as the paper or water with bar code that user holds when taking pictures
Cup etc., after the bar code on paper or cup is recognized, terminal extracts the information of bar code from the bar code.
Optionally, in above-mentioned steps S12, the first image that region where picture identification information is replaced can by user from
Preselect in the image of local or network side, can also be manually selected after terminal gets picture identification information.When user selects manually
When selecting the first image, step S12 is embodied as following steps:
Step S121, receive selection operation of the user to the first image;User can select manually in terminal local or network side
Select the first image;
Step S122, according to picture identification information, the region where picture identification information is replaced with selected by selection operation
The first image selected.
Optionally, the region where image mark information can be the curve of arbitrary shape.Such as on cup, clothes
LOGO, photo frame etc..Terminal can be where automatic identification picture identification information region shape, and according to the region shape recognized
Replace matched image.It is embodied as following steps:
Step A1, the shape in the region where identification picture identification information;
Step A2, according to shape, the region where picture identification information is replaced with to the first image to match with shape.
Wherein, step A2 can be embodied as two ways.A kind of mode is big for the region according to where picture identification information
The image that small scaling will be replaced, another way are the shape in the region according to where picture identification information to that will replace
Image is intercepted, and the theme in the image for ensureing to replace can be more completely shown in the region where picture identification information
In.Comprise the following steps that:
First way:Step B1, the shape in the region according to where picture identification information zoom in and out to the first image,
Until the size of shape in the region where the size and picture identification information of the first image matches, the 3rd image is obtained;Step
Rapid B2, the region where picture identification information is replaced with into the 3rd image.
The second way:Step C1, identify the theme in the first image;Step C2, according to where picture identification information
The shape in region is zoomed in and out and/or intercepted to the first image so that the theme of the first image is shown in picture identification information institute
Region, obtain the 4th image;Step C3, the region where picture identification information is replaced with into the 4th image.
In addition, terminal can identify that picture identification is believed according to information such as the color in picture of finding a view, shape or closed curves
Region where ceasing, can also the object in region that goes out where picture identification information of Direct Recognition, for example, in picture of finding a view, use
Family holds a square water cup for being identified with Quick Response Code, and the region where the Quick Response Code is square water cup.When terminal is taken pictures,
Can Direct Recognition go out Quick Response Code where region be a square water cup, and then can be according to the shape, size, face of the square water cup
The information such as color, the operation such as the first image is zoomed in and out or intercepted, so that the area where the image and Quick Response Code after replacing
Domain more matches.
Region where picture identification information there is likely to be certain see-through, then terminal is getting picture identification letter
After breath, the image effect that the region where picture identification information is substituted for is also complied with to the see-through in the region.
Illustrate a kind of method of image synthesis of disclosure proposition below by two specific embodiments.
Embodiment one
Fig. 2 show a kind of flow chart of the method for image synthesis that the implementation exemplifies.In this embodiment, image closes
Into method be used for terminal, picture identification information is Quick Response Code, and the region where Quick Response Code holds for the user in picture that finds a view
Photo frame, as shown in Figure 3.Specifically include following steps:
Step S21, the Quick Response Code in picture of finding a view;Such as the Quick Response Code on the photo frame that user holds in Fig. 3;
Step S22, user is received to the selection operation for the first image that will be replaced;
Step S23, identify region --- the position of photo frame and size where Quick Response Code;
Step S24, according to the size of photo frame, the size of the first selected image of appropriate scaling so that the first image
Size matches with photo frame size;
Step S25, according to the position of photo frame, the image in photo frame is replaced with to the first image after scaling;
Step S26, the image after synthesis of the generation comprising the first image.
Wherein, the first image selected by user is the image in the black photo frame that user holds in Fig. 3, due to photo frame phase
It is smaller for the first image, therefore the first image can be zoomed in and out according to the size of photo frame, until the size of the first image with
The size of photo frame matches, and so, the image after synthesis is also just more natural.Image in black photo frame can be with the selection of user
Arbitrarily change.
The technical scheme that the present embodiment provides can include the following benefits:Pass through the two dimension in picture of finding a view
Code, you can the region where Quick Response Code is directly replaced with to the image for wanting replacement, and can be according to Quick Response Code region
Scaled wants the image replaced, and carries out post-processing without user, realizes the synthesis between image so that Yong Huhe
It is more convenient during into image.
Embodiment two
Fig. 4 show a kind of flow chart of the method for image synthesis that the implementation exemplifies.In this embodiment, image closes
Into method be used for terminal, picture identification information is Quick Response Code, and the region where Quick Response Code forms for both hands in picture of finding a view
Heart-shaped region, as shown in Figure 5.Specifically include following steps:
Step S41, the pre-set image to be replaced when selecting a certain image to be synthesized as image from terminal of user;
Step S42, terminal are taken pictures, and the Quick Response Code in picture of finding a view;
Step S43, shape, the size and location in the region where terminal recognition Quick Response Code --- heart-shaped region;
Step S44, the theme in terminal recognition pre-set image;For example, the lovers in the heart-shaped region that both hands form in Fig. 5
Theme as in pre-set image;
Step S45, terminal are zoomed in and out and intercepted to pre-set image, to ensure according to the shapes and sizes in heart-shaped region
The theme of pre-set image can be completely shown in heart-shaped region;
Step S46, terminal replace with the image in heart-shaped region after scaling and intercepting according to the position in heart-shaped region
Pre-set image;
Step S47, the image after synthesis of the generation comprising pre-set image.
The technical scheme that the present embodiment provides can include the following benefits:Pass through the two dimension in picture of finding a view
Code, you can the region where Quick Response Code is directly replaced with to the image for wanting replacement, and can be according to Quick Response Code region
The image replaced is wanted in shapes and sizes scaling, interception, and two can be completely shown in the theme for the image for ensureing to want to replace
In region where dimension code, post-processing is carried out without user, realizes the synthesis between image so that during user's composograph
It is more convenient.
Fig. 6 is a kind of device block diagram of image synthesis according to an exemplary embodiment.Reference picture 6, the device bag
Include:
Acquisition module 61, for the picture identification information in picture of finding a view;
Replacement module 62, for according to the picture identification information, the region where the picture identification information to be replaced
For the first image corresponding with described information;
Generation module 63, for generating the second image for including described first image.
Optionally, acquisition module 61 includes following submodule, as shown in Figure 7:
First identification submodule 71, for identifying the picture identification in picture of finding a view;
Extracting sub-module 72, for extracting the picture identification information from the picture identification.
Optionally, replacement module 62 includes following submodule, as shown in Figure 8:
Receiving submodule 81, for receiving selection operation of the user to described first image;
First replaces submodule 82, for according to the picture identification information, by the area where the picture identification information
Domain replaces with the first image selected by the selection operation;
Second identification submodule 83, for identifying the shape in the region where the picture identification information;
Second replaces submodule 84, for according to the shape, the region where the picture identification information to be replaced with
The first image to match with the shape.
Optionally, the second replacement submodule 84 is additionally operable to, and described first image is zoomed in and out according to the shape, until
The size of the size of described first image and the shape matches, and obtains the 3rd image;By where the picture identification information
Region replace with the 3rd image.
Optionally, the second replacement submodule 84 is additionally operable to, and identifies the theme in described first image;For according to the shape
Shape is zoomed in and out and/or intercepted to described first image so that the theme is shown in the area where the picture identification information
Domain, obtain the 4th image;For the region where the picture identification information to be replaced with into the 4th image.
In the exemplary embodiment, a kind of device of image synthesis is additionally provided, including:
Processor;
For storing the memory of processor-executable instruction;
Wherein, the processor is configured as:
The picture identification information found a view in picture;
According to the picture identification information, the region where the picture identification information is replaced with corresponding with described information
The first image;
Generation includes the second image of described first image.
On the device in above-described embodiment, wherein modules perform the concrete mode of operation in relevant this method
Embodiment in be described in detail, explanation will be not set forth in detail herein.
Fig. 9 is a kind of block diagram of device 900 for image synthesis according to an exemplary embodiment.For example, dress
It can be mobile phone to put 900, computer, digital broadcast terminal, messaging devices, game console, tablet device, medical treatment
Equipment, body-building equipment, personal digital assistant etc..
Reference picture 9, device 900 can include following one or more assemblies:Processing component 902, memory 904, power supply
Component 906, multimedia groupware 908, audio-frequency assembly 910, the interface 912 of input/output (I/O), sensor cluster 914, and
Communication component 916.
The integrated operation of the usual control device 900 of processing component 902, such as communicated with display, call, data, phase
The operation that machine operates and record operation is associated.Treatment element 902 can refer to including one or more processors 920 to perform
Order, to complete all or part of step of above-mentioned method.In addition, processing component 902 can include one or more modules, just
Interaction between processing component 902 and other assemblies.For example, processing component 902 can include multi-media module, it is more to facilitate
Interaction between media component 908 and processing component 902.
Memory 904 is configured as storing various types of data to support the operation in equipment 900.These data are shown
Example includes the instruction of any application program or method for being operated on device 900, contact data, telephone book data, disappears
Breath, picture, video etc..Memory 904 can be by any kind of volatibility or non-volatile memory device or their group
Close and realize, as static RAM (SRAM), Electrically Erasable Read Only Memory (EEPROM) are erasable to compile
Journey read-only storage (EPROM), programmable read only memory (PROM), read-only storage (ROM), magnetic memory, flash
Device, disk or CD.
Electric power assembly 906 provides electric power for the various assemblies of device 900.Electric power assembly 906 can include power management system
System, one or more power supplys, and other components associated with generating, managing and distributing electric power for device 900.
Multimedia groupware 908 is included in the screen of one output interface of offer between described device 900 and user.One
In a little embodiments, screen can include liquid crystal display (LCD) and touch panel (TP).If screen includes touch panel, screen
Curtain may be implemented as touch-screen, to receive the input signal from user.Touch panel includes one or more touch sensings
Device is with the gesture on sensing touch, slip and touch panel.The touch sensor can not only sensing touch or sliding action
Border, but also detect and touched or the related duration and pressure of slide with described.In certain embodiments, more matchmakers
Body component 908 includes a front camera and/or rear camera.When equipment 900 is in operator scheme, such as screening-mode or
During video mode, front camera and/or rear camera can receive outside multi-medium data.Each front camera and
Rear camera can be a fixed optical lens system or have focusing and optical zoom capabilities.
Audio-frequency assembly 910 is configured as output and/or input audio signal.For example, audio-frequency assembly 910 includes a Mike
Wind (MIC), when device 900 is in operator scheme, during such as call model, logging mode and speech recognition mode, microphone by with
It is set to reception external audio signal.The audio signal received can be further stored in memory 904 or via communication set
Part 916 is sent.In certain embodiments, audio-frequency assembly 910 also includes a loudspeaker, for exports audio signal.
I/O interfaces 912 provide interface between processing component 902 and peripheral interface module, and above-mentioned peripheral interface module can
To be keyboard, click wheel, button etc..These buttons may include but be not limited to:Home button, volume button, start button and lock
Determine button.
Sensor cluster 914 includes one or more sensors, and the state for providing various aspects for device 900 is commented
Estimate.For example, sensor cluster 914 can detect opening/closed mode of equipment 900, and the relative positioning of component, for example, it is described
Component is the display and keypad of device 900, and sensor cluster 914 can be with 900 1 components of detection means 900 or device
Position change, the existence or non-existence that user contacts with device 900, the orientation of device 900 or acceleration/deceleration and device 900
Temperature change.Sensor cluster 914 can include proximity transducer, be configured to detect in no any physical contact
The presence of neighbouring object.Sensor cluster 914 can also include optical sensor, such as CMOS or ccd image sensor, for into
As being used in application.In certain embodiments, the sensor cluster 914 can also include acceleration transducer, gyro sensors
Device, Magnetic Sensor, pressure sensor or temperature sensor.
Communication component 916 is configured to facilitate the communication of wired or wireless way between device 900 and other equipment.Device
900 can access the wireless network based on communication standard, such as WiFi, 2G or 3G, or combinations thereof.In an exemplary implementation
In example, communication component 916 receives broadcast singal or broadcast related information from external broadcasting management system via broadcast channel.
In one exemplary embodiment, the communication component 916 also includes near-field communication (NFC) module, to promote junction service.Example
Such as, in NFC module radio frequency identification (RFID) technology can be based on, Infrared Data Association (IrDA) technology, ultra wide band (UWB) technology,
Bluetooth (BT) technology and other technologies are realized.
In the exemplary embodiment, device 900 can be believed by one or more application specific integrated circuits (ASIC), numeral
Number processor (DSP), digital signal processing appts (DSPD), PLD (PLD), field programmable gate array
(FPGA), controller, microcontroller, microprocessor or other electronic components are realized, for performing the above method.
In the exemplary embodiment, a kind of non-transitorycomputer readable storage medium including instructing, example are additionally provided
Such as include the memory 904 of instruction, above-mentioned instruction can be performed to complete the above method by the processor 920 of device 900.For example,
The non-transitorycomputer readable storage medium can be ROM, random access memory (RAM), CD-ROM, tape, floppy disk
With optical data storage devices etc..
A kind of non-transitorycomputer readable storage medium, when the instruction in the storage medium is by the processing of mobile terminal
When device performs so that mobile terminal is able to carry out a kind of method of image synthesis, and methods described includes:
The picture identification information found a view in picture;
According to the picture identification information, the region where the picture identification information is replaced with corresponding with described information
The first image;
Generation includes the second image of described first image.
Picture identification information in the picture of finding a view, including:
Identify the picture identification in picture of finding a view;
The picture identification information is extracted from the picture identification.
The picture identification information is Quick Response Code or bar code.
Described first image is the pre-set image of local or network side.
It is described according to the picture identification information, the region where the picture identification information is replaced with and described information
Corresponding first image, including:
Receive selection operation of the user to described first image;
According to the picture identification information, the region where the picture identification information is replaced with into the selection operation institute
First image of selection.
It is described according to the picture identification information, the region where the picture identification information is replaced with and described information
Corresponding first image, including:
Identify the shape in the region where the picture identification information;
According to the shape, the region where the picture identification information is replaced with to first to match with the shape
Image.
It is described according to the shape, the region where the picture identification information is replaced with what is matched with the shape
First image, including:
Described first image is zoomed in and out according to the shape, until the size of described first image and the shape
Size matches, and obtains the 3rd image;
Region where the picture identification information is replaced with into the 3rd image.
It is described according to the shape, the region where the picture identification information is replaced with what is matched with the shape
First image, including:
Identify the theme in described first image;
Described first image is zoomed in and out and/or intercepted according to the shape so that the theme is shown in the figure
Region where piece identification information, obtain the 4th image;
Region where the picture identification information is replaced with into the 4th image.
Those skilled in the art will readily occur to other realities of the disclosure after considering specification and putting into practice disclosure herein
Apply scheme.The application is intended to any modification, purposes or the adaptations of the disclosure, these modifications, purposes or suitable
The change of answering property follows the general principle of the disclosure and including the undocumented common knowledge or used in the art of the disclosure
Use technological means.Description and embodiments are considered only as exemplary, and the true scope of the disclosure and spirit are by following right
It is required that point out.
It should be appreciated that the precision architecture that the disclosure is not limited to be described above and is shown in the drawings, and
And various modifications and changes can be being carried out without departing from the scope.The scope of the present disclosure is only limited by appended claim.
Claims (13)
- A kind of 1. method of image synthesis, it is characterised in that including:The picture identification information found a view in picture;According to the picture identification information, the region where the picture identification information is replaced with corresponding with described information One image, wherein, the picture identification information is Quick Response Code or bar code;Generation includes the second image of described first image;It is described according to the picture identification information, the region where the picture identification information is replaced with corresponding with described information The first image, including:Identify the shape in the region where the picture identification information;According to the shape, the region where the picture identification information is replaced with to the first figure to match with the shape Picture;Region where the picture identification information has certain see-through, and methods described also includes:After the picture identification information is got, the region where the picture identification information is substituted for and meets the figure The image of the see-through in the region where piece identification information.
- 2. according to the method for claim 1, it is characterised in that the picture identification information in the picture of finding a view, bag Include:Identify the picture identification in picture of finding a view;The picture identification information is extracted from the picture identification.
- 3. according to the method for claim 1, it is characterised in that described first image is the default figure of local or network side Picture.
- 4. according to the method for claim 1, it is characterised in that it is described according to the picture identification information, by the picture Region where identification information replaces with the first image corresponding with described information, including:Receive selection operation of the user to described first image;According to the picture identification information, the region where the picture identification information is replaced with selected by the selection operation The first image.
- 5. according to the method for claim 1, it is characterised in that it is described according to the shape, by the picture identification information The region at place replaces with the first image to match with the shape, including:Described first image is zoomed in and out according to the shape, until the size of the size of described first image and the shape Match, obtain the 3rd image;Region where the picture identification information is replaced with into the 3rd image.
- 6. according to the method for claim 1, it is characterised in that it is described according to the shape, by the picture identification information The region at place replaces with the first image to match with the shape, including:Identify the theme in described first image;Described first image is zoomed in and out and/or intercepted according to the shape so that the theme is shown in the picture mark Know the region where information, obtain the 4th image;Region where the picture identification information is replaced with into the 4th image.
- A kind of 7. device of image synthesis, it is characterised in that including:Acquisition module, for the picture identification information in picture of finding a view;Replacement module, for according to the picture identification information, the region where the picture identification information is replaced with and institute The first image corresponding to information is stated, wherein, the picture identification information is Quick Response Code or bar code;Generation module, for generating the second image for including described first image;The replacement module includes:Second identification submodule, for identifying the shape in the region where the picture identification information;Second replaces submodule, for according to the shape, by the region where the picture identification information replace with it is described The first image that shape matches;Region where the picture identification information has certain see-through, and described device is additionally operable to:After the picture identification information is got, the region where the picture identification information is substituted for and meets the figure The image of the see-through in the region where piece identification information.
- 8. device according to claim 7, it is characterised in that the acquisition module includes:First identification submodule, for identifying the picture identification in picture of finding a view;Extracting sub-module, for extracting the picture identification information from the picture identification.
- 9. device according to claim 7, it is characterised in that the replacement module includes:Receiving submodule, for receiving selection operation of the user to described first image;First replaces submodule, for according to the picture identification information, the region where the picture identification information to be replaced For the first image selected by the selection operation.
- 10. device according to claim 7, it is characterised in that the second replacement submodule is used for,Described first image is zoomed in and out according to the shape, until the size of the size of described first image and the shape Match, obtain the 3rd image;Region where the picture identification information is replaced with into the 3rd image.
- 11. device according to claim 7, it is characterised in that the second replacement submodule is used for,Identify the theme in described first image;For described first image to be zoomed in and out and/or intercepted according to the shape so that the theme is shown in the figure Region where piece identification information, obtain the 4th image;For the region where the picture identification information to be replaced with into the 4th image.
- A kind of 12. device of image synthesis, it is characterised in that including:Processor;For storing the memory of processor-executable instruction;Wherein, the processor is configured as:The picture identification information found a view in picture;According to the picture identification information, the region where the picture identification information is replaced with corresponding with described information One image, wherein, the picture identification information is Quick Response Code or bar code;Generation includes the second image of described first image;It is described according to the picture identification information, the region where the picture identification information is replaced with corresponding with described information The first image, including:Identify the shape in the region where the picture identification information;According to the shape, the region where the picture identification information is replaced with to the first figure to match with the shape Picture;Region where the picture identification information has certain see-through, and the processor is additionally configured to:After the picture identification information is got, the region where the picture identification information is substituted for and meets the figure The image of the see-through in the region where piece identification information.
- 13. a kind of computer-readable recording medium, is stored thereon with computer program, it is characterised in that the program is by processor Following steps are realized during execution:The picture identification information found a view in picture;According to the picture identification information, the region where the picture identification information is replaced with corresponding with described information One image, wherein, the picture identification information is Quick Response Code or bar code;Generation includes the second image of described first image;It is described according to the picture identification information, the region where the picture identification information is replaced with corresponding with described information The first image, including:Identify the shape in the region where the picture identification information;According to the shape, the region where the picture identification information is replaced with to the first figure to match with the shape Picture;Region where the picture identification information has certain see-through, also realized when described program is executed by processor with Lower step includes:After the picture identification information is got, the region where the picture identification information is substituted for and meets the figure The image of the see-through in the region where piece identification information.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410422415.8A CN104156476B (en) | 2014-08-25 | 2014-08-25 | The method and device of image synthesis |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410422415.8A CN104156476B (en) | 2014-08-25 | 2014-08-25 | The method and device of image synthesis |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104156476A CN104156476A (en) | 2014-11-19 |
CN104156476B true CN104156476B (en) | 2018-03-02 |
Family
ID=51881974
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410422415.8A Active CN104156476B (en) | 2014-08-25 | 2014-08-25 | The method and device of image synthesis |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104156476B (en) |
Families Citing this family (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106327549A (en) * | 2015-06-30 | 2017-01-11 | 阿里巴巴集团控股有限公司 | Picture display method and device |
CN105787982B (en) * | 2016-02-29 | 2018-11-09 | 腾讯科技(北京)有限公司 | A kind of method and apparatus making e-book |
CN106408536A (en) * | 2016-09-14 | 2017-02-15 | 北京小米移动软件有限公司 | Image synthesis method and device |
CN106454093A (en) * | 2016-10-18 | 2017-02-22 | 北京小米移动软件有限公司 | Image processing method, image processing device and electronic equipment |
CN108337432B (en) * | 2018-03-16 | 2021-02-05 | 青岛海信移动通信技术股份有限公司 | Photo shooting method and device and storage medium |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1794781A (en) * | 2004-12-22 | 2006-06-28 | 乐金电子(中国)研究开发中心有限公司 | Method for photomontage using mobile communication terminal |
CN101042774A (en) * | 2007-01-12 | 2007-09-26 | 林辅添 | Method for making electronic card for new year |
CN101315702A (en) * | 2007-05-29 | 2008-12-03 | 翟卫东 | Electronic album production method and device thereof |
CN101841662A (en) * | 2010-04-16 | 2010-09-22 | 华为终端有限公司 | Method for acquiring photo frame composite image by mobile terminal and mobile terminal |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US9817822B2 (en) * | 2008-02-07 | 2017-11-14 | International Business Machines Corporation | Managing white space in a portal web page |
-
2014
- 2014-08-25 CN CN201410422415.8A patent/CN104156476B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1794781A (en) * | 2004-12-22 | 2006-06-28 | 乐金电子(中国)研究开发中心有限公司 | Method for photomontage using mobile communication terminal |
CN101042774A (en) * | 2007-01-12 | 2007-09-26 | 林辅添 | Method for making electronic card for new year |
CN101315702A (en) * | 2007-05-29 | 2008-12-03 | 翟卫东 | Electronic album production method and device thereof |
CN101841662A (en) * | 2010-04-16 | 2010-09-22 | 华为终端有限公司 | Method for acquiring photo frame composite image by mobile terminal and mobile terminal |
Also Published As
Publication number | Publication date |
---|---|
CN104156476A (en) | 2014-11-19 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104731688B (en) | Point out the method and device of reading progress | |
CN104219445B (en) | Screening-mode method of adjustment and device | |
CN104156476B (en) | The method and device of image synthesis | |
CN104598131B (en) | Adjust the method and device of page display way | |
CN107357505A (en) | The method, apparatus and computer-readable recording medium of screenshot capture | |
CN104035674B (en) | Picture displaying method and device | |
CN105278841B (en) | Control method and device for terminal device | |
CN104216525B (en) | Method and device for mode control of camera application | |
CN108108418A (en) | Picture management method, device and storage medium | |
CN104238890B (en) | Character displaying method and device | |
CN105389113B (en) | Application control method, apparatus based on gesture and terminal | |
CN105203456B (en) | Plant variety recognition methods and device | |
CN105487773B (en) | The method and device of screenshot capture | |
CN106791092A (en) | The searching method and device of contact person | |
CN106802808A (en) | Suspension button control method and device | |
JP2017510907A (en) | Method and apparatus for folding a photograph | |
CN106791394A (en) | Image processing method and device | |
CN104123338B (en) | Information recommendation method and device | |
CN106231207B (en) | Image processing method and device | |
CN104836880A (en) | Method and device for processing contact person head portrait | |
CN105682187B (en) | Icon display method and device | |
CN108509863A (en) | Information cuing method, device and electronic equipment | |
CN106936986A (en) | Application processing method and device | |
CN107222576A (en) | Photograph album synchronous method and device | |
CN106775247A (en) | The method and intelligent terminal of application icon movement |
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 |