CN108777766B - Multi-person photographing method, terminal and storage medium - Google Patents

Multi-person photographing method, terminal and storage medium Download PDF

Info

Publication number
CN108777766B
CN108777766B CN201810910870.0A CN201810910870A CN108777766B CN 108777766 B CN108777766 B CN 108777766B CN 201810910870 A CN201810910870 A CN 201810910870A CN 108777766 B CN108777766 B CN 108777766B
Authority
CN
China
Prior art keywords
shooting
image
photographic
subject
reference composition
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201810910870.0A
Other languages
Chinese (zh)
Other versions
CN108777766A (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 Co Ltd
Original Assignee
Vivo Mobile Communication 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 Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN201810910870.0A priority Critical patent/CN108777766B/en
Publication of CN108777766A publication Critical patent/CN108777766A/en
Application granted granted Critical
Publication of CN108777766B publication Critical patent/CN108777766B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

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/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/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/80Camera processing pipelines; Components thereof
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/222Studio circuitry; Studio devices; Studio equipment
    • H04N5/262Studio circuits, e.g. for mixing, switching-over, change of character of image, other special effects ; Cameras specially adapted for the electronic generation of special effects
    • H04N5/265Mixing

Abstract

The invention discloses a multi-person photographing method, a terminal and a computer readable storage medium, relates to the field of image processing, and can generate better photographed images for multiple photographed objects. The method comprises the following steps: detecting shooting information of N shooting objects in a shooting preview interface in a state that M reference composition objects are displayed on the shooting preview interface; for each of the N photographic subjects, acquiring an intermediate image corresponding to the photographic subject to obtain N intermediate images when it is detected that the photographic information of the photographic subject matches the photographic information of the corresponding reference composition subject; performing image synthesis based on the N intermediate images, and outputting a target image; wherein the shooting information includes at least one of a shooting position and a shooting posture; n is an integer greater than 1, and M is a positive integer. The invention is used for photographing of multiple photographic objects.

Description

Multi-person photographing method, terminal and storage medium
Technical Field
The embodiment of the invention relates to the field of image processing, in particular to a multi-person photographing method, a terminal and a storage medium.
Background
With the development of technology and the progress of the era, people rarely use a separate camera to take pictures, and a smart phone is used as a shooting device. Nowadays, a smart phone has been widely used as a commonly used photographing device.
In the prior art, when a single photo is shot, after a shooting object is confirmed to be in a position (position) and the expression on the face is in place, a shooting button is pressed, and a camera captures an image to generate a photo; when a group photo is shot, a photographer waits for all people to stand at the position of the photographer, the photographer is prompted to keep the expression, then the photographing button is pressed, two photographing scenes are all that all photographing objects are ready, the photographing button can be pressed finally to obtain a photo, and if a certain photographing object needs to leave temporarily before the photographing button is pressed, the photographer must wait until the photographing object comes back, whether each photographing object is ready is confirmed again, and then the photographing button can be pressed.
Disclosure of Invention
The embodiment of the invention provides a multi-person photographing method, a terminal and a storage medium, which aim to solve the problem that when an existing photographing mode is used for photographing a multi-person group photo, the shooting progress is influenced by the fact that a certain shooting object leaves.
In a first aspect, a method for photographing multiple persons is provided, including:
detecting shooting information of N shooting objects in a shooting preview interface in a state that M reference composition objects are displayed on the shooting preview interface;
for each of the N photographic subjects, acquiring an intermediate image corresponding to the photographic subject to obtain N intermediate images when it is detected that the photographic information of the photographic subject matches the photographic information of the corresponding reference composition subject;
performing image synthesis based on the N intermediate images, and outputting a target image;
wherein the shooting information includes at least one of a shooting position and a shooting posture; n is an integer greater than 1, and M is a positive integer.
In a second aspect, a terminal is provided, including:
the detection module is used for detecting the shooting information of N shooting objects in the shooting preview interface under the condition that the shooting preview interface displays M reference composition objects;
an obtaining module, configured to, for each of the N photographic subjects, obtain an intermediate image corresponding to the photographic subject to obtain N intermediate images when it is detected that the photographic information of the photographic subject matches the photographic information of the corresponding reference composition subject;
the processing module is used for carrying out image synthesis based on the N intermediate images and outputting a target image;
wherein the shooting information includes at least one of a shooting position and a shooting posture; n is an integer greater than 1, and M is a positive integer.
In a third aspect, a terminal is provided comprising a processor and a memory, the memory having stored thereon a computer program implementing the steps of the method according to the first aspect when the computer program is executed by the processor.
In a fourth aspect, a computer-readable storage medium is provided, having stored thereon a computer program, which, when executed, carries out the steps of the method according to the first aspect.
In the embodiment of the invention, the reference composition object is displayed firstly, and is taken as a reference, and under the condition that the shooting information of each shooting object is matched with the shooting information of the corresponding reference composition object, the intermediate image corresponding to each shooting object is obtained, the image synthesis is carried out, and the target image is output. In this way, the shooting object can use the reference composition object as a reference when shooting, and the intermediate image of the shooting object can be acquired under the condition of matching the shooting information of the reference composition object.
Drawings
Fig. 1 is a flowchart of a method for photographing a plurality of persons according to an embodiment of the present invention;
fig. 2 is a flowchart of a method for photographing a plurality of persons according to an embodiment of the present invention;
fig. 3A-3E are schematic diagrams illustrating an effect of a multi-user photographing method according to an embodiment of the present invention;
fig. 4A-4D are schematic diagrams illustrating effects of a multi-user photographing method according to an embodiment of the present invention;
FIGS. 5A-5E are schematic diagrams illustrating the effect of a main screen and an auxiliary screen according to an embodiment of the present invention;
fig. 6 is a block diagram of a terminal according to an embodiment of the present invention;
fig. 7 is a schematic diagram of a hardware structure of a terminal according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The multi-person photographing method provided by the embodiment of the invention can be executed by a terminal, and in the embodiment of the invention, the terminal is a device with photographing and/or shooting functions, such as a mobile phone, a tablet computer, a camera and the like.
The technical solutions provided by the embodiments of the present invention are described in detail below with reference to the accompanying drawings.
Fig. 1 is a flowchart of a method for photographing multiple persons according to an embodiment of the present invention. Referring to fig. 1, a method for photographing a plurality of persons according to an embodiment of the present invention may include:
in step 110, in a state where the photographing preview interface displays M reference composition objects, photographing information of N photographing objects in the photographing preview interface is detected.
Wherein the shooting information includes at least one of a shooting position and a shooting posture; n is an integer greater than 1, and M is a positive integer.
In the embodiment of the present invention, the object to be photographed may be an object photographed by the terminal, and the object may be, for example, a user, an animal, or the like. The multi-photographic subject may refer to a plurality of photographic subjects (i.e., two or more photographic subjects). For example, if 3 persons need to be group-filmed, each person is a photographic subject, and may be photographic subject a, photographic subject B, photographic subject C, and photographic subject D in this order.
In the embodiment of the present invention, the shooting preview interface may be an interface displayed in a viewfinder of the terminal.
In the embodiment of the present invention, the reference composition object may be a cartoon character or a character diagram drawn by lines to play a reference role. For example, a subject may be position-referred to at the time of photographing, and a reference composition object may have a photographing posture, a posture-reference for the subject, and the like.
In this step, when the shooting information includes the shooting position, detecting the shooting information of the N shooting objects in the shooting preview interface is specifically detecting the shooting position of the N shooting objects in the shooting preview interface. When the photographing information includes the photographing posture, the photographing information for detecting the N photographing subjects in the photographing preview interface is specifically to detect the photographing postures of the N photographing subjects in the photographing preview interface. When the photographing information includes the photographing position and the photographing orientation, the photographing information for detecting the N photographing subjects in the photographing preview interface is specifically the photographing position and the photographing orientation for detecting the N photographing subjects in the photographing preview interface.
The shooting position of the photographic subject is the position of the subject image formed by the photographic subject in the shooting preview interface.
And 120, for each of the N photographic subjects, acquiring an intermediate image corresponding to the photographic subject to obtain N intermediate images when it is detected that the photographic information of the photographic subject matches the photographic information of the corresponding reference composition subject.
Matching the photographing information of the photographing subject with the photographing information of the corresponding reference composition object may indicate that the photographing position of the photographing subject coincides with the position of the corresponding reference composition object or that the photographing posture of the photographing subject coincides with the posture of the corresponding reference composition object.
In the embodiments of the present invention, coincidence is a relative concept, not an absolute concept. The coincidence of the photographing position of the photographic subject in the photographing preview interface with the position of the reference composition object may indicate that the photographing position of the photographic subject in the photographing preview interface is mostly coincident with the position of the reference composition object, for example, more than a preset percentage (the preset percentage is generally more than 50%, such as 70% or 80%, etc.) is coincident. That is, in the present invention, it is not necessarily required that the position of the photographic subject in the photographic preview interface coincides with the position of the reference composition subject by 100%. Similarly, a consistent posture does not necessarily require 100% consistency.
In the process of detecting whether the shooting postures are matched, the contour of the shooting object and the contour of the corresponding reference composition object can be matched, and under the condition that the contours of the shooting object and the reference composition object are matched, the shooting posture of the shooting object and the shooting posture of the corresponding reference composition object are further matched. The contour matching can adopt a related image recognition method.
In the shooting process, when at least one of 4 shooting objects, namely the shooting object A, the shooting object B, the shooting object C and the shooting object D, needs to leave before shooting is finished in the shooting process, for example, the shooting object A, the shooting object B, the shooting object C and the shooting object D can leave successively, in the step, N is set to be 4, and for the shooting object A, a first intermediate image corresponding to the shooting object A is acquired under the condition that the shooting information of the shooting object A is matched with the shooting information of the corresponding reference composition object; next, for the photographic subject B, in a case where it is detected that the photographing information of the photographic subject B matches the photographing information of the corresponding reference composition subject, acquiring a second intermediate image corresponding to the photographic subject B; then, for the photographic subject C, under the condition that the photographic information of the photographic subject C is matched with the photographic information of the corresponding reference composition subject, acquiring a third intermediate image corresponding to the photographic subject C; and finally, for the shot object D, acquiring a fourth intermediate image corresponding to the shot object D under the condition that the shooting information of the shot object D is matched with the shooting information of the corresponding reference composition object, and obtaining 4 intermediate images. Therefore, after the first intermediate image is acquired, the shooting object A can leave, the shooting objects B, C and D can continue to swing, and the normal shooting is not affected even if people leave in the shooting process.
In the embodiment of the present invention, each intermediate image is an image obtained by image-capturing a certain subject, and is referred to as an intermediate image in the embodiment of the present invention because the captured image is not a final output image. It is to be understood that, in the embodiment of the present invention, the intermediate image of the photographic subject may be a subject image of the photographic subject. The subject image of the photographic subject includes an image including only the photographic subject itself (including only the photographic subject), or includes an image of a background in a certain range around the photographic subject in addition to an image including only the photographic subject itself. In the embodiment of the present invention, each photographic subject may have a corresponding intermediate image. After the intermediate image is obtained, the intermediate image corresponding to the shooting object can be displayed on a shooting preview interface.
And step 130, synthesizing images based on the N intermediate images and outputting a target image.
After the intermediate images of the respective objects are obtained, the N intermediate images are subjected to image synthesis to obtain a target image, and the target image is output.
The multi-person photographing method provided by the embodiment of the invention comprises the steps of firstly displaying a reference composition object, taking the reference composition object as a reference, acquiring an intermediate image corresponding to each photographic object under the condition that the photographic information of each photographic object is matched with the photographic information of the corresponding reference composition object, carrying out image synthesis, and outputting a target image. According to the embodiment of the invention, the corresponding intermediate image can be automatically acquired under the condition that the shooting information of each shooting object is matched with the shooting information of the corresponding reference composition object, and other shooting objects can continuously swing for a certain time due to the acquisition of the intermediate image corresponding to the shooting object even if the shooting object leaves, so that the normal shooting process is not influenced even if people leave in the shooting process, and the shooting progress is ensured to be not delayed.
In an embodiment of the present invention, for each of the N subjects, in the step 120, in a case that it is detected that the shooting information of the subject matches the shooting information of the corresponding reference composition subject, acquiring an intermediate image corresponding to the subject to obtain N intermediate images may include: acquiring, for an ith photographic subject among the N photographic subjects, an ith intermediate image including a first region of the ith photographic subject in a case where it is detected that photographing information of the ith photographic subject matches photographing information of an ith reference composition subject; updating the display content of the target area to the ith intermediate image; wherein i is more than 0 and less than or equal to N.
In the embodiment of the present invention, N denotes the total number of photographic subjects, and i denotes any one of the N photographic subjects. In the process of acquiring the intermediate image of one of the N shooting objects, whether each shooting object is matched with the corresponding shooting information is sequentially detected, and if the shooting objects are matched with the shooting information, the intermediate image of each shooting object is acquired, the display content of the target area is replaced, and the intermediate image is displayed in the target area. In this way, for any one of the N subjects, the corresponding intermediate image can be obtained and displayed in the above manner.
Note that, in the case where the terminal has only a home screen, the target area may be a display area on the home screen of the terminal. At this time, the updating the display content of the target area to the ith intermediate image may include: and updating the display content of a preview image area of the first area of the shooting preview interface into the ith intermediate image. Wherein the target area comprises a preview image area of the first area of the shooting preview interface. And in case that the terminal has a dual screen (i.e., a main screen and a sub screen), the updating the display contents of the target area to the ith intermediate image may include: and displaying the ith intermediate image in a second area corresponding to the first area in the second screen under the condition that the terminal comprises a first screen and a second screen and a shooting preview interface is displayed on the first screen. The target area comprises a second area corresponding to the first area in the second screen. According to the embodiment of the invention, the shooting preview interface and the intermediate image are respectively displayed through the two screens, so that the watching is more convenient. Therefore, the user can check the image effect of the current shooting object after acquiring the intermediate image of each shooting object, and check the final multi-user shooting effect after all shooting objects are shot. Therefore, the target area can be a preview image area where a corresponding shooting object is located in the main screen, can also be a second screen where the double-sided screen and the preview interface are located and are different from the first screen, and can be suitable for single-screen or double-screen intelligent terminals.
Further, after the updating the display content of the target area to the ith intermediate image, the method further includes:
and displaying prompt information, wherein the prompt information prompts that the shooting preparation work of the ith shooting object is completed. For example, the ith intermediate image is an intermediate image corresponding to the photographic subject a, and "the photographic subject a is ready to leave after the preparation for photographing is completed and the other person can continue to swing" may be displayed on the preview interface, thus prompting that the photographic subject a can leave.
In the multi-person photographing method provided in the embodiment of the present invention, optionally, before the image synthesis is performed based on the N intermediate images and the target image is output in step 130, the number of the photographing objects in the photographing preview interface may also be obtained; determining M reference composition objects based on the number of the shooting objects, wherein M is N; displaying the M reference composition objects. In the embodiment of the present invention, the number of reference composition objects displayed on the photographing preview interface is the same as the number of photographing objects. Therefore, the reference composition object and the shooting object can be ensured to be in one-to-one correspondence, and the multi-person shooting is more convenient. Meanwhile, all reference composition objects are displayed at one time, so that the reference function can be played, and the subsequent one-by-one matching of the shooting information of the shooting objects is facilitated.
In the multi-person photographing method provided in the embodiment of the present invention, optionally, before performing image synthesis based on the N intermediate images and outputting a target image in step 130, a kth reference composition object of a kth photographic object in a photographing preview interface may be determined, and the kth reference composition object is displayed in the photographing preview interface; determining a (k + 1) th reference composition object of a (k + 1) th photographic subject in a photographic preview interface and displaying the (k + 1) th reference composition object in the photographic preview interface under the condition that the photographing information of the (k) th photographic subject is matched with the photographing information of the (k) th reference composition object; wherein k is more than 0 and less than or equal to N. The embodiment of the invention can ensure that the positions of the reference composition objects have certain relevance based on the mode of determining the position of the next reference composition object based on the previous reference composition object, and further has better spatial position relation, thereby ensuring that the final synthesized image has better effect.
In the multi-person photographing method provided in the embodiment of the present invention, optionally, the performing image synthesis based on the N intermediate images in step 130, and outputting the target image may include:
and under the condition that the N intermediate images form the whole image content of the target image, synthesizing the N intermediate images into the target image and outputting the target image. That is, when each intermediate image is acquired, each intermediate image includes an image of a background within a certain range around the photographic subject, so that after the intermediate images of all the photographic subjects are acquired, all the intermediate images can be directly synthesized to obtain the target image without separately acquiring the background image.
And under the condition that the N intermediate images form partial image content of the target image, acquiring a background image displayed on the shooting preview interface, and synthesizing the N intermediate images and the background image into the target image and outputting the target image. That is to say, when each intermediate image is acquired, only the image included in the outline of the corresponding photographic subject may be extracted, so that each intermediate image only includes the image of the photographic subject itself (only the photographic subject), in this case, after the intermediate images of all the photographic subjects are acquired, the background image displayed on the photographing preview interface needs to be acquired, where the background image is an image of an area other than all the photographic subjects in the target image, and thus the N intermediate images and the background image are synthesized into a complete target image and output.
In an embodiment of the present invention, the reference composition object may be a subject in one composition recommendation template. The composition recommendation template may come from a library of composition recommendation modules and may be obtained in a variety of different ways. For example, one way to determine a composition recommendation template may be: and randomly selecting one composition recommendation template from the composition recommendation template library as the determined composition recommendation template. Another way to determine the composition recommendation template may be, for example: presenting a plurality of composition recommendation templates, each of the plurality of composition recommendation templates containing compositions of a plurality of subjects; receiving a selection of one of the plurality of composition recommendation templates by a user (e.g., a photographer); and taking the selected composition recommendation template as the determined composition recommendation template.
In an embodiment of the present invention, the determined composition recommendation template includes compositions of a plurality of subjects, where the number of subjects included in the composition recommendation template may be equal to the total number of photographic subjects. A position of a subject may be selected as a reference position of the photographic subject in the determined composition recommendation template. The process of selecting a composition position of a subject as the reference position of the first photographic subject may be: presenting the determined composition recommendation template; receiving a user selection of a location of one subject in the composition recommendation template; and taking the position of the selected subject as the reference position of the shooting object.
In an embodiment of the present invention, a subject that has not been selected may be selected from the determined composition recommendation templates as a reference composition object.
In one embodiment of the present invention, after determining the composition recommendation template, all subjects in the composition recommendation template may be displayed on the photographing preview interface. In the embodiment of the invention, all subjects in the determined composition recommendation template can be always displayed on the shooting preview interface until all shooting objects are shot. Of course, in the embodiment of the present invention, all subjects in the determined composition recommendation template may be displayed first, and after one subject in the composition recommendation template is selected, only the selected subject may be displayed on the shooting preview interface. That is, in the embodiment of the present invention, all subjects in the composition recommendation template may be always displayed, or all determined subjects in the composition recommendation template may be displayed first, and after the composition position of one subject in the composition recommendation template is selected, only the selected subject is displayed.
In the embodiment of the present invention, taking the first photographic subject and the second photographic subject as an example, after the intermediate image (for example, the main body image) of the first photographic subject is displayed on the photographic preview interface, when the second photographic subject is photographed, the real-time image of the first photographic subject does not need to be displayed again on the photographic preview interface. When the second shooting object is shot, the shooting preview interface can be only used for shooting the second shooting object, and other shooting objects are ignored or not shot (for example, the last shooting object of the second shooting object can leave the shooting field after shooting is finished). In this way, in the embodiment of the present invention, individual photographing of each of a plurality of photographic subjects one by one can be realized.
The multi-person photographing method provided by the embodiment of the invention comprises the steps of firstly displaying a reference composition object, taking the reference composition object as a reference, acquiring an intermediate image corresponding to each photographic object under the condition that the photographic information of each photographic object is matched with the photographic information of the corresponding reference composition object, carrying out image synthesis, and outputting a target image. According to the embodiment of the invention, the corresponding intermediate image can be automatically acquired under the condition that the shooting information of each shooting object is matched with the shooting information of the corresponding reference composition object, and other shooting objects can continuously swing for a certain time due to the acquisition of the intermediate image corresponding to the shooting object even if the shooting object leaves, so that the normal shooting process is not influenced even if people leave in the shooting process, and the shooting progress is ensured to be not delayed.
The invention will be further explained with reference to specific embodiments in the following with reference to the drawings. In the following description, the subject in the composition recommendation template may be the above-mentioned reference composition object. Meanwhile, it should be understood that the following description is only given by taking the shooting information as the shooting position. A multi-person photographing method when the photographing information is a photographing posture can be similarly obtained.
Fig. 2 shows a method of photographing a plurality of persons. As shown in fig. 2, the method for photographing a plurality of persons according to the embodiment of the present invention may include:
step 201, a composition position recommendation function is started.
The terminal device may provide a switch entry for a composition position recommendation function. After the terminal (e.g., a camera) displays the shooting preview interface, the composition position recommendation function may be turned on according to a user selection, or may be turned on by default. After the composition position recommending function is started, a multi-person composition guide interface can be displayed, for example, the user can select the number of people to take a picture, and the like.
Step 202, determine a composition recommendation template.
When the number of people taking photos is selected, one or more composition recommendation templates aiming at the selected number of people can be displayed on the main screen of the terminal, so that a user can select one composition recommendation template from the composition recommendation templates, and the composition recommendation template selected by the user can be used as the current composition recommendation template. Of course, when the composition recommendation template is determined, one composition recommendation template may be randomly selected from the composition recommendation template library as the current composition recommendation template.
Step 203, selecting a subject as a reference composition object of the current shooting object in the determined composition recommendation template.
The step may specifically be: and selecting a subject from the determined composition recommendation template by the user as a reference composition object of the current shooting object, or detecting the gesture of the current shooting object, and using the subject matched with the gesture in the determined composition recommendation template as the reference composition object of the current shooting object.
And 204, if the shooting position of the current shooting object in the shooting preview interface is coincident with the position of the reference composition object of the current shooting object, acquiring an intermediate image (a main body image) of the current shooting object.
In the embodiment of the present invention, the operation of acquiring a body image of a current photographic subject (matting) can be triggered by various operations. Such as a double-click screen operation, a long-press cutout region operation, etc.
After the current shooting object is shot, the current shooting object can leave the shooting place without continuously acquiring the image of the current shooting object.
And step 205, displaying the subject image of the current shooting object on a shooting preview interface, and shooting the next shooting object.
The above steps 203 to 205 may be repeated when the next photographic subject is photographed. The difference may be that a subject that has not been selected may be selected as a reference composition object of the next photographic subject when one subject is selected from the composition recommendation template.
The steps 203 to 205 may be repeated for each of the non-photographic subjects among the plurality of photographic subjects until all the photographic subjects are photographed.
Taking four-person photographing as an example, the determined composition recommendation template may be as shown in fig. 3A. The composition recommendation template in fig. 3A includes four bodies, from left to right, a first body 310, a second body 320, a third body 330, and a fourth body 340, which may be shown in the form of a dashed box before being unselected. The second subject 320 may be selected as a reference composition object for the first photographic subject in the composition recommendation template shown in fig. 3A, and as shown in fig. 3B, an image of the second subject 320 after being selected may be represented by a dotted line as a solid line, as a subject 321. After the first subject is photographed, a subject image thereof is captured (extracted) and displayed at a position corresponding to the second subject 320 on the photographing preview interface, as shown in fig. 3C, and reference numeral 322 shows the subject image of the first subject. On the photographing preview interface, a reference composition object for a second photographing object is selected, for example, a first subject 310 is selected, and as shown in fig. 3D, an image of the first subject 310 after being selected may be represented by a dotted line as a solid line, as a subject 311. After the second photographic subject is photographed, an image of the second photographic subject is captured and displayed on the next photographing preview interface together with the captured image of the first photographic subject, as shown in fig. 3E, and reference numeral 312 shows a subject image of the second photographic subject. And subsequently, a reference composition object aiming at the next shot object can be continuously selected from the third main body and the fourth main body, and images are collected until all the shot objects are shot, so that a final multi-person shooting group photo picture is formed.
According to the embodiment of the invention, the shot main body image of the current shot object is collected and displayed on the shooting preview interface, so that the shot object before shooting can be unnecessary when the next shot object is shot, and meanwhile, because the main body image of the shot object before shooting is presented on the shooting preview interface, the effect of shooting reference for the current shot object can be achieved without collecting the image of the shot object before shooting, and a better shooting effect for multiple shot objects is realized.
In the embodiment shown in fig. 2, it may be determined whether the composition position of the subject in the composition recommendation template matches the shooting position of the current shooting subject, and after each shooting of one person, the composition position of the next person is recommended from the composition recommendation template, and the composition positions of the subjects in the composition recommendation template may be always displayed in the shooting preview interface, so as to facilitate composition position selection.
It should be appreciated that, in the embodiment of the present invention, in addition to determining the reference composition object based on the composition recommendation template, the position of the reference composition object of the current photographic subject may be acquired based on the position of the reference composition object of the last photographic subject.
Specifically, if the current photographic subject is not the first photographic subject, at this time, the position of the reference composition object of the current photographic subject may be acquired based on the position of the reference composition object of the last photographic subject of the current photographic subject. The position of the reference composition object of the current photographic subject can be acquired based on the position of the reference composition object of the last photographic subject of the current photographic subject and the golden section point of the shooting preview interface. For example, the shooting preview interface is divided by the previous shot object, and the position of the golden section point of the larger shooting preview interface left after the division is taken as the position of the reference composition object of the current shot object. Of course, in the embodiment of the present invention, other suitable manners may also be used to obtain the shooting position of the current shooting object.
If the current photographic subject is the first photographic subject, the position of its corresponding reference composition subject may also come, for example, from some designated composition position, such as the screen center position, the screen third position, etc.
For each photographic subject, after the photographic position of the reference composition subject corresponding to the photographic subject is obtained, the intermediate image of the photographic subject can be acquired under the condition that the photographic position of the photographic subject in the photographic preview interface is coincident with the position of the reference composition subject corresponding to the photographic subject.
After all the shooting objects are shot, the shot images of all the shooting objects can be synthesized and output to form a multi-person shot picture, namely a group photo.
Referring to fig. 4A to 4D, the position of the reference composition object 410 corresponding to, for example, the first photographic object is shown in fig. 4A; when the photographing position of the first photographic subject in the photographing preview interface coincides with the position of the reference composition object thereof, an image of the first photographic subject is captured (extracted), as shown in fig. 4B, and reference numeral 411 shows a body image of the first photographic subject; the position of the reference composition object for the next photographic subject (i.e., the second photographic subject) may be subsequently acquired based on the position of the captured image 411 shown in fig. 4B, and the acquired position of the reference composition object 420 of the second photographic subject may be, for example, as shown in fig. 4C; when the photographing position of the second photographing object in the photographing preview interface does not coincide with the position of the reference composition object 420 shown in fig. 4C, the position of the reference composition object corresponding to the second photographing object may be newly acquired, and as shown in fig. 4D, the newly acquired photographing position of the second photographing object may be, for example, as indicated by reference numeral 420'. It is then possible to continuously detect whether the photographing position of the second photographing object in the photographing preview interface coincides with the position of the reference composition object 420' shown in fig. 4D, and perform image capturing when coinciding, and reacquire the position of the next reference composition object when not coinciding. And repeating the steps until all the shooting objects finish shooting, and forming the final multi-person shooting group photo picture.
It should be understood that, in the embodiment of the present invention, the terminal may include a main screen and an auxiliary screen, a shooting preview interface of the terminal may be always displayed on the main screen, and the acquired image of the shooting object may be displayed on the auxiliary screen. Specifically, in the embodiment of the present invention, each time a subject image of the current photographic subject is acquired, the subject image of the current photographic subject may be displayed on the sub-screen. Meanwhile, the generated multi-photographic subject image may be displayed on the sub-screen when photographing of all photographic subjects among the multi-photographic subjects is completed.
The following further explains the display related to the main and sub screens by means of fig. 5A to 5E, taking the embodiment shown in fig. 2 as an example. Fig. 5A shows a main-sub screen display when the composition recommendation template is determined. As shown in fig. 5A to 5E, the image with a blank upper side indicates the display of the sub screen, the lower picture indicates the display of the main screen, and the main screen shows four subjects from left to right: a first body 510, a second body 520, a third body 530, and a fourth body 540, which may be shown in dashed boxes before being selected. Fig. 5B shows the main and sub-screen display when a second subject from left to right in the composition recommendation template is selected, and the image of the second subject 520 after being selected may be represented by a dashed line as a solid line, as subject 521. Fig. 5C illustrates a display of the main and sub screens after a first subject is photographed and an image is captured, and reference numeral 522 illustrates a subject image of the first subject, the subject image 522 of the first subject corresponds to the second subject 520, and the position of the subject image 522 of the first subject is the same as the composition position of the second subject 520, and at this time, a subject image 522' of the first subject may be displayed on the sub screen. FIG. 5D shows a primary and secondary screen display when the first subject from left to right in the composition recommendation template is selected, and the image of the first subject 510 after being selected may be represented by dashed lines as a solid line, presented as subject 511. Fig. 5E shows a display of the main and sub screens after a second subject is photographed and an image is captured, and reference numeral 512 shows a subject image of the second subject, the subject image 512 of the second subject corresponds to the first subject 510, and the position of the subject image 512 of the second subject is the same as the composition position of the first subject 510, and at this time, a subject image 512 'of the second subject may be displayed on the sub screen in addition to the subject image 522' of the first subject. And a third subject may be displayed on the sub-screen after a third subject is photographed and captured, for example, corresponding to a third subject in the composition recommendation template, and a fourth subject may be displayed on the sub-screen after a fourth subject is photographed and captured, for example, corresponding to a fourth subject in the composition recommendation template.
Fig. 6 is a block diagram of a terminal according to an embodiment of the present invention. Referring to fig. 6, a terminal 600 according to an embodiment of the present invention may include: a detection module 601, an acquisition module 602, and an acquisition module 603. Wherein:
the detection module 601 is configured to detect shooting information of N shooting objects in a shooting preview interface in a state where the shooting preview interface displays M reference composition objects;
an obtaining module 602, configured to, for each of the N subjects, obtain an intermediate image corresponding to the subject when it is detected that the shooting information of the subject matches the shooting information of the corresponding reference composition subject, and obtain N intermediate images;
a processing module 603, configured to perform image synthesis based on the N intermediate images, and output a target image;
wherein the shooting information includes at least one of a shooting position and a shooting posture; n is an integer greater than 1, and M is a positive integer.
Optionally, in an embodiment of the present invention, the obtaining module 602 may be specifically configured to:
acquiring, for an ith photographic subject among the N photographic subjects, an ith intermediate image including a first region of the ith photographic subject in a case where it is detected that photographing information of the ith photographic subject matches photographing information of an ith reference composition subject;
the terminal also comprises a display module used for updating the display content of the target area into the ith intermediate image;
wherein i is more than 0 and less than or equal to N.
Optionally, in an embodiment of the present invention, the display module is specifically configured to:
updating the display content of a preview image area of the first area of the shooting preview interface into the ith intermediate image;
or, when the terminal comprises a first screen and a second screen and the shooting preview interface is displayed on the first screen, displaying the ith intermediate image in a second area corresponding to the first area in the second screen.
Optionally, in an embodiment of the present invention, the obtaining module 602 is further configured to: acquiring the number of shot objects in a shooting preview interface;
the processing module 603 is further configured to determine M reference composition objects based on the number of the shooting objects, where M is equal to N;
the terminal further includes a display module for displaying the M reference composition objects.
Optionally, in an embodiment of the present invention, the processing module 603, before performing image synthesis based on the N intermediate images and outputting a target image, is further configured to determine a kth reference composition object of a kth photographic subject in a photographic preview interface; determining a (k + 1) th reference composition object of a (k + 1) th photographic subject in a photographing preview interface in case that photographing information of the (k) th photographic subject matches photographing information of the (k) th reference composition object;
the terminal also comprises a display module, a preview module and a display module, wherein the display module is used for displaying the kth reference composition object in the shooting preview interface and displaying the (k + 1) th reference composition object in the shooting preview interface;
wherein k is more than 0 and less than or equal to N.
Optionally, in an embodiment of the present invention, the processing module 603 may be specifically configured to:
under the condition that the N intermediate images form all image contents of the target image, synthesizing the N intermediate images into the target image and outputting the target image;
and under the condition that the N intermediate images form partial image content of the target image, acquiring a background image displayed on the shooting preview interface, and synthesizing the N intermediate images and the background image into the target image and outputting the target image.
The terminal provided by the embodiment of the present invention can implement each process implemented by the terminal in the method embodiments of fig. 1 to fig. 5E, and is not described herein again to avoid repetition.
The terminal provided by the embodiment of the invention firstly displays the reference composition object, takes the reference composition object as a reference, acquires the intermediate image corresponding to each shooting object under the condition that the shooting information of each shooting object is detected to be matched with the shooting information of the corresponding reference composition object, performs image synthesis and outputs the target image. According to the embodiment of the invention, the corresponding intermediate image can be automatically acquired under the condition that the shooting information of each shooting object is matched with the shooting information of the corresponding reference composition object, and other shooting objects can continuously swing for a certain time due to the acquisition of the intermediate image corresponding to the shooting object even if the shooting object leaves, so that the normal shooting process is not influenced even if people leave in the shooting process, and the shooting progress is ensured to be not delayed.
It should be understood that the terminal 600 in the embodiment of the present invention may be a terminal mentioned below.
Fig. 7 is a schematic diagram of a hardware structure of a terminal for implementing various embodiments of the present invention.
The terminal 700 may include, but is not limited to: a radio frequency unit 701, a network module 702, an audio output unit 703, an input unit 704, a sensor 705, a display unit 706, a user input unit 707, an interface unit 708, a memory 709, a processor 710, a power supply 711, and the like. Those skilled in the art will appreciate that the terminal configuration shown in fig. 7 is not intended to be limiting, and that the terminal may include more or fewer components than shown, or some components may be combined, or a different arrangement of components. In the embodiment of the present invention, the terminal includes, but is not limited to, a mobile phone, a tablet computer, a notebook computer, a palm computer, and the like.
The processor 710 is configured to detect shooting information of N shooting objects in a shooting preview interface in a state where the shooting preview interface displays M reference composition objects; for each of the N photographic subjects, acquiring an intermediate image corresponding to the photographic subject to obtain N intermediate images when it is detected that the photographic information of the photographic subject matches the photographic information of the corresponding reference composition subject; performing image synthesis based on the N intermediate images, and outputting a target image; wherein the shooting information includes at least one of a shooting position and a shooting posture; n is an integer greater than 1, and M is a positive integer.
It should be understood that, in the embodiment of the present invention, the radio frequency unit 701 may be used for receiving and sending signals during a message transmission and reception process or a call process, and specifically, receives downlink data from a base station and then processes the received downlink data to the processor 710; in addition, the uplink data is transmitted to the base station. In general, radio frequency unit 701 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. In addition, the radio frequency unit 701 may also communicate with a network and other devices through a wireless communication system.
The terminal provides wireless broadband internet access to the user via the network module 702, such as assisting the user in sending and receiving e-mails, browsing web pages, and accessing streaming media.
The audio output unit 703 may convert audio data received by the radio frequency unit 701 or the network module 702 or stored in the memory 709 into an audio signal and output as sound. Also, the audio output unit 703 may also provide audio output related to a specific function performed by the terminal 700 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 703 includes a speaker, a buzzer, a receiver, and the like.
The input unit 704 is used to receive audio or video signals. The input Unit 704 may include a Graphics Processing Unit (GPU) 7041 and a microphone 7042, and the Graphics processor 7041 processes image data of a still picture or video obtained by an image capturing device (e.g., a camera) in a video capturing mode or an image capturing mode. The processed image frames may be displayed on the display unit 706. The image frames processed by the graphic processor 7041 may be stored in the memory 709 (or other storage medium) or transmitted via the radio unit 701 or the network module 702. The microphone 7042 may receive sounds and may be capable of processing such sounds into audio data. The processed audio data may be converted into a format output transmittable to a mobile communication base station via the radio frequency unit 701 in case of a phone call mode.
The terminal 700 can also include at least one sensor 705, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor that can adjust the brightness of the display panel 7061 according to the brightness of ambient light, and a proximity sensor that can turn off the display panel 7061 and/or a backlight when the terminal 700 is moved to the ear. As one of the motion sensors, the accelerometer sensor can detect the magnitude of acceleration in each direction (generally three axes), detect the magnitude and direction of gravity when stationary, and can be used to identify the terminal posture (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration identification related functions (such as pedometer, tapping), and the like; the sensors 705 may also include fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc., which are not described in detail herein.
The display unit 706 is used to display information input by the user or information provided to the user. The Display unit 706 may include a Display panel 7061, and the Display panel 7061 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.
The user input unit 707 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the terminal. Specifically, the user input unit 707 includes a touch panel 7071 and other input devices 7072. The touch panel 7071, also referred to as a touch screen, may collect touch operations by a user on or near the touch panel 7071 (e.g., operations by a user on or near the touch panel 7071 using a finger, a stylus, or any other suitable object or attachment). The touch panel 7071 may include two parts of a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 710, receives a command from the processor 710, and executes the command. In addition, the touch panel 7071 can be implemented by various types such as resistive, capacitive, infrared, and surface acoustic wave. The user input unit 707 may include other input devices 7072 in addition to the touch panel 7071. In particular, the other input devices 7072 may include, but are not limited to, a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described herein again.
Further, the touch panel 7071 may be overlaid on the display panel 7061, and when the touch panel 7071 detects a touch operation on or near the touch panel 7071, the touch operation is transmitted to the processor 710 to determine the type of the touch event, and then the processor 710 provides a corresponding visual output on the display panel 7061 according to the type of the touch event. Although the touch panel 7071 and the display panel 7061 are shown in fig. 7 as two separate components to implement the input and output functions of the terminal, in some embodiments, the touch panel 7071 and the display panel 7061 may be integrated to implement the input and output functions of the terminal, which is not limited herein.
The interface unit 708 is an interface for connecting an external device to the terminal 700. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The interface unit 708 may be used to receive input (e.g., data information, power, etc.) from an external device and transmit the received input to one or more elements within the terminal 700 or may be used to transmit data between the terminal 700 and the external device.
The memory 709 may be used to store software programs as well as various data. The memory 709 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. Further, the memory 709 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The processor 710 is a control center of the terminal, connects various parts of the entire terminal using various interfaces and lines, and performs various functions of the terminal and processes data by operating or executing software programs and/or modules stored in the memory 709 and calling data stored in the memory 709, thereby integrally monitoring the terminal. Processor 710 may include one or more processing units; preferably, the processor 710 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into processor 710.
The terminal 700 may also include a power supply 711 (e.g., a battery) for providing power to the various components, and preferably, the power supply 711 may be logically coupled to the processor 710 via a power management system, such that functions of managing charging, discharging, and power consumption are performed via the power management system.
In addition, the terminal 700 includes some functional modules that are not shown, and are not described in detail herein.
Preferably, an embodiment of the present invention further provides a terminal, including a processor 710, a memory 709, and a computer program stored in the memory 709 and capable of running on the processor 710, where the computer program is executed by the processor 710 to implement any of the steps in the photographing method mentioned above, and can achieve the same technical effect, and in order to avoid repetition, the description is omitted here.
Embodiments of the present invention further provide a computer-readable storage medium, on which computer instructions are stored, and when the instructions are executed, the method for photographing multiple persons is performed as described above.
The terminal and the computer-readable storage medium provided by the embodiment of the invention display the reference composition object, use the reference composition object as a reference, and acquire the intermediate image corresponding to each photographic object under the condition that the photographic information of each photographic object is matched with the photographic information of the corresponding reference composition object, perform image synthesis and output the target image. According to the embodiment of the invention, the corresponding intermediate image can be automatically acquired under the condition that the shooting information of each shooting object is matched with the shooting information of the corresponding reference composition object, and other shooting objects can continuously swing for a certain time due to the acquisition of the intermediate image corresponding to the shooting object even if the shooting object leaves, so that the normal shooting process is not influenced even if people leave in the shooting process, and the shooting progress is ensured to be not delayed.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, apparatus, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include forms of volatile memory in a computer readable medium, Random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). Memory is an example of a computer-readable medium.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. Computer readable media, as defined in embodiments of the present invention, does not include transitory computer readable media such as modulated data signals and carrier waves.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
While the present invention has been described with reference to the embodiments shown in the drawings, the present invention is not limited to the embodiments, which are illustrative and not restrictive, and it will be apparent to those skilled in the art that various changes and modifications can be made therein without departing from the spirit and scope of the invention as defined in the appended claims.

Claims (12)

1. A method for photographing a plurality of persons, comprising:
detecting shooting information of N shooting objects in a shooting preview interface in a state that M reference composition objects are displayed on the shooting preview interface;
for each of the N photographic subjects, acquiring an intermediate image corresponding to the photographic subject to obtain N intermediate images when it is detected that the photographic information of the photographic subject matches the photographic information of the corresponding reference composition subject;
performing image synthesis based on the N intermediate images, and outputting a target image;
wherein the shooting information includes at least one of a shooting position and a shooting posture; n is an integer greater than 1, M is a positive integer;
before image synthesis is performed based on the N intermediate images and a target image is output, the method comprises the following steps:
determining a kth reference composition object of a kth photographic object in a photographic preview interface, and displaying the kth reference composition object in the photographic preview interface;
determining a (k + 1) th reference composition object of a (k + 1) th photographic subject in a photographic preview interface and displaying the (k + 1) th reference composition object in the photographic preview interface under the condition that the photographing information of the (k) th photographic subject is matched with the photographing information of the (k) th reference composition object;
wherein the k +1 th reference composition object is determined based on a position of the k-th reference composition object, and 0 < k ≦ N.
2. The method according to claim 1, wherein the acquiring, for each of the N subjects, an intermediate image corresponding to the subject in a case where it is detected that the photographing information of the subject matches the photographing information of the corresponding reference composition subject, resulting in N intermediate images, comprises:
acquiring, for an ith photographic subject among the N photographic subjects, an ith intermediate image including a first region of the ith photographic subject in a case where it is detected that photographing information of the ith photographic subject matches photographing information of an ith reference composition subject;
updating the display content of the target area to the ith intermediate image;
wherein i is more than 0 and less than or equal to N.
3. The method according to claim 2, wherein the updating the display content of the target area to the ith intermediate image comprises:
updating the display content of a preview image area of the first area of the shooting preview interface into the ith intermediate image;
or, when the terminal comprises a first screen and a second screen and the shooting preview interface is displayed on the first screen, displaying the ith intermediate image in a second area corresponding to the first area in the second screen.
4. The method according to claim 1, wherein the image synthesizing based on the N intermediate images comprises, before outputting the target image:
acquiring the number of shot objects in a shooting preview interface;
determining M reference composition objects based on the number of the shooting objects, wherein M is N;
displaying the M reference composition objects.
5. The method according to claim 1, wherein the image synthesizing and outputting the target image based on the N intermediate images comprises:
under the condition that the N intermediate images form all image contents of the target image, synthesizing the N intermediate images into the target image and outputting the target image;
and under the condition that the N intermediate images form partial image content of the target image, acquiring a background image displayed on the shooting preview interface, and synthesizing the N intermediate images and the background image into the target image and outputting the target image.
6. A terminal, comprising:
the detection module is used for detecting the shooting information of N shooting objects in the shooting preview interface under the condition that the shooting preview interface displays M reference composition objects;
an obtaining module, configured to, for each of the N photographic subjects, obtain an intermediate image corresponding to the photographic subject to obtain N intermediate images when it is detected that the photographic information of the photographic subject matches the photographic information of the corresponding reference composition subject;
the processing module is used for carrying out image synthesis based on the N intermediate images and outputting a target image;
wherein the shooting information includes at least one of a shooting position and a shooting posture; n is an integer greater than 1, M is a positive integer;
the processing module is used for determining a k reference composition object of a k shooting object in a shooting preview interface before image synthesis is carried out based on the N intermediate images and a target image is output; determining a (k + 1) th reference composition object of a (k + 1) th photographing object in a photographing preview interface in a case that photographing information of the (k) th photographing object matches photographing information of the (k) th reference composition object, wherein the (k + 1) th reference composition object is determined based on a position of the (k) th reference composition object;
the terminal also comprises a display module, a preview module and a display module, wherein the display module is used for displaying the kth reference composition object in the shooting preview interface and displaying the (k + 1) th reference composition object in the shooting preview interface;
wherein k is more than 0 and less than or equal to N.
7. The terminal of claim 6, wherein the obtaining module is specifically configured to:
acquiring, for an ith photographic subject among the N photographic subjects, an ith intermediate image including a first region of the ith photographic subject in a case where it is detected that photographing information of the ith photographic subject matches photographing information of an ith reference composition subject;
the terminal also comprises a display module used for updating the display content of the target area into the ith intermediate image;
wherein i is more than 0 and less than or equal to N.
8. The terminal of claim 7, wherein the display module is specifically configured to:
updating the display content of a preview image area of the first area of the shooting preview interface into the ith intermediate image;
or, when the terminal comprises a first screen and a second screen and the shooting preview interface is displayed on the first screen, displaying the ith intermediate image in a second area corresponding to the first area in the second screen.
9. The terminal of claim 6, wherein the obtaining module is further configured to: acquiring the number of shot objects in a shooting preview interface;
the processing module is further configured to determine M reference composition objects based on the number of the shot objects, where M is N;
the terminal further includes a display module for displaying the M reference composition objects.
10. The terminal of claim 6, wherein the processing module is specifically configured to:
under the condition that the N intermediate images form all image contents of the target image, synthesizing the N intermediate images into the target image and outputting the target image;
and under the condition that the N intermediate images form partial image content of the target image, acquiring a background image displayed on the shooting preview interface, and synthesizing the N intermediate images and the background image into the target image and outputting the target image.
11. A terminal comprising a processor and a memory, said memory having stored thereon a computer program which, when executed by said processor, carries out the steps of the method according to any one of claims 1-5.
12. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 5.
CN201810910870.0A 2018-08-10 2018-08-10 Multi-person photographing method, terminal and storage medium Active CN108777766B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810910870.0A CN108777766B (en) 2018-08-10 2018-08-10 Multi-person photographing method, terminal and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810910870.0A CN108777766B (en) 2018-08-10 2018-08-10 Multi-person photographing method, terminal and storage medium

Publications (2)

Publication Number Publication Date
CN108777766A CN108777766A (en) 2018-11-09
CN108777766B true CN108777766B (en) 2021-01-15

Family

ID=64028687

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810910870.0A Active CN108777766B (en) 2018-08-10 2018-08-10 Multi-person photographing method, terminal and storage medium

Country Status (1)

Country Link
CN (1) CN108777766B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110611768B (en) * 2019-09-27 2021-06-29 北京小米移动软件有限公司 Multiple exposure photographic method and device
CN110798621A (en) * 2019-11-29 2020-02-14 维沃移动通信有限公司 Image processing method and electronic equipment
CN110971832A (en) * 2019-12-20 2020-04-07 维沃移动通信有限公司 Image shooting method and electronic equipment
CN114205512B (en) * 2020-09-17 2023-03-31 华为技术有限公司 Shooting method and device
CN113890994B (en) * 2021-09-30 2022-12-23 荣耀终端有限公司 Image photographing method, system and storage medium
CN114099977B (en) * 2021-11-23 2023-09-19 杭州高瓴医疗科技有限公司 Phototherapy instrument convenient to distance

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104204940A (en) * 2012-03-13 2014-12-10 富士胶片株式会社 Imaging device with projector and control method therefor
CN104967790A (en) * 2014-08-06 2015-10-07 腾讯科技(北京)有限公司 Photo shooting method, photo shooting apparatus and mobile terminal
CN105407285A (en) * 2015-12-01 2016-03-16 小米科技有限责任公司 Photographing control method and device
CN105574006A (en) * 2014-10-10 2016-05-11 阿里巴巴集团控股有限公司 Method and device for establishing photographing template database and providing photographing recommendation information
CN105704386A (en) * 2016-03-30 2016-06-22 联想(北京)有限公司 Image acquisition method, electronic equipment and electronic device
CN106791364A (en) * 2016-11-22 2017-05-31 维沃移动通信有限公司 Method and mobile terminal that a kind of many people take pictures

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011234002A (en) * 2010-04-26 2011-11-17 Kyocera Corp Imaging device and terminal device
US10217022B2 (en) * 2015-03-06 2019-02-26 Ricoh Company, Ltd. Image acquisition and management

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104204940A (en) * 2012-03-13 2014-12-10 富士胶片株式会社 Imaging device with projector and control method therefor
CN104967790A (en) * 2014-08-06 2015-10-07 腾讯科技(北京)有限公司 Photo shooting method, photo shooting apparatus and mobile terminal
CN105574006A (en) * 2014-10-10 2016-05-11 阿里巴巴集团控股有限公司 Method and device for establishing photographing template database and providing photographing recommendation information
CN105407285A (en) * 2015-12-01 2016-03-16 小米科技有限责任公司 Photographing control method and device
CN105704386A (en) * 2016-03-30 2016-06-22 联想(北京)有限公司 Image acquisition method, electronic equipment and electronic device
CN106791364A (en) * 2016-11-22 2017-05-31 维沃移动通信有限公司 Method and mobile terminal that a kind of many people take pictures

Also Published As

Publication number Publication date
CN108777766A (en) 2018-11-09

Similar Documents

Publication Publication Date Title
CN108777766B (en) Multi-person photographing method, terminal and storage medium
CN110740259B (en) Video processing method and electronic equipment
CN109361865B (en) Shooting method and terminal
CN111355889B (en) Shooting method, shooting device, electronic equipment and storage medium
CN109151180B (en) Object identification method and mobile terminal
CN108712603B (en) Image processing method and mobile terminal
CN111010510B (en) Shooting control method and device and electronic equipment
CN110557683B (en) Video playing control method and electronic equipment
WO2019174628A1 (en) Photographing method and mobile terminal
CN108989672B (en) Shooting method and mobile terminal
CN108182271B (en) Photographing method, terminal and computer readable storage medium
CN108848313B (en) Multi-person photographing method, terminal and storage medium
CN111050070B (en) Video shooting method and device, electronic equipment and medium
CN109068055B (en) Composition method, terminal and storage medium
CN110062171B (en) Shooting method and terminal
CN110059686B (en) Character recognition method, device, equipment and readable storage medium
CN109819168B (en) Camera starting method and mobile terminal
WO2022048398A1 (en) Multimedia data photographing method and terminal
CN109618218B (en) Video processing method and mobile terminal
CN108984143B (en) Display control method and terminal equipment
CN109246474B (en) Video file editing method and mobile terminal
CN108174110B (en) Photographing method and flexible screen terminal
CN111083374B (en) Filter adding method and electronic equipment
CN107728877B (en) Application recommendation method and mobile terminal
CN110650294A (en) Video shooting method, mobile terminal and readable storage medium

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