CN105391949A - Photographing method and terminal - Google Patents

Photographing method and terminal Download PDF

Info

Publication number
CN105391949A
CN105391949A CN201510716540.4A CN201510716540A CN105391949A CN 105391949 A CN105391949 A CN 105391949A CN 201510716540 A CN201510716540 A CN 201510716540A CN 105391949 A CN105391949 A CN 105391949A
Authority
CN
China
Prior art keywords
image
target
camera
according
terminal
Prior art date
Application number
CN201510716540.4A
Other languages
Chinese (zh)
Inventor
刘立荣
Original Assignee
深圳市金立通信设备有限公司
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 深圳市金立通信设备有限公司 filed Critical 深圳市金立通信设备有限公司
Priority to CN201510716540.4A priority Critical patent/CN105391949A/en
Publication of CN105391949A publication Critical patent/CN105391949A/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/222Studio circuitry; Studio devices; Studio equipment ; Cameras comprising an electronic image sensor, e.g. digital cameras, video cameras, TV cameras, video cameras, camcorders, webcams, camera modules for embedding in other devices, e.g. mobile phones, computers or vehicles
    • H04N5/225Television cameras ; Cameras comprising an electronic image sensor, e.g. digital cameras, video cameras, camcorders, webcams, camera modules specially adapted for being embedded in other devices, e.g. mobile phones, computers or vehicles
    • H04N5/232Devices for controlling television cameras, e.g. remote control ; Control of cameras comprising an electronic image sensor
    • H04N5/23229Devices for controlling television cameras, e.g. remote control ; Control of cameras comprising an electronic image sensor comprising further processing of the captured image without influencing the image pickup process
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/222Studio circuitry; Studio devices; Studio equipment ; Cameras comprising an electronic image sensor, e.g. digital cameras, video cameras, TV cameras, video cameras, camcorders, webcams, camera modules for embedding in other devices, e.g. mobile phones, computers or vehicles
    • H04N5/225Television cameras ; Cameras comprising an electronic image sensor, e.g. digital cameras, video cameras, camcorders, webcams, camera modules specially adapted for being embedded in other devices, e.g. mobile phones, computers or vehicles
    • H04N5/247Arrangements of television cameras

Abstract

The embodiment of the invention provides a photographing method and a terminal. The method comprises a step of obtaining the first image collected by a first camera and obtaining a second image collected by a second camera, a step of determining a target image matched with the first image according to the first image, a step of extracting the parameter information of the second image, a step of processing the target image according to the parameter information of the second image, and a step of synthesizing the second image and the processed target image according to a preset synthesizing strategy so as to obtain a group photo. By implementing the embodiment of the present invention, the images collected by the two cameras can be synthesized in the shooting process so as to rapidly obtain the group photo, and a user photographing experience is improved.

Description

一种拍照方法及终端 One kind of camera method and a terminal

技术领域 FIELD

[0001] 本发明涉及电子技术领域,尤其涉及一种拍照方法及终端。 [0001] The present invention relates to electronic technologies, and in particular, to a method and a terminal camera.

背景技术 Background technique

[0002] 随着终端技术的飞速发展,具备拍照功能的终端越来越多,例如:数码相机、手机、平板电脑等等。 [0002] With the rapid development of terminal technology, with more and more pictures terminal functions, such as: digital cameras, mobile phones, tablets and so on. 用户可以随时随地的利用终端进行拍照,以记录下许多美好的瞬间。 Users can take pictures anytime, anywhere using the terminal to record the many beautiful moments. 在实践中发现,当一群人想要拍合照时,要么请路人帮忙拍照,而路人拍出来的照片可能未必符合预期的想法,效果不佳;要么其中一个人负责拍照,等回去之后再把拍照人的照片通过图片编辑软件合成进大合照中,从而使得这一操作过程费时费力且十分繁琐。 In practice, we found that when a group of people want to take photo, take pictures or ask passers-by for help, and the passers The pictures may not be in line with expectations ideas, ineffective; either one of them in charge of taking pictures, then go back to taking pictures, etc. people photo by photo editing software synthesis into the group photo, so that this operation is very time-consuming and cumbersome.

发明内容 SUMMARY

[0003] 本发明实施例提供了一种拍照方法及终端,能够在拍照过程中将拍照人的照片合成进大合照中,以快速获得合影照片。 Example embodiments provide a method of taking pictures and a terminal [0003] The present invention can be synthesized into large photo photographing process of photographing the person in the photograph, in order to quickly obtain photos of.

[0004] 本发明实施例提供了一种拍照方法,包括: [0004] The embodiments of the present invention there is provided a photographing method, comprising:

[0005] 获取第一摄像头采集的第一图像,以及获取第二摄像头采集的第二图像; [0005] The first acquiring a first image captured by the camera, and acquiring a second image of the second camera acquisition;

[0006] 根据所述第一图像确定与所述第一图像匹配的目标图像; [0006] determining the target image and matching the first image based on the first image;

[0007] 提取所述第二图像的参数信息; [0007] extracting parameter information of the second image;

[0008] 按照所述第二图像的参数信息对所述目标图像进行处理; [0008] The processing of the target image according to the parameter information of the second image;

[0009] 将所述第二图像以及处理后的所述目标图像按照预设合成策略进行合成,以获得合影照片。 [0009] the second image and the target image after the synthesis processing according to a preset policy synthesis, to obtain a group photo.

[0010] 相应地,本发明实施例还提供了一种终端,包括: [0010] Accordingly, embodiments of the present invention further provides a terminal, comprising:

[0011] 获取单元,用于获取第一摄像头采集的第一图像,以及获取第二摄像头采集的第二图像; [0011] acquiring unit, configured to acquire a first image of the first camera acquired, and acquiring a second image of the second camera acquisition;

[0012] 第一确定单元,用于根据所述第一图像确定与所述第一图像匹配的目标图像; [0012] The first determining unit for determining a target image match the first image based on the first image;

[0013] 第一提取单元,用于提取所述第二图像的参数信息; [0013] a first extraction unit for extracting the parameter information of the second image;

[0014] 处理单元,用于按照所述第二图像的参数信息对所述目标图像进行处理; [0014] Processing unit for the processing of the target image according to the parameter information of the second image;

[0015] 合成单元,用于将所述第二图像以及处理后的所述目标图像按照预设合成策略进行合成,以获得合影照片。 [0015] synthesizing unit, the second target image and the processed image according to a preset for synthesizing synthetic strategy to obtain a group photo.

[0016] 本发明实施例中,当进入拍照界面时,可以获取第一摄像头采集的第一图像,以及获取第二摄像头采集的第二图像,可以根据第一图像确定与第一图像匹配的目标图像,提取第二图像的参数信息,并按照第二图像的参数信息对目标图像进行处理,可以将第二图像以及处理后的目标图像按照预设合成策略进行合成,以获得合影照片。 Embodiment [0016] of the present invention, when entering the camera interface, may acquire a first image of the first camera acquired, and acquiring a second image of the second camera acquisition, target can be determined according to the matching of the first image of the first image image, extracting parameter information of the second image and the target image processing parameter information in accordance with the second image, the second target image and the processed image can be synthesized according to a preset synthetic strategy to get photos of. 实施本发明实施例,可以在拍照过程中同时开启两个摄像头,并将两个摄像头采集到的图像进行合成处理,以快速获得合影照片,并提升用户拍照体验。 Embodiments of the present invention, can be turned on simultaneously in the two cameras photographing process, and process for synthesizing two cameras to capture images, to quickly obtain photos of, and enhance the user experience photographed.

附图说明 BRIEF DESCRIPTION

[0017] 为了更清楚地说明本发明实施例中的技术方案,下面将对实施例中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。 [0017] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings are briefly introduced as required for use in the embodiments describing the embodiments. Apparently, the drawings in the following description are some embodiments of the present invention. , those of ordinary skill in the art is concerned, without creative efforts, can obtain other drawings based on these drawings.

[0018] 图1是本发明实施例提供的一种拍照方法的流程示意图; [0018] FIG. 1 is a schematic flow of one kind of photographing method according to an embodiment of the present invention;

[0019] 图2是本发明实施例提供的另一种拍照方法的流程示意图; [0019] FIG. 2 is a schematic diagram of another photographing method according to an embodiment of the process of the present invention;

[0020]图3是本发明实施例提供的一种输出合成位置的图像的示意图; [0020] FIG. 3 is a schematic diagram of the embodiment to provide an image synthesis position according to the output of the present invention;

[0021]图4是本发明实施例提供的一种终端的结构示意图; [0021] FIG. 4 is a structural diagram of a terminal according to an embodiment of the present invention;

[0022]图5是本发明实施例提供的另一种终端的结构示意图; [0022] FIG. 5 is a schematic diagram of another embodiment of the terminal according to the present invention;

[0023]图6是本发明实施例提供的又一种终端的结构示意图。 [0023] FIG. 6 is a schematic structural diagram of still another terminal according to an embodiment of the present invention.

具体实施方式 Detailed ways

[0024] 下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。 [0024] below in conjunction with the present invention in the accompanying drawings, technical solutions of embodiments of the present invention are clearly and completely described, obviously, the described embodiments are part of the embodiments of the present invention rather than all embodiments . 基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。 Based on the embodiments of the present invention, all other embodiments of ordinary skill in the art without any creative effort shall fall within the scope of the present invention.

[0025] 本发明实施例提供了一种拍照方法及终端,能够在拍照过程中同时开启两个摄像头,并将两个摄像头采集到的图像进行合成处理,以快速获得合影照片,并提升用户拍照体验。 [0025] Example embodiments provide a method and a terminal camera of the present invention, it is possible to simultaneously open the two cameras photographing process, and the process for synthesizing the two images captured by the camera to quickly obtain photos of, and enhance the user photographed experience. 以下分别进行详细说明。 The following are described in detail.

[0026] 请参阅图1,图1是本发明实施例提供的一种拍照方法的流程示意图。 [0026] Referring to FIG. 1, FIG. 1 is a flow diagram of a photographing method according to an embodiment of the present invention. 如图1所示,该拍照方法可以包括以下步骤: As shown in FIG. 1, the photographing method may include the steps of:

[0027] S101、获取第一摄像头采集的第一图像,以及获取第二摄像头采集的第二图像。 [0027] S101, obtaining a first image of the first camera acquired, and acquiring a second image of the second camera acquisition.

[0028] 本发明实施例中,终端可以分别获取第一摄像头采集的第一图像以及第二摄像头采集的第二图像。 Embodiment [0028] of the present invention, the terminal may acquire a first and a second image of the second image captured by the camera first captured by the camera, respectively. 其中,终端中可以集成有第一摄像头和第二摄像头,第一摄像头与第二摄像头的相对位置可以有多种情况,本发明实施例不作限定,例如,第一摄像头为终端的前置摄像头,第二摄像头为终端的后置摄像头。 Wherein, the terminal can be integrated with a first camera and a second camera, the relative position of the first camera and the second camera may be a variety of circumstances, embodiments of the present invention is not limited, for example, the first camera is a front camera of the terminal, the second camera is a rear camera of the terminal. 终端可以包括移动手机、平板电脑、掌上电脑、数码相机、个人数字助理(Personal Digital Assistant,PDA)、移动互联网设备(MobileInternet Device, MID)等各类集成有摄像头的终端,本发明实施例不作限定。 Terminals may include mobile phones, tablet computers, PDAs, digital cameras, personal digital assistants (Personal Digital Assistant, PDA), mobile internet devices (MobileInternet Device, MID), and other integrated terminal of the camera, embodiments of the present invention is not limited .

[0029] 本发明实施例中,当开启终端的拍照功能时,终端可以同时开启第一摄像头和第二摄像头。 Embodiment [0029] of the present invention, when the camera function of the terminal is turned on, the terminal may turn on the first camera and the second camera simultaneously. 终端可以利用第一摄像头采集第一图像,以及利用第二摄像头采集第二图像。 The first terminal may use a first camera image capture, and using the second camera capture a second image. 例如,利用终端的前置摄像头采集第一图像(如拍照人的图像),并同时利用终端的后置摄像头采集第二图像。 For example, a terminal using a first front camera image acquisition (e.g., photographed image of a person), while using the rear camera terminal acquiring a second image.

[0030] S102、根据第一图像确定与第一图像匹配的目标图像。 [0030] S102, the target image is determined according to the matching of the first image of the first image.

[0031] 本发明实施例中,当获取到第一摄像头采集的第一图像后,终端可以根据第一图像来确定与第一图像相匹配的目标图像。 Embodiment [0031] of the present invention, after obtaining the first image captured by the camera of the first terminal may determine the target image and the first image that matches the first image.

[0032] 本发明实施例中,与第一图像相匹配的目标图像可以为第一图像本身,即直接将第一图像确定为目标图像。 Embodiment [0032] In the present invention, the target image and the first image can be matched to a first image itself, i.e., the first image is directly determined as the target image. 与第一图像相匹配的目标图像也可以为在终端本地或云端查找到的与第一图像匹配的图像,即将在终端本地或云端查找到的与第一图像匹配的图像确定为目标图像。 The target image and the first image can be matched, i.e. to find the local or at the terminal of the cloud is found locally in the terminal or in the cloud image and the first image and the first image matches the image matching is determined as a target image. 当获取到第一摄像头采集的第一图像时,终端可以输出提示信息,以提示用户是否选取第一图像(即是否将第一图像作为目标图像),当用户根据提示信息输入的选择为“是”时,则将第一图像确定为目标图像;当用户根据提示信息输入的选择为“否”时,则可以从终端本地或云端去获取目标图像。 When acquiring a first image of the first camera to the acquisition, the terminal may output a prompt to prompt the user to select whether the first image (i.e., whether or not the first image as a target image), when the user presentation information according to the selection input is "YES "when, then the first image is determined as a target image; when the user according to the selection information input prompt" NO ", it is possible to acquire from a local or terminal Drive target image. 当在终端本地或云端查找到与第一图像相匹配的多张图像时,可以同时输出这多张图像以供用户选择,用户可以从中选取一张图像作为目标图像;也可以自动将这多张图像中与第一图像匹配度最高的那张图像作为目标图像。 When a plurality of images to find the image matches with the first terminal in a local or cloud, which can output a plurality of images for user selection, the user can select an image as a target image; a plurality of these may be automatically the image goes with the highest degree of matching of the first image as a target image. 此外,当终端检测到第一图像中未包含拍照人的完整头像时,终端可以无需输出提示信息来提示用户做选择,默认第一图像不符合要求,而直接在终端本地或云端查找与第一图像相匹配的目标图像。 In addition, when the terminal detects the first image does not contain a complete picture of people taking pictures, the terminal may not need to prompt information to prompt the user to choose the default image does not meet the first requirement, and look directly at the end of the first locally or in the cloud image matches the target image.

[0033] S103、提取第二图像的参数信息。 [0033] S103, the extracting parameter information of the second image.

[0034] 本发明实施例中,当获取到第二摄像头采集的第二图像后,终端可以提取第二图像的参数信息,并将提取的第二图像的参数信息存储至终端的存储器中。 Parameter information stored in the memory of the second image to the terminal [0034] embodiment of the present invention, after acquiring a second image of the second camera to capture, the terminal may extract parameter information of the second image, and extracted. 其中,第二图像的参数信息可以包括但不限于第二图像中人物的显示比例(人物在整幅图像的比例)、人物的大小、背景内容、背景颜色、图像的尺寸、分辨率、像素分布等信息。 Wherein the parameter information may include, but the second image display ratio (the proportion of the entire character image) is not limited to the characters in the second image, character size, the contents of the background, the background color, image resolution, pixel distribution and other information.

[0035] 可以理解的是,步骤S102可以后于步骤S103执行,也可以先于步骤S103执行,还可以与步骤S103同步执行,本发明实施例不作限定。 [0035] It will be appreciated that the step S102 may be executed after step S103, step S103 may be first performed, synchronization can also be performed in step S103, embodiments of the present invention is not limited.

[0036] S104、按照第二图像的参数信息对目标图像进行处理。 [0036] S104, the parameter information according to the second image processing on the target image.

[0037] 本发明实施例中,终端可以对确定的目标图像按照第二图像的参数信息进行相应的处理。 Embodiment [0037] of the present invention, the terminal may determine the target image is processed in the corresponding image information of the second parameter. 例如,将目标图像中人物的显示比例调整至与第二图像中人物的显示比例一致;将目标图像的背景切换为与第二图像的背景一致;将目标图像的分辨率调整为与第二图像的分辨率一致等等。 For example, in the character display scale adjustment target image to the same aspect ratio and the second person in the image; background background handover target image and the second image of the same; the resolution of the target image and the second image is adjusted unanimous resolution, and so on.

[0038] S105、将第二图像以及处理后的目标图像按照预设合成策略进行合成,以获得合影照片。 [0038] S105, the second target image and the processed image was synthesized according to a preset synthetic strategy to get photos of.

[0039] 本发明实施例中,终端将第二图像以及处理后的目标图像按照预设合成策略进行合成可以是将第一图像合成进第二图像中来,也可以是将第二图像合成进第一图像中来,以获得同时包含第一图像和第二图像的合影照片。 [0039] The embodiments of the present invention, a second terminal, and the image synthesizing processing target image may be a first synthesized image into the second image according to preset synthesis strategy, the second image may be formulated into to the first image to obtain a picture contains a first photo image and the second image. 可以根据第一图像与第二图像的内容复杂度来确定将谁合成进谁中,例如,第二图像为大合照,图像内容较复杂,而第一图像为拍照人单人图像,图像内容较简单,所以可以首选将第一图像合成进第二图像中。 Content may be determined according to the complexity of the first image and the second image into the synthesis will who who, for example, the second image is a group photo, the more complex the image content, and the first image is a single image photographed person, the image content than simple, it may prefer the first synthesized image into the second image. 预设合成策略可以参考现有的多种图像合成方法,本发明实施例不作限定。 Synthetic strategy can be preset with reference to a variety of conventional image synthesis method, embodiments of the present invention is not limited. 例如,可以将处理后的目标图像进行剪裁,以剪裁出拍照人的单人照片,将该单人照片与第二图像进行合成。 For example, the processing target image may be trimmed, cut out to a single person photographed pictures, photographs and the single second image synthesis. 又如,当处理后的目标图像的背景与第二图像一致时,将处理后的目标图像直接与第二图像进行合成。 As another example, when the same target background image after the second image processing, the processed target image and the second image are synthesized directly.

[0040] 举例来说,当利用终端拍摄大合照时,先获取前置摄像头采集到的第一图像(即拍照人的图像),以及获取后置摄像头采集到的第二图像(即不包含拍照人的合照)。 [0040] For example, when a group photo shooting using the terminal, to acquire the first image (i.e. photographed image of a person) collected front camera, and acquiring a second image captured by the camera to the rear of (i.e., does not contain pictures man pictured). 可以提取第二图像的参数信息(如人物的显示比例、背景颜色等),当采集到的拍照人的图像符合合照要求时,可以对拍照人的图像按照第二图像的参数信息进行调整,然后将调整后的拍照人图像与第二图像进行合成,从而得出一张包含拍照人的完整合影照片。 Parameter may be extracted second image information (display character than, for example, background color, etc.), when the acquired photographed image of the person pictured in line with requirements of the photographed image of a person can be adjusted according to the parameter information of the second image, and the people photographed image and the second image after the adjustment are combined to arrive at a complete includes photos of people taking pictures. 当采集到的拍照人的图像不符合合照要求时,可以从终端本地或云端获取拍照人的其他图像,将获取到的图像进行处理后与第二图像进行合成,以获得包含拍照人的完整合影照片。 When the acquired photographed photo image of the person does not meet the requirements, other images can be acquired from the photographed person terminal or a local cloud, and the second synthesized image to the acquired image is processed to obtain a complete photo photographed person comprising photo.

[0041] 在图1所描述的方法中,当进入拍照界面时,可以获取第一摄像头采集的第一图像,以及获取第二摄像头采集的第二图像,可以根据第一图像确定与第一图像匹配的目标图像,提取第二图像的参数信息,并按照第二图像的参数信息对目标图像进行处理,可以将第二图像以及处理后的目标图像按照预设合成策略进行合成,以获得合影照片。 [0041] In the method described in FIG. 1, when entering the camera interface, may acquire a first image of the first camera acquired, and acquiring a second image of the second camera to capture, the first image may be determined based on the first image target image matching, information extraction parameters of the second image and the target image processing parameter information in accordance with the second image, the second target image and the processed image can be synthesized according to a preset synthesis strategies to obtain photos of . 可见,通过实施图1所描述的方法,能够在拍照过程中同时开启两个摄像头,并将两个摄像头采集到的图像进行合成处理,以快速获得合影照片,并提升用户拍照体验。 Visible, by the method described in Example 1 of FIG, can be turned on simultaneously in the two cameras photographing process, and the process for synthesizing the two images captured by the camera to quickly obtain photos of, and enhance the user experience photographed.

[0042] 请参阅图2,图2是本发明实施例提供的另一种拍照方法的流程示意图。 [0042] Please refer to FIG. 2, FIG. 2 is a schematic flow diagram of another photographing method according to an embodiment of the present invention. 如图2所示,该拍照方法可以包括以下步骤: 2, the photographing method may include the steps of:

[0043] S201、获取第一摄像头采集的第一图像,以及获取第二摄像头采集的第二图像。 [0043] S201, obtaining a first image of the first camera acquired, and acquiring a second image of the second camera acquisition.

[0044] 作为一种可选的实施方式,在执行步骤S201之前,图2所描述的方法还可以包括以下步骤: [0044] As an alternative embodiment, prior to performing step S201, the described method may further comprise the step of FIG:

[0045] 21)开启终端的合影拍照模式,并且在合影拍照模式下启动终端的第一摄像头和第二摄像头进行图像采集。 [0045] 21) photo photographing mode of the terminal is turned on, and starts the terminal in a first photographing mode photo camera and a second camera for image acquisition.

[0046] 在该实施方式中,终端可以包括但不限于自拍模式(如启动前置摄像头进行拍摄)、外拍模式(如启动后置摄像头进行拍摄)、合影拍照模式(如同时启动前后摄像头进行拍摄)等拍照模式。 [0046] In this embodiment, the terminal may include, but are not limited to, self-timer mode (such as a promoter front camera for photographing), outdoor photo mode (such as a promoter rear camera photographing), photo photographing mode (e.g., while the camera before and after start shooting) and other camera mode. 当终端进入拍照界面时,用户可以手动选择合影拍照模式,以使终端进入合影拍照模式,在合影拍照模式下可以同时开启第一摄像头和第二摄像头来拍摄。 When the terminal enters the camera interface, the user can manually select a photo photographing mode, so that the terminal enters the photo photographing mode, the camera may turn on the first and second cameras simultaneously shoot the photo photographing mode.

[0047] S202、根据第一图像确定与第一图像匹配的目标图像。 [0047] S202, the target image is determined according to the matching of the first image of the first image.

[0048] 本发明实施例中,目标图像可以是第一图像,也可以是终端本地或云端中存储的与第一图像相匹配的其他图像。 [0048] Example embodiments of the present invention, the first target image may be an image, the other image may be the first image matches the local terminal or stored in the cloud.

[0049] 作为一种可选的实施方式,步骤S202根据第一图像确定与第一图像匹配的目标图像的具体实施方式可以包括以下步骤: [0049] As an alternative embodiment, the first image is determined in step S202 in accordance with a particular embodiment of the first embodiment of the image to match a target image may include the steps of:

[0050] 22)提取第一图像的人脸特征信息; [0050] 22) extracting a first feature information of the face image;

[0051] 23)查找与第一图像的人脸特征信息相匹配的至少一张图像; [0051] 23) Find the first person's face image that matches the feature information of at least one image;

[0052] 24)接收针对上述至少一张图像中的一张图像所触发的图像选取指令; [0052] 24) for receiving an instruction to select at least one image of an image of the image triggered;

[0053] 25)响应该图像选取指令,将选取的图像确定为目标图像。 [0053] 25) in response to the image selection command, the selected image is determined as the target image.

[0054] 在该实施方式,第一图像可以为拍照人的头像,当获取到第一摄像头采集的第一图像后,可以提取第一图像中的人脸特征信息,并从终端本地或云端去查找与第一图像的人脸特征信息相匹配的至少一张图像,可以将查找到的图像都输出显示,用户可以从中选取一张图像来作为目标图像。 [0054] In this embodiment, the first image may be a photograph of human heads, after obtaining a first image when the first captured by the camera, the first image may be extracted face feature information from and to the local terminal or Drive Find the first image matches the facial feature information of the at least one image, the image can be found are output display, the user can select from an image as a target image. 查找到的与第一图像的人脸特征信息相匹配的至少一张图像可以是拍照人的单人照,也可以是包含拍照人的多人照,当为多人照时,后续还需对多人照进行剪裁处理,以剪裁出拍照人的单人照。 To find at least one image of the first image and the facial feature matches the information may be a single photo photographed person, may comprise a photographing people as human, as when a multiplayer, the need for follow-up according than tailoring process to cut out single photo photographed person.

[0055] S203、提取第二图像的参数信息。 [0055] S203, the extracting parameter information of the second image.

[0056] 本发明实施例中,参数信息可以包括但不限于人物的显示比例、人物的大小、背景内容、背景颜色、图像的尺寸、分辨率、像素分布等信息。 Embodiment, the parameter information may include but is not limited to character information display scale, the size of the characters, background content, background color, image size, resolution, pixel distribution of embodiment [0056] of the present invention.

[0057] 可以理解的是,步骤S202可以后于步骤S203执行,也可以先于步骤S203执行,还可以与步骤S203同步执行,本发明实施例不作限定。 [0057] It will be appreciated that the step S202 may be executed after step S203, step S203 may be first performed, synchronization can also be performed in step S203, embodiments of the present invention is not limited.

[0058] S204、按照第二图像的参数信息对目标图像进行处理。 [0058] S204, the parameter information according to the second image processing on the target image.

[0059] 作为一种可选的实施方式,当参数信息包括人物的显示比例时,步骤S204按照第二图像的参数信息对目标图像进行处理的具体实施方式可以包括以下步骤: DETAILED DESCRIPTION [0059] As an alternative embodiment, when the ratio of the parameter information comprises displaying characters, step S204 is processed according to the parameter information of the second image of the target image may comprise the steps of:

[0060] 26)按照第二图像中的人物的显示比例调整目标图像中人物的显示比例。 [0060] 26) to adjust the proportion of the target person in the image display according to the display scale of the second image of the person.

[0061] 在该实施方式中,人物的显示比例可以为人物占整张图像的比例大小。 [0061] In this embodiment, the display ratio of the size of the character may be a percentage of the entire image is the character. 当第二图像的尺寸与目标图像的尺寸相同时,可以将目标图像中人物的显示比例调整为与第二图像中人物的显示比例一致。 When the same size as the target image of the second image is the same, the proportion of characters may be displayed target image is adjusted to the second person in the image display scale. 例如,当第二图像中人物的显示比例为1:5时,则可以将目标图像中人物的显示比例也调整为1:5。 For example, when the display ratio in the second character image is 1: 5, the ratio of the characters may be displayed target image is also adjusted to 1: 5. 实施该实施方式,将目标图像和第二图像中的人物的显示比例调整为一致,可以在合成图像时,不会因为人物的显示比例不同而使得图像的合成痕迹明显,从而可以提高图像的合成效果。 Embodiment this embodiment, the ratio of the target display image and the second person in the image is adjusted to be consistent, when the composite image can, not because of different display characters such that the proportion of synthesized images obvious signs, which can improve the composite image effect.

[0062] 作为一种可选的实施方式,当参数信息包括背景颜色时,步骤S204按照第二图像的参数信息对目标图像进行处理的具体实施方式可以包括以下步骤: DETAILED DESCRIPTION [0062] As an alternative embodiment, when the parameter information includes background color, step S204 is processed according to the parameter information of the second image of the target image may comprise the steps of:

[0063] 27)将目标图像的背景颜色调整为与第二图像的背景颜色相匹配。 [0063] 27) the background color of the target image and the background color is adjusted to match the second image.

[0064] 在该实施方式中,可以将目标图像的背景颜色调整为与第二图像的背景颜色一致。 [0064] In this embodiment, the background color of the target image may be adjusted consistent with the background color of the second image. 例如,第二图像的背景颜色为白色,目标图像的背景颜色为黄色,则将目标图像的背景颜色也调整为白色。 For example, the background color of the second image is white, the background color of the target image is yellow, then the background color of the target image is also adjusted as a white. 实施该实施方式,将目标图像的背景颜色调整为与第二图像一致,可以在合成图像时,不会因为背景颜色差距太大而使得图像的合成痕迹明显,从而可以提高图像的合成效果。 Embodiment this embodiment, the background color of the target image is adjusted to coincide with the second image, when the composite image, the background color will not be too large so that the gap between the synthesized image obvious signs, which can improve the effect of synthesized image. 此外,也可以对目标图像进行抠图,即只保留人像,而摒弃图像的背景。 In addition, it can also target image matting, that is, retaining only portrait, and abandon the background image.

[0065] S205、在第二图像中显示至少一个合成位置。 [0065] S205, displays at least a position in the second synthesized image.

[0066] S206、接收针对上述至少一个合成位置中的一个合成位置所触发的位置选取指令。 [0066] S206, the received command for selecting the at least one position in the synthesis of a synthetic position location triggered.

[0067] S207、响应该位置选取指令,将选取的合成位置确定为目标位置。 [0067] S207, in response to the selection command positions, the selected position is determined to synthetic target position.

[0068] S208、按照预设合成策略将处理后的目标图像合成进第二图像中的目标位置,以获得合影照片。 [0068] S208, the synthesis strategy according to a preset target image into the processed synthetic target position in the second image to obtain a group photo.

[0069] 本发明实施例中,合成位置可以为用于合成图像的位置,即在第二图像的合成位置处可以将第一图像合成进来。 [0069] embodiment, the position may be a position synthesized composite image, which can come in the first synthesized image at a position of the second synthetic image of the present invention. 请一并参阅图3,图3是本发明实施例提供的一种输出合成位置的图像的示意图。 Referring to FIG. 3, FIG. 3 is a schematic view of an output image provided by the combined position of the embodiment of the present invention. 如图3所示,该图像中输出有5个用于合成图像的合成位置(图中的虚线方框),可以在这5个合成位置中的其中一个位置处合成进一张图像,也可以在这5个合成位置中的某几个位置处分别合成图像。 3, the output image synthesis has 5 positions (dashed box in the figure) for the composite image may be at a position where an image is synthesized into the five positions in the synthesis, may also be at several locations in a synthesis of these five positions were synthesized image. 合成位置可以是规则的,也可以是不规则的,本发明实施例不作限定。 Synthesis position may be regular, it may be irregular, embodiments of the present invention is not limited.

[0070] 本发明实施例中,当在第二图像中显示有多个合成位置时,用户可以在这多个合成位置中选取一个合成位置作为用于合成第一图像的位置,即将第一图像合成进第二图像中用户所选择的合成位置处,从而使得图像合成更具有针对性,进一步提高图像合成效果。 Embodiment [0070] of the present invention, when the second image is displayed in the synthesis of a plurality of positions, the user can select a location in which the plurality of synthetic synthesis for synthesizing positions as the position of the first image, the first image is about synthesis synthesis of the feed position in the second image selected by the user, so that the more focused the image synthesis, the effect of further improving the image synthesis.

[0071] 可见,通过实施图2所描述的方法,能够在拍照过程中同时开启两个摄像头,并将两个摄像头采集到的图像进行合成处理,以快速获得合影照片,并提升用户拍照体验。 [0071] Therefore, with the method described in FIG. 2 embodiment, two cameras can be simultaneously open in the photographing process, and will be collected by the two cameras image combining process, to quickly obtain photos of, and enhance the user experience photographed. 此夕卜,可以对图像合成的位置进行选择,使得图像合成更具有针对性,进而提高图像合成效果Ο This evening Bu, may be made to image synthesis position selection, so that the image synthesizing more focused, thereby increasing the effect of the image synthesizing Ο

[0072] 请参阅图4,图4是本发明实施例提供的一种终端的结构示意图,可以用于执行本发明实施例提供的拍照方法。 [0072] Please refer to FIG. 4, FIG. 4 is a schematic structural diagram of a terminal according to an embodiment of the present invention, for performing a photographing method according to an embodiment of the present invention. 如图4所示,该终端可以包括: 4, the terminal may include:

[0073] 获取单元401,用于获取第一摄像头采集的第一图像,以及获取第二摄像头采集的第二图像。 [0073] The obtaining unit 401, configured to acquire a first image of the first camera acquired, and acquiring a second image of the second camera acquisition.

[0074] 本发明实施例中,获取单元401可以分别获取第一摄像头采集的第一图像以及第二摄像头采集的第二图像。 Embodiment [0074] of the present invention, the second acquisition unit 401 may acquire a first image of the first image captured by the camera and a second camera are acquired. 其中,终端中可以集成有第一摄像头和第二摄像头,第一摄像头与第二摄像头的相对位置可以有多种情况,本发明实施例不作限定,例如,第一摄像头为终端的前置摄像头,第二摄像头为终端的后置摄像头。 Wherein, the terminal can be integrated with a first camera and a second camera, the relative position of the first camera and the second camera may be a variety of circumstances, embodiments of the present invention is not limited, for example, the first camera is a front camera of the terminal, the second camera is a rear camera of the terminal.

[0075] 第一确定单元402,用于根据第一图像确定与第一图像匹配的目标图像。 [0075] The first determining unit 402, a target image for determining a first match image from the first image.

[0076] 本发明实施例中,当获取单元401获取到第一摄像头采集的第一图像后,第一确定单元402可以根据获取单元401获取到的第一图像来确定与第一图像相匹配的目标图像。 [0076] embodiment, after the first acquisition unit 401 acquires a first image captured by the camera, a first determination unit 402 may determine a first match image from the first image acquiring unit 401 acquired the embodiment of the present invention target image.

[0077] 本发明实施例中,与第一图像相匹配的目标图像可以为第一图像本身,即第一确定单元402直接将第一图像确定为目标图像。 Embodiment [0077] In the present invention, the target image and the first image can be matched to a first image itself, i.e., a first determination unit 402 directly to the first image as the target image. 与第一图像相匹配的目标图像也可以为在终端本地或云端查找到的与第一图像匹配的图像,即第一确定单元402将在终端本地或云端查找到的与第一图像匹配的图像确定为目标图像。 The target image and the first image can be matched, i.e., a first determination unit 402 will be found at the terminal or in the cloud is found locally at the terminal or in the cloud image and the first local image match the first image matches the image identified as the target image.

[0078] 第一提取单元403,用于提取第二图像的参数信息。 [0078] The first extraction unit 403 for extracting image information of the second parameter.

[0079] 本发明实施例中,当获取单元401获取到第二摄像头采集的第二图像后,第一提取单元403可以提取获取单元401获取到的第二图像的参数信息,并将提取的第二图像的参数信息存储至终端的存储器中。 The first embodiment, when the second acquisition unit 401 acquires a second image captured by the camera, the first extraction unit 403 may extract the parameter acquiring unit acquires the second image information 401, the extracted embodiment [0079] of the present invention parameter information stored in the memory of the terminal in the second image. 其中,第二图像的参数信息可以包括但不限于第二图像中人物的显示比例、人物的大小、背景内容、背景颜色、图像的尺寸、分辨率、像素分布等信息。 Wherein the parameter information of the second image information may include, but is not limited to the ratio of the characters displayed second image, the size of the characters, background content, background color, image size, resolution, pixel distribution.

[0080] 处理单元404,用于按照第二图像的参数信息对目标图像进行处理。 [0080] The processing unit 404 for performing image processing on the target image according to the information of the second parameter.

[0081] 本发明实施例中,处理单元404可以对第一确定单元402确定的目标图像按照第一提取单元403提取的第二图像的参数信息进行相应的处理。 Embodiment [0081] In the present invention, the processing unit 404 may target image determined by the first determination unit 402 performs corresponding processing according to the parameter information of the second image extracted by the first extraction unit 403. 例如,处理单元404将目标图像中人物的显示比例调整至与第二图像中人物的显示比例一致;处理单元404将目标图像的背景切换为与第二图像的背景一致;处理单元404将目标图像的分辨率调整为与第二图像的分辨率一致等等。 For example, the proportion processing unit 404 displays characters in a target image is adjusted to display the same ratio of the second person in the image; background processing unit 404 switches the target image and the second background image coincides; target image processing unit 404 adjusted to coincide with the resolution of the second resolution image and the like.

[0082] 作为一种可选的实施方式,当参数信息包括人物的显示比例和背景颜色中的至少一种,处理单元404按照第二图像的参数信息对目标图像进行处理的具体实施方式可以包括: DETAILED DESCRIPTION [0082] As an alternative embodiment, when the parameter information comprises at least one processing unit 404 processes the target image and the aspect ratio of the background color of the characters according to the parameter information of the second image may include :

[0083] 当参数信息包括人物的显示比例时,处理单元404按照第二图像中的人物的显示比例调整目标图像中人物的显示比例; [0083] When the ratio of the parameter information comprises displaying the characters, the display processing unit 404 to adjust the proportion of the target person in the image according to the display scale of the second image of a person;

[0084] 当参数信息包括背景颜色时,处理单元404将目标图像的背景颜色调整为与第二图像的背景颜色相匹配。 [0084] When the parameter information including background color, the background color of the processing unit 404 is adjusted to the target image and the background color of the second image to match.

[0085] 合成单元405,用于将第二图像以及处理后的目标图像按照预设合成策略进行合成,以获得合影照片。 [0085] The synthesizing unit 405, and a second image after the processing target image synthesizing means for synthesizing according to a preset strategy, to obtain a group photo.

[0086] 本发明实施例中,合成单元405将第二图像以及处理后的目标图像按照预设合成策略进行合成可以是将第一图像合成进第二图像中来,也可以是将第二图像合成进第一图像中来,以获得同时包含第一图像和第二图像的合影照片。 [0086] Example embodiments of the present invention, the image synthesizing unit 405 and the second processing target image may be a first synthesized image into the second image synthesizing be synthesized according to a preset policy, the second image may be be synthesized into a first image to obtain a picture contains a first photo image and the second image. 预设合成策略可以参考现有的多种图像合成方法,本发明实施例不作限定。 Synthetic strategy can be preset with reference to a variety of conventional image synthesis method, embodiments of the present invention is not limited.

[0087]图4所示的终端,获取单元401可以获取第一摄像头采集的第一图像,以及获取第二摄像头采集的第二图像,第一确定单元402可以根据第一图像确定与第一图像匹配的目标图像,第一提取单元403提取第二图像的参数信息,处理单元404按照第二图像的参数信息对目标图像进行处理,合成单元405可以将第二图像以及处理后的目标图像按照预设合成策略进行合成,以获得合影照片。 Terminal shown in [0087] FIG 4, a first acquisition unit 401 may acquire a first image captured by the camera, and acquiring a second image of the second camera to capture, the first image 402 may be determined based on the first image a first determination unit matched target image, the first extraction unit 403 extracts the parameter information of the second image processing unit 404 processes the image according to the parameter information of the second target image synthesizing unit 405 and the second image may be processed in accordance with pre-target image based synthesis strategies are combined to obtain a group photo. 可见,实施图4所示的终端,能够在拍照过程中同时开启两个摄像头,并将两个摄像头采集到的图像进行合成处理,以快速获得合影照片,并提升用户拍照体验。 Be seen, the terminal embodiment shown in FIG. 4, can be turned on simultaneously in the two cameras photographing process, and the process for synthesizing the two images captured by the camera to quickly obtain photos of, and enhance the user experience photographed.

[0088] 请参阅图5,图5是本发明实施例提供的另一种终端的结构示意图,可以用于执行本发明实施例提供的拍照方法。 [0088] Referring to FIG. 5, FIG. 5 is a schematic view of another embodiment of the terminal according to the present invention, for performing a photographing method according to an embodiment of the present invention. 其中,图5所示的终端是在图4所示的终端的基础上进一步优化得到的。 Wherein the terminal shown in FIG. 5 is obtained on the basis of further optimization terminal shown in FIG. 4 on. 与图4所示的终端相比,图5所示的终端还可以包括: Compared with the terminal shown in FIG. 4, the terminal shown in FIG. 5 may further comprise:

[0089] 开启单元406,用于在获取单元401获取第一摄像头采集的第一图像,以及获取第二摄像头采集的第二图像之前,开启终端的合影拍照模式,并且在合影拍照模式下启动终端的第一摄像头和第二摄像头进行图像采集。 [0089] Open cell 406, 401 before acquiring a first image captured by the camera at a first acquisition unit, and acquiring a second image of the second camera for the acquisition, the terminal opening photo photographing mode, and activates the terminal in the photo photographing mode a first camera and a second camera for image acquisition.

[0090] 作为一种可选的实施方式,第一确定单元402可以进一步划分为: [0090] As an alternative embodiment, the first determination unit 402 may be further divided into:

[0091] 第二提取单元4021,用于提取第一图像的人脸特征信息; [0091] 4021 second extraction means for extracting a first feature information of the face image;

[0092] 查找单元4022,用于查找与第一图像的人脸特征信息相匹配的至少一张图像; [0092] The searching unit 4022, for people to find the first image matches the face feature information of the at least one image;

[0093] 第一接收单元4023,用于接收针对上述至少一张图像中的一张图像所触发的图像选取指令; [0093] The first receiving unit 4023, configured to receive an instruction to select an image for the image of the at least one image of the trigger;

[0094] 第二确定单元4024,用于响应该图像选取指令,将选取的图像确定为目标图像。 [0094] The second determining unit 4024, in response to the image selection command for the selected image is determined as the target image.

[0095] 作为一种可选的实施方式,图5所示的终端还可以包括: [0095] As an alternative embodiment, the terminal shown in FIG. 5 may further comprise:

[0096] 显示单元407,用于在处理单元404按照第二图像的参数信息对目标图像进行处理之后,在第二图像中显示至少一个合成位置; [0096] the display unit 407, after the processing unit 404 for processing the object image in accordance with image information of the second parameter, the at least one composite display position in the second image;

[0097] 第二接收单元408,用于接收针对上述至少一个合成位置中的一个合成位置所触发的位置选取指令; [0097] The second receiving unit 408 for receiving an instruction to select a position for the synthesis of the at least one position of positions a synthetic triggered;

[0098] 第三确定单元409,用于响应该位置选取指令,将选取的合成位置确定为目标位置; [0098] The third determining unit 409, for selecting in response to the position command, the position is determined to select the synthetic target position;

[0099] 相应地,合成单元405具体可以用于按照预设合成策略将处理后的目标图像合成进第二图像中的目标位置,以获得合影照片。 [0099] Accordingly, the synthesis unit 405 according to a preset specific synthetic strategies may be used to target the synthetic image after processing into a target position in the second image to obtain a group photo.

[0100] 可见,实施图5所示的终端,能够在拍照过程中同时开启两个摄像头,并将两个摄像头采集到的图像进行合成处理,以快速获得合影照片,并提升用户拍照体验。 [0100] visible, the terminal embodiment shown in FIG. 5, can be turned on simultaneously in the two cameras photographing process, and will be collected by the two cameras image combining process, to quickly obtain photos of, and enhance the user experience photographed. 此外,可以对图像合成的位置进行选择,使得图像合成更具有针对性,进而提高图像合成效果。 Further, the image synthesis may be made to a position selected, so that the image synthesizing more focused, thereby increasing the effect of image synthesis.

[0101] 请参阅图6,图6是本发明实施例提供的又一种终端的结构示意图,可以用于执行本发明实施例提供的拍照方法。 [0101] Referring to FIG. 6, FIG. 6 is a schematic structural diagram of still another terminal according to an embodiment of the present invention, for performing a photographing method according to an embodiment of the present invention. 如图6所示,该终端600可以包括:至少一个处理器601,至少一个第一摄像头602,至少一个第二摄像头603,至少一个输入装置604,至少一个输出装置605,存储器606等组件。 6, the terminal 600 may comprise: at least one processor 601, at least a first camera 602, a second camera at least 603, at least one input device 604, the at least one device 605, memory 606 and other components of the output. 其中,这些组件通过一条或多条总线607进行通信连接。 Wherein the components communicate via one or more buses 607. 本领域技术人员可以理解,图6中示出的终端的结构并不构成对本发明实施例的限定,它既可以是总线形结构,也可以是星型结构,还可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。 Those skilled in the art will appreciate, the terminal configuration shown in FIG. 6 do not limit embodiments of the present invention, It may be a bus-like structure, may be a star structure, may further include more than illustrated or fewer components, or a combination of some of the components, or a different arrangement of components. 其中: among them:

[0102] 处理器601为终端的控制中心,利用各种接口和线路连接整个终端的各个部分,通过运行或执行存储在存储器606内的程序和/或模块,以及调用存储在存储器606内的数据,以执行终端的各种功能和处理数据。 [0102] The processor 601 of the terminal to the control center, using a variety of interfaces and parts of the overall line connection terminals, data or by executing a program stored and run / or modules in the memory 606, and a call stored in the memory 606 , various functions and processes data to perform the terminal. 处理器601可以由集成电路(IntegratedCircuit,简称1C)组成,例如可以由单颗封装的1C所组成,也可以由连接多颗相同功能或不同功能的封装1C而组成。 The processor 601 may be formed of an integrated circuit (integratedcircuit, referred 1C) composed of, for example, consist 1C single package, it may be connected to multiple pieces of the same function or different functions of the package 1C and composition. 举例来说,处理器601可以仅包括中央处理器(CentralProcessing Unit,简称CPU),也可以是CPU、数字信号处理器(digital signal processor,简称DSP)、图形处理器(Graphic Processing Unit,简称GPU)及各种控制芯片的组合。 For example, processor 601 may include only a central processor (CentralProcessing Unit, referred to as the CPU), may be a CPU, a digital signal processor (digital signal processor, referred to as the DSP), graphics processing unit (Graphic Processing Unit, referred to as GPU) and combinations of various control chip. 在本发明实施方式中,CPU可以是单运算核心,也可以包括多运算核心。 In an embodiment of the present invention, the CPU may be a single core operation may include multiple processor cores.

[0103] 第一摄像头602可以为终端的前置摄像头,用于采集第一图像。 [0103] The first camera 602 may be a front camera of the terminal, for acquiring the first image.

[0104] 第二摄像头603可以为终端的后置摄像头,用于采集第二图像。 [0104] The second camera 603 may be a rear camera of the terminal, for acquiring the second image.

[0105] 输入装置604可以包括标准的触摸屏、键盘等,也可以包括有线接口、无线接口等。 [0105] The input device 604 may include a standard touch screen, keyboard, etc., may also include a wired interface, a wireless interface.

[0106] 输出装置605可以包括显示屏、扬声器等,也可以包括有线接口、无线接口等。 [0106] Output device 605 may include a display screen, a speaker and the like, may also include a wired interface, a wireless interface.

[0107] 存储器606可用于存储软件程序以及模块,处理器601、第一摄像头602、第二摄像头603、输入装置604以及输出装置605通过调用存储在存储器606中的软件程序以及模块,从而执行终端的各项功能应用以及实现数据处理。 [0107] memory 606 may be used to store software programs and modules, a processor 601, a first camera 602, second camera 603, an input device 604 and output device 605 by invoking software programs and modules stored in the memory 606, thereby performing terminal the functions and applications for data processing. 存储器606主要包括程序存储区和数据存储区,其中,程序存储区可存储操作系统、至少一个功能所需的应用程序(如图像合成程序等)等;数据存储区可存储根据终端的使用所创建的数据等。 The main memory 606 includes a program storage area and a data storage area, wherein the program storage area may store an operating system, at least one desired function application (e.g., an image synthesis program, etc.); a data storage area may store the created according to the use of the terminal the data. 在本发明实施例中,操作系统可以是Android系统、1S系统或Windows操作系统等等。 In an embodiment of the present invention, the Android operating system may be a system, 1S system or operating system like Windows.

[0108] 具体地,处理器601调用存储在存储器606中的应用程序,用于执行以下操作: [0108] In particular, the application call processor 601 is stored in the memory 606, to perform the following operations:

[0109] 获取第一摄像头602采集的第一图像,以及获取第二摄像头603采集的第二图像; [0109] acquiring a first image of the first camera 602 acquired, and acquiring a second image of the second camera 603 of capture;

[0110] 根据第一图像确定与第一图像匹配的目标图像; [0110] target image match the first image of the first image is determined in accordance with;

[0111] 提取第二图像的参数信息; [0111] the extracting parameter information of the second image;

[0112] 按照第二图像的参数信息对目标图像进行处理; [0112] processing the target image according to the parameter information of the second image;

[0113] 将第二图像以及处理后的目标图像按照预设合成策略进行合成,以获得合影照片。 [0113] The second target image and the processed image was synthesized according to a preset synthetic strategy to get photos of.

[0114] 作为一种可选的实施方式,处理器601获取第一摄像头602采集的第一图像,以及获取第二摄像头603采集的第二图像之前,还可以调用存储在存储器606中的应用程序,并执行以下操作: [0114] As an alternative embodiment, the processor 601 before acquiring a first image of the first camera 602 acquired, and acquiring a second image of the second camera 603 is acquired, the calling application may also be stored in the memory 606 , and do the following:

[0115] 开启终端的合影拍照模式,并且在合影拍照模式下启动终端的第一摄像头602和第二摄像头603进行图像采集。 [0115] Open photo photographing mode of the terminal, the terminal and starts photographing mode in a first photo camera 602 and second camera 603 for image acquisition.

[0116] 作为一种可选的实施方式,参数信息包括人物的显示比例和背景颜色中的至少一种,处理器601按照第二图像的参数信息对目标图像进行处理的具体实施方式可以包括: DETAILED DESCRIPTION [0116] As an optional embodiment, at least one processor 601 processes the target image and the aspect ratio parameter information comprises a background color of the characters in the second image according to the parameter information may include:

[0117] 当参数信息包括人物的显示比例时,按照第二图像中的人物的显示比例调整目标图像中人物的显示比例; [0117] When the parameter information includes a character display scale, adjust the ratio of the target person in the image display according to the display scale of the second image of a person;

[0118]当参数信息包括背景颜色时,将目标图像的背景颜色调整为与第二图像的背景颜色相匹配。 [0118] When the parameter information including background color, the background color of the target image and the adjusted second image background color matches.

[0119] 作为一种可选的实施方式,处理器601根据第一图像确定与第一图像匹配的目标图像的具体实施方式可以为: [0119] As an alternative embodiment, the image processor 601 determines a first specific embodiment according to the first embodiment of the image of the target image may be matched:

[0120] 提取第一图像的人脸特征信息; [0120] extracting a first feature information of the face image;

[0121] 查找与第一图像的人脸特征信息相匹配的至少一张图像; [0121] people find the first image matches the face feature information of the at least one image;

[0122] 控制输入装置604接收针对上述至少一张图像中的一张图像所触发的图像选取指令; [0122] a control input device 604 receives an instruction for selecting at least one image of an image of the image triggered;

[0123] 响应该图像选取指令,将选取的图像确定为目标图像。 [0123] In response to the image selection command, the selected image is determined as the target image.

[0124] 作为一种可选的实施方式,处理器601按照第二图像的参数信息对目标图像进行处理之后,还可以调用存储在存储器606中的应用程序,并执行以下操作: [0124] As an alternative embodiment, the processor 601 in accordance with the parameter information after the second image processing on the target image, the calling application can also be stored in the memory 606, and performs the following operations:

[0125] 控制输出装置605在第二图像中显示至少一个合成位置; [0125] the output control unit 605 displays at least a position in the second synthesized image;

[0126] 控制输入装置604接收针对上述至少一个合成位置中的一个合成位置所触发的位置选取指令; [0126] The input device 604 receives a control command to select a position for the synthesis of the at least one position of positions a synthetic triggered;

[0127] 响应该位置选取指令,将选取的合成位置确定为目标位置; [0127] In response to the selection command positions, the selected position is determined to synthetic target position;

[0128] 其中,处理器601将第二图像以及处理后的目标图像按照预设合成策略进行合成,以获得合影照片的具体实施方式可以为: DETAILED DESCRIPTION [0128] wherein the second image processor 601, and processed according to a preset target image synthesizing synthetic strategy to obtain photos of may be:

[0129] 按照预设合成策略将处理后的目标图像合成进第二图像中的目标位置,以获得合影照片。 [0129] Synthesis according to a preset policy processing target image after the synthesis into the target position in the second image to obtain a group photo.

[0130] 具体地,本发明实施例中介绍的终端可以实施本发明结合图1或图2介绍的拍照方法实施例中的部分或全部流程。 [0130] In particular, embodiments of the invention may be implemented in the terminal of the present invention is described in conjunction with FIG. 1 or FIG part or all of the embodiments of the process described in Example 2 photographic method.

[0131] 本发明所有实施例中的模块或子模块,可以通过通用集成电路,例如CPU,或通过ASIC (Applicat1n Specific Integrated Circuit,专用集成电路)来实现。 [0131] embodiment of the present invention, all the modules or sub-modules embodiment, may, by a CPU, or by a universal integrated circuit by ASIC (Applicat1n Specific Integrated Circuit, ASIC).

[0132] 需要说明的是,对于前述的各个方法实施例,为了简单描述,故将其都表述为一系列的动作组合,但是本领域技术人员应该知悉,本发明并不受所描述的动作顺序的限制,因为依据本申请,某一些步骤可以采用其他顺序或者同时进行。 [0132] Incidentally, for each embodiment of the aforementioned method, for ease of description, it is described as a series combination of actions, those skilled in the art should understand that the present invention is not described in the operation sequence It limited since according to the present application, a number of other steps may be employed sequentially or simultaneously. 其次,本领域技术人员也应该知悉,说明书中所描述的实施例均属于优选实施例,所涉及的动作和模块并不一定是本申请所必须的。 Secondly, those skilled in the art should also understand that the embodiments are described in the specification are exemplary embodiments, actions and modules are not necessarily related to the present application necessary.

[0133] 在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详细描述的部分,可以参见其他实施例的相关描述。 [0133] In the above embodiment, the description of the various embodiments have different emphases, not described in detail a portion of the embodiments, reference may be described in other embodiments.

[0134] 本发明实施例方法中的步骤可以根据实际需要进行顺序调整、合并和删减。 [0134] The procedure of Example of the present invention may be implemented in a method according to actual needs to adjust the order, deletion and merger.

[0135] 本发明实施例终端中的单元可以根据实际需要进行合并、划分和删减。 Example Embodiment terminal units [0135] The present invention may be combined according to actual needs, division and deletion.

[0136] 本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,所述的程序可存储于一计算机可读取存储介质中,该程序在执行时,可包括如上述各方法的实施例的流程。 [0136] Those of ordinary skill in the art may understand that the above-described method embodiments all or part of the processes may be related hardware instructed by a computer program, the program may be stored in a computer readable storage medium. when the program is executed, the processes of the foregoing method embodiments. 其中,所述的存储介质可为磁碟、光盘、只读存储记忆体(Read-Only Memory, ROM)或随机存取存储器(Random AccessMemory,简称RAM)等。 Wherein the storage medium may be a magnetic disk, an optical disk, read-only memory (Read-Only Memory, ROM) or random access memory (Random AccessMemory, referred to as RAM).

[0137] 以上对本发明实施例提供的一种拍照方法及终端进行了详细介绍,本文中应用了具体个例对本发明的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本发明的方法及其核心思想;同时,对于本领域的一般技术人员,依据本发明的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本发明的限制。 Described in detail describes a photographic method and a terminal provided in [0137] the above embodiment of the present invention described herein through specific examples of the principles and embodiments of the invention are set forth in the above embodiments are only used to help understand the present the method and core ideas of the invention; the same time, those of ordinary skill in the art, according to the ideas of the present invention, there are modifications to the specific embodiments and application scope of the specification shall not be construed as limiting the present invention.

Claims (10)

1.一种拍照方法,其特征在于,包括: 获取第一摄像头采集的第一图像,以及获取第二摄像头采集的第二图像; 根据所述第一图像确定与所述第一图像匹配的目标图像; 提取所述第二图像的参数信息; 按照所述第二图像的参数信息对所述目标图像进行处理; 将所述第二图像以及处理后的所述目标图像按照预设合成策略进行合成,以获得合影照片。 1. A photographing method, comprising: obtaining a first image of the first camera acquired, and acquiring a second image of the second camera acquisition; determining a target matching with the first image based on the first image image; extracting the image information of the second parameter; processing the target image according to the parameter information of the second image; the second target image and the synthetic image after processing according to a preset synthetic strategy to get photos of.
2.根据权利要求1所述的方法,其特征在于,所述获取第一摄像头采集的第一图像,以及获取第二摄像头采集的第二图像之前,所述方法还包括: 开启终端的合影拍照模式,并且在所述合影拍照模式下启动所述终端的第一摄像头和第二摄像头进行图像采集。 2. The method according to previous claim 1, wherein, said acquiring first images of the first camera acquired, and acquiring a second image of the second camera acquisition, the method further comprising: opening photo camera terminal mode, and activating the terminal in a first mode of the photographing photo camera and a second camera for image acquisition.
3.根据权利要求1所述的方法,其特征在于,所述参数信息包括人物的显示比例和背景颜色中的至少一种,所述按照所述第二图像的参数信息对所述目标图像进行处理,包括: 当所述参数信息包括所述人物的显示比例时,按照所述第二图像中的所述人物的显示比例调整所述目标图像中人物的显示比例; 当所述参数信息包括所述背景颜色时,将所述目标图像的背景颜色调整为与所述第二图像的背景颜色相匹配。 3. The method according to claim 1, wherein said at least one information parameter display comprising the character and background color ratio in the target image is performed according to the parameter information of the second image process, comprising: when the ratio of the parameter information comprises displaying characters, according to the display of the character display scale ratio of said second image to adjust the target person in the image; when the parameter information comprises when the above background color, the background color of the target image is adjusted to the second background color of the image to match.
4.根据权利要求1〜3任一项所述的方法,其特征在于,所述根据所述第一图像确定与所述第一图像匹配的目标图像,包括: 提取所述第一图像的人脸特征信息; 查找与所述第一图像的人脸特征信息相匹配的至少一张图像; 接收针对所述至少一张图像中的一张图像所触发的图像选取指令; 响应所述图像选取指令,将选取的所述图像确定为目标图像。 Extracting the first image people: 4. A method according to any of claims 1 ~ 3, wherein said determining the first image according to the first image matching target image, comprising face feature information; find first image and the face feature information matches at least one image; an image for receiving a selection instruction of the image of the at least one image of the trigger; in response to the image selection instruction , the selected image is determined as a target image.
5.根据权利要求1〜3任一项所述的方法,其特征在于,所述按照所述第二图像的参数信息对所述目标图像进行处理之后,所述方法还包括: 在所述第二图像中显示至少一个合成位置; 接收针对所述至少一个合成位置中的一个合成位置所触发的位置选取指令; 响应所述位置选取指令,将选取的所述合成位置确定为目标位置; 其中,所述将所述第二图像以及处理后的所述目标图像按照预设合成策略进行合成,以获得合影照片,包括: 按照预设合成策略将处理后的所述目标图像合成进所述第二图像中的所述目标位置,以获得合影照片。 5. After the method according to any of claims 1 ~ 3, wherein said step of processing the target image according to the parameter information of the second image, the method further comprising: in the first displaying at least two images in a combined position; receiving an instruction for selecting the position of the at least one synthetic positions triggered a combined position; position in response to the selection command, the selected synthetic position is determined as a target position; wherein, the second image and the target image after the synthesis processing according to a preset policy synthesis, to obtain a group photo, comprising: according to a preset policy synthesis target image after the synthesis process into the second the target position in the image, to obtain a group photo.
6.一种终端,其特征在于,包括: 获取单元,用于获取第一摄像头采集的第一图像,以及获取第二摄像头采集的第二图像; 第一确定单元,用于根据所述第一图像确定与所述第一图像匹配的目标图像; 第一提取单元,用于提取所述第二图像的参数信息; 处理单元,用于按照所述第二图像的参数信息对所述目标图像进行处理; 合成单元,用于将所述第二图像以及处理后的所述目标图像按照预设合成策略进行合成,以获得合影照片。 A terminal, characterized by comprising: an acquisition unit configured to acquire a first image of the first camera acquired, and acquiring a second image of the second captured by the camera; a first determining unit, according to the first image determining target image and matching the first image; a first extracting unit for extracting parameter information of the second image; processing means for performing a target image according to the parameter information of the second image processing; synthesizing unit, for the second image and the target image after the synthesis processing according to a preset policy synthesis, to obtain a group photo.
7.根据权利要求6所述的终端,其特征在于,所述终端还包括: 开启单元,用于在所述获取单元获取第一摄像头采集的第一图像,以及获取第二摄像头采集的第二图像之前,开启终端的合影拍照模式,并且在所述合影拍照模式下启动所述终端的第一摄像头和第二摄像头进行图像采集。 Second opening means for the first acquisition unit acquires a first image captured by the camera, and acquiring the second captured by the camera: The terminal according to claim 6, characterized in that the terminal further comprises before image, photo photographing mode of the terminal is turned on, and photo image acquisition start the first camera and the second camera of the terminal at the photographing mode.
8.根据权利要求6所述的终端,其特征在于,所述参数信息包括人物的显示比例和背景颜色中的至少一种,所述处理单元按照所述第二图像的参数信息对所述目标图像进行处理的方式包括: 当所述参数信息包括所述人物的显示比例时,所述处理单元按照所述第二图像中的所述人物的显示比例调整所述目标图像中人物的显示比例; 当所述参数信息包括所述背景颜色时,所述处理单元将所述目标图像的背景颜色调整为与所述第二图像的背景颜色相匹配。 8. The terminal according to claim 6, wherein said parameter information includes background color scale and displaying at least one character, the processing unit according to the parameter information of the second image to the target image processing mode comprises: when the ratio of the parameter information includes a character display, the display processing unit adjusts the ratio of the target image according to the characters of the character display scale of the second image; when the parameter information includes the background color, the background color of the processing unit of the target image and the background color is adjusted to match the second image.
9.根据权利要求6〜8任一项所述的终端,其特征在于,所述第一确定单元包括: 第二提取单元,用于提取所述第一图像的人脸特征信息; 查找单元,用于查找与所述第一图像的人脸特征信息相匹配的至少一张图像; 第一接收单元,用于接收针对所述至少一张图像中的一张图像所触发的图像选取指令; 第二确定单元,用于响应所述图像选取指令,将选取的所述图像确定为目标图像。 9. The terminal according to any one of claims 6 ~ 8, wherein said first determination unit comprises: a second extracting unit for extracting a facial feature of the first image information; searching unit, for people to find the first image matches the face feature information of the at least one image; a first receiving means for receiving an image selection command for an image of the at least one image triggered; first two determination means responsive to said image selection command, the selected image is determined as a target image.
10.根据权利要求6〜8任一项所述的终端,其特征在于,所述终端还包括: 显示单元,用于在所述处理单元按照所述第二图像的参数信息对所述目标图像进行处理之后,在所述第二图像中显示至少一个合成位置; 第二接收单元,用于接收针对所述至少一个合成位置中的一个合成位置所触发的位置选取指令; 第三确定单元,用于响应所述位置选取指令,将选取的所述合成位置确定为目标位置; 所述合成单元具体用于按照预设合成策略将处理后的所述目标图像合成进所述第二图像中的所述目标位置,以获得合影照片。 10. A terminal according to any one of claims 6 ~ 8, wherein said terminal further comprising: a display unit for the processing unit in accordance with the parameter information of the second image to the target image after processing, the second image displayed on the at least one composite position; a second receiving unit for receiving an instruction to select a position for the at least one synthetic positions triggered by a combined position; third determination means, by the synthesis of selected locations in response to said position command, the position determined as the target selected; specifically for the synthesis of the image synthesis unit into the second image of the target after the processing according to a preset strategy in the synthesis of said target position to get photos of.
CN201510716540.4A 2015-10-29 2015-10-29 Photographing method and terminal CN105391949A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510716540.4A CN105391949A (en) 2015-10-29 2015-10-29 Photographing method and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510716540.4A CN105391949A (en) 2015-10-29 2015-10-29 Photographing method and terminal

Publications (1)

Publication Number Publication Date
CN105391949A true CN105391949A (en) 2016-03-09

Family

ID=55423733

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510716540.4A CN105391949A (en) 2015-10-29 2015-10-29 Photographing method and terminal

Country Status (1)

Country Link
CN (1) CN105391949A (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105847636A (en) * 2016-06-08 2016-08-10 维沃移动通信有限公司 Video recording method and mobile terminal
CN106412321A (en) * 2016-10-31 2017-02-15 维沃移动通信有限公司 Image processing method and mobile terminal
CN106534928A (en) * 2016-10-28 2017-03-22 努比亚技术有限公司 Device and method for video processing
CN107426502A (en) * 2017-09-19 2017-12-01 北京小米移动软件有限公司 Photographing method and device, and electronic equipment
CN107451953A (en) * 2017-08-07 2017-12-08 珠海格力电器股份有限公司 Method and device for generating group photo, and electronic equipment
CN107483838A (en) * 2017-09-29 2017-12-15 北京金山安全软件有限公司 Photographing method and device based on front and back cameras, equipment and medium
CN107592459A (en) * 2017-09-22 2018-01-16 维沃移动通信有限公司 Photographing method and mobile terminal

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4602286A (en) * 1982-01-15 1986-07-22 Quantel Limited Video processing for composite images
EP1507386A1 (en) * 2003-08-14 2005-02-16 Fuji Photo Film Co., Ltd. Image pickup device and image synthesizing method
CN102469263A (en) * 2010-11-16 2012-05-23 卡西欧计算机株式会社 Imaging apparatus and image synthesizing method
CN103369236A (en) * 2012-03-28 2013-10-23 索尼公司 Image processing apparatus, method, and program
CN104954678A (en) * 2015-06-15 2015-09-30 联想(北京)有限公司 Image processing method, image processing device and electronic equipment

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4602286A (en) * 1982-01-15 1986-07-22 Quantel Limited Video processing for composite images
EP1507386A1 (en) * 2003-08-14 2005-02-16 Fuji Photo Film Co., Ltd. Image pickup device and image synthesizing method
CN102469263A (en) * 2010-11-16 2012-05-23 卡西欧计算机株式会社 Imaging apparatus and image synthesizing method
CN103369236A (en) * 2012-03-28 2013-10-23 索尼公司 Image processing apparatus, method, and program
CN104954678A (en) * 2015-06-15 2015-09-30 联想(北京)有限公司 Image processing method, image processing device and electronic equipment

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105847636A (en) * 2016-06-08 2016-08-10 维沃移动通信有限公司 Video recording method and mobile terminal
CN106534928A (en) * 2016-10-28 2017-03-22 努比亚技术有限公司 Device and method for video processing
CN106412321A (en) * 2016-10-31 2017-02-15 维沃移动通信有限公司 Image processing method and mobile terminal
CN106412321B (en) * 2016-10-31 2019-07-26 维沃移动通信有限公司 A kind of image processing method and mobile terminal
CN107451953A (en) * 2017-08-07 2017-12-08 珠海格力电器股份有限公司 Method and device for generating group photo, and electronic equipment
CN107426502A (en) * 2017-09-19 2017-12-01 北京小米移动软件有限公司 Photographing method and device, and electronic equipment
CN107592459A (en) * 2017-09-22 2018-01-16 维沃移动通信有限公司 Photographing method and mobile terminal
CN107483838A (en) * 2017-09-29 2017-12-15 北京金山安全软件有限公司 Photographing method and device based on front and back cameras, equipment and medium

Similar Documents

Publication Publication Date Title
CN103905730B (en) Photographing method and a mobile terminal of the mobile terminal
US8514295B2 (en) Augmented reality processing based on eye capture in handheld device
US20140226052A1 (en) Method and mobile terminal apparatus for displaying specialized visual guides for photography
CN103595911A (en) Camera device and method for aiding user in use thereof
CN102055834A (en) Double-camera photographing method of mobile terminal
US8773502B2 (en) Smart targets facilitating the capture of contiguous images
CN103297697A (en) Method and device for displaying template pictures during photographing
JP2011526013A (en) Image processing
CN104243787B (en) The method of taking pictures, photo management method and apparatus
CN104317932A (en) Photo sharing method and device
KR101874895B1 (en) Method for providing augmented reality and terminal supporting the same
CN100512420C (en) Method and apparatus for composing images during video communications
CN103533244A (en) Shooting device and automatic visual effect processing shooting method thereof
CN103310099A (en) Method and system for realizing augmented reality by adopting image capture and recognition technology
CN103002152B (en) The mobile terminal continuously photographing method and apparatus
CN104580910A (en) Image synthesis method and system based on front camera and rear camera
CN106210521A (en) Photographing method and terminal
CN103442181B (en) An image processing method and image processing apparatus
CN103024271B (en) The method of taking pictures in the electronic device and method of using the electronic device
CN103581561B (en) Based on human rotate the camera captured scene image synthesis method and system for
CN103945129A (en) Photographing-preview picture composition instruction method and system based on mobile terminal
CN103152489A (en) Showing method and device for self-shooting image
CN103945045A (en) Method and device for data processing
CN104349033A (en) Self-timer light supplement method, self-timer light supplement device and electronic equipment
CN104135611B (en) Method and apparatus for using the split screen function to achieve photographed

Legal Events

Date Code Title Description
C06 Publication
C10 Entry into substantive examination
WD01 Invention patent application deemed withdrawn after publication