Summary of the invention
Embodiment of the present invention is designed to provide a kind of image interfusion method, terminal and computer-readable storage medium
Matter, allows user according to the wish of oneself, the secondary creation of photo progress to shooting, and the information of photo and fusion is shown in
The same interface facilitates user to carry out the mixing operation of the plurality of picture information of multiple pictures, to obtain allowing customer satisfaction system
Picture.
In order to solve the above technical problems, embodiments of the present invention provide a kind of image interfusion method, comprising:
Obtain picture to be fused;Picture to be fused is shown in the first area of operation interface, and in operation interface
Second area in show at least one picture element;Wherein, picture element is the element extracted from the picture obtained in advance;
Depending on the user's operation, picture element is selected in the second area, and the picture element of selection is fused to picture to be fused.
Embodiments of the present invention additionally provide a kind of terminal, comprising:
At least one processor;And the memory being connect at least one processor communication;Wherein, memory stores
There is the instruction that can be executed by least one processor, instruction is executed by least one processor, so that at least one processor energy
Enough execute images above fusion method.
Embodiments of the present invention additionally provide a kind of computer readable storage medium, are stored with computer program, calculate
Machine program image interfusion method above-mentioned when being executed by processor.
Embodiment of the present invention in terms of existing technologies, obtains picture to be fused, and picture to be fused is shown
Show in the first area of operation interface;Picture element is extracted from the picture obtained in advance, and picture element is shown and is being operated
The second area at interface;Picture and picture element to be fused are shown simultaneously in operation interface, and user is facilitated to carry out multiple photographs
The mixing operation of the plurality of picture information of piece.Depending on the user's operation, picture element is selected in the second area, and by selection
Picture element is fused to the picture to be fused for being shown in first area, and it is secondary to the progress of captured picture not only to meet user
The demand of creation, and the picture of fusion can be directly displayed in operation interface, user can intuitively observe and melts
Effect after conjunction facilitates user to judge whether to be satisfied with fused picture.
In addition, obtaining the picture of element to be extracted before obtaining picture to be fused;The picture of element to be extracted is carried out
Image recognition, so that identification obtains the element in the picture of element to be extracted;The element in the picture that storage identification obtains.
Analyzed with picture of the image recognition technology to element to be extracted, available type is more abundant, image be more clear with
And the element of profile definitely.Obtained element is stored, facilitates user directly to transfer when needed, when can save
Between, improve the efficiency of the secondary creation of user.
Additionally, it is provided human-computer interaction interface, the picture of element to be extracted is selected for user in the picture obtained in advance;It will
The picture of the element to be extracted of selection, the picture as element to be extracted.There is provided human-computer interaction interface can allow user with oneself
Wish selects the photo of element to be extracted, so that the element extracted is more in line with user demand, avoids largely working, improve
The efficiency for taking element to work.
In addition, after the picture for obtaining element to be extracted, it, will before the element in the picture that storage identification obtains
The picture of element to be extracted is shown in first area;The element in picture that identification is obtained, is shown in second area, for user
Confirmed.The element and picture to be extracted extracted from picture to be extracted is shown in an interface, does so and facilitates use
Family confirms the element of extraction, so as to element needed for extracting user.
In addition, the picture of element to be extracted is 2D picture or 3D picture;When the picture of element to be extracted is 3D picture, know
The element in picture not obtained is 3D information.So that user not only can carry out secondary creation for 2D picture, it can also be right
3D picture carries out secondary creation, so that embodiments of the present invention have a wide range of applications scene.
In addition, picture element includes following one or any combination thereof: whole picture, image content, picture color.Wherein
Whole picture is every whole picture as an element, and when fusion can merge whole picture with picture to be fused;
Image content includes very much, such as the personage in picture, scene, object, the expression of personage, picture in building and picture
Present in text etc., be included in image content;Picture color and the profile of image content etc., these all can serve as figure
Piece element becomes the material of secondary creation, enriches the creation material of secondary creation.
In addition, the picture element of selection to be fused to picture to be fused, if the picture element selected is whole picture, mention
Template is merged for photo;Wherein, photo fusion template includes: to merge template, picture-in-picture template, roll template;It is selected with user
Photo merge template, the picture element of selection is fused to picture to be fused.When the element of fusion is whole picture, energy
Enough to merge, the form of picture-in-picture or rolling is merged, so providing template in advance for user, facilitates the operation of user, simultaneously
User need to only merge according to the pattern of template, and effectively preventing irregularly operating causes last syncretizing effect flaw occur
It happens.
Specific embodiment
In order to make the object, technical scheme and advantages of the embodiment of the invention clearer, below in conjunction with attached drawing to the present invention
Each embodiment be explained in detail.However, it will be understood by those skilled in the art that in each embodiment party of the present invention
In formula, in order to make the reader understand this application better, many technical details are proposed.But even if without these technical details
And various changes and modifications based on the following respective embodiments, the application technical solution claimed also may be implemented.
The first embodiment of the present invention is related to a kind of image interfusion method, detailed process is as shown in Figure 1.Present embodiment
In, obtain picture to be fused;Picture to be fused is shown in the first area of operation interface, and the second of operation interface
At least one picture element is shown in region;Wherein, picture element is the element extracted from the picture obtained in advance;According to
The operation at family selects picture element in the second area, and the picture element of selection is fused to picture to be fused.Not only may be used
To meet the needs of user carries out secondary creation to captured picture, and it may make the picture of fusion that can be directly displayed at operation
It on interface, allows user that can intuitively observe fused effect, user is facilitated to judge whether to be satisfied with fused picture.Under
Realization details in face of the image interfusion method of present embodiment is specifically described, and the following contents only provides for convenience of understanding
Realization details, not implement this programme it is necessary.
Step 101, picture to be fused is obtained.The local of preservation specifically, picture to be fused can take pictures for user
Photo, or from the art picture of page download, the mode for obtaining picture to be fused directly can search picture from local
Title, can also carry out keyword search, search a series of pictures relevant to keyword, then by user from the correlation filtered out
Choose required picture to be fused in picture, do so and user is facilitated to search, can quickly and effectively find it is required to
Merge picture.
Step 102, picture to be fused is shown in the first area of operation interface, and in the second area of operation interface
Middle at least one picture element of display;Wherein, picture element is the element extracted from the picture obtained in advance.Specifically,
As shown in Fig. 2, showing in the first area of operation interface by the select picture B photo to be fused of user, and same
The second area of operation interface shows at least one picture element, for example, the element one of picture A, picture element is in advance in picture
Middle extraction, the picture element of extraction can be the content that includes in picture, such as: some personage, some scene in picture, certain
The expression of personage in a object, some building or even picture, the text in picture, the color for including in picture and some
The profile of object, personage or scene all can serve as picture element and be extracted.
In addition, the element extracted is not only only limited to a part of picture, it can also be using the entirety of picture as a member
Element extracts.The extraction of picture element is equally applicable to 3D picture not only just for 2D picture, so that user not only can be with
Secondary creation is carried out for 2D picture, secondary creation can also be carried out to 3D picture, so that embodiments of the present invention have
Be widely used scene.The element extracted in present embodiment is abundant, can satisfy the demand of a variety of secondary creation of user.
Step 103, depending on the user's operation, picture element is selected in the second region, and the picture of selection is first
Element is fused to the picture to be fused.Specifically, as shown in Fig. 2, if user wants to merge element four into B photo, head
First element four is chosen, then element four is pulled into first area, i.e. B photo region, element four is put into B photo pair
The fusion position answered, after confirmation is placed into corresponding position, element four is fused to picture B photo to be fused, and user can be straight
The second area in operation interface seen observes fused effect, and user is facilitated to judge whether the secondary creation for meeting oneself
Wish.
In addition, system can provide the template that photo merges, photo for user when the picture element selected is whole picture
The template of fusion is divided into: merging template, picture-in-picture template, rolls template.Merging template is exactly to merge two or plurality of pictures
At a picture, user can choose the sequence of picture merging, and combined position.Picture-in-picture template is exactly in a photos
Interior zone be inserted into another photos, so that picture is generated stereovision, a width picture made to build a variety of different atmosphere.Roll template
It is exactly the slide according to user, shows the different piece of merged picture, user can selects photo according to self-demand
Template is merged, so as to simplify fusion steps, directly obtains fused picture using template.
Present embodiment compared with the prior art for, obtain picture to be fused, and picture to be fused is shown and is being grasped
Make the first area at interface;The picture element extracted in the picture obtained in advance, and picture element is shown in operation interface
Second area;Picture and picture element to be fused are shown simultaneously in operation interface, and user is facilitated to carry out the more of multiple pictures
The mixing operation of kind pictorial information.Depending on the user's operation, picture element is selected in the second area, and the picture of selection is first
Element is fused to the picture to be fused for being shown in first area, not only meets user and carries out secondary creation to captured picture
Demand, and the picture of fusion can be directly displayed in operation interface, user can intuitively observe fused
Effect facilitates user to judge whether to be satisfied with fused picture.
Second embodiment of the present invention is related to a kind of image interfusion method.Second embodiment is in first embodiment base
It is further improved on plinth, improvements essentially consist in: in second embodiment of the invention, obtaining figure to be fused
Before piece, further include the steps that obtaining the element in picture, detailed process is as shown in Figure 3.
Step 301, the photo of element to be extracted is obtained.Specifically, the photo of element to be extracted can take pictures for user
The local photo of preservation, or from the art picture of page download, the mode for obtaining the photo of element to be extracted can be straight
Connect from local and search picture name, keyword search can also be carried out, search a series of pictures relevant to keyword, then by with
The photo of required element to be extracted is chosen at family from the picture concerned filtered out, does so and user is facilitated to search, can
Quickly and effectively find the picture of required element to be extracted.
In addition, providing human-computer interaction interface when obtaining the picture of element to be extracted for user, providing for user and obtain in advance
Selection section of the picture taken as user, user can see the image content obtained in advance on human-computer interaction interface, side
Just user judges whether the picture is that required picture in addition, all pictures are shown on same interface facilitates user to screen
With compare, it is easier to judge the difference in details, so as to pick out suitable picture, will be singled out come suitable picture
Picture as element to be extracted.
Step 302, image recognition is carried out to the picture of element to be extracted, identification obtains the member in the picture of element to be extracted
Element.Specifically, image recognition technology is handled image, analyzed and is understood by computer, to identify various differences
The technology of the target of mode identifies picture feature using image recognition technology, analyzes the feature of image thus by picture
In different characteristic element extraction.For example, there are letter Cs in the picture A of element to be extracted, then image recognition technology can
To identify letter C, and letter C is completely extracted, as the element information extracted from picture A, in addition, after
It can be used as the information that element extraction comes out with the presence or absence of other in the picture A of continuous identification element to be extracted to exist, if discovery has
The element that can be extracted, is just extracted, and the element that can be extracted if it does not exist then changes the photo of an element to be extracted, after
It is continuous to extract.The element that can quickly and effectively extract in picture is done so, compared to for manual extraction element, utilizes image recognition
Technology keeps the element information extracted more accurate, extraction time spend it is shorter, saved the element to be extracted such as user when
Between, also avoid cumbersome extraction work.
Step 303, the element in picture that storage identification obtains.Specifically, image recognition technology is identified
Element saves, and can be saved in the form of file, and folder name is known as the picture name of element extraction, after doing so conveniently
Lookup and calling, can also be by the element of same feature there are in same file folder, title that folder name is characterized;?
Can be by the element from same photo there are in same file folder, folder name is known as extracting the title of the photo of element, this
Sample do suitable for user to photo carry out it is secondary creation to fusion element feature have very specific cognition, search characteristics title
Or the name of certain photo can easily find element, to be created.
Step 304, picture to be fused is obtained.
Step 305, picture to be fused is shown in the first area of operation interface, and in the second area of operation interface
Middle at least one picture element of display.
Step 306, depending on the user's operation, picture element is selected in the second region, and the picture of selection is first
Element is fused to the picture to be fused.
Step 304 to 306 with the step 101 of first embodiment of the invention to 103 consistent, details are not described herein.
Third embodiment of the present invention is related to a kind of image interfusion method.Third embodiment is in second embodiment base
It is further improved on plinth, improvements essentially consist in: in third embodiment of the invention, obtaining element to be extracted
Picture after, further include showing the picture of element to be extracted before the element in the obtained picture of storage identification
First area, the element in picture that identification is obtained, is shown in second area, confirms for user, detailed process such as Fig. 4
It is shown.
Step 401, the photo of element to be extracted is obtained.This step is similar with step 301, and details are not described herein.
Step 402, the picture of element to be extracted is shown in first area.Specifically, as shown in figure 5, A photo be to
The photo for extracting element, shows A photo in region in the first region, which can individually be operated, that is,
It says the photo that A photo can be changed to other elements to be extracted, user is facilitated to extract the element in different photos.
Step 403, image recognition is carried out to the picture of element to be extracted, identification obtains the member in the picture of element to be extracted
Element.This step is similar with step 302, and details are not described herein.
Step 404, the element in picture identification obtained, is shown in second area, confirms for user.Specifically
It says, as shown in figure 5, display elements one arrive element ten in the second area, first area is located at the center of operation interface, the
Two regions are surrounded on first area, and such layout facilitates user to operate picture and element.The member extracted in A picture
Element is shown in the second area of same operation interface, and more visual and clear observes whether the element extracted meets user
Demand, so as to element needed for extracting user, while also avoiding invalid element and occupying memory space.
Step 405, the element in picture that storage identification obtains.This step is similar with step 303, and details are not described herein.
Step 406, picture to be fused is obtained.This step is similar with step 304, and details are not described herein.
Step 407, picture to be fused is shown in the first area of operation interface, and in the second area of operation interface
Middle at least one picture element of display.This step is similar with step 305, and details are not described herein.
Step 408, depending on the user's operation, picture element is selected in the second region, and the picture of selection is first
Element is fused to the picture to be fused.This step is similar with step 306, and details are not described herein.
The step of various methods divide above, be intended merely to describe it is clear, when realization can be merged into a step or
Certain steps are split, multiple steps are decomposed into, as long as including identical logical relation, all in the protection scope of this patent
It is interior;To adding inessential modification in process or introducing inessential design, but the core design of its process is not changed
All in the protection scope of the patent.
Four embodiment of the invention is related to a kind of terminal, as shown in fig. 6, including at least one processor 601;And
With the memory 602 of at least one processor 601 communication connection;Wherein, be stored with can be by least one processor for memory 602
601 instructions executed, instruction is executed by least one processor 601, so that at least one processor 601 is able to carry out above-mentioned figure
As fusion method.
Wherein, memory 602 is connected with processor 601 using bus mode, and bus may include any number of interconnection
Bus and bridge, bus is by one or more processors 601 together with the various circuit connections of memory 602.Bus may be used also
With by such as peripheral equipment, voltage-stablizer, together with various other circuit connections of management circuit or the like, these are all
It is known in the art, therefore, it will not be further described herein.Bus interface provides between bus and transceiver
Interface.Transceiver can be an element, be also possible to multiple element, such as multiple receivers and transmitter, provide for
The unit communicated on transmission medium with various other devices.The data handled through processor are carried out on the radio medium by antenna
Transmission, further, antenna also receives data and transfers data to processor 601.
Processor 601 is responsible for management bus and common processing, can also provide various functions, including timing, periphery connects
Mouthful, voltage adjusting, power management and other control functions.And memory 602 can be used for storage processor 601 and execute
Used data when operation.
Fifth embodiment of the invention is related to a kind of computer readable storage medium, is stored with computer program.Computer
Above method embodiment is realized when program is executed by processor.
That is, it will be understood by those skilled in the art that implement the method for the above embodiments be can be with
Relevant hardware is instructed to complete by program, which is stored in a storage medium, including some instructions are to make
It obtains an equipment (can be single-chip microcontroller, chip etc.) or processor (processor) executes side described in each embodiment of the application
The all or part of the steps of method.And storage medium above-mentioned includes: USB flash disk, mobile hard disk, read-only memory (ROM, Read-Only
Memory), random access memory (RAM, Random Access Memory), magnetic or disk etc. are various can store journey
The medium of sequence code.
It will be understood by those skilled in the art that the respective embodiments described above are to realize specific embodiments of the present invention,
And in practical applications, can to it, various changes can be made in the form and details, without departing from the spirit and scope of the present invention.