CN110233966A - A kind of image generating method and terminal - Google Patents

A kind of image generating method and terminal Download PDF

Info

Publication number
CN110233966A
CN110233966A CN201910472529.6A CN201910472529A CN110233966A CN 110233966 A CN110233966 A CN 110233966A CN 201910472529 A CN201910472529 A CN 201910472529A CN 110233966 A CN110233966 A CN 110233966A
Authority
CN
China
Prior art keywords
image
terminal
target
subregions
target objects
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
CN201910472529.6A
Other languages
Chinese (zh)
Other versions
CN110233966B (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.)
Vivo Mobile Communication Hangzhou Co Ltd
Original Assignee
Vivo Mobile Communication Hangzhou 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 Vivo Mobile Communication Hangzhou Co Ltd filed Critical Vivo Mobile Communication Hangzhou Co Ltd
Priority to CN201910472529.6A priority Critical patent/CN110233966B/en
Publication of CN110233966A publication Critical patent/CN110233966A/en
Application granted granted Critical
Publication of CN110233966B publication Critical patent/CN110233966B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/61Control of cameras or camera modules based on recognised objects
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/61Control of cameras or camera modules based on recognised objects
    • H04N23/611Control of cameras or camera modules based on recognised objects where the recognised objects include parts of the human body
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/62Control of parameters via user interfaces
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/63Control of cameras or camera modules by using electronic viewfinders
    • H04N23/631Graphical user interfaces [GUI] specially adapted for controlling image capture or setting capture parameters
    • H04N23/632Graphical user interfaces [GUI] specially adapted for controlling image capture or setting capture parameters for displaying or modifying preview images prior to image capturing, e.g. variety of image resolutions or capturing parameters
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/63Control of cameras or camera modules by using electronic viewfinders
    • H04N23/633Control of cameras or camera modules by using electronic viewfinders for displaying additional information relating to control or operation of the camera
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/695Control of camera direction for changing a field of view, e.g. pan, tilt or based on tracking of objects
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/698Control of cameras or camera modules for achieving an enlarged field of view, e.g. panoramic image capture

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Human Computer Interaction (AREA)
  • Studio Devices (AREA)

Abstract

The embodiment of the present invention provides a kind of image generating method and terminal, is applied to field of communication technology, to solve the problems, such as that ghost image or distortion occurs in panoramic picture.This method is applied to terminal, comprising: the first image of shooting;On the first image, at least two target objects are shown;Based on the first image and at least two target objects, target image is generated;Wherein, at least two target objects are based on the first object generation in the first image or at least two target objects include the second object of at least one of the second image.This method is applied particularly in the scene of terminal photographing panorama picture.

Description

A kind of image generating method and terminal
Technical field
The present embodiments relate to field of communication technology more particularly to a kind of image generating method and terminals.
Background technique
Currently in the scene of terminal photographing panorama picture, if one object of user demand is multiple in Zhang Quanjing's image Occur, then during shooting the panoramic picture, it usually needs the object repeatedly moves in the scene domain of the panoramic picture It is dynamic.
However, during the camera of terminal and an object mobile simultaneously, due to the movement speed of the camera With the movement speed of the object may gap it is larger, the object in the panoramic picture obtained so as to cause terminal by the camera Image be likely to occur ghost image or distortion the problem of, i.e., panoramic picture occur ghost image or distortion the problem of.
Summary of the invention
The embodiment of the present invention provides a kind of image generating method and terminal, ghost image or distortion occurs to solve panoramic picture Problem.
In order to solve the above-mentioned technical problem, the embodiments of the present invention are implemented as follows:
In a first aspect, the embodiment of the present invention provides a kind of image generating method, it is applied to terminal, this method comprises: shooting First image;On the first image, at least two target objects are shown;It is raw based on the first image and at least two target objects At target image;Wherein, at least two target objects be based in the first image the first object generate or at least two Target object includes the second object of at least one of the second image.
Second aspect, the embodiment of the invention also provides a kind of terminal, the terminal include: shooting module, display module and Generation module;Shooting module, for shooting the first image;Display module, the first image for obtaining in shooting module are shown Show at least two target objects;Generation module, the first image and at least two target objects for being shown based on display module, Generate target image;Wherein, at least two target objects are based on the first object generation in the first image, or at least two A target object includes the second object of at least one of the second image.
Optionally, at least two target objects are to be generated based on the first object in the first image;Display module, specifically For receiving first input of the user to the first object in the first image;In response to the first input, replicate in the first image First object at least once, obtains at least two target objects, and each target object is shown and is inputted to first Target position.
Optionally, at least two target objects include the second object of at least one of the second image;Shooting module is also used On the first image in display module, show at least two target objects before, shoot the second image, the background of the second image with At least partly background is identical in first image.
Optionally, display module, specifically for obtain with the second image in i-th of first subregions in the first image Identical i-th of second subregions of background;Based on i-th of first subregions and i-th of second subregions, in the first image On, show at least two target objects;Wherein, i is positive integer.
Optionally, display module, specifically for replacing with the picture material of i-th of first subregions described i-th The picture material of two subregions, i-th of second subregions include i-th of second objects.
Optionally, display module is specifically used for extracting the i-th object diagram of i-th of second objects of i-th of second subregions Picture;Target area in i-th of first subregions shows the i-th object images, wherein target area is i-th of first sub-districts Region corresponding with viewing area of i-th of second objects in the second image in domain.
Optionally, terminal includes rotatable camera;Shooting module is specifically used for control camera according to first direction First angle is rotated, and is shot during rotation, the first image is obtained;And display module is on the first image, shows Before showing at least two target objects, control camera rotates second angle according to first direction, and carries out during rotation Shooting, obtains the second image;Wherein, second angle is less than or equal to first angle.
The third aspect the embodiment of the invention provides a kind of terminal, including processor, memory and is stored in the memory Computer program that is upper and can running on the processor, realizes such as first aspect when which is executed by the processor The step of described image generating method.
Fourth aspect, the embodiment of the invention provides a kind of computer readable storage medium, the computer-readable storage mediums Computer program is stored in matter, and image generating method as described in relation to the first aspect is realized when which is executed by processor The step of.
In embodiments of the present invention, the first image can be shot;On the first image, at least two target objects are shown, And at least two target objects be generated based on the first object in the first image or at least two target objects include the The second object of at least one of two images;Then, the first image and at least two target objects can be based on, target figure is generated Picture.Based on this method, terminal is according to first pair in the second object of at least one of second image or the first panoramic picture As, can obtain include at least two target objects target image.Without by reference object (such as personage) the Constantly moved in the corresponding photographed scene of one image so that terminal captured in real-time obtain include multiple objects panoramic picture.Such as This can shoot in the case where one object of user demand repeatedly occurs in Zhang Quanjing's image to avoid reference object The complicated processes constantly moved in scene, and avoid and constantly moved in photographed scene by reference object and terminal is caused to shoot There is the problem of ghost image or distortion in obtained panoramic picture quality.The quality of the panoramic picture of terminal shooting can be improved.
Detailed description of the invention
Fig. 1 is a kind of configuration diagram of possible Android operation system provided in an embodiment of the present invention;
Fig. 2 is a kind of flow diagram of image generating method provided in an embodiment of the present invention;
Fig. 3 is one of the schematic diagram that terminal provided in an embodiment of the present invention shows content;
Fig. 4 is the two of the schematic diagram that terminal provided in an embodiment of the present invention shows content;
Fig. 5 is the three of the schematic diagram that terminal provided in an embodiment of the present invention shows content;
Fig. 6 is the four of the schematic diagram that terminal provided in an embodiment of the present invention shows content;
Fig. 7 is a kind of structural schematic diagram of possible terminal provided in an embodiment of the present invention;
Fig. 8 is a kind of hardware structural diagram of terminal provided in an embodiment of the present invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation description, it is clear that described embodiments are some of the embodiments of the present invention, instead of all the embodiments.Based on this hair Embodiment in bright, every other implementation obtained by those of ordinary skill in the art without making creative efforts Example, shall fall within the protection scope of the present invention.
It should be noted that "/" herein indicate or the meaning, for example, A/B can indicate A or B;Herein "and/or" is only a kind of incidence relation for describing affiliated partner, indicates may exist three kinds of relationships, for example, A and/or B, it can To indicate: individualism A exists simultaneously A and B, these three situations of individualism B." multiple " refer to two or more.
It should be noted that in the embodiment of the present invention, " illustrative " or " such as " etc. words make example, example for indicating Card or explanation.Be described as in the embodiment of the present invention " illustrative " or " such as " any embodiment or design scheme do not answer It is interpreted than other embodiments or design scheme more preferably or more advantage.Specifically, " illustrative " or " example are used Such as " word is intended to that related notion is presented in specific ways.
Term " first " and " second " in description and claims of this specification etc. are for distinguishing different pairs As, rather than it is used for the particular order of description object.For example, the first object and the second object etc. are for distinguishing different pairs As, rather than it is used for the particular order of description object.
Image generating method provided in an embodiment of the present invention and terminal can shoot the first image;On the first image, it shows Show at least two target objects, and at least two target objects are to be generated based on the first object in the first image, Huo Zhezhi Few two target objects include the second object of at least one of the second image;Then, the first image and at least two can be based on A target object generates target image.Based on this method, terminal is according to the second object of at least one of second image or The first object in one panoramic picture, can obtain include at least two target objects target image.Without passing through Reference object (such as personage) constantly moves in the corresponding photographed scene of the first image, so that terminal captured in real-time obtains including more The panoramic picture of a object.In this way, in the case where one object of user demand repeatedly occurs in Zhang Quanjing's image, it can be with The complicated processes that reference object constantly moves in photographed scene are avoided, and are avoided continuous in photographed scene by reference object There is the problem of ghost image or distortion in panoramic picture quality that is mobile and causing terminal to shoot.Terminal shooting can be improved The quality of panoramic picture.
Terminal in the embodiment of the present invention can be mobile terminal, or immobile terminal.Mobile terminal can be Mobile phone, tablet computer, laptop, palm PC, car-mounted terminal, wearable device, Ultra-Mobile PC (ultra-mobile personal computer, UMPC), net book or personal digital assistant (personal digital Assistant, PDA) etc.;Immobile terminal can be personal computer (personal computer, PC), television set (television, TV), automatic teller machine or self-service machine etc.;The embodiment of the present invention is not especially limited.
It should be noted that image generating method provided in an embodiment of the present invention, executing subject can be terminal, alternatively, It is raw for executing image in the central processing unit (Central Processing Unit, CPU) of the terminal or the terminal At the control module of method.In the embodiment of the present invention by taking terminal executes image generating method as an example, illustrate that the embodiment of the present invention mentions The image generating method of confession.
Terminal in the embodiment of the present invention can be the terminal with operating system.The operating system can be Android (Android) operating system can be ios operating system, can also be other possible operating systems, the embodiment of the present invention is not Make specific limit.
Below by taking Android operation system as an example, introduce applied by image generating method provided in an embodiment of the present invention Software environment.
As shown in Figure 1, being a kind of configuration diagram of possible Android operation system provided in an embodiment of the present invention.Scheming In 1, the framework of Android operation system includes 4 layers, be respectively as follows: application layer, application framework layer, system Runtime Library layer and Inner nuclear layer (is specifically as follows Linux inner core).
Wherein, application layer includes each application program (including system application and in Android operation system Tripartite's application program).
Application framework layer is the frame of application program, and developer can be in the exploitation for the frame for abiding by application program In the case where principle, some application programs are developed based on application framework layer.For example, system setting application, system chat are answered With with system camera application etc. application programs.Third party is arranged application, third party's camera applications and third party's chat application etc. and answers Use program.
System Runtime Library layer includes library (also referred to as system library) and Android operation system running environment.Library is mainly Android behaviour As system it is provided needed for all kinds of resources.Android operation system running environment is used to provide software loop for Android operation system Border.
Inner nuclear layer is the operating system layer of Android operation system, belongs to the bottom of Android operation system software level.It is interior Stratum nucleare provides core system service and hardware-related driver based on linux kernel for Android operation system.
By taking Android operation system as an example, in the embodiment of the present invention, developer can be based on above-mentioned Android as shown in Figure 1 The software program of image generating method provided in an embodiment of the present invention is realized in the system architecture of operating system, exploitation, so that The image generating method can be run based on Android operation system as shown in Figure 1.I.e. processor or terminal can by The software program is run in Android operation system realizes image generating method provided in an embodiment of the present invention.
Below with reference to the flow chart of image generating method shown in Fig. 2 to image generating method provided in an embodiment of the present invention It is described in detail.Wherein, although showing patrolling for image generating method provided in an embodiment of the present invention in method flow diagram Sequence is collected, but in some cases, it can be with the steps shown or described are performed in an order that is different from the one herein.For example, Fig. 2 Shown in image generating method may include step 201- step 203:
Step 201, terminal shoot the first image.
Wherein, the first image can be panoramic picture.
Optionally, the application programs such as system camera application program or third party's camera application program are installed in terminal. Wherein, a camera application program can provide pan-shot function, for supporting terminal to execute bat by camera application program It pans the function of image.
Illustratively, in the embodiment of the present invention, terminal, can be with when executing the pan-shot function in camera application program Run the corresponding pan-shot process of panorama camera function.Wherein, in a pan-shot process, terminal be can control Device camera obtains same photographed scene in the image of different angle coverages, to obtain the panoramic picture of the photographed scene.Certainly, It may include reference object, such as personage or still life in the photographed scene.
Optionally, in the embodiment of the present invention, terminal can have one or more cameras.
Optionally, a camera in terminal can be to be fixed in terminal individually rotate (i.e. rotation) or movement Regular camera, i.e., when terminal is fixed, the angle coverage of the regular camera is constant.Wherein, in user control terminal When executing the pan-shot function in camera application program, terminal can prompt user mobile eventually in a pan-shot process End, to move or rotate the regular camera in the terminal.To allow terminal to acquire current shooting by the camera Multiple images of the scene under different angle coverages, and integrate multiple image and obtain panoramic picture.
Wherein, in a pan-shot process, terminal can prompt user along certain orientation and keep centainly moving Speed, control terminal is mobile or rotates.Prompt the camera in user control terminal mobile or rotation, to sweep by the camera Retouch the image of present filming scene.Illustratively, terminal can prompt user by some prompt informations, such as " when pan-shot It please continue mobile terminal ".In addition, shooting preview interface (such as camera applications for the pan-shot process that terminal is shown on the screen The interface of the view-finder of program) in may include instruction terminal moving direction arrow and the mobile auxiliary line etc. of instruction terminal Information.
For example, user can be moved based on the direction controlling terminal of the shooting preview interface that present terminal is shown from top to bottom Dynamic or user can be mobile based on the direction controlling terminal of the shooting preview interface that present terminal is shown from left to right, with control Terminal processed passes through camera photographing panorama picture.
In addition, terminal can based on the direction scan image of the shooting preview interface that present terminal is shown from top to bottom, or The direction scan image of the shooting preview interface that person is shown based on present terminal from left to right.
Further, in the mobile excessive velocities of user control terminal, terminal can be in current shooting preview interface Middle other prompt informations of display, to prompt user to slow down the speed of mobile terminal.Such as, which is " deceleration ".
Optionally, a camera in terminal can be rotating camera (i.e. rotatable camera), solid in terminal Periodically, the rotating camera can with rotating camera itself so that camera collects the image of different angle coverages.Its In, user control terminal execute camera application program in pan-shot function when, terminal can a pan-shot into The rotation of its rotating camera is controlled in journey, to acquire present filming scene under different angle coverages by the rotating camera Multiple images, and integrate multiple image and obtain panoramic picture.
Optionally, multiple cameras in terminal can be the multiple cameras being fixed in terminal, each camera Angle coverage is different.Wherein, when user control terminal executes the pan-shot function in camera application program, terminal can be Multiple camera is controlled in one pan-shot process and acquires the multiple images of different angle coverages respectively, and is integrated multiple Image obtains panoramic picture (such as the first image).
Illustratively, as shown in figure 3, for a kind of schematic diagram of terminal display content provided in an embodiment of the present invention.Wherein, Fig. 3 shows the interface 31 for the camera applications that terminal is shown, includes " panorama " control 311 in the interface 31, shoots control 312.Tool Body, selection operation is carried out to " panorama " control 311 in user, so that " panorama " control 311 is in selected state, with touching It sends out terminal and enables pan-shot function, and run a pan-shot process.Specifically, being in selected in " panorama " control 311 In state in the case where, include arrow, auxiliary line and the progress in the mobile direction of instruction terminal in the interface 31 that terminal is shown The pan-shots such as item indicate information, further include prompt information " please continue mobile terminal when pan-shot " in interface 31.Then, exist After terminal receives user to the input of shooting control 312, photographing panorama picture can be started.
In addition, the lower left corner at the interface 31 shown in Fig. 3 further includes the entrance 313 of photograph album, the breviary shown on the entrance 313 Figure is the thumbnail of the image shot camera applications the last time of terminal.At this point, terminal receives user to the entrance After 313 triggering input, it can show that the interface of photograph album application program, the interface include the last time shooting on the screen Obtained image.
Optionally, after user control terminal shoots the first image, terminal preview can show the first figure on the screen Picture.
Optionally, which can directly be displayed on the screen by terminal when shooting obtains the first image, i.e., will First image is shown in shooting preview interface.Alternatively, terminal when the first image is completed in shooting, can first protect the first image It deposits into photograph album application program, and when terminal receives user and triggers the input for showing first image, then in current interface Upper display first image.For example, when terminal currently shows shooting preview interface on the screen, if terminal receives user couple The input of the photograph album entrance in the lower left corner of the shooting preview interface, then show the first image in current interface.
Step 202, terminal on the first image, show at least two target objects.
Wherein, at least two target objects are based on the first object generation in the first image or at least two mesh Marking object includes the second object of at least one of the second image.
It should be noted that the object (such as the first object) in an image can be in image in the embodiment of the present invention Prospect, such as personage or still life in image.Specifically, may include foreground and background in an image, terminal can be with Identify the foreground and background in an image.
In general, the color of the color and background of the prospect in image has distinct difference, terminal can be by adjusting two The threshold value of value function identifies the prospect (i.e. object) in image.
Illustratively, terminal is for an image (the first panoramic picture as included personage) including object, Ke Yixian After the image is carried out gray processing processing and binary conversion treatment, the binary image of the image is obtained.Wherein, terminal can lead to The threshold value for crossing adjustment binaryzation function, identifies object (such as the first object) from the binary image.
Certainly, terminal can identify the prospect (i.e. object) in an image by other image-recognizing methods.For example, Terminal can identify the object in an image by the algorithm of edge detection.
Optionally, terminal can determine the prospect in the image according to the pixel value of each pixel in an image (i.e. object).As the pixel value of the prospect in an image meets certain numerical value range.
Optionally, terminal can determine prospect (i.e. object) in the image according to the contrast of an image.Such as one The contrast of prospect and the difference of the contrast of background in the image meet certain numerical value range in image.
Wherein, above-mentioned second image is the image different from the first image.Second image can be terminal in shooting the In the pan-shot process of one image captured in real-time obtain or second image be that terminal is provided from local resource or cloud It is acquired in source.
It is understood that include the first object at least two target objects and obtained based on the first object other are right As.In addition, the second object of at least one of second image at least two target objects, and it is based at least one second pair As other obtained objects.
Optionally, terminal, can be under the triggering of user input, alternatively, automatically after shooting obtains the first image It detects and obtains at least two target objects.
Specifically, image generating method provided in an embodiment of the present invention, can be applied to following application scenarios 1 or applied field In scape 2:
Application scenarios 1, at least two target objects are to be generated based on the first object in the first image.
Specifically, the image of terminal captured in real-time is first in a pan-shot process in camera application program Image.Then, terminal can identify the first object in the first image, and obtain at least two targets pair based on the first object As.To which terminal can show at least two target objects on the first image.
Illustratively, as shown in figure 4, for a kind of schematic diagram of terminal display content provided in an embodiment of the present invention.In Fig. 4 (a) panoramic picture 41 for showing in include object 411.Wherein, panoramic picture 41 can be the first image, and object 411 can be with For the first object.Optionally, in the case that terminal shows panoramic picture 41 on the screen, terminal can be obtained according to object 411 Object 412 is shown on the first image with showing object 411 and object 412 on the panoramic picture 41 that (b) in Fig. 4 is shown Show at least two target objects.Wherein, object 411 is identical as object 412.
Similar, terminal can also obtain other objects other than object 412 according to object 411, to obtain at least Two target objects, the present invention is not especially limit this.
Application scenarios 2, at least two target objects include the second object of at least one of the second image.
Optionally, after terminal shoots to obtain the first image, terminal can directly prompt the user whether to obtain the second figure Picture;Alternatively, reresenting whether user obtains in the case that terminal can not include any object in detecting current first image Take the second image.
Optionally, terminal can also include in the shooting preview interface in displaying target image in shooting preview interface First image.
Wherein, the second image can be user's triggering terminal captured in real-time, if user is to the bat in shooting preview interface Control (as shot control 312) is taken the photograph to carry out inputting triggering terminal shooting.Alternatively, the second image can for user's triggering terminal from It is selected in photograph album application program.For example, entrance (such as entrance 313) of the user to the photograph album application program in shooting preview interface It is inputted, to select from the photograph album application program to obtain.
Illustratively, as shown in figure 5, for a kind of schematic diagram of terminal display content provided in an embodiment of the present invention.In Fig. 5 (a) shooting preview interface for showing on the panoramic picture 51 and image 52 that show, which can be the first image, The image 52 can be the second image.Wherein, do not include object in panoramic picture 51, include object 521 in image 52.
Optionally, in the case that terminal shows panoramic picture 51 on the screen, terminal can be according to the object in image 52 521 obtain object 522 and object 523, to show object 522 and object 523 on the panoramic picture 51 that (b) in Fig. 5 is shown, At least two target objects are shown on the first image.Wherein, object 521, object 522 and object 523 are identical.
Similar, terminal can also obtain other objects other than object 522 and object 523 according to object 521, with At least two target objects are obtained, the present invention is not especially limit this.
Similar, in the case where in the second image including multiple objects, terminal can be by each of multiple object Object is as second object, to show the object for showing obtain according to each second object respectively in the first image.
It optionally, can be by the first image conduct itself when terminal shows at least two target objects on the first image One figure layer using at least two target objects as another figure layer, and the two map overlays is shown.
Further, optionally, in application scenarios 1, figure layer where at least two target objects can be at least two The figure layer where other objects in target object other than the first object.
Optionally, in the embodiment of the present invention, at least two target objects that terminal is shown on the first image not only include It can also include based at least one of the second image the second object based on the object that the first object in the first image generates The object of generation, the embodiment of the present invention repeat no more this.
Step 203, terminal are based on the first image and at least two target objects, generate target image.
Wherein, terminal can by the figure layer where the first image and the map overlay where at least two target objects, with Obtain target image.
Optionally, after terminal generates target image, target image can be saved, such as target image is saved to photograph album and is answered With in the corresponding storage region of program.In this way, subsequent user can be supported to check target image by photograph album application program.
Optionally, terminal can be under the triggering of user input, or is automatically based on the first image and at least two mesh Object is marked, target image is generated.For example, can also show that triggering terminal generates panoramic picture when terminal shows preview image Determine control.After terminal receives user to the input of the determination control, target image is can be generated in terminal.In addition, eventually In the case that end shows that the duration of at least two target objects reaches preset duration (such as 15 seconds) on the first image, terminal can be with Automatically generate target image.
Further, optionally, terminal can save the first image and/or the second figure during generating target image Picture such as saves the first image and/or the second image into the corresponding storage region of photograph album application program.In this way, can support Subsequent user checks the first image and/or the second image by photograph album application program.
It should be noted that image generating method provided in an embodiment of the present invention, can shoot the first image;In the first figure As upper, at least two target objects of display, and at least two target objects are to be generated based on the first object in the first image, Or at least two target object include the second object of at least one of the second image;Then, can based on the first image and At least two target objects generate target image.Based on this method, terminal is according to the second object of at least one of second image Or first the first object in panoramic picture, can obtain include at least two target objects target image.Without It constantly to be moved in the corresponding photographed scene of the first image by reference object (such as personage), so that terminal captured in real-time obtains Panoramic picture including multiple objects.In this way, the case where one object of user demand repeatedly occurs in Zhang Quanjing's image Under, it can be to avoid the complicated processes that reference object constantly moves in photographed scene, and avoid by reference object in shooting field There is the problem of ghost image or distortion in the panoramic picture quality for constantly moving in scape and terminal being caused to shoot.It can improve end Hold the quality of the panoramic picture of shooting.
In one possible implementation, image generating method provided in an embodiment of the present invention, at least two targets pair As for based on the first object generation in the first image.Specifically, above-mentioned steps 202 can pass through step 202a and step Rapid 202b is realized:
Step 202a, terminal receives first input of the user to the first object in the first image.
Step 202b, terminal is inputted in response to first, and the first object in the first image of duplication at least once, obtains at least Two target objects, and each target object is shown to the target position inputted to the first input.
In application scenarios 1, terminal can replicate the first object, and paste on the first image and show that at least one is multiple The first object after system.Wherein, at least two target objects include the first object after the first object and at least one duplication.
It is understood that when terminal replicates the first object from the first image, the first object for including in the first image It can continue to exist, and the display position of the first object can be constant.
In addition, terminal can be sheared and replicate the first object, and pastes on the first image and show at least two duplications The first object afterwards.Wherein, at least two target objects are the first object after at least two shearings.
It is understood that still including first pair in the first image when terminal is from first the first object of image cut As, and the display position of the first object can change.
Wherein, each object at least two target objects is to execute paste operation to the first object of shearing to obtain 's.Alternatively, a part of object at least two target objects be paste operation is executed to the first object of shearing to obtain, and Another part object at least two target objects is object in the above-mentioned a part of object of duplication, executes paste operation again and obtain It arrives.
Optionally, the display position of the object at least two target objects other than the first object on the first image It sets, can be triggered and be determined by user, perhaps determined by terminal according to default queueing discipline or determined at random by terminal.Example Property, default queueing discipline is to be uniformly distributed multiple objects in the picture.
Illustratively, each target object is shown in the target position that the first input is inputted at least two target objects It sets, i.e., the display position of each target object is triggered by user.
Optionally, the first input may include the first son input and the second son input, and the first son input (inputting 1) is used for Triggering terminal identifies that the input of the first object, the second son input (inputting 2) obtain at least two targets pair for triggering terminal The input of elephant.
It should be noted that the screen of terminal provided in an embodiment of the present invention can be touch screen, which can be used In the input of reception user, and the corresponding content of the input is shown to the user in response to the input.Wherein, above-mentioned first son is defeated Enter to be touch-screen input, fingerprint input, gravity input, key-press input etc..Wherein, touch-screen input is touch-control of the user to terminal Pressing input, the long-pressing of screen input, slidably input, click input, the input (input of user near touch screen) etc. that suspends is defeated Enter.Fingerprint input is user to the sliding fingerprint of the Fingerprint Identification Unit of terminal, long-pressing fingerprint, click fingerprint and to double-click fingerprint etc. defeated Enter.Gravity input is that user inputs the shaking of terminal specific direction, shaking of specific times etc..Key-press input corresponds to user The keys such as power key, volume key, Home key to terminal click input, double-click input, long-pressing input, combination button input etc. Input.Specifically, the embodiment of the present invention is not especially limited the mode of the first son input, it can be any achievable side Formula.
Illustratively, the first son input can be user's input to the first object on the first image, such as to first pair The long-pressing of elephant inputs.Certainly, the first son input can also be other possible inputs, and such as the first son input can also exist for user Sliding trace slidably inputs on screen to be circular, and the present invention is not especially limit this.
Optionally, after terminal determines the first object, terminal can show the first object according to default display effect.This When, user can know that terminal defines the first object by the display effect of the first object.
Illustratively, default display effect may include following at least one: being highlighted object (such as the first object), hangs Floating display object adds frame for object (such as the frame of default thickness, color, line style, shape).
Optionally, it in the embodiment of the present invention, may be displayed in the first image according to the first object that preset rules are shown Predeterminated position (such as center of the first image), or the position where the first object itself that be shown in the first image and include It sets.
It is understood that user can be in multiple object in the case where the first image includes multiple objects Each object carries out the first son input respectively, determines multiple first objects respectively with triggering terminal.
Specifically, user can using triggering terminal by all or part of object in objects multiple in the first image as first Object.
Further, the description of the input form of the second son input is referred in above-described embodiment to the first son input Associated description, the embodiment of the present invention is not described in detail this.
Illustratively, second son input can for user to shown according to preset rules the first object (as replicate after First object or shearing after the first object) dragging input.Specifically, the first object can be dragged to the first figure by user As upper any display position, at least two target objects are generated based on the first object to realize, and show on the first image At least two second target objects.Specifically, the first object is dragged in the first image by terminal by one second son input A display position after, can be pasted in the display position and displaying duplication or the first object after cliping and pasting.At this point, at least The display position of each target object on the first image in two target objects, to trigger determination by user.
Wherein, terminal can replicate the first object, alternatively, shearing the first object, with shown on the first panoramic picture to Few two target objects.In this way, being conducive to improve the diversity that terminal obtains at least two target objects.
Optionally, in the embodiment of the present invention, user can be selected from the second image by an input triggering terminal to Few second object, and at least two target objects are generated based at least one second object, i.e., so that at least two targets Object includes the second object of at least one of the second image.
In application scenarios 2, terminal, can be respectively in the first image for the second object of at least one of the second object Upper stickup simultaneously shows the object replicated by each second object, to generate and show at least two target objects.
Specifically, terminal is in the second image after replicating or shearing the second object, it can first will be after duplication or shearing Second object is shown on the first image, is such as shown on the center of the first panoramic picture.Then, then on the first image Other objects obtained based on the second object are shown, to show at least two target objects.
Similar, the second object life of at least one of the second image is based on by an input triggering terminal for user At the detailed description of at least two target objects, it is referred in above-described embodiment pass through the first input triggering terminal base to user The first object in the first image generates the associated description of at least two target objects, and the embodiment of the present invention is no longer superfluous to this It states.
It should be noted that image generating method provided in an embodiment of the present invention, user can input by first, according to User demand triggering terminal determines the first object, and at least two generated based on the first object are shown on the first panoramic picture Target object.In this way, being conducive to improve the controllability for the target image that SS later generates, so that target image meets user and needs It asks.
In one possible implementation, image generating method provided in an embodiment of the present invention, in application scenarios 2 on After stating step 201, before step 202, can also include step 201a:
Step 201a, terminal shoots the second image, and the background of the second image is identical as at least partly background in the first image.
Wherein, at least partly background is identical in the background with the first image of the second image, illustrates the second image and One image is the image for same photographed scene.
Optionally, the second image and the first image are terminal using the shooting of same shooting process.
Specifically, the image of terminal captured in real-time is first in a pan-shot process in camera application program Image and the second image.Then, terminal can identify the second object of at least one of second image, and according at least one Second object obtains at least two target objects.To which terminal can show at least two target objects on the first image.
Optionally, in a pan-shot process in camera application program, terminal shooting obtain the first image it Afterwards, user can be prompted to carry out the input that triggering terminal shoots the second image.
Illustratively, terminal can show some prompt informations in current shooting preview interface, such as " please shoot figure map Picture " or " whether shooting character image ", to prompt user's triggering terminal photographic subjects image.Wherein, user to shooting control (such as Shoot control 312) input, can with triggering terminal shoot the second image.Then, terminal can be in current shooting preview interface Show the second image.Wherein, terminal can show the first image and the second image simultaneously on an interface, or on different boundaries The first image and the second image are shown on face respectively.
Optionally, after terminal shoots to obtain the first image, terminal can directly prompt the user whether the second figure of shooting Picture;Alternatively, reresenting whether user claps in the case that terminal can not include any object in detecting current first image Take the photograph the second image.
Illustratively, in conjunction with Fig. 3 and Fig. 5, as shown in fig. 6, for a kind of terminal display content provided in an embodiment of the present invention Schematic diagram.It does not include object in the panoramic picture 51 shown in the shooting preview interface that (a) in Fig. 6 is shown.In Fig. 6 (b) prompt information " character image please be shoot " and " determination " control are also shown in the shooting preview interface shown.Wherein, exist After user inputs " determination " control shown of (b) in Fig. 6 and shooting control 312, terminal can be shown as in Fig. 5 (a) shown in image 52 and panoramic picture 51.It wherein, include object 521 in image 52, which can be used as above-mentioned At least one second object.The camera application program can run photograph taking process, to support terminal to shoot character image.
Wherein, the second image can be include the image of object, and the second image is not panoramic picture.In this way, even if Object in the photographed scene of two images is mobile, the object in the second image that terminal is shot usually be not in ghost image or The phenomenon that distortion.
Optionally, the second image provided in an embodiment of the present invention may include one or more image, i.e., one or more Picture.
It should be noted that since terminal can shoot the first image and the second image in same shooting process, Allow the first image and the second image to correspond to same photographed scene, that is, realizes in background and the first image in the second image At least partly background is identical.To, the object in target image that subsequent terminal is generated corresponds to same photographed scene, So that the panoramic picture that terminal generates has real-time and diversity.
In one possible implementation, image generating method provided in an embodiment of the present invention, above-mentioned steps 202 can be with It is realized by step 204 and step 205:
Step 204, terminal obtain identical with the background of i-th of first subregions in the first image with the second image I-th of second subregions, i are positive integer.
It is understood that may include multiple second subregions in the second image, i-th of second subregions are multiple One in second subregion, it may include one or more second objects in each second subregion.
Step 205, terminal are based on i-th of first subregions and i-th of second subregions, and on the first image, display is extremely Few two target objects.
Specifically, terminal after shooting obtains the first image and the second image, can compare the first image background and The background of second image.Wherein, terminal can determine each second pair for the second object of at least one of the second image As background in the target image, i.e. determination obtains the second subregion where the background;Then, terminal checks the first image Whether include background with the first Background matching in background, that is, checks background and second subregion identical one in the first image A first subregion;If in the background of the first image including the second subregion identical with the background of second subregion, eventually End will show corresponding second object on first subregion of the first image, to show at least two target objects.
Optionally, in the embodiment of the present invention, above-mentioned steps 205 can be realized by step 205a:
Step 205a, terminal replaces with the picture material of i-th of first subregions in the image of i-th of second subregions Hold, i-th of second subregions include i-th of second objects.
Specifically, the picture material of i-th of first subregions is replaced with second pair in i-th of second subregions by terminal As and background.
In this way, terminal compares after obtaining identical i-th of first subregions of background and i-th of second subregions, by i-th The picture material of a first subregion replaces with the picture material of i-th of second subregions, and can realize will be in the second image At least one second object show on the first image, that is, realize and show at least two target images on the first image.
Optionally, in the embodiment of the present invention, above-mentioned steps 205 can be realized by step 205b and step 205c:
Step 205b, terminal extracts the i-th object images of i-th of second objects of i-th of second subregions.
Wherein, i-th of second objects are the object in the second object of at least one of the second image.
Specifically, terminal can determine identical i-th of second subregions of background and i-th of first subregions, and adopt Region of i-th of second objects in i-th of second subregions is determined with technologies such as image segmentations.
Step 205c, target area of the terminal in i-th of first subregions shows the i-th object images, wherein target Region is region corresponding with viewing area of i-th of second objects in the second image in i-th of first subregions.
Specifically, terminal determine i-th of second objects after the region in i-th of second subregions, it is just determining To target area of i-th object images in i-th of first subregions.I.e. by i-th of first subregions with i-th second pair As the corresponding region in viewing area in the second image is determined as target area.
In this way, terminal is to synthesize lesser i-th object images of size with the first image, target image is generated. In this way, be conducive to that the trace that image in target image synthesizes is less, at least two target objects are improved on the first image The quality for the panoramic picture that display effect, i.e. raising terminal generate.
It should be noted that image generating method provided in an embodiment of the present invention, terminal can be by comparing the first image In background and the second image in background, determine display position of at least two target objects in the first image.In this way, Be conducive to improve the display effect of at least two target objects on the first image, that is, improve the second panorama sketch being subsequently generated The quality of picture.
In one possible implementation, image generating method provided in an embodiment of the present invention, terminal include that can be rotated Camera.It specifically, above-mentioned steps 201 can be realized by step 206, and can also include step before step 202 Rapid 207:
Step 206, terminal control camera rotate first angle according to first direction, and are clapped during rotation It takes the photograph, obtains the first image.
Optionally, rotatable camera can be universal camera, i.e. the camera can be rotated along any direction.
In addition, optional, rotational angle that rotatable camera is supported along a direction (such as first direction) can be with For the angle in 0 degree to 360 degree.
For example, the direction that above-mentioned first direction rotates clockwise for camera along the circular arc in a level, first jiao Degree can be 0 to the angle between 180 degree.
Optionally, when terminal shoots image by rotatable camera, it can recorde camera shooting head-turned angle, so that Every image of terminal shooting corresponds to a rotational angle (i.e. camera shoots to obtain the image with the rotational angle).
Step 207, terminal control camera rotate second angle according to first direction, and are clapped during rotation It takes the photograph, obtains the second image;Wherein, second angle is less than or equal to first angle.
Illustratively, second angle can be the angle between 150 to 170 degree.
So, it is ensured that there is region identical with the background of the second image in the first image.To which subsequent terminal can The second object of at least one of second image and background to be shown on the first image, shown on the first image with realizing Show at least two target objects.
As shown in fig. 7, being a kind of structural schematic diagram of possible terminal provided in an embodiment of the present invention.Shown in Fig. 7 Terminal 70 includes: shooting module 701, display module 702 and generation module 703;Shooting module 701, for shooting the first image; Display module 702, the first image for obtaining in shooting module 701 show at least two target objects;Generation module 703, the first image and at least two target objects for being shown based on display module 702 generate target image;Wherein, until Few two target objects are based on the first object generation in the first image or at least two target objects include the second figure The second object of at least one of picture.
Optionally, at least two target objects are to be generated based on the first object in the first image;Display module 702, Specifically for receiving first input of the user to the first object in the first image;In response to the first input, the first image is replicated In the first object at least once, obtain at least two target objects, and each target object shown defeated to the first input institute The target position entered.
Optionally, at least two target objects include the second object of at least one of the second image;Shooting module 701, It is also used to display module 702 on the first image, before showing at least two target objects, shoots the second image, the second image Background it is identical as at least partly background in the first image.
Optionally, display module 702, specifically for sub with i-th first in the first image in acquisition and the second image Identical i-th of second subregions of the background in region;Based on i-th of first subregions and i-th of second subregions, in the first figure As upper, at least two target objects of display;Wherein, i is positive integer.
Optionally, display module 702, specifically for replacing with the picture material of i-th of first subregions described i-th The picture material of second subregion, i-th of second subregions include i-th of second objects.
Optionally, display module 702 be specifically used for extract i-th of second subregions i-th of second objects i-th pair as Image;Target area in i-th of first subregions shows the i-th object images, wherein target area is i-th first sons Region corresponding with viewing area of i-th of second objects in the second image in region.
Optionally, terminal includes rotatable camera;Shooting module 701 is specifically used for control camera according to first Direction rotates first angle, and is shot during rotation, and the first image is obtained;And display module 702 is in the first figure As upper, before showing at least two target objects, control camera rotates second angle according to first direction, and in rotation process In shot, obtain the second image;Wherein, second angle is less than or equal to first angle.
Terminal 70 provided in an embodiment of the present invention can be realized each process that terminal is realized in above method embodiment, be It avoids repeating, which is not described herein again.
Terminal provided in an embodiment of the present invention can shoot the first image;On the first image, at least two targets are shown Object, and at least two target objects are based on the first object generation in the first image or at least two target objects Including the second object of at least one of second image;Then, the first image and at least two target objects can be based on, are generated Target image.Based on this method, terminal is according in the second object of at least one of second image or the first panoramic picture First object, can obtain include at least two target objects target image.Without passing through reference object (such as people Object) constantly moved in the corresponding photographed scene of the first image so that terminal captured in real-time obtain include multiple objects panorama Image.In this way, in the case where one object of user demand repeatedly occurs in Zhang Quanjing's image, it can be to avoid reference object The complicated processes constantly moved in photographed scene, and avoid and constantly moved in photographed scene by reference object and lead to end There is the problem of ghost image or distortion in the panoramic picture quality that end shooting obtains.The matter of the panoramic picture of terminal shooting can be improved Amount.
Fig. 8 is a kind of hardware structural diagram of terminal provided in an embodiment of the present invention, which includes but unlimited In: radio frequency unit 101, network module 102, audio output unit 103, input unit 104, sensor 105, display unit 106, The components such as user input unit 107, interface unit 108, memory 109, processor 110 and power supply 111.Art technology Personnel are appreciated that the restriction of the not structure paired terminal of terminal structure shown in Fig. 8, terminal may include than illustrate it is more or Less component perhaps combines certain components or different component layouts.In embodiments of the present invention, terminal includes but not It is limited to mobile phone, tablet computer, laptop, palm PC, car-mounted terminal, wearable device and pedometer etc..
Wherein, input unit 104, for shooting the first image;Display unit 106, for what is shot in input unit 104 On first image, at least two target objects are shown;Processor 110, for according to 106 first image of display unit and at least two A target object generates target image;Wherein, at least two target objects are to be generated based on the first object in the first image Or at least two target objects include the second object of at least one of the second image.
Terminal provided in an embodiment of the present invention can shoot the first image;On the first image, at least two targets are shown Object, and at least two target objects are based on the first object generation in the first image or at least two target objects Including the second object of at least one of second image;Then, the first image and at least two target objects can be based on, are generated Target image.Based on this method, terminal is according in the second object of at least one of second image or the first panoramic picture First object, can obtain include at least two target objects target image.Without passing through reference object (such as people Object) constantly moved in the corresponding photographed scene of the first image so that terminal captured in real-time obtain include multiple objects panorama Image.In this way, in the case where one object of user demand repeatedly occurs in Zhang Quanjing's image, it can be to avoid reference object The complicated processes constantly moved in photographed scene, and avoid and constantly moved in photographed scene by reference object and lead to end There is the problem of ghost image or distortion in the panoramic picture quality that end shooting obtains.The matter of the panoramic picture of terminal shooting can be improved Amount.
It should be understood that the embodiment of the present invention in, radio frequency unit 101 can be used for receiving and sending messages or communication process in, signal Send and receive, specifically, by from base station downlink data receive after, to processor 110 handle;In addition, by uplink Data are sent to base station.In general, radio frequency unit 101 includes but is not limited to antenna, at least one amplifier, transceiver, coupling Device, low-noise amplifier, duplexer etc..In addition, radio frequency unit 101 can also by wireless communication system and network and other set Standby communication.
Terminal provides wireless broadband internet by network module 102 for user and accesses, and such as user is helped to receive and dispatch electricity Sub- mail, browsing webpage and access streaming video etc..
Audio output unit 103 can be received by radio frequency unit 101 or network module 102 or in memory 109 The audio data of storage is converted into audio signal and exports to be sound.Moreover, audio output unit 103 can also provide and end The relevant audio output of specific function (for example, call signal receives sound, message sink sound etc.) that end 100 executes.Sound Frequency output unit 103 includes loudspeaker, buzzer and receiver etc..
Input unit 104 is for receiving audio or video signal.Input unit 104 may include graphics processor (Graphics Processing Unit, GPU) 1041 and microphone 1042, graphics processor 1041 is in video acquisition mode Or the image data of the static images or video obtained in image capture mode by image capture apparatus (such as camera) carries out Reason.Treated, and picture frame may be displayed on display unit 106.Through graphics processor 1041, treated that picture frame can be deposited Storage is sent in memory 109 (or other storage mediums) or via radio frequency unit 101 or network module 102.Mike Wind 1042 can receive sound, and can be audio data by such acoustic processing.Treated audio data can be The format output that mobile communication base station can be sent to via radio frequency unit 101 is converted in the case where telephone calling model.
Terminal 100 further includes at least one sensor 105, such as optical sensor, motion sensor and other sensors. Specifically, optical sensor includes ambient light sensor and proximity sensor, wherein ambient light sensor can be according to ambient light Light and shade adjusts the brightness of display panel 1061, and proximity sensor can close display panel when terminal 100 is moved in one's ear 1061 and/or backlight.As a kind of motion sensor, accelerometer sensor can detect in all directions (generally three axis) and add The size of speed can detect that size and the direction of gravity when static, can be used to identify terminal posture (such as horizontal/vertical screen switching, Dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, tap) etc.;Sensor 105 can be with Including fingerprint sensor, pressure sensor, iris sensor, molecule sensor, gyroscope, barometer, hygrometer, thermometer, Infrared sensor etc., details are not described herein.
Display unit 106 is for showing information input by user or being supplied to the information of user.Display unit 106 can wrap Display panel 1061 is included, liquid crystal display (Liquid Crystal Display, LCD), Organic Light Emitting Diode can be used Forms such as (Organic Light-Emitting Diode, OLED) configure display panel 1061.
User input unit 107 can be used for receiving the number or character information of input, and generates and set with the user of terminal It sets and the related key signals of function control inputs.Specifically, user input unit 107 include touch panel 1071 and other Input equipment 1072.Touch panel 1071, also referred to as touch screen, collect user on it or nearby touch operation (such as User is using any suitable objects or attachment such as finger, stylus on touch panel 1071 or near touch panel 1071 Operation).Touch panel 1071 may include both touch detecting apparatus and touch controller.Wherein, touch detecting apparatus is examined The touch orientation of user is surveyed, and detects touch operation bring signal, transmits a signal to touch controller;Touch controller from Touch information is received on touch detecting apparatus, and is converted into contact coordinate, then gives processor 110, receives processor 110 The order sent simultaneously is executed.Furthermore, it is possible to using multiple types such as resistance-type, condenser type, infrared ray and surface acoustic waves Realize touch panel 1071.In addition to touch panel 1071, user input unit 107 can also include other input equipments 1072. Specifically, other input equipments 1072 can include but is not limited to physical keyboard, function key (such as volume control button, switch Key etc.), trace ball, mouse, operating stick, details are not described herein.
Further, touch panel 1071 can be covered on display panel 1061, when touch panel 1071 is detected at it On or near touch operation after, send processor 110 to determine the type of touch event, be followed by subsequent processing device 110 according to touching The type for touching event provides corresponding visual output on display panel 1061.Although in fig. 8, touch panel 1071 and display Panel 1061 is the function that outputs and inputs of realizing terminal as two independent components, but in certain embodiments, it can The function that outputs and inputs of terminal is realized so that touch panel 1071 and display panel 1061 is integrated, is not limited herein specifically It is fixed.
Interface unit 108 is the interface that external device (ED) is connect with terminal 100.For example, external device (ED) may include it is wired or Wireless head-band earphone port, external power supply (or battery charger) port, wired or wireless data port, memory card port, For connecting port, the port audio input/output (I/O), video i/o port, ear port of the device with identification module Etc..Interface unit 108 can be used for receiving the input (for example, data information, electric power etc.) from external device (ED) and will One or more elements that the input received is transferred in terminal 100 or can be used for terminal 100 and external device (ED) it Between transmit data.
Memory 109 can be used for storing software program and various data.Memory 109 can mainly include storing program area The storage data area and, wherein storing program area can (such as the sound of application program needed for storage program area, at least one function Sound playing function, image player function etc.) etc.;Storage data area can store according to mobile phone use created data (such as Audio data, phone directory etc.) etc..In addition, memory 109 may include high-speed random access memory, it can also include non-easy The property lost memory, a for example, at least disk memory, flush memory device or other volatile solid-state parts.
Processor 110 is the control centre of terminal, using the various pieces of various interfaces and the entire terminal of connection, is led to It crosses operation or executes the software program and/or module being stored in memory 109, and call and be stored in memory 109 Data execute the various functions and processing data of terminal, to carry out integral monitoring to terminal.Processor 110 may include one Or multiple processing units;Preferably, processor 110 can integrate application processor and modem processor, wherein application processing The main processing operation system of device, user interface and application program etc., modem processor mainly handles wireless communication.It can manage Solution, above-mentioned modem processor can not also be integrated into processor 110.
Terminal 100 can also include the power supply 111 (such as battery) powered to all parts, it is preferred that power supply 111 can be with It is logically contiguous by power-supply management system and processor 110, thus by power-supply management system realize management charging, electric discharge, with And the functions such as power managed.
In addition, terminal 100 includes some unshowned functional modules, details are not described herein.
Preferably, the embodiment of the present invention also provides a kind of terminal, including processor 110, and memory 109 is stored in storage It is real when which is executed by processor 110 on device 109 and the computer program that can be run on the processor 110 Each process of existing above-mentioned image generating method embodiment, and identical technical effect can be reached, to avoid repeating, here no longer It repeats.
The embodiment of the present invention also provides a kind of computer readable storage medium, and meter is stored on computer readable storage medium Calculation machine program, the computer program realize each process of above-mentioned image generating method embodiment, and energy when being executed by processor Reach identical technical effect, to avoid repeating, which is not described herein again.Wherein, the computer readable storage medium, such as only Read memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic disk Or CD etc..
It should be noted that, in this document, the terms "include", "comprise" or its any other variant are intended to non-row His property includes, so that the process, method, article or the device that include a series of elements not only include those elements, and And further include other elements that are not explicitly listed, or further include for this process, method, article or device institute it is intrinsic Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including being somebody's turn to do There is also other identical elements in the process, method of element, article or device.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side Method can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but in many cases The former is more preferably embodiment.Based on this understanding, technical solution of the present invention substantially in other words does the prior art The part contributed out can be embodied in the form of software products, which is stored in a storage medium In (such as ROM/RAM, magnetic disk, CD), including some instructions are used so that a terminal (can be mobile phone, computer, service Device, air conditioner or network equipment etc.) execute method described in each embodiment of the present invention.
The embodiment of the present invention is described with above attached drawing, but the invention is not limited to above-mentioned specific Embodiment, the above mentioned embodiment is only schematical, rather than restrictive, those skilled in the art Under the inspiration of the present invention, without breaking away from the scope protected by the purposes and claims of the present invention, it can also make very much Form belongs within protection of the invention.

Claims (10)

1. a kind of image generating method is applied to terminal, which is characterized in that the described method includes:
Shoot the first image;
In the first image, at least two target objects are shown;
Based on the first image and at least two target object, target image is generated;
Wherein, at least two target object be based in the first image the first object generate or it is described extremely Few two target objects include the second object of at least one of the second image.
2. the method according to claim 1, wherein at least two target object is based on first figure What the first object as in generated;
It is described in the first image, show at least two target objects, comprising:
Receive first input of the user to the first object in the first image;
It is inputted in response to described first, the first object in duplication the first image at least once, obtains at least two targets Object, and each target object is shown to the target position inputted to first input.
3. the method according to claim 1, wherein at least two target object includes in the second image At least one second object;
It is described in the first image, show at least two target objects before, the method also includes:
The second image is shot, the background of second image is identical as at least partly background in the first image.
4. according to the method described in claim 3, it is characterized in that, described in the first image, at least two mesh of display Mark object, comprising:
It obtains and i-th identical with the background of i-th of first subregions in the first image in second image the Two subregions;
Based on i-th of first subregions and i-th of second subregions, in the first image, display at least two A target object;
Wherein, i is positive integer.
5. according to the method described in claim 4, it is characterized in that, described be based on i-th of first subregions and described i-th A second subregion shows at least two target objects in the first image, comprising:
The picture material of i-th of first subregions replaces with to the picture material of i-th of second subregions, described I the second subregions include i-th of second objects.
6. according to the method described in claim 4, it is characterized in that, described be based on i-th of first subregions and described i-th A second subregion shows at least two target objects in the first image, comprising:
Extract the i-th object images of i-th of second objects of i-th of second subregions;
Target area in i-th of first subregions shows i-th object images, wherein the target area is Region corresponding with viewing area of i-th of second objects in second image in i-th of first subregions.
7. the method according to claim 1, wherein the terminal includes rotatable camera;
The first image of the shooting, comprising:
It controls camera and rotates first angle according to first direction, and shot during rotation, obtain the first image;
It is described in the first image, show at least two target objects before, further includes:
It controls camera and rotates second angle according to the first direction, and shot during rotation, obtain the second figure Picture;
Wherein, the second angle is less than or equal to the first angle.
8. a kind of terminal, which is characterized in that the terminal includes: shooting module, display module and generation module;
The shooting module, for shooting the first image;
The display module, the first image for obtaining in the shooting module show at least two target objects;
The generation module, the first image and at least two target pair for being shown based on the display module As generating target image;
Wherein, at least two target object be based in the first image the first object generate or it is described extremely Few two target objects include the second object of at least one of the second image.
9. a kind of terminal, which is characterized in that including processor, memory and be stored on the memory and can be in the processing The computer program run on device is realized when the computer program is executed by the processor as any in claim 1 to 7 The step of image generating method described in item.
10. a kind of computer readable storage medium, which is characterized in that store computer journey on the computer readable storage medium Sequence, the image generating method as described in any one of claims 1 to 7 is realized when the computer program is executed by processor Step.
CN201910472529.6A 2019-05-31 2019-05-31 Image generation method and terminal Active CN110233966B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910472529.6A CN110233966B (en) 2019-05-31 2019-05-31 Image generation method and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910472529.6A CN110233966B (en) 2019-05-31 2019-05-31 Image generation method and terminal

Publications (2)

Publication Number Publication Date
CN110233966A true CN110233966A (en) 2019-09-13
CN110233966B CN110233966B (en) 2021-06-15

Family

ID=67858330

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910472529.6A Active CN110233966B (en) 2019-05-31 2019-05-31 Image generation method and terminal

Country Status (1)

Country Link
CN (1) CN110233966B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115988322A (en) * 2022-11-29 2023-04-18 北京百度网讯科技有限公司 Method and device for generating panoramic image, electronic equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20140146884A (en) * 2013-06-18 2014-12-29 삼성전자주식회사 Method for editing images captured by portable terminal and the portable terminal therefor
CN105306862A (en) * 2015-11-17 2016-02-03 广州市英途信息技术有限公司 Scenario video recording system and method based on 3D virtual synthesis technology and scenario training learning method
CN108174109A (en) * 2018-03-15 2018-06-15 维沃移动通信有限公司 A kind of photographic method and mobile terminal
CN108495029A (en) * 2018-03-15 2018-09-04 维沃移动通信有限公司 A kind of photographic method and mobile terminal
CN108984677A (en) * 2018-06-28 2018-12-11 维沃移动通信有限公司 A kind of Image Mosaic method and terminal

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20140146884A (en) * 2013-06-18 2014-12-29 삼성전자주식회사 Method for editing images captured by portable terminal and the portable terminal therefor
CN105306862A (en) * 2015-11-17 2016-02-03 广州市英途信息技术有限公司 Scenario video recording system and method based on 3D virtual synthesis technology and scenario training learning method
CN108174109A (en) * 2018-03-15 2018-06-15 维沃移动通信有限公司 A kind of photographic method and mobile terminal
CN108495029A (en) * 2018-03-15 2018-09-04 维沃移动通信有限公司 A kind of photographic method and mobile terminal
CN108984677A (en) * 2018-06-28 2018-12-11 维沃移动通信有限公司 A kind of Image Mosaic method and terminal

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115988322A (en) * 2022-11-29 2023-04-18 北京百度网讯科技有限公司 Method and device for generating panoramic image, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN110233966B (en) 2021-06-15

Similar Documents

Publication Publication Date Title
CN109862267A (en) A kind of image pickup method and terminal device
CN109547694A (en) A kind of image display method and terminal device
CN110300274B (en) Video file recording method, device and storage medium
CN109743498A (en) A kind of shooting parameter adjustment method and terminal device
CN109639969A (en) A kind of image processing method, terminal and server
CN109857495A (en) A kind of display control method and terminal device
CN111597370B (en) Shooting method and electronic equipment
CN109656450A (en) A kind of image display method and terminal device
CN110069180A (en) A kind of function control method and terminal device
CN109495616A (en) A kind of photographic method and terminal device
CN108881719A (en) A kind of method and terminal device switching style of shooting
CN110798621A (en) Image processing method and electronic equipment
CN110839174A (en) Image processing method and device, computer equipment and storage medium
CN110007822A (en) A kind of interface display method and terminal device
CN108108079A (en) A kind of icon display processing method and mobile terminal
CN108924422A (en) A kind of panorama photographic method and mobile terminal
CN109120853A (en) A kind of long exposure image image pickup method and terminal
CN108881721A (en) A kind of display methods and terminal
CN108881723A (en) A kind of image preview method and terminal
CN109246351A (en) A kind of patterning process and terminal device
CN108174109A (en) A kind of photographic method and mobile terminal
CN110493454A (en) A kind of image pickup method and terminal device
CN109167917A (en) A kind of image processing method and terminal device
CN109547700A (en) Photographic method and terminal
CN109327568A (en) A kind of method and mobile terminal switching camera

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant