[go: up one dir, main page]

CN108777766A - A method, terminal, and storage medium for multiple people to take pictures - Google Patents

A method, terminal, and storage medium for multiple people to take pictures Download PDF

Info

Publication number
CN108777766A
CN108777766A CN201810910870.0A CN201810910870A CN108777766A CN 108777766 A CN108777766 A CN 108777766A CN 201810910870 A CN201810910870 A CN 201810910870A CN 108777766 A CN108777766 A CN 108777766A
Authority
CN
China
Prior art keywords
shooting
image
reference composition
preview interface
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
CN201810910870.0A
Other languages
Chinese (zh)
Other versions
CN108777766B (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

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

Landscapes

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

Abstract

本发明公开了一种多人拍照方法、终端和计算机可读存储介质,涉及图像处理领域,能够对多拍摄对象生成较好的拍摄图像。所述方法包括:在拍摄预览界面显示M个参考构图对象的状态下,检测拍摄预览界面中的N个拍摄对象的拍摄信息;对于所述N个拍摄对象中的每个拍摄对象,在检测到所述拍摄对象的拍摄信息与对应的参考构图对象的拍摄信息相匹配的情况下,获取所述拍摄对象对应的中间图像,得到N张中间图像;基于所述N张中间图像,进行图像合成,输出目标图像;其中,所述拍摄信息包括拍摄位置、拍摄姿势中的至少一项;N为大于1的整数,M为正整数。本发明用于多拍摄对象的拍照。

The invention discloses a method for taking photos by multiple people, a terminal and a computer-readable storage medium, which relate to the field of image processing and can generate better photographed images for multiple shooting objects. The method includes: in the state where M reference composition objects are displayed on the shooting preview interface, detecting shooting information of N shooting objects in the shooting preview interface; for each shooting object in the N shooting objects, after detecting When the shooting information of the shooting object matches the shooting information of the corresponding reference composition object, acquiring intermediate images corresponding to the shooting object to obtain N intermediate images; performing image synthesis based on the N intermediate images, Outputting a target image; wherein, the shooting information includes at least one of shooting position and shooting posture; N is an integer greater than 1, and M is a positive integer. The invention is used for taking pictures of multiple shooting objects.

Description

一种多人拍照方法、终端及存储介质A method, terminal, and storage medium for multiple people to take pictures

技术领域technical field

本发明实施例涉及图像处理领域,尤其涉及一种多人拍照方法、终端及存储介质。Embodiments of the present invention relate to the field of image processing, and in particular, to a method for taking pictures of multiple people, a terminal, and a storage medium.

背景技术Background technique

随着科技的发展和时代的进步,人们已很少使用单独的相机来进行拍照,而是让智能手机来充当拍摄装置的功能。现如今,智能手机作为一种常用的拍摄装置已经得到了广泛使用。With the development of science and technology and the progress of the times, people seldom use a separate camera to take pictures, but let the smartphone function as a shooting device. Nowadays, smartphones have been widely used as a commonly used shooting device.

现有技术在拍摄单人照时,确认拍摄对象摆好姿势(pose),以及脸上的表情到位后,按下拍照按钮,摄像头会捕获一张图像生成照片;在拍摄合影时,拍摄者等待所有人都站在了自己的位置,提示所有人保持住表情,然后按下拍照按钮,两个拍摄场景均是等所有拍摄对象都就绪了,最后才能按下拍照按钮,得到照片,假设在按下拍照按钮前,某个拍摄对象需要临时离开,必须等到这个拍摄对象回来之后,重新确认每个拍摄对象是否就绪,才能按下拍照按钮,可见现有的拍摄方法,对于多人合影的拍摄场景,在拍摄完成之前,每个拍摄对象都不能离开,否则会影响拍摄进度。In the prior art, when taking a single-person photo, after confirming that the subject is in a good pose (pose) and the expression on the face is in place, press the camera button, and the camera will capture an image to generate a photo; when taking a group photo, the photographer waits for all Everyone stood in their positions, reminding everyone to keep their expressions, and then press the camera button. In the two shooting scenes, wait until all the subjects are ready before pressing the camera button to get a photo. Assuming that after pressing Before the camera button, a subject needs to leave temporarily. You must wait until the subject comes back and reconfirm whether each subject is ready before pressing the camera button. You can see the existing shooting method. Before the shooting is completed, each subject cannot leave, otherwise it will affect the progress of the shooting.

发明内容Contents of the invention

本发明实施例提供一种多人拍照方法、终端和存储介质,以解决现有的拍摄方式在拍摄多人合影时,某个拍摄对象的离开影响拍摄进度的问题。Embodiments of the present invention provide a method for taking pictures of multiple people, a terminal and a storage medium, so as to solve the problem that the departure of a certain subject affects the progress of the shooting when taking a group photo of multiple people in the existing shooting method.

第一方面,提供一种多人拍照方法,包括:In the first aspect, a method for taking pictures by multiple people is provided, including:

在拍摄预览界面显示M个参考构图对象的状态下,检测拍摄预览界面中的N个拍摄对象的拍摄信息;In the state where M reference composition objects are displayed on the shooting preview interface, the shooting information of N shooting objects in the shooting preview interface is detected;

对于所述N个拍摄对象中的每个拍摄对象,在检测到所述拍摄对象的拍摄信息与对应的参考构图对象的拍摄信息相匹配的情况下,获取所述拍摄对象对应的中间图像,得到N张中间图像;For each of the N shooting objects, when it is detected that the shooting information of the shooting object matches the shooting information of the corresponding reference composition object, an intermediate image corresponding to the shooting object is obtained, and N intermediate images;

基于所述N张中间图像,进行图像合成,输出目标图像;Based on the N intermediate images, image synthesis is performed to output a target image;

其中,所述拍摄信息包括拍摄位置、拍摄姿势中的至少一项;N为大于1的整数,M为正整数。Wherein, the shooting information includes at least one of shooting position and shooting posture; N is an integer greater than 1, and M is a positive integer.

第二方面,提供一种终端,包括:In a second aspect, a terminal is provided, including:

检测模块,用于在拍摄预览界面显示M个参考构图对象的状态下,检测拍摄预览界面中的N个拍摄对象的拍摄信息;A detection module, configured to detect shooting information of N shooting objects in the shooting preview interface in a state where M reference composition objects are displayed on the shooting preview interface;

获取模块,用于对于所述N个拍摄对象中的每个拍摄对象,在检测到所述拍摄对象的拍摄信息与对应的参考构图对象的拍摄信息相匹配的情况下,获取所述拍摄对象对应的中间图像,得到N张中间图像;An acquisition module, configured to, for each of the N shooting objects, acquire the corresponding The intermediate image, get N intermediate images;

处理模块,用于基于所述N张中间图像,进行图像合成,输出目标图像;A processing module, configured to perform image synthesis based on the N intermediate images, and output a target image;

其中,所述拍摄信息包括拍摄位置、拍摄姿势中的至少一项;N为大于1的整数,M为正整数。Wherein, the shooting information includes at least one of shooting position and shooting posture; N is an integer greater than 1, and M is a positive integer.

第三方面,提供一种终端,包括处理器和存储器,所述存储器上存储计算机程序,当所述计算机程序被所述处理器运行时,实现如第一方面所述的方法的步骤。In a third aspect, a terminal is provided, including a processor and a memory, where a computer program is stored in the memory, and when the computer program is run by the processor, the steps of the method described in the first aspect are implemented.

第四方面,提供一种计算机可读存储介质,所述计算机可读存储介质上存储有计算机程序,当所述计算机程序被运行时,实现如第一方面所述的方法的步骤。In a fourth aspect, a computer-readable storage medium is provided. A computer program is stored on the computer-readable storage medium. When the computer program is executed, the steps of the method described in the first aspect are implemented.

在本发明实施例中,先显示参考构图对象,并以参考构图对象为参照,在检测到各个拍摄对象的拍摄信息与对应的参考构图对象的拍摄信息相匹配的情况下,获取各个拍摄对象对应的中间图像,并进行图像合成,输出目标图像。以此方式,能够使拍摄对象在进行拍照时能够以参考构图对象为参照,在匹配参考构图对象的拍摄信息的情况下会获取拍摄对象的中间图像,本发明实施例在各拍摄对象的拍摄信息与对应的参考构图对象的拍摄信息相匹配的情况下,可自动获取对应的中间图像,即使有拍摄对象离开的情况下,由于获取了该拍摄对象对应的中间图像,其他拍摄对象可继续摆pose,即使拍摄过程中有人离开也不影响拍照的正常进行,从而确保了拍摄进度无延迟。In the embodiment of the present invention, the reference composition object is displayed first, and the reference composition object is used as a reference. When it is detected that the shooting information of each shooting object matches the shooting information of the corresponding reference composition object, the corresponding information of each shooting object is obtained. The intermediate image, and image synthesis, the output target image. In this way, the subject can be taken as a reference when taking pictures, and the intermediate image of the subject will be acquired when the photographing information of the reference composition subject is matched. In the embodiment of the present invention, the photographing information of each subject When the shooting information of the corresponding reference composition object matches, the corresponding intermediate image can be automatically acquired. Even if the object is away, other objects can continue to pose because the intermediate image corresponding to the object is obtained. , Even if someone leaves during the shooting process, it will not affect the normal progress of the shooting, thus ensuring that there is no delay in the shooting progress.

附图说明Description of drawings

图1是本发明实施例提供的一种多人拍照方法的流程图;Fig. 1 is a flow chart of a method for taking pictures of multiple people provided by an embodiment of the present invention;

图2是本发明实施例提供的一种多人拍照方法的流程图;Fig. 2 is a flow chart of a method for taking pictures of multiple people provided by an embodiment of the present invention;

图3A-3E是本发明实施例提供的一种多人拍照方法的效果示意图;3A-3E are schematic diagrams showing the effect of a method for taking pictures of multiple people provided by an embodiment of the present invention;

图4A-4D是本发明实施例提供的一种多人拍照方法的效果示意图;4A-4D are schematic diagrams showing the effect of a method for taking pictures of multiple people provided by an embodiment of the present invention;

图5A-5E是本发明实施例提供的一种主副屏显示的效果示意图;5A-5E are schematic diagrams showing the effects of a main and secondary screen display provided by an embodiment of the present invention;

图6是本发明实施例提供的一种终端的结构框图;FIG. 6 is a structural block diagram of a terminal provided by an embodiment of the present invention;

图7是本发明实施例提供的一种终端的硬件结构示意图。FIG. 7 is a schematic diagram of a hardware structure of a terminal provided by an embodiment of the present invention.

具体实施方式Detailed ways

下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are some of the embodiments of the present invention, but not all of them. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of the present invention.

本发明实施例提供的一种多人拍照方法可由终端来执行,在本发明实施例中,终端为具备拍照和/或摄像功能的装置,例如手机、平板电脑、相机等。A method for taking photos of multiple people provided by an embodiment of the present invention can be performed by a terminal. In an embodiment of the present invention, the terminal is a device with a photographing and/or video recording function, such as a mobile phone, a tablet computer, a camera, and the like.

以下结合附图,详细说明本发明各实施例提供的技术方案。The technical solutions provided by various embodiments of the present invention will be described in detail below in conjunction with the accompanying drawings.

图1是本发明实施例提供的一种多人拍照方法的流程图。参照图1,本发明实施例提供的多人拍照方法可包括:Fig. 1 is a flow chart of a method for taking pictures of multiple people provided by an embodiment of the present invention. Referring to Fig. 1, the multi-person photographing method provided by the embodiment of the present invention may include:

步骤110,在拍摄预览界面显示M个参考构图对象的状态下,检测拍摄预览界面中的N个拍摄对象的拍摄信息。Step 110 , in a state where M reference composition objects are displayed on the shooting preview interface, detecting shooting information of N shooting objects in the shooting preview interface.

其中,所述拍摄信息包括拍摄位置、拍摄姿势中的至少一项;N为大于1的整数,M为正整数。Wherein, the shooting information includes at least one of shooting position and shooting posture; N is an integer greater than 1, and M is a positive integer.

在本发明实施例中,拍摄对象可以为终端所拍摄的对象,所述对象可以例如为一个用户,一动物等。多拍摄对象可以指多个拍摄对象(即,两个或两个以上的拍摄对象)。例如,如果需要对3个人进行合影,则每一个人都为一个拍摄对象,可以依次为拍摄对象A、拍摄对象B、拍摄对象C、拍摄对象D。In this embodiment of the present invention, the photographed object may be an object photographed by the terminal, and the object may be, for example, a user, an animal, and the like. Multi-subject may refer to multiple subjects (ie, two or more subjects). For example, if it is necessary to take a group photo of 3 people, each person is a subject, which may be subject A, subject B, subject C, and subject D in sequence.

在本发明实施例中,拍摄预览界面可为在终端的取景镜头中展示的界面。In the embodiment of the present invention, the shooting preview interface may be an interface displayed in the viewfinder lens of the terminal.

在本发明实施例中,参考构图对象可以是一个卡通人物或线条描绘的人物示意图,用以发挥参照作用。例如,在拍照时供拍摄对象进行位置参照,另外,参考构图对象可以具有拍摄姿势,以供拍摄对象进行姿势参照等。In the embodiment of the present invention, the reference composition object may be a cartoon character or a schematic diagram of a character drawn by lines, so as to serve as a reference. For example, when taking a photo, it is used for position reference by the photographed subject. In addition, the reference composition object may have a photographing pose for the photographed subject to refer to the pose.

本步骤中,在拍摄信息包括拍摄位置时,检测拍摄预览界面中的N个拍摄对象的拍摄信息具体为检测拍摄预览界面中的N个拍摄对象的拍摄位置。在拍摄信息包括拍摄姿势时,检测拍摄预览界面中的N个拍摄对象的拍摄信息具体为检测拍摄预览界面中的N个拍摄对象的拍摄姿势。在拍摄信息包括拍摄位置和拍摄姿势时,检测拍摄预览界面中的N个拍摄对象的拍摄信息具体为检测拍摄预览界面中的N个拍摄对象的拍摄位置和拍摄姿势。In this step, when the shooting information includes shooting positions, detecting the shooting information of the N shooting objects in the shooting preview interface is specifically detecting the shooting positions of the N shooting objects in the shooting preview interface. When the shooting information includes shooting postures, detecting the shooting information of the N shooting objects in the shooting preview interface is specifically detecting the shooting postures of the N shooting objects in the shooting preview interface. When the shooting information includes shooting positions and shooting postures, detecting the shooting information of the N shooting objects in the shooting preview interface is specifically detecting the shooting positions and shooting postures of the N shooting objects in the shooting preview interface.

拍摄对象的拍摄位置为拍摄对象在拍摄预览界面中形成的主体图像的位置。The shooting position of the shooting object is the position of the subject image formed by the shooting object in the shooting preview interface.

步骤120,对于所述N个拍摄对象中的每个拍摄对象,在检测到所述拍摄对象的拍摄信息与对应的参考构图对象的拍摄信息相匹配的情况下,获取所述拍摄对象对应的中间图像,得到N张中间图像。Step 120, for each of the N shooting objects, if it is detected that the shooting information of the shooting object matches the shooting information of the corresponding reference composition object, acquire the corresponding intermediate image to get N intermediate images.

拍摄对象的拍摄信息与对应的参考构图对象的拍摄信息相匹配可以表示,拍摄对象的拍摄位置与对应的参考构图对象的位置相重合,或者拍摄对象的拍摄姿势与对应的参考构图对象的姿势相一致。The matching of the shooting information of the shooting object with the shooting information of the corresponding reference composition object may indicate that the shooting position of the shooting object coincides with the position of the corresponding reference composition object, or that the shooting posture of the shooting object is consistent with the posture of the corresponding reference composition object. unanimous.

在本发明实施例中,重合是一个相对的概念,而非绝对的概念。拍摄对象在拍摄预览界面中的拍摄位置与参考构图对象的位置重合可以表示,所述拍摄对象在拍摄预览界面中的拍摄位置与参考构图对象的位置大部分重合,例如,大于一个预设百分比(预设百分比一般大于50%,比如70%或80%等)的重合。也就是说,在本发明中,所述拍摄对象在拍摄预览界面中的位置与参考构图对象的位置重合未必要求100%重合。类似地,姿势一致也未必要求100%一致。In the embodiment of the present invention, overlapping is a relative concept rather than an absolute concept. The coincidence of the shooting position of the shooting object in the shooting preview interface with the position of the reference composition object may indicate that the shooting position of the shooting object in the shooting preview interface mostly coincides with the position of the reference composition object, for example, greater than a preset percentage ( The preset percentage is generally greater than 50%, such as 70% or 80%, etc.). That is to say, in the present invention, the coincidence of the position of the shooting object in the shooting preview interface with the position of the reference composition object does not necessarily require 100% coincidence. Similarly, consistent posture does not necessarily require 100% consistency.

在检测拍摄姿势是否匹配的过程中,可以先将拍摄对象的轮廓与对应的参考构图对象的轮廓进行匹配,在二者的轮廓匹配的情况下,再进一步将拍摄对象的拍摄姿势与对应的参考构图对象的拍摄姿势进行匹配。其中,轮廓匹配可以采用相关的图像识别方法。In the process of detecting whether the shooting posture matches, the contour of the photographed object can be firstly matched with the contour of the corresponding reference composition object. Match the shooting pose of the subject in the composition. Among them, the contour matching can adopt a related image recognition method.

在拍摄过程中,拍摄对象A、拍摄对象B、拍摄对象C、拍摄对象D这4个拍摄对象中有至少一个拍摄对象在拍摄过程中且拍摄未完成之前需要离开的情况下,例如拍摄对象A、拍摄对象B、拍摄对象C、拍摄对象D会陆续离开,那么,本步骤中,N取值为4,对于拍摄对象A,在检测到拍摄对象A的拍摄信息与对应的参考构图对象的拍摄信息相匹配的情况下,获取拍摄对象A对应的第一中间图像;接下来对于拍摄对象B,在检测到拍摄对象B的拍摄信息与对应的参考构图对象的拍摄信息相匹配的情况下,获取拍摄对象B对应的第二中间图像;然后对于拍摄对象C,在检测到拍摄对象C的拍摄信息与对应的参考构图对象的拍摄信息相匹配的情况下,获取拍摄对象C对应的第三中间图像;最后对于拍摄对象D,在检测到拍摄对象D的拍摄信息与对应的参考构图对象的拍摄信息相匹配的情况下,获取拍摄对象D对应的第四中间图像,得到4张中间图像。这样在获取到第一中间图像后,拍摄对象A可离开,拍摄对象B、拍摄对象C、拍摄对象D可继续摆pose,即使拍摄过程中有人离开也不影响拍照的正常进行。During the shooting process, at least one of the four subjects of shooting subject A, shooting subject B, shooting subject C, and shooting subject D needs to leave during the shooting process and before the shooting is completed, such as shooting subject A , shooting object B, shooting object C, and shooting object D will leave one after another, then, in this step, the value of N is 4, for shooting object A, after detecting the shooting information of shooting object A and the shooting of the corresponding reference composition object If the information matches, acquire the first intermediate image corresponding to the subject A; next, for the subject B, if it is detected that the photographing information of the photographing subject B matches the photographing information of the corresponding reference composition object, acquire Take a second intermediate image corresponding to object B; then, for object C, when it is detected that the shooting information of object C matches the shooting information of the corresponding reference composition object, acquire a third intermediate image corresponding to object C ; Finally, for the shooting object D, when it is detected that the shooting information of the shooting object D matches the shooting information of the corresponding reference composition object, obtain the fourth intermediate image corresponding to the shooting object D, and obtain 4 intermediate images. In this way, after the first intermediate image is acquired, the subject A can leave, and the subjects B, C and D can continue to pose. Even if someone leaves during the shooting process, the normal progress of the photographing will not be affected.

在本发明实施例中,由于每张中间图像为对某个拍摄对象进行图像采集所得到的图像,由于此采集得到的图像并不是最终的输出图像,因而在本发明实施例中称为中间图像。需了解的是,在本发明实施例中,拍摄对象的中间图像可以为拍摄对象的主体图像。拍摄对象的主体图像包括仅包括拍摄对象自身(只包含拍摄对象)的图像,或者拍摄对象的主体图像除了包括仅包括拍摄对象自身的图像,还包括拍摄对象周围一定范围内的背景的图像。在本发明实施例中,每一拍摄对象可具有对应的中间图像。在得到中间图像后,可在拍摄预览界面显示这一拍摄对象对应的中间图像。In the embodiment of the present invention, since each intermediate image is an image obtained by collecting an image of a subject, and since the collected image is not the final output image, it is called an intermediate image in the embodiment of the present invention . It should be understood that, in the embodiment of the present invention, the intermediate image of the shooting object may be the subject image of the shooting object. The main image of the subject includes an image including only the subject itself (only the subject), or the main image of the subject includes not only the image including the subject itself, but also an image of the background within a certain range around the subject. In the embodiment of the present invention, each object may have a corresponding intermediate image. After the intermediate image is obtained, the intermediate image corresponding to the shooting object can be displayed on the shooting preview interface.

步骤130,基于所述N张中间图像,进行图像合成,输出目标图像。Step 130 , based on the N intermediate images, image synthesis is performed to output a target image.

在得到各个拍摄对象的中间图像之后,即可将这N张中间图像进行图像合成,得到目标图像,并输出。After the intermediate images of each shooting object are obtained, the N intermediate images can be combined to obtain a target image and output.

本发明实施例提供的多人拍照方法,先显示参考构图对象,并以参考构图对象为参照,在检测到各个拍摄对象的拍摄信息与对应的参考构图对象的拍摄信息相匹配的情况下,获取各个拍摄对象对应的中间图像,并进行图像合成,输出目标图像。本发明实施例在各拍摄对象的拍摄信息与对应的参考构图对象的拍摄信息相匹配的情况下,可自动获取对应的中间图像,即使有拍摄对象离开的情况下,由于获取了该拍摄对象对应的中间图像,其他拍摄对象可继续摆pose,即使拍摄过程中有人离开也不影响拍照的正常进行,从而确保了拍摄进度无延迟。In the multi-person photographing method provided by the embodiment of the present invention, the reference composition object is displayed first, and the reference composition object is used as a reference. When it is detected that the shooting information of each shooting object matches the shooting information of the corresponding reference composition object, the The intermediate images corresponding to each shooting object are combined, and the target image is output. In the embodiment of the present invention, when the shooting information of each shooting object matches the shooting information of the corresponding reference composition object, the corresponding intermediate image can be automatically acquired. In the middle image, other subjects can continue to pose, even if someone leaves during the shooting process, it will not affect the normal process of taking pictures, thus ensuring that there is no delay in the shooting progress.

在本发明实施例中,步骤120中所述对于所述N个拍摄对象中的每个拍摄对象,在检测到所述拍摄对象的拍摄信息与对应的参考构图对象的拍摄信息相匹配的情况下,获取所述拍摄对象对应的中间图像,得到N张中间图像,可包括:对于所述N个拍摄对象中的第i拍摄对象,在检测到所述第i拍摄对象的拍摄信息与第i参考构图对象的拍摄信息相匹配的情况下,获取包括所述第i拍摄对象的第一区域的第i中间图像;将目标区域的显示内容更新为所述第i中间图像;其中,0<i≤N。In the embodiment of the present invention, in step 120, for each of the N shooting objects, if it is detected that the shooting information of the shooting object matches the shooting information of the corresponding reference composition object , acquiring the intermediate image corresponding to the shooting object, and obtaining N intermediate images may include: for the i-th shooting object among the N shooting objects, after detecting that the shooting information of the i-th shooting object is consistent with the i-th reference If the shooting information of the composition object matches, acquire the i-th intermediate image of the first area including the i-th shooting object; update the display content of the target area to the i-th intermediate image; where 0<i≤ N.

在本发明实施例中,N表示拍摄对象的总数,i表示N个拍摄对象中的任一个拍摄对象。在获取N个拍摄对象中的某一个拍摄对象的中间图像的过程中,依次检测每个拍摄对象与其对应的拍摄信息是否匹配,并在二者匹配的情况下,获取各拍摄对象的中间图像,并替换目标区域的显示内容,而在目标区域显示此中间图像。如此一来,对于N个拍摄对象中的任一个拍摄对象均可以通过上述方式获得其对应的中间图像并显示。In the embodiment of the present invention, N represents the total number of shooting objects, and i represents any shooting object among the N shooting objects. In the process of acquiring an intermediate image of one of the N shooting objects, it is sequentially detected whether each shooting object matches its corresponding shooting information, and if the two match, an intermediate image of each shooting object is obtained, And replace the display content of the target area, and display this intermediate image in the target area. In this way, for any one of the N shooting objects, its corresponding intermediate image can be obtained and displayed in the above manner.

需指出的是,在终端只具有主屏的情况下,目标区域可以为终端的主屏上的显示区域。此时,所述将目标区域的显示内容更新为所述第i中间图像,可包括:将拍摄预览界面的所述第一区域的预览图像区域的显示内容更新为所述第i中间图像。其中,目标区域包括拍摄预览界面的所述第一区域的预览图像区域。而在终端具有双屏(即,主屏和副屏)的情况下,所述将目标区域的显示内容更新为所述第i中间图像,可包括:在所述终端包括第一屏和第二屏,且拍摄预览界面显示在第一屏的情况下,将第二屏中对应所述第一区域的第二区域显示所述第i中间图像。其中,目标区域包括第二屏中对应所述第一区域的第二区域。本发明实施例通过两个屏幕分别显示拍摄预览界面和中间图像,能够使观看更加方便。如此一来,可以更加方便用户在获取每一拍摄对象的中间图像后,查看当前拍摄对象的图像效果,并在所有拍摄对象拍摄完毕后,查看最终的多人拍摄效果。这样,目标区域既可以是主屏中对应的拍摄对象所在的预览图像区域,也可以是双面屏与预览界面所在的第一屏不同的第二屏中,能够适用于单屏或者双屏的智能终端。It should be noted that, in the case that the terminal only has a main screen, the target area may be a display area on the main screen of the terminal. At this time, the updating the display content of the target area to the ith intermediate image may include: updating the display content of the preview image area of the first area of the shooting preview interface to the ith intermediate image. Wherein, the target area includes a preview image area of the first area of the shooting preview interface. In the case that the terminal has dual screens (i.e., a main screen and a secondary screen), updating the display content of the target area to the i-th intermediate image may include: including the first screen and the second screen on the terminal , and when the shooting preview interface is displayed on the first screen, the ith intermediate image is displayed in a second area corresponding to the first area in the second screen. Wherein, the target area includes a second area corresponding to the first area in the second screen. In the embodiment of the present invention, the shooting preview interface and the intermediate image are respectively displayed on two screens, which can make viewing more convenient. In this way, it is more convenient for the user to view the image effect of the current subject after obtaining the intermediate image of each subject, and to view the final multi-person shooting effect after all the subjects are photographed. In this way, the target area can be either the preview image area where the corresponding subject is located on the main screen, or the second screen where the double-sided screen is different from the first screen where the preview interface is located, which can be applied to single-screen or dual-screen smart terminal.

进一步地,所述将目标区域的显示内容更新为所述第i中间图像之后,还包括:Further, after updating the display content of the target area to the ith intermediate image, it further includes:

显示提示信息,所述提示信息提示所述第i拍摄对象的拍摄准备工作已完成。例如,第i中间图像为拍摄对象A对应的中间图像,可以在预览界面显示“拍摄对象A拍摄准备工作已完成,可离开,其他人可继续摆pose”,这样提示拍摄对象A可离开。A prompt message is displayed, the prompt message prompts that the shooting preparations for the i-th object to be photographed have been completed. For example, the i-th intermediate image is the intermediate image corresponding to the subject A, and the preview interface may display "subject A's shooting preparations have been completed, you can leave, others can continue to pose", thus prompting subject A to leave.

在本发明实施例提供的多人拍照方法中,可选地,在步骤130所述基于所述N张中间图像,进行图像合成,输出目标图像之前,还可以获取拍摄预览界面中的拍摄对象的个数;基于所述拍摄对象的个数,确定M个参考构图对象,其中,M=N;显示所述M个参考构图对象。本发明实施例中,在拍摄预览界面上显示的参考构图对象的数目与拍摄对象的数目相同。这样一来,可以保证参考构图对象和拍摄对象一一对应,更加便于进行多人拍照。同时,通过一次性显示所有的参考构图对象,可以发挥参照的作用,有助于后续对拍摄对象的拍摄信息进行逐个匹配。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 in step 130, and outputting the target image, the image of the object to be photographed in the shooting preview interface may also be obtained. number; determining M reference composition objects based on the number of shooting objects, where M=N; displaying the M reference composition objects. In the embodiment of the present invention, the number of reference composition objects displayed on the shooting preview interface is the same as the number of shooting objects. In this way, one-to-one correspondence between the reference composition object and the shooting object can be guaranteed, making it easier to take pictures of multiple people. At the same time, by displaying all the reference composition objects at one time, it can play a reference role, which is helpful for subsequent matching of shooting information of the shooting objects one by one.

在本发明实施例提供的多人拍照方法中,可选地,在步骤130所述基于所述N张中间图像,进行图像合成,输出目标图像之前,还可以确定拍摄预览界面中的第k拍摄对象的第k参考构图对象,并将第k参考构图对象显示在拍摄预览界面中;在所述第k拍摄对象的拍摄信息与所述第k参考构图对象的拍摄信息相匹配的情况下,确定拍摄预览界面中的第k+1拍摄对象的第k+1参考构图对象,并将第k+1参考构图对象显示在拍摄预览界面中;其中,0<k≤N。本发明实施例基于上一参考构图对象来确定下一参考构图对象的位置的方式能够使得参考构图对象的位置之间具有一定的关联性,进而具有较佳的空间位置关系,从而保证最终合成的图像效果较佳。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 in step 130 and outputting the target image, the k-th shot in the shooting preview interface can also be determined The kth reference composition object of the object, and display the kth reference composition object in the shooting preview interface; when the shooting information of the kth shooting object matches the shooting information of the kth reference composition object, determine The k+1th reference composition object of the k+1th photographic object in the shooting preview interface, and display the k+1th reference composition object in the shooting preview interface; wherein, 0<k≤N. The method of determining the position of the next reference composition object based on the previous reference composition object in the embodiment of the present invention can make the positions of the reference composition objects have a certain correlation, and then have a better spatial position relationship, thereby ensuring the final composition. Images are better.

在本发明实施例提供的多人拍照方法中,可选地,步骤130中所述基于所述N张中间图像,进行图像合成,输出目标图像,可包括:In the multi-person photographing method provided in the embodiment of the present invention, optionally, performing image synthesis based on the N intermediate images in step 130, and outputting a target image may include:

在所述N张中间图像组成所述目标图像的全部图像内容的情况下,将所述N张中间图像合成为所述目标图像并输出。也就是说,在获取每个中间图像时,每个中间图像包括了拍摄对象周围一定范围内的背景的图像,这样,在获取了所有拍摄对象的中间图像后,可直接将所有中间图像进行合成即可得到目标图像,不需要再单独获取背景图像。In the case that the N intermediate images constitute all the image content of the target image, the N intermediate images are synthesized into the target image and output. That is to say, when each intermediate image is acquired, each intermediate image includes images of the background within a certain range around the subject, so that after acquiring the intermediate images of all the subjects, all the intermediate images can be directly synthesized The target image can be obtained without obtaining the background image separately.

在所述N张中间图像组成所述目标图像的部分图像内容的情况下,获取所述拍摄预览界面显示的背景图像,并将所述N张中间图像和所述背景图像合成为所述目标图像并输出。也就是说,在获取每个中间图像时,可仅提取对应的拍摄对象的轮廓所包含的图像,使得每个中间图像仅包括拍摄对象自身(只包含拍摄对象)的图像,这种情况下,在获取了所有拍摄对象的中间图像后,还需要获取所述拍摄预览界面显示的背景图像,其中,背景图像为所述目标图像中除了所有拍摄对象之外的其他区域的图像,这样将所述N个中间图像和所述背景图像合成为完整的目标图像并输出。In the case where the N intermediate images constitute part of the image content of the target image, acquire the background image displayed on the shooting preview interface, and synthesize the N intermediate images and the background image into the target image and output. That is to say, when acquiring each intermediate image, only the images contained in the outline of the corresponding object can be extracted, so that each intermediate image only includes the image of the object itself (only including the object). In this case, After obtaining the intermediate images of all shooting objects, it is also necessary to obtain the background image displayed on the shooting preview interface, wherein the background image is an image of other areas in the target image except all shooting objects, so that the The N intermediate images and the background image are synthesized into a complete target image and output.

在本发明实施例中,参考构图对象可以为一个构图推荐模板中的主体。构图推荐模板可以来自于构图推荐模块库,且可以通过各种不同的方式来获得。例如,一种确定构图推荐模板的方式可以为:从构图推荐模板库中,随机选取一个构图推荐模板作为确定的构图推荐模板。另一种确定构图推荐模板的方式例如可以为:呈现多个构图推荐模板,所述多个构图推荐模板中的每一个均包含多个主体的构图;接收用户(例如,拍摄者)对所述多个构图推荐模板中的一个构图推荐模板的选择;将选择的构图推荐模板作为确定的构图推荐模板。In this embodiment of the present invention, the reference composition object may be a subject in a composition recommendation template. The composition recommendation template may come from the composition recommendation module library, and may be obtained in various ways. For example, a manner of determining a composition recommendation template may be: randomly selecting a composition recommendation template from a composition recommendation template library as the determined composition recommendation template. Another way of determining a composition recommendation template may be, for example: presenting a plurality of composition recommendation templates, each of the plurality of composition recommendation templates includes compositions of a plurality of subjects; Selection of a composition recommendation template among the plurality of composition recommendation templates; using the selected composition recommendation template as a determined composition recommendation template.

在本发明实施例中,确定的所述构图推荐模板包含多个主体的构图,其中构图推荐模板中包含的主体的数目可以等于拍摄对象的总数。可在确定的构图推荐模板中,选择一个主体的位置作为所述拍摄对象的参考位置。选择一个主体的构图位置作为所述第一拍摄对象的参考位置的过程可以为:呈现确定的所述构图推荐模板;接收用户对所述构图推荐模板中的一个主体的位置的选择;将选择的主体的位置作为所述拍摄对象的参考位置。In the embodiment of the present invention, the determined composition recommendation template includes compositions of multiple subjects, where the number of subjects included in the composition recommendation template may be equal to the total number of photographed objects. In the determined composition recommendation template, the position of a subject may be selected as the reference position of the shooting object. The process of selecting the composition position of a subject as the reference position of the first subject may be: presenting the determined composition recommendation template; receiving a user's selection of a subject position in the composition recommendation template; The position of the subject serves as the reference position of the subject.

在本发明实施例中,可以从确定的所述构图推荐模板中选取未被选择过的一个主体作为参考构图对象。In this embodiment of the present invention, an unselected subject may be selected from the determined composition recommendation templates as a reference composition object.

在本发明的一个实施例中,在确定所述构图推荐模板之后,可以在所述拍摄预览界面上显示所述构图推荐模板中的所有主体。在本发明实施例中,确定的所述构图推荐模板中的所有主体可以始终显示在拍摄预览界面上,直至所有拍摄对象拍摄完毕。当然在本发明实施例中,也可以先显示确定的所述构图推荐模板中的所有主体,在所述构图推荐模板中的一个主体被选择之后,也可以在拍摄预览界面上只显示选择的主体。也就是说,在本发明实施例中,既可以始终显示构图推荐模板中的所有主体,也可以先显示确定的所述构图推荐模板中的所有主体,在所述构图推荐模板中的一个主体的构图位置被选择之后,只显示选择的主体。In an embodiment of the present invention, after the composition recommendation template is determined, all subjects in the composition recommendation template may be displayed on the shooting preview interface. In the embodiment of the present invention, all subjects in the determined composition recommendation template may be displayed on the shooting preview interface until all subjects are photographed. Of course, in the embodiment of the present invention, all subjects in the determined composition recommendation template may also be displayed first, and after a subject in the composition recommendation template is selected, only the selected subject may be displayed on the shooting preview interface . That is to say, in this embodiment of the present invention, all the subjects in the recommended composition template can be displayed all the time, or all the subjects in the recommended composition template that are determined can be displayed first. After the composition position is selected, only the selected subject is displayed.

在本发明实施例中,以第一拍摄对象和第二拍摄对象为例,第一拍摄对象的中间图像(例如主体图像)显示在拍摄预览界面上后,在对第二拍摄对象进行拍摄时,在拍摄预览界面上可无需再次显示第一拍摄对象的实时画面。本发明实施例在对第二拍摄对象进行拍摄时,拍摄预览界面可以仅仅用于拍摄第二拍摄对象,而忽略或不拍摄其他拍摄对象(例如第二拍摄对象的上一拍摄对象在拍摄完成后,可离开拍摄场地)。如此,在本发明实施例中,可以实现对多拍摄对象中的各个拍摄对象逐一地单独拍摄。In the embodiment of the present invention, taking the first shooting object and the second shooting object as an example, after the intermediate image (for example, the subject image) of the first shooting object is displayed on the shooting preview interface, when shooting the second shooting object, On the shooting preview interface, there is no need to display the real-time picture of the first shooting object again. In the embodiment of the present invention, when shooting the second object, the shooting preview interface can only be used to shoot the second object, while ignoring or not shooting other objects (for example, after the shooting of the previous object of the second object is completed , you can leave the shooting location). In this way, in the embodiment of the present invention, individual shooting of each shooting object in multiple shooting objects can be realized one by one.

本发明实施例提供的多人拍照方法,先显示参考构图对象,并以参考构图对象为参照,在检测到各个拍摄对象的拍摄信息与对应的参考构图对象的拍摄信息相匹配的情况下,获取各个拍摄对象对应的中间图像,并进行图像合成,输出目标图像。本发明实施例在各拍摄对象的拍摄信息与对应的参考构图对象的拍摄信息相匹配的情况下,可自动获取对应的中间图像,即使有拍摄对象离开的情况下,由于获取了该拍摄对象对应的中间图像,其他拍摄对象可继续摆pose,即使拍摄过程中有人离开也不影响拍照的正常进行,从而确保了拍摄进度无延迟。In the multi-person photographing method provided by the embodiment of the present invention, the reference composition object is displayed first, and the reference composition object is used as a reference. When it is detected that the shooting information of each shooting object matches the shooting information of the corresponding reference composition object, the The intermediate images corresponding to each shooting object are combined, and the target image is output. In the embodiment of the present invention, when the shooting information of each shooting object matches the shooting information of the corresponding reference composition object, the corresponding intermediate image can be automatically acquired. In the middle image, other subjects can continue to pose, even if someone leaves during the shooting process, it will not affect the normal process of taking pictures, thus ensuring that there is no delay in the shooting progress.

下面结合附图,以具体实施例对本发明进行进一步阐释。在下文描述中,构图推荐模板中的主体可以为上文提到的参考构图对象。同时需了解的是,下文中只是以拍摄信息为拍摄位置为例进行说明。在拍摄信息为拍摄姿势时的多人拍照方法可以类似得到。The present invention will be further explained with specific embodiments below in conjunction with the accompanying drawings. In the following description, the subject in the composition recommendation template may be the reference composition object mentioned above. At the same time, it should be understood that, in the following, the shooting information is taken as the shooting location as an example for illustration. The method for taking pictures of multiple people when the shooting information is a shooting posture can be similarly obtained.

图2显示了一种多人拍照方法。如图2所示,本发明实施例提供的多人拍照方法可包括:Figure 2 shows a method for taking pictures of multiple people. As shown in Figure 2, the multi-person photographing method provided by the embodiment of the present invention may include:

步骤201、开启构图位置推荐功能。Step 201, enabling the composition position recommendation function.

终端设备可提供构图位置推荐功能的开关入口。在终端(例如,相机)显示拍摄预览界面后,可根据用户选择开启构图位置推荐功能,当然也可以默认开启构图位置推荐功能。在构图位置推荐功能开启后,可显示多人构图引导界面,例如让用户选择拍照人数等。The terminal device can provide an on/off entry of the composition position recommendation function. After the terminal (for example, a camera) displays the shooting preview interface, the composition position recommendation function can be enabled according to the user's selection, and of course the composition position recommendation function can also be enabled by default. After the composition position recommendation function is turned on, the multi-person composition guidance interface can be displayed, for example, allowing users to select the number of people to take pictures.

步骤202、确定构图推荐模板。Step 202, determining a composition recommendation template.

在进行拍照人数选择的同时,终端的主屏上可显示针对选定人数的一或多个构图推荐模板,以供用户从中选择一个构图推荐模板,并可将用户选择的构图推荐模板作为当前构图推荐模板。当然,在确定构图推荐模板时,也可以从构图推荐模板库中,随机选取一个构图推荐模板作为当前的构图推荐模板。While selecting the number of people to take pictures, one or more composition recommendation templates for the selected number of people can be displayed on the main screen of the terminal for the user to choose a composition recommendation template from among them, and the composition recommendation template selected by the user can be used as the current composition recommendation template. Certainly, when determining the composition recommendation template, a composition recommendation template may also be randomly selected from the composition recommendation template library as the current composition recommendation template.

步骤203、在确定的构图推荐模板中,选择一个主体作为当前拍摄对象的参考构图对象。Step 203 , in the determined composition recommendation template, select a subject as a reference composition object of the current subject.

本步骤可以具体为:用户从确定的构图推荐模板中选择一个主体作为当前拍摄对象的参考构图对象,或者检测当前拍摄对象的姿势,将确定的所述构图推荐模板中与所述姿势相匹配的主体作为当前拍摄对象的参考构图对象。This step can be specifically as follows: the user selects a subject from the determined composition recommendation template as a reference composition object of the current subject, or detects the posture of the current subject, and uses the determined composition recommendation template that matches the posture The subject serves as the reference composition object for the current subject.

步骤204、如果当前拍摄对象在拍摄预览界面中的拍摄位置与当前拍摄对象的参考构图对象的位置重合,采集所述当前拍摄对象的中间图像(主体图像)。Step 204, if the shooting position of the current shooting object in the shooting preview interface coincides with the position of the reference composition object of the current shooting object, capture an intermediate image (subject image) of the current shooting object.

在本发明实施例中,可以通过各种操作来触发采集当前拍摄对象的主体图像(抠图)操作。例如双击屏幕操作、长按抠图区域操作等。In the embodiment of the present invention, various operations may be used to trigger the operation of acquiring the subject image (cutout) of the current subject. For example, double-click the screen to operate, long-press the cutout area to operate, etc.

当前拍摄对象在拍摄完后,可以离开拍摄地点,而无需继续采集其图像。After the current subject is photographed, they can leave the shooting location without continuing to capture their images.

步骤205、将当前拍摄对象的所述主体图像显示在拍摄预览界面上,并对下一拍摄对象进行拍照。Step 205 , displaying the subject image of the current shooting object on the shooting preview interface, and taking a picture of the next shooting object.

在对下一拍摄对象进行拍照时,可重复上面步骤203至步骤205。不同之处可在于,在从构图推荐模板中选择一个主体时可选择未被选择过的主体作为下一拍摄对象的参考构图对象。When taking pictures of the next object to be photographed, the above steps 203 to 205 may be repeated. The difference may be that, when selecting a subject from the composition recommendation template, an unselected subject may be selected as a reference composition object for the next object to be photographed.

对多拍摄对象中的各个未拍摄对象,可重复步骤203至步骤205,直到所有拍摄对象拍摄完成。For each unphotographed object in the multiple photographed objects, step 203 to step 205 may be repeated until all photographed objects are photographed.

以四人拍照为例,确定的构图推荐模板可以如图3A所示。图3A中的构图推荐模板中包含四个主体,从左到右分别是第一个主体310、第二个主体320、第三个主体330和第四个主体340,这四个主体在未被选择之前,可以以虚线框的形式显示。可以在图3A所示的构图推荐模板中选择第二个主体320作为针对第一个拍摄对象的参考构图对象,如图3B所示,第二个主体320在被选择之后其图像可以由虚线被为实线,呈现为主体321。在第一个拍摄对象拍摄完毕后,将其主体图像采集出(抠出),并显示在拍摄预览界面上对应于第二个主体320的位置处,如图3C所示,附图标记322示出了第一个拍摄对象的主体图像。在拍摄预览界面上,选择针对第二个拍摄对象的参考构图对象,例如选择第一个主体310,如图3D所示,第一个主体310在被选择之后其图像可以由虚线被为实线,呈现为主体311。在对第二个拍摄对象拍摄完毕后,将其图像采集出,并连同第一个拍摄对象的采集出的图像一起显示在下一拍摄预览界面上,如图3E所示,附图标记312示出了第二个拍摄对象的主体图像。后续可从第三个主体和第四个主体中继续选择针对下一拍摄对象的参考构图对象,并采集图像,直至所有拍摄对象都完成拍摄,形成最终的多人拍照合影图片。Taking a photo of four people as an example, the determined composition recommendation template may be as shown in FIG. 3A . The composition recommendation template in FIG. 3A contains four subjects, respectively the first subject 310, the second subject 320, the third subject 330 and the fourth subject 340 from left to right. Can be displayed as a dashed box until selected. In the composition recommendation template shown in FIG. 3A, the second subject 320 can be selected as a reference composition object for the first subject. As shown in FIG. is a solid line, appearing as body 321 . After the shooting of the first subject is finished, the subject image is collected (cut out), and displayed on the shooting preview interface at the position corresponding to the second subject 320, as shown in FIG. 3C, reference numeral 322 indicates The main image of the first subject is displayed. On the shooting preview interface, select the reference composition object for the second shooting object, for example, select the first subject 310, as shown in Figure 3D, after the first subject 310 is selected, its image can be changed from a dotted line to a solid line , rendered as body 311. After the shooting of the second subject is completed, its image is collected and displayed on the next shooting preview interface together with the collected image of the first subject, as shown in FIG. 3E , and reference numeral 312 shows The main image of the second subject is captured. Subsequently, you can continue to select the reference composition object for the next subject from the third subject and the fourth subject, and collect images until all the subjects are photographed to form the final group photo with multiple people.

本发明实施例通过将拍摄的当前拍摄对象的主体图像采集出并显示在拍摄预览界面上,这样一来,在对下一拍摄对象进行拍摄时,可无需再拍摄之前的拍摄对象,同时由于之前的拍摄对象的主体图像已呈现在拍摄预览界面上,如此可以保证不用采集之前的拍摄对象的图像,即可达到供对当前拍摄对象的拍摄参照的效果,实现了对多拍摄对象较好的拍摄效果。In the embodiment of the present invention, the main body image of the current subject is collected and displayed on the shooting preview interface. In this way, when the next subject is photographed, there is no need to photograph the previous subject. The main image of the shooting object has been presented on the shooting preview interface, so that it can be used as a reference for the shooting of the current shooting object without collecting the previous image of the shooting object, and realizes better shooting of multiple shooting objects Effect.

在图2所示实施例中,可以确定构图推荐模板中的主体的构图位置与当前拍摄对象的拍摄位置是否匹配,并在每拍摄一个人之后再从构图推荐模板中推荐下一个人的构图位置,构图推荐模板中的各个主体的构图位置可始终显示在拍摄预览界面中,以便于进行构图位置选择。In the embodiment shown in Fig. 2, it can be determined whether the composition position of the subject in the composition recommendation template matches the shooting position of the current subject, and after each person is photographed, the composition position of the next person is recommended from the composition recommendation template , the composition position of each subject in the composition recommendation template can always be displayed in the shooting preview interface, so as to facilitate the composition position selection.

需了解的是,在本发明实施例中,除了基于构图推荐模板确定参考构图对象之外,还可以基于上一个已拍摄对象的参考构图对象的位置来获取当前拍摄对象的参考构图对象的位置。It should be understood 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 object may also be obtained based on the position of the reference composition object of the last photographed object.

具体地,如果当前拍摄对象不是首个拍摄对象,此时,可基于当前拍摄对象的上一已拍摄对象的参考构图对象的位置,获取所述当前拍摄对象的参考构图对象的位置。还可以基于当前拍摄对象的上一已拍摄对象的参考构图对象的位置以及拍摄预览界面的黄金分割点,获取所述当前拍摄对象的参考构图对象的位置。例如,以上一已拍摄对象对拍摄预览界面进行划分,取划分后余下的较大拍摄预览界面的黄金分割点的位置作为当前拍摄对象的参考构图对象的位置。当然,在本发明实施例中,其他合适的方式也可以用来获取当前拍摄对象的拍摄位置。Specifically, if the current object to be photographed is not the first object to be photographed, at this time, the position of the reference composition object of the current object to be photographed may be acquired based on the position of the reference composition object of a previous object that has been photographed before the current object to be photographed. The position of the reference composition object of the current object to be photographed may also be obtained based on the position of the reference composition object of the previous object to be photographed and the golden section point on the shooting preview interface. For example, the shooting preview interface is divided by the above captured object, and the position of the golden section point of the remaining large shooting preview interface after division is taken as the position of the reference composition object of the current shooting object. Certainly, in the embodiment of the present invention, other suitable manners may also be used to acquire the shooting position of the current shooting object.

如果当前拍摄对象是第一个拍摄对象,其对应的参考构图对象的位置也可以例如来自于某些指定的构图位置,例如屏幕中心位置、屏幕三分之一位置等。If the current shooting object is the first shooting object, the position of the corresponding reference composition object may also come from some specified composition positions, such as the center position of the screen, the third position of the screen, and the like.

对于每一个拍摄对象,在得到拍摄对象对应的参考构图对象的拍摄位置之后,可在拍摄对象在拍摄预览界面中的拍摄位置与其对应的参考构图对象的位置重合的情况下,采集所述拍摄对象的中间图像。For each shooting object, after obtaining the shooting position of the reference composition object corresponding to the shooting object, the shooting object can be collected under the condition that the shooting position of the shooting object in the shooting preview interface coincides with the position of the corresponding reference composition object the intermediate image.

在所有拍摄对象完成拍摄后,即可将所有拍摄对象的拍摄图像进行合成并输出,以形成多人拍摄图片,即合照。After all the subjects are photographed, the captured images of all the subjects can be synthesized and output to form a picture taken by multiple people, that is, a group photo.

可参照图4A至图4D,图4A中显示了例如第一个拍摄对象对应的参考构图对象410的位置;在第一个拍摄对象在拍摄预览界面中的拍摄位置与其参考构图对象的位置重合时,采集出(抠出)第一个拍摄对象的图像,如图4B所示,附图标记411示出了第一个拍摄对象的主体图像;后续可基于图4B所示的采集图像411的位置获取针对下一个拍摄对象(即,第二个拍摄对象)的参考构图对象的位置,获取的第二个拍摄对象的参考构图对象420的位置可例如如图4C所示;在第二个拍摄对象在拍摄预览界面中的拍摄位置与图4C中所示参考构图对象420的位置不重合时,可重新获取第二个拍摄对象对应的参考构图对象的位置,如图4D所示,重新获取的第二个拍摄对象的拍摄位置可以例如为附图标记420’所示。后续可继续检测第二个拍摄对象在拍摄预览界面中的拍摄位置与图4D中所示参考构图对象420’的位置是否重合,并在重合时进行图像采集,不重合时重新获取下一个参考构图对象的位置。如此往复,直至所有拍摄对象都完成拍摄,形成最终的多人拍照合影图片。Refer to FIG. 4A to FIG. 4D. FIG. 4A shows, for example, the position of the reference composition object 410 corresponding to the first shooting object; when the shooting position of the first shooting object in the shooting preview interface coincides with the position of the reference composition object , collect (cut out) the image of the first object to be photographed, as shown in FIG. 4B , reference numeral 411 shows the subject image of the first object to be photographed; the follow-up can be based on the position of the collected image 411 shown in FIG. 4B The position of the reference composition object 420 for the next object to be photographed (that is, the second object to be photographed) is acquired, and the position of the reference composition object 420 of the second object to be photographed may be as shown in FIG. 4C for example; in the second object to be photographed When the shooting position in the shooting 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 shooting object can be reacquired, as shown in FIG. 4D , the reacquired first The shooting positions of the two shooting objects may be, for example, indicated by reference numeral 420 ′. Subsequently, it is possible to continue to detect whether the shooting position of the second shooting object in the shooting preview interface coincides with the position of the reference composition object 420' shown in FIG. 4D, and perform image acquisition when they overlap, and acquire the next reference composition again when they do not overlap. The location of the object. This goes on and on until all the subjects are photographed to form the final group photo taken by multiple people.

需了解的是,在本发明实施例中,所述终端可包括主屏和副屏,所述主屏上可始终显示终端的拍摄预览界面,所述副屏上可显示采集出的拍摄对象的图像。具体地,在本发明实施例中,每当采集到当前拍摄对象的主体图像时,即可将当前拍摄对象的主体图像显示在副屏上。同时,可在所述多拍摄对象中的所有拍摄对象拍摄完成时,将生成的多拍摄对象图像显示在所述副屏上。It should be understood that, in the embodiment of the present invention, the terminal may include a main screen and a secondary screen, the main screen may always display the shooting preview interface of the terminal, and the secondary screen may display the captured image of the subject. Specifically, in the embodiment of the present invention, whenever the main body image of the current shooting object is collected, the main body image of the current shooting object can be displayed on the secondary screen. At the same time, when all the shooting objects in the multiple shooting objects are photographed, the generated images of the multiple shooting objects may be displayed on the secondary screen.

下面以图2所示实施例为例,通过附图5A至5E对主副屏的相关显示进行进一步阐释。图5A示出了在确定出构图推荐模板时的主副屏显示。如图5A至图5E所示,上面空白的图像表示副屏的显示,下面的图片表示主屏的显示,主屏从左往右显示了四个主体:第一个主体510、第二个主体520、第三个主体530和第四个主体540,这四个主体在未被选择之前,可以以虚线框的形式显示。图5B示出了在构图推荐模板中从左往右计的第二个主体被选择时的主副屏显示,第二个主体520在被选择之后其图像可以由虚线被为实线,呈现为主体521。图5C示出了在第一个拍摄对象被拍摄并采集图像后的主副屏显示,附图标记522示出了第一个拍摄对象的主体图像,第一个拍摄对象的主体图像522对应于第二个主体520,第一个拍摄对象的主体图像522的位置与第二个主体520的构图位置相同,此时,副屏上可显示第一个拍摄对象的主体图像522’。图5D示出了在构图推荐模板中从左往右计的第一个主体被选择时的主副屏显示,第一个主体510在被选择之后其图像可以由虚线被为实线,呈现为主体511。图5E示出了在第二个拍摄对象被拍摄并采集图像后的主副屏显示,附图标记512示出了第二个拍摄对象的主体图像,第二个拍摄对象的主体图像512对应于第一个主体510,第二个拍摄对象的主体图像512的位置与第一个主体510的构图位置相同,此时,副屏上除了可显示第一个拍摄对象的主体图像522’,还可显示第二个拍摄对象的主体图像512’。后续在第三个拍摄对象被拍摄和采集图像后也可以显示在副屏上,第三个拍摄对象例如可以对应于构图推荐模板中第三个主体,以及在第四个拍摄对象被拍摄和采集图像后也可以显示在副屏上,第四个拍摄对象例如可以对应于构图推荐模板中的第四个主体。Taking the embodiment shown in FIG. 2 as an example below, the relevant display of the main and secondary screens will be further explained with reference to FIGS. 5A to 5E . FIG. 5A shows the display of the primary and secondary screens when the composition recommendation template is determined. As shown in Figure 5A to Figure 5E, the upper blank image represents the display of the secondary screen, the lower image represents the display of the main screen, and the main screen displays four subjects from left to right: the first subject 510, the second subject 520, The third body 530 and the fourth body 540, before these four bodies are selected, can be displayed in the form of dotted boxes. FIG. 5B shows the main and secondary screen display when the second subject from left to right in the composition recommendation template is selected. After the second subject 520 is selected, its image can be changed from a dotted line to a solid line, presenting as Subject 521. FIG. 5C shows the main and secondary screen display after the first subject is photographed and the image is captured, and reference numeral 522 shows the main image of the first subject, and the subject image 522 of the first subject corresponds to For the second subject 520, the position of the subject image 522 of the first subject is the same as the composition position of the second subject 520. At this time, the subject image 522' of the first subject can be displayed on the secondary screen. FIG. 5D shows the main and secondary screen display when the first subject from left to right in the composition recommendation template is selected. After the first subject 510 is selected, its image can be changed from a dotted line to a solid line, presented as Subject 511. FIG. 5E shows the main and secondary screen displays after the second object is photographed and the image is captured. Reference numeral 512 shows the main image of the second object. The main image 512 of the second object corresponds to The position of the subject image 512 of the first subject 510 and the second subject is the same as the composition position of the first subject 510. At this time, in addition to displaying the subject image 522' of the first subject on the secondary screen, A subject image 512' of a second subject is displayed. Subsequent images may also be displayed on the secondary screen after the third subject is photographed and captured. The third subject may correspond to, for example, the third subject in the composition recommendation template, and the fourth subject is photographed and captured. The image may also be displayed on the secondary screen, and the fourth subject may correspond to, for example, the fourth subject in the composition recommendation template.

图6是本发明实施例提供的一种终端的结构框图。参照图6,本发明实施例提供的终端600可包括:检测模块601、获取模块602和获取模块603。其中:Fig. 6 is a structural block diagram of a terminal provided by an embodiment of the present invention. Referring to FIG. 6 , a terminal 600 provided in an embodiment of the present invention may include: a detection module 601 , an acquisition module 602 and an acquisition module 603 . in:

检测模块601,用于在拍摄预览界面显示M个参考构图对象的状态下,检测拍摄预览界面中的N个拍摄对象的拍摄信息;The detection module 601 is configured to detect shooting information of N shooting objects in the shooting preview interface in a state where M reference composition objects are displayed on the shooting preview interface;

获取模块602,用于对于所述N个拍摄对象中的每个拍摄对象,在检测到所述拍摄对象的拍摄信息与对应的参考构图对象的拍摄信息相匹配的情况下,获取所述拍摄对象对应的中间图像,得到N张中间图像;The obtaining module 602 is configured to, for each of the N shooting objects, acquire the shooting object when it is detected that the shooting information of the shooting object matches the shooting information of the corresponding reference composition object Corresponding intermediate images, get N intermediate images;

处理模块603,用于基于所述N张中间图像,进行图像合成,输出目标图像;A processing module 603, configured to perform image synthesis based on the N intermediate images, and output a target image;

其中,所述拍摄信息包括拍摄位置、拍摄姿势中的至少一项;N为大于1的整数,M为正整数。Wherein, the shooting information includes at least one of shooting position and shooting posture; N is an integer greater than 1, and M is a positive integer.

可选地,在本发明的一个实施例中,所述获取模块602可具体用于:Optionally, in an embodiment of the present invention, the obtaining module 602 may be specifically configured to:

对于所述N个拍摄对象中的第i拍摄对象,在检测到所述第i拍摄对象的拍摄信息与第i参考构图对象的拍摄信息相匹配的情况下,获取包括所述第i拍摄对象的第一区域的第i中间图像;For the i-th shooting object among the N shooting objects, when it is detected that the shooting information of the i-th shooting object matches the shooting information of the i-th reference composition object, acquire the image including the i-th shooting object The i-th intermediate image of the first region;

所述终端还包括显示模块,用于将目标区域的显示内容更新为所述第i中间图像;The terminal also includes a display module, configured to update the display content of the target area to the ith intermediate image;

其中,0<i≤N。Wherein, 0<i≦N.

可选地,在本发明的一个实施例中,所述显示模块具体用于:Optionally, in an embodiment of the present invention, the display module is specifically used for:

将拍摄预览界面的所述第一区域的预览图像区域的显示内容更新为所述第i中间图像;updating the display content of the preview image area in the first area of the shooting preview interface to the ith intermediate image;

或者,在所述终端包括第一屏和第二屏,且拍摄预览界面显示在第一屏的情况下,将第二屏中对应所述第一区域的第二区域显示所述第i中间图像。Or, in the case that the terminal includes a first screen and a second screen, and the shooting preview interface is displayed on the first screen, the ith intermediate image is displayed in the second area corresponding to the first area in the second screen .

可选地,在本发明的一个实施例中,所述获取模块602还用于:获取拍摄预览界面中的拍摄对象的个数;Optionally, in an embodiment of the present invention, the acquiring module 602 is further configured to: acquire the number of shooting objects in the shooting preview interface;

所述处理模块603,还用于基于所述拍摄对象的个数,确定M个参考构图对象,其中,M=N;The processing module 603 is further configured to determine M reference composition objects based on the number of the photographed objects, where M=N;

所述终端还包括显示模块,用于显示所述M个参考构图对象。The terminal further includes a display module, configured to display the M reference composition objects.

可选地,在本发明的一个实施例中,所述处理模块603,在基于所述N张中间图像,进行图像合成,输出目标图像之前,还用于确定拍摄预览界面中的第k拍摄对象的第k参考构图对象;在所述第k拍摄对象的拍摄信息与所述第k参考构图对象的拍摄信息相匹配的情况下,确定拍摄预览界面中的第k+1拍摄对象的第k+1参考构图对象;Optionally, in one embodiment of the present invention, the processing module 603 is further configured to determine the k-th shooting object in the shooting preview interface before performing image synthesis based on the N intermediate images and outputting the target image The kth reference composition object; in the case that the shooting information of the kth shooting object matches the shooting information of the kth reference composition object, determine the k+th of the k+1th shooting object in the shooting preview interface 1 reference composition object;

所述终端还包括显示模块,用于将第k参考构图对象显示在拍摄预览界面中,以及将第k+1参考构图对象显示在拍摄预览界面中;The terminal also includes a display module, configured to display the kth reference composition object in the shooting preview interface, and display the k+1th reference composition object in the shooting preview interface;

其中,0<k≤N。Wherein, 0<k≤N.

可选地,在本发明的一个实施例中,所述处理模块603可具体用于:Optionally, in an embodiment of the present invention, the processing module 603 may be specifically configured to:

在所述N张中间图像组成所述目标图像的全部图像内容的情况下,将所述N张中间图像合成为所述目标图像并输出;In the case where the N intermediate images constitute all the image content of the target image, the N intermediate images are synthesized into the target image and output;

在所述N张中间图像组成所述目标图像的部分图像内容的情况下,获取所述拍摄预览界面显示的背景图像,并将所述N张中间图像和所述背景图像合成为所述目标图像并输出。In the case where the N intermediate images constitute part of the image content of the target image, acquire the background image displayed on the shooting preview interface, and synthesize the N intermediate images and the background image into the target image and output.

本发明实施例提供的终端能够实现图1至图5E的方法实施例中终端实现的各个过程,为避免重复,这里不再赘述。The terminal provided by the embodiment of the present invention can implement various processes implemented by the terminal in the method embodiments in FIG. 1 to FIG. 5E , and details are not repeated here to avoid repetition.

本发明实施例提供的终端,先显示参考构图对象,并以参考构图对象为参照,在检测到各个拍摄对象的拍摄信息与对应的参考构图对象的拍摄信息相匹配的情况下,获取各个拍摄对象对应的中间图像,并进行图像合成,输出目标图像。本发明实施例在各拍摄对象的拍摄信息与对应的参考构图对象的拍摄信息相匹配的情况下,可自动获取对应的中间图像,即使有拍摄对象离开的情况下,由于获取了该拍摄对象对应的中间图像,其他拍摄对象可继续摆pose,即使拍摄过程中有人离开也不影响拍照的正常进行,从而确保了拍摄进度无延迟。The terminal provided by the embodiment of the present invention first displays the reference composition object, and uses the reference composition object as a reference, and obtains each photography object when it is detected that the shooting information of each shooting object matches the shooting information of the corresponding reference composition object Corresponding to the intermediate image, and perform image synthesis, and output the target image. In the embodiment of the present invention, when the shooting information of each shooting object matches the shooting information of the corresponding reference composition object, the corresponding intermediate image can be automatically acquired. In the middle image, other subjects can continue to pose, even if someone leaves during the shooting process, it will not affect the normal process of taking pictures, thus ensuring that there is no delay in the shooting progress.

需了解的是,本发明实施例中的终端600可以为下文中提到的终端。It should be understood that the terminal 600 in the embodiment of the present invention may be the terminal mentioned below.

图7为实现本发明各个实施例的一种终端的硬件结构示意图。Fig. 7 is a schematic diagram of a hardware structure of a terminal implementing various embodiments of the present invention.

该终端700可包括但不限于:射频单元701、网络模块702、音频输出单元703、输入单元704、传感器705、显示单元706、用户输入单元707、接口单元708、存储器709、处理器710、以及电源711等部件。本领域技术人员可以理解,图7中示出的终端结构并不构成对终端的限定,终端可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。在本发明实施例中,终端包括但不限于手机、平板电脑、笔记本电脑、掌上电脑等。The terminal 700 may include but 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, and Power supply 711 and other components. Those skilled in the art can understand that the terminal structure shown in FIG. 7 does not constitute a limitation on the terminal, and the terminal may include more or less components than shown in the figure, or combine certain components, or arrange different 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 palmtop computer, and the like.

其中,处理器710,用于在拍摄预览界面显示M个参考构图对象的状态下,检测拍摄预览界面中的N个拍摄对象的拍摄信息;对于所述N个拍摄对象中的每个拍摄对象,在检测到所述拍摄对象的拍摄信息与对应的参考构图对象的拍摄信息相匹配的情况下,获取所述拍摄对象对应的中间图像,得到N张中间图像;基于所述N张中间图像,进行图像合成,输出目标图像;其中,所述拍摄信息包括拍摄位置、拍摄姿势中的至少一项;N为大于1的整数,M为正整数。Wherein, the processor 710 is configured to detect shooting information of N shooting objects in the shooting preview interface in a state where M reference composition objects are displayed on the shooting preview interface; for each shooting object in the N shooting objects, When it is detected that the shooting information of the shooting object matches the shooting information of the corresponding reference composition object, acquire the intermediate image corresponding to the shooting object to obtain N intermediate images; based on the N intermediate images, perform Image synthesis, outputting a target image; wherein, the shooting information includes at least one of shooting position and shooting posture; N is an integer greater than 1, and M is a positive integer.

应理解的是,本发明实施例中,射频单元701可用于收发信息或通话过程中,信号的接收和发送,具体的,将来自基站的下行数据接收后,给处理器710处理;另外,将上行的数据发送给基站。通常,射频单元701包括但不限于天线、至少一个放大器、收发信机、耦合器、低噪声放大器、双工器等。此外,射频单元701还可以通过无线通信系统与网络和其他设备通信。It should be understood that, in the embodiment of the present invention, the radio frequency unit 701 can be used to receive and send signals during sending and receiving information or during a call. Specifically, the downlink data from the base station is received and processed by the processor 710; in addition, the Uplink data is sent to the base station. Generally, the 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 can also communicate with the network and other devices through a wireless communication system.

终端通过网络模块702为用户提供了无线的宽带互联网访问,如帮助用户收发电子邮件、浏览网页和访问流式媒体等。The terminal provides users with wireless broadband Internet access through the network module 702, such as helping users send and receive emails, browse web pages, and access streaming media.

音频输出单元703可以将射频单元701或网络模块702接收的或者在存储器709中存储的音频数据转换成音频信号并且输出为声音。而且,音频输出单元703还可以提供与终端700执行的特定功能相关的音频输出(例如,呼叫信号接收声音、消息接收声音等等)。音频输出单元703包括扬声器、蜂鸣器以及受话器等。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 (for example, call signal reception sound, message reception sound, etc.). The audio output unit 703 includes a speaker, a buzzer, a receiver, and the like.

输入单元704用于接收音频或视频信号。输入单元704可以包括图形处理器(Graphics Processing Unit,GPU)7041和麦克风7042,图形处理器7041对在视频捕获模式或图像捕获模式中由图像捕获装置(如摄像头)获得的静态图片或视频的图像数据进行处理。处理后的图像帧可以显示在显示单元706上。经图形处理器7041处理后的图像帧可以存储在存储器709(或其它存储介质)中或者经由射频单元701或网络模块702进行发送。麦克风7042可以接收声音,并且能够将这样的声音处理为音频数据。处理后的音频数据可以在电话通话模式的情况下转换为可经由射频单元701发送到移动通信基站的格式输出。The input unit 704 is used to receive audio or video signals. The input unit 704 may include a graphics processing unit (Graphics Processing Unit, GPU) 7041 and a microphone 7042, and the graphics processor 7041 is used for still pictures or video images obtained by an image capture device (such as a camera) in a video capture mode or an image capture mode. The data is processed. The processed image frames may be displayed on the display unit 706 . The image frames processed by the graphics processor 7041 may be stored in the memory 709 (or other storage media) or sent via the radio frequency unit 701 or the network module 702 . The microphone 7042 can receive sound, and can process such sound into audio data. The processed audio data can be converted into a format that can be sent to a mobile communication base station via the radio frequency unit 701 for output in the case of a phone call mode.

终端700还可包括至少一种传感器705,比如光传感器、运动传感器以及其他传感器。具体地,光传感器包括环境光传感器及接近传感器,其中,环境光传感器可根据环境光线的明暗来调节显示面板7061的亮度,接近传感器可在终端700移动到耳边时,关闭显示面板7061和/或背光。作为运动传感器的一种,加速计传感器可检测各个方向上(一般为三轴)加速度的大小,静止时可检测出重力的大小及方向,可用于识别终端姿态(比如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比如计步器、敲击)等;传感器705还可以包括指纹传感器、压力传感器、虹膜传感器、分子传感器、陀螺仪、气压计、湿度计、温度计、红外线传感器等,在此不再赘述。The terminal 700 may also include at least one sensor 705, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor and a proximity sensor, wherein the ambient light sensor can adjust the brightness of the display panel 7061 according to the brightness of the ambient light, and the proximity sensor can turn off the display panel 7061 and/or when the terminal 700 moves to the ear. or backlight. As a kind of motion sensor, the accelerometer sensor can detect the magnitude of acceleration in various directions (generally three axes), and can detect the magnitude and direction of gravity when it is stationary, and can be used to identify terminal posture (such as horizontal and vertical screen switching, related games, Magnetometer posture calibration), vibration recognition related functions (such as pedometer, knocking), etc.; sensor 705 can also include fingerprint sensor, pressure sensor, iris sensor, molecular sensor, gyroscope, barometer, hygrometer, thermometer, infrared ray Sensors, etc., will not be described in detail here.

显示单元706用于显示由用户输入的信息或提供给用户的信息。显示单元706可包括显示面板7061,可以采用液晶显示器(Liquid Crystal Display,LCD)、有机发光二极管(Organic Light-Emitting Diode,OLED)等形式来配置显示面板7061。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 (Liquid Crystal Display, LCD), an organic light-emitting diode (Organic Light-Emitting Diode, OLED), or the like.

用户输入单元707可用于接收输入的数字或字符信息,以及产生与终端的用户设置以及功能控制有关的键信号输入。具体地,用户输入单元707包括触控面板7071以及其他输入设备7072。触控面板7071,也称为触摸屏,可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在触控面板7071上或在触控面板7071附近的操作)。触控面板7071可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再送给处理器710,接收处理器710发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触控面板7071。除了触控面板7071,用户输入单元707还可以包括其他输入设备7072。具体地,其他输入设备7072可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆,在此不再赘述。The user input unit 707 can be used to receive input numbers or character information, and generate key signal input 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, can collect touch operations of the user on or near it (for example, the user uses any suitable object or accessory such as a finger or a stylus on the touch panel 7071 or near the touch panel 7071). operate). The touch panel 7071 may include two parts, a touch detection device and a touch controller. Among them, the touch detection device detects the user's touch orientation, and detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into contact coordinates, and sends it to the For the processor 710, receive the command sent by the processor 710 and execute it. In addition, the touch panel 7071 can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic wave. In addition to the touch panel 7071 , the user input unit 707 may also include other input devices 7072 . Specifically, other input devices 7072 may include, but are not limited to, physical keyboards, function keys (such as volume control keys, switch keys, etc.), trackballs, mice, and joysticks, which will not be repeated here.

进一步的,触控面板7071可覆盖在显示面板7061上,当触控面板7071检测到在其上或附近的触摸操作后,传送给处理器710以确定触摸事件的类型,随后处理器710根据触摸事件的类型在显示面板7061上提供相应的视觉输出。虽然在图7中,触控面板7071与显示面板7061是作为两个独立的部件来实现终端的输入和输出功能,但是在某些实施例中,可以将触控面板7071与显示面板7061集成而实现终端的输入和输出功能,具体此处不做限定。Furthermore, the touch panel 7071 can be covered on the display panel 7061. When the touch panel 7071 detects a touch operation on or near it, it will be sent to the processor 710 to determine the type of the touch event. The type of event provides a corresponding visual output on the display panel 7061. Although in FIG. 7, the touch panel 7071 and the display panel 7061 are used as two independent components to realize the input and output functions of the terminal, in some embodiments, the touch panel 7071 and the display panel 7061 can be integrated to form Realize the input and output functions of the terminal, which is not limited here.

接口单元708为外部装置与终端700连接的接口。例如,外部装置可以包括有线或无线头戴式耳机端口、外部电源(或电池充电器)端口、有线或无线数据端口、存储卡端口、用于连接具有识别模块的装置的端口、音频输入/输出(I/O)端口、视频I/O端口、耳机端口等等。接口单元708可以用于接收来自外部装置的输入(例如,数据信息、电力等等)并且将接收到的输入传输到终端700内的一个或多个元件或者可以用于在终端700和外部装置之间传输数据。The interface unit 708 is an interface for connecting an external device to the terminal 700 . For example, an external device may include a wired or wireless headset port, an external power (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device with an identification module, audio input/output (I/O) ports, video I/O ports, headphone ports, and more. The interface unit 708 may be used to receive input from an external device (for example, data information, power, etc.) transfer data between.

存储器709可用于存储软件程序以及各种数据。存储器709可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序(比如声音播放功能、图像播放功能等)等;存储数据区可存储根据手机的使用所创建的数据(比如音频数据、电话本等)等。此外,存储器709可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。The memory 709 can be used to store software programs as well as various data. The memory 709 can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, at least one application program required by a function (such as a sound playback function, an image playback function, etc.); Data created by the use of mobile phones (such as audio data, phonebook, etc.), etc. In addition, the memory 709 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage devices.

处理器710是终端的控制中心,利用各种接口和线路连接整个终端的各个部分,通过运行或执行存储在存储器709内的软件程序和/或模块,以及调用存储在存储器709内的数据,执行终端的各种功能和处理数据,从而对终端进行整体监控。处理器710可包括一个或多个处理单元;优选的,处理器710可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器710中。The processor 710 is the control center of the terminal. It uses various interfaces and lines to connect various parts of the entire terminal. By running or executing software programs and/or modules stored in the memory 709, and calling data stored in the memory 709, execution Various functions and processing data of the terminal, so as to monitor the terminal as a whole. The processor 710 may include one or more processing units; preferably, the processor 710 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface and application programs, etc., and the modem The processor mainly handles wireless communication. It can be understood that the foregoing modem processor may not be integrated into the processor 710 .

终端700还可以包括给各个部件供电的电源711(比如电池),优选的,电源711可以通过电源管理系统与处理器710逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。The terminal 700 can also include a power supply 711 (such as a battery) for supplying power to various components. Preferably, the power supply 711 can be logically connected to the processor 710 through a power management system, so as to manage charging, discharging, and power consumption through the power management system. Function.

另外,终端700包括一些未示出的功能模块,在此不再赘述。In addition, the terminal 700 includes some functional modules not shown, which will not be repeated here.

优选的,本发明实施例还提供一种终端,包括处理器710,存储器709,存储在存储器709上并可在所述处理器710上运行的计算机程序,该计算机程序被处理器710执行时实现上文中提及的任一种拍照方法中的步骤,且能达到相同的技术效果,为避免重复,这里不再赘述。Preferably, the embodiment of the present invention also provides a terminal, including a processor 710, a memory 709, and a computer program stored in the memory 709 and operable on the processor 710, and the computer program is implemented when executed by the processor 710 The steps in any one of the photographing methods mentioned above can achieve the same technical effect, so in order to avoid repetition, they will not be repeated here.

本发明实施例还提供一种计算机可读存储介质,所述计算机可读存储介质上存储有计算机指令,当所述指令被运行时,执行上面所描述的任一种多人拍照方法。An embodiment of the present invention also provides a computer-readable storage medium, where computer instructions are stored on the computer-readable storage medium, and when the instructions are executed, any one of the multi-person photographing methods described above is executed.

本发明实施例提供的终端和计算机可读存储介质,先显示参考构图对象,并以参考构图对象为参照,在检测到各个拍摄对象的拍摄信息与对应的参考构图对象的拍摄信息相匹配的情况下,获取各个拍摄对象对应的中间图像,并进行图像合成,输出目标图像。本发明实施例在各拍摄对象的拍摄信息与对应的参考构图对象的拍摄信息相匹配的情况下,可自动获取对应的中间图像,即使有拍摄对象离开的情况下,由于获取了该拍摄对象对应的中间图像,其他拍摄对象可继续摆pose,即使拍摄过程中有人离开也不影响拍照的正常进行,从而确保了拍摄进度无延迟。The terminal and the computer-readable storage medium provided by the embodiments of the present invention first display the reference composition object, and use the reference composition object as a reference, and detect that the shooting information of each shooting object matches the shooting information of the corresponding reference composition object Next, the intermediate images corresponding to each shooting object are obtained, and image synthesis is performed to output the target image. In the embodiment of the present invention, when the shooting information of each shooting object matches the shooting information of the corresponding reference composition object, the corresponding intermediate image can be automatically acquired. In the middle image, other subjects can continue to pose, even if someone leaves during the shooting process, it will not affect the normal process of taking pictures, thus ensuring that there is no delay in the shooting progress.

本领域内的技术人员应明白,本发明的实施例可提供为方法、装置、或计算机程序产品。因此,本发明可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本发明可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。Those skilled in the art should understand that the embodiments of the present invention may be provided as methods, apparatuses, or computer program products. Accordingly, the present invention can 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, etc.) 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 should be understood that each procedure and/or block in the flowchart and/or block diagram, and a combination of procedures and/or blocks in the flowchart and/or block diagram can be realized by computer program instructions. These computer program instructions may be provided to a general purpose computer, special purpose computer, embedded processor, or processor of other programmable data processing equipment to produce a machine such that the instructions executed by the processor of the computer or other programmable data processing equipment produce a An apparatus for realizing the functions specified in one or more procedures of the flowchart and/or one or more blocks of the block diagram.

这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing apparatus to operate in a specific manner, such that the instructions stored in the computer-readable memory produce an article of manufacture comprising instruction means, the instructions The device realizes the function specified in one or more procedures of the flowchart and/or one or more blocks of the block diagram.

这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions can also be loaded onto a computer or other programmable data processing device, causing a series of operational steps to be performed on the computer or other programmable device to produce a computer-implemented process, thereby The instructions provide steps for implementing the functions specified in the flow chart or blocks of the flowchart and/or the block or blocks of the block diagrams.

在一个典型的配置中,计算设备包括一个或多个处理器(CPU)、输入/输出接口、网络接口和内存。In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.

内存可能包括计算机可读介质中的非永久性存储器,随机存取存储器(RAM)和/或非易失性内存等形式,如只读存储器(ROM)或闪存(flash RAM)。内存是计算机可读介质的示例。Memory may include non-permanent storage in computer readable media, in the form of random access memory (RAM) and/or nonvolatile memory such as read only memory (ROM) or flash RAM. Memory is an example of computer readable media.

计算机可读介质包括永久性和非永久性、可移动和非可移动媒体可以由任何方法或技术来实现信息存储。信息可以是计算机可读指令、数据结构、程序的模块或其他数据。计算机的存储介质的例子包括,但不限于相变内存(PRAM)、静态随机存取存储器(SRAM)、动态随机存取存储器(DRAM)、其他类型的随机存取存储器(RAM)、只读存储器(ROM)、电可擦除可编程只读存储器(EEPROM)、快闪记忆体或其他内存技术、只读光盘只读存储器(CD-ROM)、数字多功能光盘(DVD)或其他光学存储、磁盒式磁带,磁带磁磁盘存储或其他磁性存储设备或任何其他非传输介质,可用于存储可以被计算设备访问的信息。按照本发明实施例中的界定,计算机可读介质不包括暂存电脑可读媒体(transitory media),如调制的数据信号和载波。Computer-readable media, including both permanent and non-permanent, removable and non-removable media, can be implemented by any method or technology for storage of information. 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 Disc (DVD) or other optical storage, Magnetic tape cartridge, tape magnetic disk storage or other magnetic storage device or any other non-transmission medium that can be used to store information that can be accessed by a computing device. According to the definitions in the embodiments of the present invention, the computer readable medium does not include transitory computer readable medium (transitory media), such as modulated data signals and carrier waves.

还需要说明的是,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、商品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、商品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、商品或者设备中还存在另外的相同要素。It should also be noted that the term "comprises", "comprises" or any other variation thereof is intended to cover a non-exclusive inclusion such that a process, method, article, or apparatus comprising a set of elements includes not only those elements, but also includes Other elements not expressly listed, or elements inherent in the process, method, commodity, or apparatus are also included. Without further limitations, an element defined by the phrase "comprising a ..." does not exclude the presence of additional identical elements in the process, method, article or apparatus comprising said element.

本领域技术人员应明白,本发明的实施例可提供为方法、系统或计算机程序产品。因此,本发明可采用完全硬件实施例、完全软件实施例或结合软件和硬件方面的实施例的形式。而且,本发明可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。Those skilled in the art should understand that the embodiments of the present invention may be provided as methods, systems or computer program products. Accordingly, the present invention can 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, etc.) having computer-usable program code embodied therein.

上面结合附图对本发明的实施例进行了描述,但是本发明并不局限于上述的具体实施方式,上述的具体实施方式仅仅是示意性的,而不是限制性的,本领域的普通技术人员在本发明的启示下,在不脱离本发明宗旨和权利要求所保护的范围情况下,还可做出很多形式,均属于本发明的保护之内。Embodiments of the present invention have been described above in conjunction with the accompanying drawings, but the present invention is not limited to the above-mentioned specific implementations, and the above-mentioned specific implementations are only illustrative, rather than restrictive. Those of ordinary skill in the art will Under the enlightenment of the present invention, many forms can also be made without departing from the gist of the present invention and the protection scope of the claims, all of which belong to the protection of the present invention.

Claims (14)

1.一种多人拍照方法,其特征在于,包括:1. A method for taking pictures by many people, comprising: 在拍摄预览界面显示M个参考构图对象的状态下,检测拍摄预览界面中的N个拍摄对象的拍摄信息;In the state where M reference composition objects are displayed on the shooting preview interface, the shooting information of N shooting objects in the shooting preview interface is detected; 对于所述N个拍摄对象中的每个拍摄对象,在检测到所述拍摄对象的拍摄信息与对应的参考构图对象的拍摄信息相匹配的情况下,获取所述拍摄对象对应的中间图像,得到N张中间图像;For each of the N shooting objects, when it is detected that the shooting information of the shooting object matches the shooting information of the corresponding reference composition object, an intermediate image corresponding to the shooting object is obtained, and N intermediate images; 基于所述N张中间图像,进行图像合成,输出目标图像;Based on the N intermediate images, image synthesis is performed to output a target image; 其中,所述拍摄信息包括拍摄位置、拍摄姿势中的至少一项;N为大于1的整数,M为正整数。Wherein, the shooting information includes at least one of shooting position and shooting posture; N is an integer greater than 1, and M is a positive integer. 2.根据权利要求1所述的方法,其特征在于,所述对于所述N个拍摄对象中的每个拍摄对象,在检测到所述拍摄对象的拍摄信息与对应的参考构图对象的拍摄信息相匹配的情况下,获取所述拍摄对象对应的中间图像,得到N张中间图像,包括:2. The method according to claim 1, wherein, for each of the N shooting objects, after detecting the shooting information of the shooting object and the shooting information of the corresponding reference composition object In the case of matching, the intermediate image corresponding to the subject is obtained, and N intermediate images are obtained, including: 对于所述N个拍摄对象中的第i拍摄对象,在检测到所述第i拍摄对象的拍摄信息与第i参考构图对象的拍摄信息相匹配的情况下,获取包括所述第i拍摄对象的第一区域的第i中间图像;For the i-th shooting object among the N shooting objects, when it is detected that the shooting information of the i-th shooting object matches the shooting information of the i-th reference composition object, acquire the image including the i-th shooting object The i-th intermediate image of the first region; 将目标区域的显示内容更新为所述第i中间图像;updating the display content of the target area to the ith intermediate image; 其中,0<i≤N。Wherein, 0<i≦N. 3.根据权利要求2所述的方法,其特征在于,所述将目标区域的显示内容更新为所述第i中间图像,包括:3. The method according to claim 2, wherein said updating the display content of the target area to the i-th intermediate image comprises: 将拍摄预览界面的所述第一区域的预览图像区域的显示内容更新为所述第i中间图像;updating the display content of the preview image area in the first area of the shooting preview interface to the ith intermediate image; 或者,在所述终端包括第一屏和第二屏,且拍摄预览界面显示在第一屏的情况下,将第二屏中对应所述第一区域的第二区域显示所述第i中间图像。Or, in the case that the terminal includes a first screen and a second screen, and the shooting preview interface is displayed on the first screen, the ith intermediate image is displayed in the second area corresponding to the first area in the second screen . 4.根据权利要求1所述的方法,其特征在于,所述基于所述N张中间图像,进行图像合成,输出目标图像之前,包括:4. The method according to claim 1, wherein said performing image synthesis based on said N intermediate images, before outputting a target image, includes: 获取拍摄预览界面中的拍摄对象的个数;Get the number of shooting objects in the shooting preview interface; 基于所述拍摄对象的个数,确定M个参考构图对象,其中,M=N;Determine M reference composition objects based on the number of shooting objects, where M=N; 显示所述M个参考构图对象。The M reference composition objects are displayed. 5.根据权利要求1所述的方法,其特征在于,所述基于所述N张中间图像,进行图像合成,输出目标图像之前,包括:5. The method according to claim 1, wherein said performing image synthesis based on the N intermediate images, before outputting the target image, includes: 确定拍摄预览界面中的第k拍摄对象的第k参考构图对象,并将第k参考构图对象显示在拍摄预览界面中;determining the kth reference composition object of the kth subject in the shooting preview interface, and displaying the kth reference composition object in the shooting preview interface; 在所述第k拍摄对象的拍摄信息与所述第k参考构图对象的拍摄信息相匹配的情况下,确定拍摄预览界面中的第k+1拍摄对象的第k+1参考构图对象,并将第k+1参考构图对象显示在拍摄预览界面中;When the shooting information of the kth shooting object matches the shooting information of the kth reference composition object, determine the k+1th reference composition object of the k+1th shooting object in the shooting preview interface, and set The k+1th reference composition object is displayed in the shooting preview interface; 其中,0<k≤N。Wherein, 0<k≤N. 6.根据权利要求1所述的方法,其特征在于,所述基于所述N张中间图像,进行图像合成,输出目标图像,包括:6. The method according to claim 1, wherein said performing image synthesis and outputting a target image based on said N intermediate images comprises: 在所述N张中间图像组成所述目标图像的全部图像内容的情况下,将所述N张中间图像合成为所述目标图像并输出;In the case where the N intermediate images constitute all the image content of the target image, the N intermediate images are synthesized into the target image and output; 在所述N张中间图像组成所述目标图像的部分图像内容的情况下,获取所述拍摄预览界面显示的背景图像,并将所述N张中间图像和所述背景图像合成为所述目标图像并输出。In the case where the N intermediate images constitute part of the image content of the target image, acquire the background image displayed on the shooting preview interface, and synthesize the N intermediate images and the background image into the target image and output. 7.一种终端,包括:7. A terminal, comprising: 检测模块,用于在拍摄预览界面显示M个参考构图对象的状态下,检测拍摄预览界面中的N个拍摄对象的拍摄信息;A detection module, configured to detect shooting information of N shooting objects in the shooting preview interface in a state where M reference composition objects are displayed on the shooting preview interface; 获取模块,用于对于所述N个拍摄对象中的每个拍摄对象,在检测到所述拍摄对象的拍摄信息与对应的参考构图对象的拍摄信息相匹配的情况下,获取所述拍摄对象对应的中间图像,得到N张中间图像;An acquisition module, configured to, for each of the N shooting objects, acquire the corresponding The intermediate image, get N intermediate images; 处理模块,用于基于所述N张中间图像,进行图像合成,输出目标图像;A processing module, configured to perform image synthesis based on the N intermediate images, and output a target image; 其中,所述拍摄信息包括拍摄位置、拍摄姿势中的至少一项;N为大于1的整数,M为正整数。Wherein, the shooting information includes at least one of shooting position and shooting posture; N is an integer greater than 1, and M is a positive integer. 8.根据权利要求7所述的终端,其特征在于,所述获取模块具体用于:8. The terminal according to claim 7, wherein the acquiring module is specifically used for: 对于所述N个拍摄对象中的第i拍摄对象,在检测到所述第i拍摄对象的拍摄信息与第i参考构图对象的拍摄信息相匹配的情况下,获取包括所述第i拍摄对象的第一区域的第i中间图像;For the i-th shooting object among the N shooting objects, when it is detected that the shooting information of the i-th shooting object matches the shooting information of the i-th reference composition object, acquire the image including the i-th shooting object The i-th intermediate image of the first region; 所述终端还包括显示模块,用于将目标区域的显示内容更新为所述第i中间图像;The terminal also includes a display module, configured to update the display content of the target area to the ith intermediate image; 其中,0<i≤N。Wherein, 0<i≦N. 9.根据权利要求8所述的终端,其特征在于,所述显示模块具体用于:9. The terminal according to claim 8, wherein the display module is specifically used for: 将拍摄预览界面的所述第一区域的预览图像区域的显示内容更新为所述第i中间图像;updating the display content of the preview image area in the first area of the shooting preview interface to the ith intermediate image; 或者,在所述终端包括第一屏和第二屏,且拍摄预览界面显示在第一屏的情况下,将第二屏中对应所述第一区域的第二区域显示所述第i中间图像。Or, in the case that the terminal includes a first screen and a second screen, and the shooting preview interface is displayed on the first screen, the ith intermediate image is displayed in the second area corresponding to the first area in the second screen . 10.根据权利要求7所述的终端,其特征在于,所述获取模块还用于:获取拍摄预览界面中的拍摄对象的个数;10. The terminal according to claim 7, wherein the acquiring module is further configured to: acquire the number of shooting objects in the shooting preview interface; 所述处理模块,还用于基于所述拍摄对象的个数,确定M个参考构图对象,其中,M=N;The processing module is further configured to determine M reference composition objects based on the number of the photographed objects, where M=N; 所述终端还包括显示模块,用于显示所述M个参考构图对象。The terminal further includes a display module, configured to display the M reference composition objects. 11.根据权利要求7所述的终端,其特征在于,11. The terminal according to claim 7, characterized in that, 所述处理模块,在基于所述N张中间图像,进行图像合成,输出目标图像之前,还用于确定拍摄预览界面中的第k拍摄对象的第k参考构图对象;在所述第k拍摄对象的拍摄信息与所述第k参考构图对象的拍摄信息相匹配的情况下,确定拍摄预览界面中的第k+1拍摄对象的第k+1参考构图对象;The processing module is further used to determine the kth reference composition object of the kth shooting object in the shooting preview interface before performing image synthesis based on the N intermediate images and outputting the target image; In the case where the photographing information matches the photographing information of the kth reference composition object, determine the k+1th reference composition object of the k+1th photographic object in the shooting preview interface; 所述终端还包括显示模块,用于将第k参考构图对象显示在拍摄预览界面中,以及将第k+1参考构图对象显示在拍摄预览界面中;The terminal also includes a display module, configured to display the kth reference composition object in the shooting preview interface, and display the k+1th reference composition object in the shooting preview interface; 其中,0<k≤N。Wherein, 0<k≤N. 12.根据权利要求7所述的终端,其特征在于,所述处理模块具体用于:12. The terminal according to claim 7, wherein the processing module is specifically used for: 在所述N张中间图像组成所述目标图像的全部图像内容的情况下,将所述N张中间图像合成为所述目标图像并输出;In the case where the N intermediate images constitute all the image content of the target image, the N intermediate images are synthesized into the target image and output; 在所述N张中间图像组成所述目标图像的部分图像内容的情况下,获取所述拍摄预览界面显示的背景图像,并将所述N张中间图像和所述背景图像合成为所述目标图像并输出。In the case where the N intermediate images constitute part of the image content of the target image, acquire the background image displayed on the shooting preview interface, and synthesize the N intermediate images and the background image into the target image and output. 13.一种终端,包括处理器和存储器,所述存储器上存储计算机程序,当所述计算机程序被所述处理器运行时,实现根据权利要求1-6任一所述的生成方法中的步骤。13. A terminal, comprising a processor and a memory, on which a computer program is stored, and when the computer program is run by the processor, the steps in the generating method according to any one of claims 1-6 are realized . 14.一种计算机可读存储介质,其特征在于,所述计算机可读存储介质上存储计算机程序,所述计算机程序被处理器执行时实现如权利要求1至6中任一项所述的方法中的步骤。14. A computer-readable storage medium, wherein a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the method according to any one of claims 1 to 6 is implemented in the steps.
CN201810910870.0A 2018-08-10 2018-08-10 A 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 A 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 A multi-person photographing method, terminal and storage medium

Publications (2)

Publication Number Publication Date
CN108777766A true CN108777766A (en) 2018-11-09
CN108777766B 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 A multi-person photographing method, terminal and storage medium

Country Status (1)

Country Link
CN (1) CN108777766B (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110611768A (en) * 2019-09-27 2019-12-24 北京小米移动软件有限公司 Multiple exposure photographic method and device
CN110798621A (en) * 2019-11-29 2020-02-14 维沃移动通信有限公司 An image processing method and electronic device
CN110971832A (en) * 2019-12-20 2020-04-07 维沃移动通信有限公司 Image shooting method and electronic equipment
CN113890994A (en) * 2021-09-30 2022-01-04 荣耀终端有限公司 Image capturing method, system, storage medium, and program product
CN114099977A (en) * 2021-11-23 2022-03-01 杭州高瓴医疗科技有限公司 Phototherapy instrument convenient to distance
CN114205512A (en) * 2020-09-17 2022-03-18 华为技术有限公司 Shooting method and device
CN114727000A (en) * 2021-01-05 2022-07-08 北京小米移动软件有限公司 Group photo method, device, terminal equipment and storage medium
CN115868169A (en) * 2020-09-18 2023-03-28 Oppo广东移动通信有限公司 Electronic device, control method of controlling electronic device, and computer-readable storage medium
CN117474785A (en) * 2023-12-27 2024-01-30 江苏奥斯汀光电科技股份有限公司 Method for synthesizing one image by multiple character pose images

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110261219A1 (en) * 2010-04-26 2011-10-27 Kyocera Corporation Imaging device, terminal device, and imaging method
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
US20160259992A1 (en) * 2015-03-06 2016-09-08 Ricoh Company, Ltd. Image acquisition and management
CN106791364A (en) * 2016-11-22 2017-05-31 维沃移动通信有限公司 Method and mobile terminal that a kind of many people take pictures

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110261219A1 (en) * 2010-04-26 2011-10-27 Kyocera Corporation Imaging device, terminal device, and imaging method
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
US20160259992A1 (en) * 2015-03-06 2016-09-08 Ricoh Company, Ltd. Image acquisition and management
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

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110611768A (en) * 2019-09-27 2019-12-24 北京小米移动软件有限公司 Multiple exposure photographic method and device
US11146742B2 (en) 2019-09-27 2021-10-12 Beijing Xiaomi Mobile Software Co., Ltd. Method and apparatus for multi-exposure photography, and storage medium
CN110798621A (en) * 2019-11-29 2020-02-14 维沃移动通信有限公司 An image processing method and electronic device
CN110971832A (en) * 2019-12-20 2020-04-07 维沃移动通信有限公司 Image shooting method and electronic equipment
CN114205512A (en) * 2020-09-17 2022-03-18 华为技术有限公司 Shooting method and device
CN115868169A (en) * 2020-09-18 2023-03-28 Oppo广东移动通信有限公司 Electronic device, control method of controlling electronic device, and computer-readable storage medium
CN115868169B (en) * 2020-09-18 2024-06-21 Oppo广东移动通信有限公司 Electronic device, control method of controlling electronic device, and computer readable storage medium
CN114727000A (en) * 2021-01-05 2022-07-08 北京小米移动软件有限公司 Group photo method, device, terminal equipment and storage medium
CN113890994A (en) * 2021-09-30 2022-01-04 荣耀终端有限公司 Image capturing method, system, storage medium, and program product
CN114099977A (en) * 2021-11-23 2022-03-01 杭州高瓴医疗科技有限公司 Phototherapy instrument convenient to distance
CN117474785A (en) * 2023-12-27 2024-01-30 江苏奥斯汀光电科技股份有限公司 Method for synthesizing one image by multiple character pose images
CN117474785B (en) * 2023-12-27 2024-05-10 江苏奥斯汀光电科技股份有限公司 Method for synthesizing one image by multiple character pose images

Also Published As

Publication number Publication date
CN108777766B (en) 2021-01-15

Similar Documents

Publication Publication Date Title
JP7058760B2 (en) Image processing methods and their devices, terminals and computer programs
CN108777766B (en) A multi-person photographing method, terminal and storage medium
CN110865754B (en) Information display method and device and terminal
CN108540724A (en) A kind of image pickup method and mobile terminal
CN108848313B (en) Multi-person photographing method, terminal and storage medium
WO2022048398A1 (en) Multimedia data photographing method and terminal
CN108712603B (en) An image processing method and mobile terminal
WO2022028241A1 (en) Preview cover generation method and electronic device
CN110059686B (en) Character recognition method, device, equipment and readable storage medium
CN107592459A (en) A kind of photographic method and mobile terminal
WO2019174628A1 (en) Photographing method and mobile terminal
WO2022057435A1 (en) Search-based question answering method, and storage medium
CN111050070B (en) Video shooting method and device, electronic equipment and medium
US11386586B2 (en) Method and electronic device for adding virtual item
CN109803165A (en) Method, apparatus, terminal and the storage medium of video processing
CN111353946A (en) Image restoration method, device, equipment and storage medium
WO2020238454A1 (en) Photographing method and terminal
CN110853124B (en) Methods, devices, electronic equipment and media for generating GIF dynamic images
CN111539795A (en) Image processing method, image processing device, electronic equipment and computer readable storage medium
CN107888833A (en) A kind of image capturing method and mobile terminal
CN111437600A (en) Plot showing method, plot showing device, plot showing equipment and storage medium
CN107959755B (en) A kind of photographing method, mobile terminal and computer readable storage medium
CN111083374B (en) Filter adding method and electronic equipment
CN108833791A (en) A shooting method and device
CN108174110A (en) A camera method and flexible screen terminal

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