WO2015143857A1 - Photograph synthesis method and terminal - Google Patents

Photograph synthesis method and terminal Download PDF

Info

Publication number
WO2015143857A1
WO2015143857A1 PCT/CN2014/087762 CN2014087762W WO2015143857A1 WO 2015143857 A1 WO2015143857 A1 WO 2015143857A1 CN 2014087762 W CN2014087762 W CN 2014087762W WO 2015143857 A1 WO2015143857 A1 WO 2015143857A1
Authority
WO
WIPO (PCT)
Prior art keywords
picture
feature
photos
feature picture
specific area
Prior art date
Application number
PCT/CN2014/087762
Other languages
French (fr)
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 深圳市金立通信设备有限公司
Publication of WO2015143857A1 publication Critical patent/WO2015143857A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T11/002D [Two Dimensional] image generation
    • G06T11/60Editing figures and text; Combining figures or text

Definitions

  • the present invention relates to the field of image processing technologies, and in particular, to a photo composition method and a terminal.
  • Photographs are a good carrier for people to save their memories. Photographing is a common way of entertainment for people to socialize. Especially in certain occasions, such as graduation parties, outings, etc., people prefer to take pictures to record good times. When the number of people is relatively small, it is easier to take pictures with satisfactory expressions for everyone in the photo; but when there are a large number of people, such as a group photo of ten people, dozens of people or even hundreds of people, it is difficult to just have all the photos. People have a satisfactory expression or styling, or the difficulty of making a snapshot. For example, if you want to get a photo of a wink and a smile, a person’s eyes will often appear in a group photo, or the expression will be weird. The photos are hard to get photos that are satisfactory to everyone.
  • the embodiment of the invention discloses a photo synthesizing method and a terminal, which can automatically synthesize a plurality of photos in accordance with a preset condition feature picture and a non-feature picture, and obtain a satisfactory photo that the user needs.
  • a first aspect of the embodiments of the present invention provides a photo composition method, where the method includes:
  • the selected feature picture and the non-feature picture are combined to obtain a composite picture.
  • a second aspect of the embodiments of the present invention provides a terminal, where the terminal includes:
  • a detecting unit configured to detect the acquired at least two photos to obtain a feature picture and a non-feature picture, wherein the feature picture is a picture of a specific area in the at least two photos, and the non-feature picture is the at least a picture of two photos other than the specific area;
  • a selecting unit configured to select, in the feature picture, a feature picture that meets a preset condition as the selected feature picture
  • a synthesizing unit configured to synthesize the selected feature picture and the non-feature picture to obtain a composite photo.
  • a third aspect of the embodiments of the present invention discloses a terminal, where the terminal includes a user interface, a memory, and a processor, where the memory stores a set of program codes, and the processor calls the memory.
  • Stored program code to do the following:
  • the selected feature picture and the non-feature picture are combined to obtain a composite picture.
  • the specific area of the acquired at least two photos is set as the feature picture, and the remaining area is set as the non-feature picture, and the picture that meets the preset condition is selected as the selected feature picture in the special picture, and the selected feature picture is selected.
  • the fixed feature picture is combined with the non-feature picture to obtain a satisfactory picture desired by the user.
  • FIG. 1 is a flowchart of a photo composition method according to an embodiment of the present invention
  • FIG. 2 is a flowchart of a second photo synthesizing method according to an embodiment of the present invention.
  • FIG. 3 is a schematic diagram of one of the continuous shooting photos provided by the embodiment of the present invention.
  • FIG. 4 is a schematic diagram of another picture in a continuous shooting photo according to an embodiment of the present invention.
  • FIG. 5 is a schematic diagram of a composite photograph obtained by combining the photographs shown in FIG. 3 and FIG. 4 according to an embodiment of the present invention
  • FIG. 6 is a flowchart of a third photo synthesizing method according to an embodiment of the present invention.
  • FIG. 7 is a schematic structural diagram of a photo synthesizing terminal according to an embodiment of the present invention.
  • FIG. 8 is a schematic structural diagram of still another terminal according to an embodiment of the present invention.
  • the photo synthesizing method disclosed in the embodiment of the present invention improves the entertainment and enjoyment of the photo by selecting the feature picture and the non-feature picture combined with the predetermined condition, and improves the user's satisfaction with the photo.
  • FIG. 1 is a flowchart of a photo composition method according to an embodiment of the present invention. As shown in FIG. 1, the photo synthesis method may include the following steps:
  • obtaining at least two photos includes a camera, a camera, a smart phone (such as a mobile phone with an Android operating system, a mobile phone with an iOS operating system, etc.), a tablet, a palmtop computer, and a mobile Internet device (MID), PAD, or the like.
  • the terminal device with the camera continuously takes at least two photos of the subject for a preset time, for example, 1 second or 2 seconds.
  • S102 Detecting the acquired at least two photos to obtain a feature picture and a non-feature picture, wherein the feature picture is a picture of a specific area in the at least two photos, and the non-feature picture is the at least two photos a picture other than the specific area;
  • step S101 At least two photos obtained in step S101 are detected, and a screen of a specific area of each of the at least two photos is set as a feature screen, and a screen other than the specific area of each of the at least two photos is set.
  • a non-feature picture It can be known that the feature picture includes a plurality of pictures, and the non-feature picture also includes a plurality of pictures.
  • the specific area may be an area of one location, or may be a plurality of areas including different locations.
  • S103 Select a feature picture that meets a preset condition in the feature picture as the selected feature picture;
  • a condition that satisfies the user's needs is preset, and a feature picture that meets the preset condition is selected in the feature picture as the selected feature picture.
  • the area corresponding to the specific area may be a position, or may be a plurality of areas including different positions, and selecting a feature picture that meets the preset condition from the feature picture as the selected feature picture may be from a position
  • a feature screen that meets a preset condition is selected as a selected feature screen from a feature screen formed by a screen of a region, or a feature screen that meets a preset condition is selected from a feature screen composed of a screen of each of the plurality of location regions.
  • the feature screen is selected to form a plurality of selected feature screens.
  • S104 Synthesize the selected feature picture and the non-feature picture to obtain a composite picture.
  • the selected selected feature picture that meets the preset condition is combined with any one of the non-featured pictures to obtain a composite picture.
  • synthesizing the selected feature picture and the non-feature picture includes the following steps:
  • a plurality of selected feature pictures are in different photos, a plurality of the selected feature pictures and any one of the non-feature pictures are combined to obtain a composite picture.
  • the photo composition method of the embodiment of the present invention improves the entertainment and enjoyment of the photo by selecting a feature picture that matches the predetermined condition and the non-feature picture, and improves the user's satisfaction with the photo.
  • FIG. 2 is a flowchart of a second photo synthesizing method according to an embodiment of the present invention.
  • the photo composition method may include the following steps:
  • S202 calculating an image value difference value at the same position of at least two photos; setting an area of the at least two photos in which the image value difference exceeds a predetermined value as a specific area, and setting the specific part in the at least two photos a picture of the area as a feature picture, wherein the at least two pictures are made in addition to the picture of the specific area Non-characterized picture;
  • step S202 is a specific implementation method of step S102.
  • Image values are values used to indicate indicators such as image content and quality, such as RGB values, resolution, and sharpness of each point of the image.
  • RGB values RGB values
  • sharpness of each point of the image.
  • the same person appears in the same position in the photo.
  • the image value at the same position exceeds the predetermined value, it indicates that the expression on the photo of the person has undergone a relatively large change.
  • Different photos may cause slight changes in image values at the same position due to different shooting conditions.
  • Setting a predetermined value may exclude the change of image values caused by objective reasons, only when the image value difference exceeds a certain predetermined value. It shows that the expression of this person has changed in the photo.
  • the predetermined value can be set to 10% of the image value in a photo, and this percentage can be set to a larger or smaller value according to different needs.
  • FIGS. 3 and 4 are A, B, and C, respectively, from left to right, and B shows a non-smile face in the photograph of FIG. 3, and in the photograph shown in FIG. Showing a smiley face, C shows a smiley face in the photo of Figure 3, but in the photo shown in Figure 4 is a non-smiley face, according to whether the difference in image value at the same position exceeds a predetermined value, the face of B and C in the photo
  • the area can be selected as a specific area, and the face pictures of B and C in FIG. 3 and the face pictures of B and C in FIG. 4 are set as feature pictures, and pictures and pictures other than the face pictures of B and C in FIG.
  • the screens other than the face screens of B and C in 4 are set as non-feature screens, and it is known that the screens other than the face screens of B and C in Fig. 3 and the face screens except B and C in Fig. 4 The screens other than the ones are almost the same.
  • the specific area may be an area of one location, or may be a plurality of areas including different positions.
  • the specific area includes areas of two positions of the face areas of B and C in the photo. .
  • the specific area can be one location, or two, three or other number of zones.
  • S203 Select a feature picture that meets a preset condition in the feature picture as the selected feature picture;
  • a condition that satisfies the user's needs is preset, and a feature picture that meets the preset condition is selected in the feature picture as the selected feature picture.
  • the face pictures of B and C in FIG. 3 and the face pictures of B and C in FIG. 4 are set as feature pictures, and the face picture of B in FIG. 3 is a non-smile face, in FIG. B’s face is a smiley face.
  • the general user wants the photos to reflect happy and happy emotions. Therefore, in this set of feature pictures, the face image of B in Fig. 4 is selected as the selected feature picture; in Fig. 3, the face picture of C is a smiling face, Fig. 4 The face picture of the middle C is a non-smile face. Therefore, in this set of feature pictures, the face picture of C in FIG. 3 is selected as the selected feature picture.
  • the area corresponding to the specific area may be a position, or may be a plurality of areas including different positions, and selecting a feature picture that meets the preset condition from the feature picture as the selected feature picture may be from a position
  • a feature screen that meets a preset condition is selected as a selected feature screen from a feature screen formed by a screen of a region, or a feature screen that meets a preset condition is selected from a feature screen composed of a screen of each of the plurality of location regions.
  • the feature screen is selected to form a plurality of selected feature screens.
  • the face pictures of B and C in FIG. 3 and the face pictures of B and C in FIG. 4 are feature pictures, and the face picture of B in FIG. 4 and the face picture in FIG. 3 are selected.
  • the face picture is the selected feature picture, and a total of two selected feature pictures.
  • S204 Synthesize the selected feature picture and the non-feature picture to obtain a composite picture.
  • the selected selected feature picture that meets the preset condition is combined with any one of the non-featured pictures to obtain a composite picture.
  • the face picture of B in FIG. 4 and the face picture of C in FIG. 3 are selected feature pictures, and the pictures other than the face pictures of B and C in FIG. 3 and FIG. 4
  • the screens other than the face screens of B and C are set as non-feature screens, and the screens other than the face screens of B and C in Fig. 3 are almost the same as the screens except the face screens of B and C in Fig. 4.
  • One of the frames is randomly selected.
  • the face images of B and C in FIG. 3 are combined with the face image of B in FIG. 4 and the face image of C in FIG. 3 to obtain a composite photo view 5.
  • synthesizing the selected feature picture and the non-feature picture includes the following steps:
  • the selected feature picture is the face picture of B in FIG. 3 and FIG. 3 In the face image of C
  • the two selected feature pictures are in the same photo, then directly output FIG. 3 as a composite photo
  • the selected feature picture is the face picture of B in FIG. 4 and the face of C in FIG. In the picture, the two selected feature pictures are not in the same picture, and it is necessary to combine the face picture of B in FIG. 4 and any one of the face picture and the non-feature picture of FIG. 3 to obtain a composite picture.
  • the picture at the change location is obtained as the feature picture by calculating the size of the difference value of the image value at the same position, and then the selected condition is selected as the selected feature picture in the feature picture, and finally selected.
  • the combination of feature pictures and non-feature pictures enhances the entertainment and enjoyment of photos and improves the user's satisfaction with photos.
  • FIG. 6 is a flowchart of a third photo synthesizing method according to an embodiment of the present invention. As shown in FIG. 3, the photo synthesis method may include the following steps:
  • obtaining at least two photos includes a photo machine, a video camera, a smart phone (such as a mobile phone with an Android operating system, a mobile phone with an iOS operating system, etc.), a tablet computer, a palm computer, a mobile Internet device (MID), a PAD, or Other camera-equipped terminal devices acquire at least two photos including a plurality of facial features.
  • a smart phone such as a mobile phone with an Android operating system, a mobile phone with an iOS operating system, etc.
  • a tablet computer such as a mobile phone with an iOS operating system, etc.
  • MID mobile Internet device
  • PAD a PAD
  • Other camera-equipped terminal devices acquire at least two photos including a plurality of facial features.
  • the area including the facial features in the at least two photos is set as a specific area, and a picture of the specific area in the at least two photos is used as a feature picture, and the at least two photos are apart from the specific a picture outside the area as a non-feature picture;
  • step S602 is another specific implementation method of step S102.
  • the face recognition technology may be used to identify the area including the facial features, and the face recognition technology adopts the technical means commonly used in the art, and details are not described herein.
  • the specific area may be an area of one location, or may be a plurality of areas including different locations.
  • S603 Select a feature picture that meets a preset condition in the feature picture as the selected feature picture;
  • a condition that satisfies the user's needs is preset, and a feature picture that meets the preset condition is selected in the feature picture as the selected feature picture.
  • the area corresponding to the specific area may be a position, or may be a plurality of areas including different positions, and selecting a feature picture that meets the preset condition from the feature picture as the selected feature picture may be from a position Selecting a characteristic that matches the preset condition in the feature screen of the screen of the area As the selected feature screen, the feature screen of the screen of each of the plurality of location regions may be selected as the selected feature screen to form a plurality of selected feature screens.
  • S604 Synthesize the selected feature picture and the non-feature picture to obtain a composite picture.
  • the selected selected feature picture that meets the preset condition is combined with any one of the non-featured pictures to obtain a composite picture.
  • synthesizing the selected feature picture and the non-feature picture includes the following steps:
  • the photo synthesizing method of the embodiment of the present invention mainly focuses on the face, by adopting a picture including the facial features of the person.
  • the selected feature picture is selected as the selected feature picture in the feature picture, and finally the selected feature picture and the non-feature picture are combined to improve the entertainment and enjoyment of the picture, and the user's satisfaction with the picture is improved. And it is more practical and targeted to use.
  • FIG. 7 is a schematic structural diagram of a terminal according to an embodiment of the present invention.
  • the terminal 700 shown in FIG. 7 may be a camera, a camera, a smart phone (such as a mobile phone with an Android operating system, a mobile phone with an iOS operating system, etc.), a tablet, a palmtop computer, and a mobile Internet device (MID), a PAD, or the like.
  • the terminal device of the camera As shown in FIG. 7, the terminal 700 includes: an obtaining unit 701, a detecting unit 702, a selecting unit 703, and a synthesizing unit 704, wherein
  • the obtaining unit 701 is configured to obtain at least two photos
  • the acquisition unit 701 continuously captures at least two photos or at least two photos including a plurality of facial features on the subject for a preset time, for example, 1 second or 2 seconds.
  • the detecting unit 702 is configured to detect the acquired at least two photos to obtain a feature picture and a non-feature picture, wherein the feature picture is a picture of a specific area in the at least two photos, the non-feature The screen is a picture other than the specific area of the at least two photos;
  • the detecting unit 702 calculates image value difference values at the same position of the at least two photos, and sets an area of the at least two photos in which the image value difference value exceeds a predetermined value as a specific area, where the image value Is a value used to indicate an image, a quality, and the like, such as RGB values, resolutions, and sharpness of each point of the image; and a picture of the specific area in the at least two photos is used as a feature picture, the at least two A picture other than the specific area in the photo is taken as a non-feature picture.
  • the detecting unit 702 is further configured to set an area including the facial features in the at least two photos as a specific area, and use a picture of the specific area in the at least two photos as a feature picture, where the at least A picture other than the specific area in the two photos is taken as a non-feature picture.
  • the specific area may be an area of one location, or may be a plurality of areas including different locations.
  • the selecting unit 703 is configured to select, as the selected feature picture, a feature picture that meets a preset condition in the feature picture;
  • the area corresponding to the specific area may be a position, or may be a plurality of areas including different positions, and the selecting unit 703 selects a feature picture that meets the preset condition from the feature picture as the selected feature picture.
  • the feature picture that meets the preset condition is selected from the feature picture formed by the screen of one location area as the selected feature picture, or the feature picture formed by the picture of each of the plurality of location areas may be selected to meet the preset condition.
  • the feature screen is a selected feature screen and constitutes a plurality of selected feature screens.
  • the synthesizing unit 704 is configured to synthesize the selected feature picture and the non-feature picture to obtain a composite photo.
  • the synthesizing unit 704 combines the selected selected feature picture that meets the preset condition with any one of the non-feature pictures to obtain a composite photo.
  • the terminal 700 further includes a determining unit, configured to determine whether the plurality of the selected feature pictures are in the same photo;
  • a synthesizing unit 704 if the determination result of the determining unit is YES, outputting a photo of the plurality of the selected feature screens as a composite photo; and in a case where the determining unit determines that the result is negative, And synthesizing the plurality of the selected feature pictures and any one of the non-feature pictures to obtain a composite picture.
  • the terminal of the embodiment of the present invention improves the entertainment and viewing of the photo by selecting a feature picture that matches the predetermined condition and the non-feature picture, and improves the user's satisfaction with the photo.
  • FIG. 8 is a schematic structural diagram of still another terminal according to an embodiment of the present invention.
  • the terminal 800 can include at least one processor 801, such as a CPU, at least one user interface 803, a memory 804, and at least one communication bus 802.
  • the communication bus 802 is used to implement connection communication between the components.
  • the user interface 803 can include a display and a keyboard. Alternatively, the user interface 803 can also include a standard wired interface and a wireless interface.
  • the memory 804 may be a high speed RAM memory or a non-volatile memory such as at least one disk memory. Alternatively, the memory 804 may be at least one storage device located away from the processor 801.
  • the memory 804 stores a set of program codes, and the processor 801 calls the program code stored in the memory 804 to perform the following operations:
  • the selected feature picture and the non-feature picture are combined to obtain a composite picture.
  • the specific manner in which the processor 801 obtains at least two photos may be:
  • At least two photos are continuously captured by the terminal camera within a preset time.
  • the specific manner in which the processor 801 detects the acquired at least two photos to obtain the feature picture and the non-feature picture may be:
  • the specific manner in which the processor 801 obtains at least two photos may be:
  • the specific manner of the processor 801 detecting the acquired at least two photos to obtain the feature picture and the non-feature picture may be: setting an area including the facial feature in the at least two photos as a specific area, The screen of the specific area in the at least two photos is used as a feature screen, and a picture other than the specific area among the at least two photos is used as a non-feature picture.
  • the specific area includes a plurality of areas at different locations
  • the specific manner in which the processor selects the feature image that meets the preset condition from the feature image as the selected feature image may be: selecting a feature image that meets the preset condition from the feature image of each region as the selected feature image;
  • the processor invokes the program code stored in the memory, and is further configured to perform the following operations:
  • the processor may combine the selected feature picture and the non-feature picture to obtain a composite photo.
  • the specific manner may be:
  • the processor determines that the plurality of selected feature pictures are in the same photo, outputting a photo of the plurality of the selected feature pictures
  • the processor determines that the plurality of the selected feature pictures are in different photos, synthesizing the plurality of the selected feature pictures and the non-feature picture to obtain a composite picture.
  • the units in the terminal in the embodiment of the present invention may be combined, divided, and deleted according to actual needs.
  • the storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM), or a random access memory (RAM).

Abstract

Disclosed are a photograph synthesis method and a terminal. The photograph synthesis method disclosed in embodiments of the present invention comprises: acquiring at least two photographs; detecting the at least two acquired photographs to obtain characteristic pictures and non-characteristic pictures, the characteristic pictures being pictures in specific areas in the at least two photographs, and the non-characteristic pictures being pictures in areas, except the specific areas, in the at least two photographs; selecting characteristic pictures, meeting preset conditions, in the characteristic pictures to serve as selected characteristic pictures; and conducting synthesis on the selected characteristic pictures and any one of the non-characteristic pictures to obtain a synthetic photograph. In the embodiments of the present invention, characteristic pictures meeting preset conditions are selected and synthesized with a non-characteristic picture to obtain a photograph, so that the entertainment value and the ornamental value of the photograph are improved, and the satisfaction of a user with the photograph is improved.

Description

一种照片合成方法及终端Photo synthesis method and terminal
本申请要求于2014年3月26日提交中国专利局、申请号为201410116591.9、发明名称为“一种照片合成方法及终端”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。The present application claims priority to Chinese Patent Application No. 201410116591.9, entitled "A Photo Synthesis Method and Terminal" on March 26, 2014, the entire contents of which is incorporated herein by reference. .
技术领域Technical field
本发明涉及图像处理技术领域,具体涉及一种照片合成方法及终端。The present invention relates to the field of image processing technologies, and in particular, to a photo composition method and a terminal.
背景技术Background technique
照片是人们保存美好回忆的一种良好载体,拍照是人们进行社交活动时常用的娱乐方式,特别是在一些特定场合下,如毕业聚会,踏青郊游等,人们更希望通过拍照来记录美好时光。在人数比较少的时候,比较容易拍出照片中每个人的表情都令人满意的照片;但在人数较多,例如十人、几十人甚至上百人的大集体照时,很难刚好所有人都摆出了满意的表情或造型,或者是导致抓拍的难度升级,例如,如果希望得到一张睁眼和笑脸的照片,在多人集体照中经常会出现某个人眨眼,或者是表情怪异的照片,难以获得到所有人表情都满意的照片。Photographs are a good carrier for people to save their memories. Photographing is a common way of entertainment for people to socialize. Especially in certain occasions, such as graduation parties, outings, etc., people prefer to take pictures to record good times. When the number of people is relatively small, it is easier to take pictures with satisfactory expressions for everyone in the photo; but when there are a large number of people, such as a group photo of ten people, dozens of people or even hundreds of people, it is difficult to just have all the photos. People have a satisfactory expression or styling, or the difficulty of making a snapshot. For example, if you want to get a photo of a wink and a smile, a person’s eyes will often appear in a group photo, or the expression will be weird. The photos are hard to get photos that are satisfactory to everyone.
发明内容Summary of the invention
本发明实施例公开了一种照片合成方法及终端,能够将多张照片中符合预设条件特征画面与非特征画面进行自动合成,得到用户需要的、满意的照片。The embodiment of the invention discloses a photo synthesizing method and a terminal, which can automatically synthesize a plurality of photos in accordance with a preset condition feature picture and a non-feature picture, and obtain a satisfactory photo that the user needs.
本发明实施例的第一方面提供一种照片合成方法,所述方法包括:A first aspect of the embodiments of the present invention provides a photo composition method, where the method includes:
获取至少两张照片;Get at least two photos;
检测所述获取的至少两张照片以获得特征画面和非特征画面,其中所述特征画面为所述至少两张照片中特定区域的画面,所述非特征画面为所述至少两张照片中除所述特定区域之外的画面;Detecting the acquired at least two photos to obtain a feature picture and a non-feature picture, wherein the feature picture is a picture of a specific area in the at least two photos, and the non-feature picture is in the at least two photos a picture outside the specific area;
在所述特征画面中选择符合预设条件的特征画面作为选定特征画面;Selecting a feature picture that meets a preset condition as the selected feature picture in the feature picture;
将所述选定特征画面与所述非特征画面进行合成,得到合成照片。The selected feature picture and the non-feature picture are combined to obtain a composite picture.
本发明实施例的第二方面提供一种终端,所述终端包括:A second aspect of the embodiments of the present invention provides a terminal, where the terminal includes:
获取单元,用于获取至少两张照片; An acquisition unit for obtaining at least two photos;
检测单元,用于检测所述获取的至少两张照片以获得特征画面和非特征画面,其中所述特征画面为所述至少两张照片中特定区域的画面,所述非特征画面为所述至少两张照片中除所述特定区域之外的画面;a detecting unit, configured to detect the acquired at least two photos to obtain a feature picture and a non-feature picture, wherein the feature picture is a picture of a specific area in the at least two photos, and the non-feature picture is the at least a picture of two photos other than the specific area;
选定单元,用于在所述特征画面中选择符合预设条件的特征画面作为选定特征画面;a selecting unit, configured to select, in the feature picture, a feature picture that meets a preset condition as the selected feature picture;
合成单元,用于将所述选定特征画面与所述非特征画面进行合成,得到合成照片。And a synthesizing unit, configured to synthesize the selected feature picture and the non-feature picture to obtain a composite photo.
相应的,本发明实施例第三方面公开了一种终端,所述终端包括用户接口、存储器以及处理器,其中,所述存储器中存储一组程序代码,且所述处理器调用所述存储器中存储的程序代码,用于执行以下操作:Correspondingly, a third aspect of the embodiments of the present invention discloses a terminal, where the terminal includes a user interface, a memory, and a processor, where the memory stores a set of program codes, and the processor calls the memory. Stored program code to do the following:
获取至少两张照片;Get at least two photos;
检测所述获取的至少两张照片以获得特征画面和非特征画面,其中所述特征画面为所述至少两张照片中特定区域的画面,所述非特征画面为所述至少两张照片中除所述特定区域之外的画面;Detecting the acquired at least two photos to obtain a feature picture and a non-feature picture, wherein the feature picture is a picture of a specific area in the at least two photos, and the non-feature picture is in the at least two photos a picture outside the specific area;
在所述特征画面中选择符合预设条件的特征画面作为选定特征画面;Selecting a feature picture that meets a preset condition as the selected feature picture in the feature picture;
将所述选定特征画面与所述非特征画面进行合成,得到合成照片。The selected feature picture and the non-feature picture are combined to obtain a composite picture.
本发明实施例中,通过将获取的至少两张照片中特定区域设为特征画面,剩余区域设为非特征画面,在特殊画面中选取符合预设条件的画面作为选定特征画面,通过将选定特征画面与非特征画面进行合成以获得用户需要的、满意的照片。In the embodiment of the present invention, the specific area of the acquired at least two photos is set as the feature picture, and the remaining area is set as the non-feature picture, and the picture that meets the preset condition is selected as the selected feature picture in the special picture, and the selected feature picture is selected. The fixed feature picture is combined with the non-feature picture to obtain a satisfactory picture desired by the user.
附图说明DRAWINGS
为了更清楚地说明本发明实施例的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings used in the description of the embodiments will be briefly described below. It is obvious that the drawings in the following description are only some embodiments of the present invention, Those skilled in the art can also obtain other drawings based on these drawings without paying any creative work.
图1是本发明实施例提供的一种照片合成方法的流程图;FIG. 1 is a flowchart of a photo composition method according to an embodiment of the present invention;
图2是本发明实施例提供的第二种照片合成方法的流程图;2 is a flowchart of a second photo synthesizing method according to an embodiment of the present invention;
图3是本发明实施例提供的连拍照片中的一张的示意图; 3 is a schematic diagram of one of the continuous shooting photos provided by the embodiment of the present invention;
图4是本发明实施例提供的连拍照片中的另一张的示意图;4 is a schematic diagram of another picture in a continuous shooting photo according to an embodiment of the present invention;
图5是本发明实施例提供的将图3和图4所示的照片进行合成后的合成照片的示意图;FIG. 5 is a schematic diagram of a composite photograph obtained by combining the photographs shown in FIG. 3 and FIG. 4 according to an embodiment of the present invention; FIG.
图6是本发明实施例提供的第三种照片合成方法的流程图;6 is a flowchart of a third photo synthesizing method according to an embodiment of the present invention;
图7是本发明实施例提供的一种照片合成终端的结构示意图。FIG. 7 is a schematic structural diagram of a photo synthesizing terminal according to an embodiment of the present invention.
图8是本发明实施例公开的又一种终端的结构示意图。FIG. 8 is a schematic structural diagram of still another terminal according to an embodiment of the present invention.
具体实施方式detailed description
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The technical solutions in the embodiments of the present invention are clearly and completely described in the following with reference to the accompanying drawings in the embodiments of the present invention. It is obvious that the described embodiments are only a part of the embodiments of the present invention, but not all embodiments. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without creative efforts are within the scope of the present invention.
本发明实施例公开的照片合成方法,通过选取符合预定条件的特征画面与非特征画面合成照片,提高了照片的娱乐性和观赏性,提高了用户对照片的满意度。The photo synthesizing method disclosed in the embodiment of the present invention improves the entertainment and enjoyment of the photo by selecting the feature picture and the non-feature picture combined with the predetermined condition, and improves the user's satisfaction with the photo.
请参阅图1,图1示出了本发明实施例提供的一种照片合成方法的流程图。如图1所示,该照片合成方法可以包括以下步骤:Please refer to FIG. 1. FIG. 1 is a flowchart of a photo composition method according to an embodiment of the present invention. As shown in FIG. 1, the photo synthesis method may include the following steps:
S101:获取至少两张照片;S101: Obtain at least two photos;
具体地,获取至少两张照片包括通过照相机、摄像机、智能手机(如安装Android操作系统的手机、安装iOS操作系统的手机等)、平板电脑、掌上电脑以及移动互联网设备(MID)、PAD或者其他带摄像头的终端设备,在预设的时间内,例如1秒、2秒的时间内,连续对被拍摄物拍摄至少两张照片。Specifically, obtaining at least two photos includes a camera, a camera, a smart phone (such as a mobile phone with an Android operating system, a mobile phone with an iOS operating system, etc.), a tablet, a palmtop computer, and a mobile Internet device (MID), PAD, or the like. The terminal device with the camera continuously takes at least two photos of the subject for a preset time, for example, 1 second or 2 seconds.
S102:检测所述获取的至少两张照片以获得特征画面和非特征画面,其中所述特征画面为所述至少两张照片中特定区域的画面,所述非特征画面为所述至少两张照片中除所述特定区域之外的画面;S102: Detecting the acquired at least two photos to obtain a feature picture and a non-feature picture, wherein the feature picture is a picture of a specific area in the at least two photos, and the non-feature picture is the at least two photos a picture other than the specific area;
具体地,检测步骤S101中获得的至少两张照片,将至少两张照片中每张照片的特定区域的画面设为特征画面,将至少两张照片中每张照片的除特定区域以外的画面设为非特征画面。可以知道特征画面包括多幅画面,非特征画面也包括多幅画面。 Specifically, at least two photos obtained in step S101 are detected, and a screen of a specific area of each of the at least two photos is set as a feature screen, and a screen other than the specific area of each of the at least two photos is set. It is a non-feature picture. It can be known that the feature picture includes a plurality of pictures, and the non-feature picture also includes a plurality of pictures.
进一步地,特定区域可以是一个位置的区域,也可以是包括不同位置的多个区域。Further, the specific area may be an area of one location, or may be a plurality of areas including different locations.
S103:在所述特征画面中选择符合预设条件的特征画面作为选定特征画面;S103: Select a feature picture that meets a preset condition in the feature picture as the selected feature picture;
具体地,根据用户的需要,预设满足用户需求的条件,在特征画面中选择符合预设条件的特征画面作为选定特征画面。Specifically, according to the needs of the user, a condition that satisfies the user's needs is preset, and a feature picture that meets the preset condition is selected in the feature picture as the selected feature picture.
进一步地,与特定区域可以是一个位置的区域,也可以是包括不同位置的多个区域相对应,从所述特征画面中选择符合预设条件的特征画面作为选定特征画面可以是从一个位置区域的画面构成的特征画面中选择符合预设条件的特征画面作为选定特征画面,也可以是从多个位置区域中每一个区域的画面构成的特征画面中选择符合预设条件的特征画面作为选定特征画面,构成多个选定特征画面。Further, the area corresponding to the specific area may be a position, or may be a plurality of areas including different positions, and selecting a feature picture that meets the preset condition from the feature picture as the selected feature picture may be from a position A feature screen that meets a preset condition is selected as a selected feature screen from a feature screen formed by a screen of a region, or a feature screen that meets a preset condition is selected from a feature screen composed of a screen of each of the plurality of location regions. The feature screen is selected to form a plurality of selected feature screens.
S104:将所述选定特征画面与所述非特征画面进行合成,得到合成照片。S104: Synthesize the selected feature picture and the non-feature picture to obtain a composite picture.
具体地,将选择出的符合预设条件的选定特征画面与非特征画面中的任意一幅进行合成,得到合成照片。Specifically, the selected selected feature picture that meets the preset condition is combined with any one of the non-featured pictures to obtain a composite picture.
进一步地,在具有多个选定特征画面的情况下,将所述选定特征画面与所述非特征画面进行合成,包括以下步骤:Further, in the case of having a plurality of selected feature pictures, synthesizing the selected feature picture and the non-feature picture includes the following steps:
判断多个选定特征画面是否在同一张照片中;Determining whether multiple selected feature pictures are in the same photo;
若多个选定特征画面在同一张照片中,则输出所述多个选定特征画面所在的照片;If a plurality of selected feature pictures are in the same photo, outputting a photo of the plurality of selected feature pictures;
若多个选定特征画面在不同照片中,则将多个所述选定特征画面与非特征画面中任意一幅进行合成,得到合成照片。If a plurality of selected feature pictures are in different photos, a plurality of the selected feature pictures and any one of the non-feature pictures are combined to obtain a composite picture.
本发明实施例的照片合成方法,通过选取符合预定条件的特征画面与非特征画面合成照片,提高了照片的娱乐性和观赏性,提高了用户对照片的满意度。The photo composition method of the embodiment of the present invention improves the entertainment and enjoyment of the photo by selecting a feature picture that matches the predetermined condition and the non-feature picture, and improves the user's satisfaction with the photo.
请参阅图2,图2示出了本发明实施例提供的第二种照片合成方法的流程图。如图2所示,该照片合成方法可以包括以下步骤:Referring to FIG. 2, FIG. 2 is a flowchart of a second photo synthesizing method according to an embodiment of the present invention. As shown in FIG. 2, the photo composition method may include the following steps:
S201:获取至少两张照片;S201: Obtain at least two photos;
S202:计算至少两张照片相同位置处的图像值差值;将至少两张照片中所述图像值差值超过预定值的区域设为特定区域,并将所述至少两张照片中所述特定区域的画面作为特征画面,所述至少两张照片中除所述特定区域的画面作 为非特征画面;S202: calculating an image value difference value at the same position of at least two photos; setting an area of the at least two photos in which the image value difference exceeds a predetermined value as a specific area, and setting the specific part in the at least two photos a picture of the area as a feature picture, wherein the at least two pictures are made in addition to the picture of the specific area Non-characterized picture;
在本实施例中,步骤S202是步骤S102的具体实施方法。In this embodiment, step S202 is a specific implementation method of step S102.
具体地,在对多人进行连拍集体照时,难免有些人会在连拍的照片中出现不同的表情,例如,在某一张照片中是严肃的表情,在另一张照片中是笑脸,在又一张照片中眼睛是闭上的,某一人的不同状态的图像值是不一样的。图像值是用来表明图像内容、质量等指标的值,比如图像各个点的RGB值、分辨率、清晰度等。同一人在照片中出现的位置一样,当相同位置处的图像值超过了预定值,表明这个人照片上的表情发生了比较大的变化。不同照片因拍摄情况的不同可能会导致相同位置处的图像值有微小变化,设定预定值可以将由客观原因带来的图像值变化的情形排除在外,只有当图像值差值超过一定的预定值才表明照片中这个人的表情发生了变化。预定值可以设为某一张照片中图像值的10%,这个百分比可以根据不同的需求设置为更大或者更小的值。Specifically, when taking a group photo of multiple people, it is inevitable that some people will have different expressions in the continuous shooting photos, for example, a serious expression in one photo and a smiling face in another photo. In another photo, the eyes are closed, and the image values of different people in different states are different. Image values are values used to indicate indicators such as image content and quality, such as RGB values, resolution, and sharpness of each point of the image. The same person appears in the same position in the photo. When the image value at the same position exceeds the predetermined value, it indicates that the expression on the photo of the person has undergone a relatively large change. Different photos may cause slight changes in image values at the same position due to different shooting conditions. Setting a predetermined value may exclude the change of image values caused by objective reasons, only when the image value difference exceeds a certain predetermined value. It shows that the expression of this person has changed in the photo. The predetermined value can be set to 10% of the image value in a photo, and this percentage can be set to a larger or smaller value according to different needs.
例如,参见图3和图4,图3和图4中的人物从左到右分别为甲、乙和丙,乙在图3的照片中展现了非笑脸,而在图4所示的照片中展现了笑脸,丙在图3的照片中展现了笑脸,但是在图4所示的照片中是非笑脸,根据相同位置处的图像值差值是否超过预定值,则照片中乙和丙的脸部区域可被选为特定区域,图3中乙和丙的脸部画面以及图4中乙和丙的脸部画面设为特征画面,图3中除乙和丙的脸部画面以外的画面以及图4中除乙和丙的脸部画面以外的画面设为非特征画面,可以知道的是,图3中除乙和丙的脸部画面以外的画面和图4中除乙和丙的脸部画面以外的画面几乎是相同的。For example, referring to FIG. 3 and FIG. 4, the characters in FIGS. 3 and 4 are A, B, and C, respectively, from left to right, and B shows a non-smile face in the photograph of FIG. 3, and in the photograph shown in FIG. Showing a smiley face, C shows a smiley face in the photo of Figure 3, but in the photo shown in Figure 4 is a non-smiley face, according to whether the difference in image value at the same position exceeds a predetermined value, the face of B and C in the photo The area can be selected as a specific area, and the face pictures of B and C in FIG. 3 and the face pictures of B and C in FIG. 4 are set as feature pictures, and pictures and pictures other than the face pictures of B and C in FIG. The screens other than the face screens of B and C in 4 are set as non-feature screens, and it is known that the screens other than the face screens of B and C in Fig. 3 and the face screens except B and C in Fig. 4 The screens other than the ones are almost the same.
进一步地,特定区域可以是一个位置的区域,也可以是包括不同位置的多个区域,例如,参见图3和图4,特定区域包括照片中乙和丙的脸部区域这两个位置的区域。根据照片的实际情况,特定区域可以为一个位置,也可以是两个、三个或者其他数目的区域。Further, the specific area may be an area of one location, or may be a plurality of areas including different positions. For example, referring to FIG. 3 and FIG. 4, the specific area includes areas of two positions of the face areas of B and C in the photo. . Depending on the actual situation of the photo, the specific area can be one location, or two, three or other number of zones.
S203:在所述特征画面中选择符合预设条件的特征画面作为选定特征画面;S203: Select a feature picture that meets a preset condition in the feature picture as the selected feature picture;
具体地,根据用户的需要,预设满足用户需求的条件,在特征画面中选择符合预设条件的特征画面作为选定特征画面。Specifically, according to the needs of the user, a condition that satisfies the user's needs is preset, and a feature picture that meets the preset condition is selected in the feature picture as the selected feature picture.
例如,参见图3和图4,图3中乙和丙的脸部画面以及图4中乙和丙的脸部画面设为特征画面,图3中乙的脸部画面为非笑脸,图4中乙的脸部画面为笑脸, 一般用户希望照片中能体现出开心快乐的情感,因此在这一组特征画面中,选择图4中乙的脸部画面为选定特征画面;图3中丙的脸部画面为笑脸,图4中丙的脸部画面为非笑脸,因此在这一组特征画面中,选择图3中丙的脸部画面为选定特征画面。For example, referring to FIG. 3 and FIG. 4, the face pictures of B and C in FIG. 3 and the face pictures of B and C in FIG. 4 are set as feature pictures, and the face picture of B in FIG. 3 is a non-smile face, in FIG. B’s face is a smiley face. The general user wants the photos to reflect happy and happy emotions. Therefore, in this set of feature pictures, the face image of B in Fig. 4 is selected as the selected feature picture; in Fig. 3, the face picture of C is a smiling face, Fig. 4 The face picture of the middle C is a non-smile face. Therefore, in this set of feature pictures, the face picture of C in FIG. 3 is selected as the selected feature picture.
进一步地,与特定区域可以是一个位置的区域,也可以是包括不同位置的多个区域相对应,从所述特征画面中选择符合预设条件的特征画面作为选定特征画面可以是从一个位置区域的画面构成的特征画面中选择符合预设条件的特征画面作为选定特征画面,也可以是从多个位置区域中每一个区域的画面构成的特征画面中选择符合预设条件的特征画面作为选定特征画面,构成多个选定特征画面。例如,参见图3和图4,图3中乙和丙的脸部画面以及图4中乙和丙的脸部画面为特征画面,选择了图4中乙的脸部画面和图3中丙的脸部画面为选定特征画面,一共两个选定特征画面。Further, the area corresponding to the specific area may be a position, or may be a plurality of areas including different positions, and selecting a feature picture that meets the preset condition from the feature picture as the selected feature picture may be from a position A feature screen that meets a preset condition is selected as a selected feature screen from a feature screen formed by a screen of a region, or a feature screen that meets a preset condition is selected from a feature screen composed of a screen of each of the plurality of location regions. The feature screen is selected to form a plurality of selected feature screens. For example, referring to FIG. 3 and FIG. 4, the face pictures of B and C in FIG. 3 and the face pictures of B and C in FIG. 4 are feature pictures, and the face picture of B in FIG. 4 and the face picture in FIG. 3 are selected. The face picture is the selected feature picture, and a total of two selected feature pictures.
S204:将所述选定特征画面与所述非特征画面进行合成,得到合成照片。S204: Synthesize the selected feature picture and the non-feature picture to obtain a composite picture.
具体地,将选择出的符合预设条件的选定特征画面与非特征画面中的任意一幅进行合成,得到合成照片。Specifically, the selected selected feature picture that meets the preset condition is combined with any one of the non-featured pictures to obtain a composite picture.
例如,参见图3和图4,图4中乙的脸部画面和图3中丙的脸部画面为选定特征画面,图3中除乙和丙的脸部画面以外的画面以及图4中除乙和丙的脸部画面以外的画面设为非特征画面,图3中除乙和丙的脸部画面以外的画面和图4中除乙和丙的脸部画面以外的画面几乎是相同的,随机选取其中的一幅,例如图3中除乙和丙的脸部画面与图4中乙的脸部画面和图3中丙的脸部画面进行合成,得到合成照片图5。For example, referring to FIG. 3 and FIG. 4, the face picture of B in FIG. 4 and the face picture of C in FIG. 3 are selected feature pictures, and the pictures other than the face pictures of B and C in FIG. 3 and FIG. 4 The screens other than the face screens of B and C are set as non-feature screens, and the screens other than the face screens of B and C in Fig. 3 are almost the same as the screens except the face screens of B and C in Fig. 4. One of the frames is randomly selected. For example, the face images of B and C in FIG. 3 are combined with the face image of B in FIG. 4 and the face image of C in FIG. 3 to obtain a composite photo view 5.
进一步地,在具有多个选定特征画面的情况下,将所述选定特征画面与所述非特征画面进行合成,包括以下步骤:Further, in the case of having a plurality of selected feature pictures, synthesizing the selected feature picture and the non-feature picture includes the following steps:
判断多个所述选定特征画面是否在同一张照片中;Determining whether a plurality of the selected feature pictures are in the same photo;
若所述多个所述选定特征画面在同一张照片中,则输出所述多个所述选定特征画面所在的照片;If the plurality of the selected feature pictures are in the same photo, outputting the photos of the plurality of the selected feature pictures;
若所述多个所述选定特征画面在不同照片中,则将所述多个所述选定特征画面与所述非特征画面中任意一幅进行合成,得到合成照片。And if the plurality of the selected feature pictures are in different photos, combining the plurality of the selected feature pictures with any one of the non-feature pictures to obtain a composite picture.
例如,参见图3和图4,如果选定特征画面是图3中乙的脸部画面和图3中 丙的脸部画面,则两个选定特征画面在同一张照片中,则直接输出图3作为合成照片,如果选定特征画面是图4中乙的脸部画面和图3中丙的脸部画面,则两个选定特征画面不在同一张照片中,需要将图4中乙的脸部画面和图3中丙的脸部画面与非特征画面中的任意一幅进行合成,得到合成照片。For example, referring to FIG. 3 and FIG. 4, if the selected feature picture is the face picture of B in FIG. 3 and FIG. 3 In the face image of C, if the two selected feature pictures are in the same photo, then directly output FIG. 3 as a composite photo, if the selected feature picture is the face picture of B in FIG. 4 and the face of C in FIG. In the picture, the two selected feature pictures are not in the same picture, and it is necessary to combine the face picture of B in FIG. 4 and any one of the face picture and the non-feature picture of FIG. 3 to obtain a composite picture.
本发明实施例的照片合成方法,通过计算相同位置处图像值差值的大小来获得发生变化处的画面作为特征画面,再在特征画面中选取符合预定条件作为选定特征画面,最后将选定特征画面与非特征画面合成照片,提高了照片的娱乐性和观赏性,提高了用户对照片的满意度。In the photo composition method of the embodiment of the present invention, the picture at the change location is obtained as the feature picture by calculating the size of the difference value of the image value at the same position, and then the selected condition is selected as the selected feature picture in the feature picture, and finally selected. The combination of feature pictures and non-feature pictures enhances the entertainment and enjoyment of photos and improves the user's satisfaction with photos.
请参阅图6,图6示出了本发明实施例提供的第三种照片合成方法的流程图。如图3所示,该照片合成方法可以包括以下步骤:Please refer to FIG. 6. FIG. 6 is a flowchart of a third photo synthesizing method according to an embodiment of the present invention. As shown in FIG. 3, the photo synthesis method may include the following steps:
S601:获取至少两张照片;S601: Obtain at least two photos;
具体地,获取至少两张照片包括通过照片机、摄像机、智能手机(如安装Android操作系统的手机、安装iOS操作系统的手机等)、平板电脑、掌上电脑以及移动互联网设备(MID)、PAD或者其他带摄像头的终端设备获取至少两张包括多个面部特征的照片。Specifically, obtaining at least two photos includes a photo machine, a video camera, a smart phone (such as a mobile phone with an Android operating system, a mobile phone with an iOS operating system, etc.), a tablet computer, a palm computer, a mobile Internet device (MID), a PAD, or Other camera-equipped terminal devices acquire at least two photos including a plurality of facial features.
S602:将所述至少两张照片中包含面部特征的区域设为特定区域,并将所述至少两张照片中所述特定区域的画面作为特征画面,所述至少两张照片中除所述特定区域之外的画面作为非特征画面;S602: The area including the facial features in the at least two photos is set as a specific area, and a picture of the specific area in the at least two photos is used as a feature picture, and the at least two photos are apart from the specific a picture outside the area as a non-feature picture;
在本实施例中,步骤S602是步骤S102的另一种具体实施方法。In this embodiment, step S602 is another specific implementation method of step S102.
具体地,可以采用人脸识别技术将包含面部特征的区域识别出来,人脸识别技术采用的是本领域中常用的技术手段,在此不赘述。Specifically, the face recognition technology may be used to identify the area including the facial features, and the face recognition technology adopts the technical means commonly used in the art, and details are not described herein.
进一步地,特定区域可以是一个位置的区域,也可以是包括不同位置的多个区域。Further, the specific area may be an area of one location, or may be a plurality of areas including different locations.
S603:在所述特征画面中选择符合预设条件的特征画面作为选定特征画面;S603: Select a feature picture that meets a preset condition in the feature picture as the selected feature picture;
具体地,根据用户的需要,预设满足用户需求的条件,在特征画面中选择符合预设条件的特征画面作为选定特征画面。Specifically, according to the needs of the user, a condition that satisfies the user's needs is preset, and a feature picture that meets the preset condition is selected in the feature picture as the selected feature picture.
进一步地,与特定区域可以是一个位置的区域,也可以是包括不同位置的多个区域相对应,从所述特征画面中选择符合预设条件的特征画面作为选定特征画面可以是从一个位置区域的画面构成的特征画面中选择符合预设条件的特 征画面作为选定特征画面,也可以是从多个位置区域中每一个区域的画面构成的特征画面中选择符合预设条件的特征画面作为选定特征画面,构成多个选定特征画面。Further, the area corresponding to the specific area may be a position, or may be a plurality of areas including different positions, and selecting a feature picture that meets the preset condition from the feature picture as the selected feature picture may be from a position Selecting a characteristic that matches the preset condition in the feature screen of the screen of the area As the selected feature screen, the feature screen of the screen of each of the plurality of location regions may be selected as the selected feature screen to form a plurality of selected feature screens.
S604:将所述选定特征画面与所述非特征画面进行合成,得到合成照片。S604: Synthesize the selected feature picture and the non-feature picture to obtain a composite picture.
具体地,将选择出的符合预设条件的选定特征画面与非特征画面中的任意一幅进行合成,得到合成照片。Specifically, the selected selected feature picture that meets the preset condition is combined with any one of the non-featured pictures to obtain a composite picture.
进一步地,在具有多个选定特征画面的情况下,将所述选定特征画面与所述非特征画面进行合成,包括以下步骤:Further, in the case of having a plurality of selected feature pictures, synthesizing the selected feature picture and the non-feature picture includes the following steps:
判断多个所述选定特征画面是否在同一张照片中;Determining whether a plurality of the selected feature pictures are in the same photo;
若所述多个所述选定特征画面在同一张照片中,则输出所述多个所述选定特征画面所在的照片;If the plurality of the selected feature pictures are in the same photo, outputting the photos of the plurality of the selected feature pictures;
若所述多个所述选定特征画面在不同照片中,则将所述多个所述选定特征画面与所述非特征画面中任意一幅进行合成,得到合成照片。And if the plurality of the selected feature pictures are in different photos, combining the plurality of the selected feature pictures with any one of the non-feature pictures to obtain a composite picture.
在对不满意照片进行合成得到满意照片的应用中,最常需要调整的部分主要是照片中人的面部,因此本发明实施例的照片合成方法主要关注脸部,通过将包括人面部特征的画面作为特征画面,再在特征画面中选取符合预定条件作为选定特征画面,最后将选定特征画面与非特征画面合成照片,提高了照片的娱乐性和观赏性,提高了用户对照片的满意度,且使用起来有更高的实用性和针对性。In the application of synthesizing dissatisfied photos to obtain a satisfactory photograph, the most frequently needed part of the adjustment is mainly the face of the person in the photo, and therefore the photo synthesizing method of the embodiment of the present invention mainly focuses on the face, by adopting a picture including the facial features of the person. As the feature picture, the selected feature picture is selected as the selected feature picture in the feature picture, and finally the selected feature picture and the non-feature picture are combined to improve the entertainment and enjoyment of the picture, and the user's satisfaction with the picture is improved. And it is more practical and targeted to use.
请参阅图7,图7示出了本发明实施例提供的一种终端的结构示意图。图7所示的终端700可以是照相机、摄像机、智能手机(如安装Android操作系统的手机、安装iOS操作系统的手机等)、平板电脑、掌上电脑以及移动互联网设备(MID)、PAD或者其他带摄像头的终端设备。如图7所示,终端700包括:获取单元701、检测单元702、选定单元703、合成单元704,其中Referring to FIG. 7, FIG. 7 is a schematic structural diagram of a terminal according to an embodiment of the present invention. The terminal 700 shown in FIG. 7 may be a camera, a camera, a smart phone (such as a mobile phone with an Android operating system, a mobile phone with an iOS operating system, etc.), a tablet, a palmtop computer, and a mobile Internet device (MID), a PAD, or the like. The terminal device of the camera. As shown in FIG. 7, the terminal 700 includes: an obtaining unit 701, a detecting unit 702, a selecting unit 703, and a synthesizing unit 704, wherein
获取单元701,用于获取至少两张照片;The obtaining unit 701 is configured to obtain at least two photos;
具体地,获取单元701在预设的时间内,例如1秒、2秒的时间内,连续对被拍摄物拍摄至少两张照片或者至少两张包括多个面部特征的照片。Specifically, the acquisition unit 701 continuously captures at least two photos or at least two photos including a plurality of facial features on the subject for a preset time, for example, 1 second or 2 seconds.
检测单元702,用于检测所述获取的至少两张照片以获得特征画面和非特征画面,其中所述特征画面为所述至少两张照片中特定区域的画面,所述非特征 画面为所述至少两张照片中除所述特定区域之外的画面;The detecting unit 702 is configured to detect the acquired at least two photos to obtain a feature picture and a non-feature picture, wherein the feature picture is a picture of a specific area in the at least two photos, the non-feature The screen is a picture other than the specific area of the at least two photos;
具体地,检测单元702计算所述至少两张照片相同位置处的图像值差值,并将所述至少两张照片中所述图像值差值超过预定值的区域设为特定区域,其中图像值是用来表明图像内容、质量等指标的值,比如图像各个点的RGB值、分辨率、清晰度等;将所述至少两张照片中所述特定区域的画面作为特征画面,所述至少两张照片中除所述特定区域之外的画面作为非特征画面。Specifically, the detecting unit 702 calculates image value difference values at the same position of the at least two photos, and sets an area of the at least two photos in which the image value difference value exceeds a predetermined value as a specific area, where the image value Is a value used to indicate an image, a quality, and the like, such as RGB values, resolutions, and sharpness of each point of the image; and a picture of the specific area in the at least two photos is used as a feature picture, the at least two A picture other than the specific area in the photo is taken as a non-feature picture.
可选择的,检测单元702还可用于将所述至少两张照片中包含面部特征的区域设为特定区域,并将所述至少两张照片中所述特定区域的画面作为特征画面,所述至少两张照片中除所述特定区域之外的画面作为非特征画面。Optionally, the detecting unit 702 is further configured to set an area including the facial features in the at least two photos as a specific area, and use a picture of the specific area in the at least two photos as a feature picture, where the at least A picture other than the specific area in the two photos is taken as a non-feature picture.
进一步地,特定区域可以是一个位置的区域,也可以是包括不同位置的多个区域。Further, the specific area may be an area of one location, or may be a plurality of areas including different locations.
选定单元703,用于在所述特征画面中选择符合预设条件的特征画面作为选定特征画面;The selecting unit 703 is configured to select, as the selected feature picture, a feature picture that meets a preset condition in the feature picture;
进一步地,与特定区域可以是一个位置的区域,也可以是包括不同位置的多个区域相对应,选定单元703从所述特征画面中选择符合预设条件的特征画面作为选定特征画面可以是从一个位置区域的画面构成的特征画面中选择符合预设条件的特征画面作为选定特征画面,也可以是从多个位置区域中每一个区域的画面构成的特征画面中选择符合预设条件的特征画面作为选定特征画面,构成多个选定特征画面。Further, the area corresponding to the specific area may be a position, or may be a plurality of areas including different positions, and the selecting unit 703 selects a feature picture that meets the preset condition from the feature picture as the selected feature picture. The feature picture that meets the preset condition is selected from the feature picture formed by the screen of one location area as the selected feature picture, or the feature picture formed by the picture of each of the plurality of location areas may be selected to meet the preset condition. The feature screen is a selected feature screen and constitutes a plurality of selected feature screens.
合成单元704,用于将所述选定特征画面与所述非特征画面进行合成,得到合成照片。The synthesizing unit 704 is configured to synthesize the selected feature picture and the non-feature picture to obtain a composite photo.
具体地,合成单元704将选择出的符合预设条件的选定特征画面与非特征画面中的任意一幅进行合成,得到合成照片。Specifically, the synthesizing unit 704 combines the selected selected feature picture that meets the preset condition with any one of the non-feature pictures to obtain a composite photo.
进一步地,在具有多个选定特征画面的情况下,终端700还包括判断单元,用于判断多个所述选定特征画面是否在同一张照片中;Further, in a case of having a plurality of selected feature pictures, the terminal 700 further includes a determining unit, configured to determine whether the plurality of the selected feature pictures are in the same photo;
合成单元704,在所述判断单元判断结果为是的情形下,则输出所述多个所述选定特征画面所在的照片作为合成照片;在所述判断单元判断结果为否的情形下,则将所述多个所述选定特征画面与所述非特征画面中任意一幅进行合成,得到合成照片。 a synthesizing unit 704, if the determination result of the determining unit is YES, outputting a photo of the plurality of the selected feature screens as a composite photo; and in a case where the determining unit determines that the result is negative, And synthesizing the plurality of the selected feature pictures and any one of the non-feature pictures to obtain a composite picture.
本发明实施例的终端,通过选取符合预定条件的特征画面与非特征画面合成照片,提高了照片的娱乐性和观赏性,提高了用户对照片的满意度。The terminal of the embodiment of the present invention improves the entertainment and viewing of the photo by selecting a feature picture that matches the predetermined condition and the non-feature picture, and improves the user's satisfaction with the photo.
请参阅图8,图8是本发明实施例公开的又一种终端的结构示意图。如图8所示,该终端800可以包括:至少一个处理器801,如CPU,至少一个用户接口803,存储器804以及至少一个通信总线802。其中,通信总线802用于实现这些组件之间的连接通信,用户接口803可以包括显示屏(Display)及键盘(Keyboard),可选的,用户接口803还可以包括标准的有线接口及无线接口,存储器804可以是高速RAM存储器,也可以是非不稳定的存储器(non-volatile memory),如至少一个磁盘存储器,可选的,存储器804还可以是至少一个位于远离前述处理器801的存储装置。其中,存储器804中存储一组程序代码,且处理器801调用存储器804中存储的程序代码,用于执行以下操作:Please refer to FIG. 8. FIG. 8 is a schematic structural diagram of still another terminal according to an embodiment of the present invention. As shown in FIG. 8, the terminal 800 can include at least one processor 801, such as a CPU, at least one user interface 803, a memory 804, and at least one communication bus 802. The communication bus 802 is used to implement connection communication between the components. The user interface 803 can include a display and a keyboard. Alternatively, the user interface 803 can also include a standard wired interface and a wireless interface. The memory 804 may be a high speed RAM memory or a non-volatile memory such as at least one disk memory. Alternatively, the memory 804 may be at least one storage device located away from the processor 801. The memory 804 stores a set of program codes, and the processor 801 calls the program code stored in the memory 804 to perform the following operations:
获取至少两张照片;Get at least two photos;
检测所述获取的至少两张照片以获得特征画面和非特征画面,其中所述特征画面为所述至少两张照片中特定区域的画面,所述非特征画面为所述至少两张照片中除所述特定区域之外的画面;Detecting the acquired at least two photos to obtain a feature picture and a non-feature picture, wherein the feature picture is a picture of a specific area in the at least two photos, and the non-feature picture is in the at least two photos a picture outside the specific area;
在所述特征画面中选择符合预设条件的特征画面作为选定特征画面;Selecting a feature picture that meets a preset condition as the selected feature picture in the feature picture;
将所述选定特征画面与所述非特征画面进行合成,得到合成照片。The selected feature picture and the non-feature picture are combined to obtain a composite picture.
在一个可选的实施例中,处理器801获取至少两张照片的具体方式可以为:In an optional embodiment, the specific manner in which the processor 801 obtains at least two photos may be:
在预设的时间内,通过终端摄像头连续拍摄至少两张照片。At least two photos are continuously captured by the terminal camera within a preset time.
在一个可选的实施例中,处理器801检测所述获取的至少两张照片以获得特征画面和非特征画面的具体方式可以为:In an optional embodiment, the specific manner in which the processor 801 detects the acquired at least two photos to obtain the feature picture and the non-feature picture may be:
计算所述至少两张照片相同位置处的图像值差值;Calculating a difference in image values at the same position of the at least two photos;
将所述至少两张照片中所述图像值差值超过预定值的区域设为特定区域;并将所述至少两张照片中所述特定区域的画面作为特征画面,所述至少两张照片中除所述特定区域之外的画面作为非特征画面。And determining, in the at least two photos, an area in which the difference of the image values exceeds a predetermined value as a specific area; and using a picture of the specific area in the at least two photos as a feature picture, in the at least two photos A picture other than the specific area is taken as a non-feature picture.
在一个可选的实施例中,处理器801获取至少两张照片的具体方式可以为:In an optional embodiment, the specific manner in which the processor 801 obtains at least two photos may be:
获取至少两张包括多个面部特征的照片;Obtaining at least two photos including a plurality of facial features;
处理器801检测所述获取的至少两张照片以获得特征画面和非特征画面的具体方式可以为:将所述至少两张照片中包含面部特征的区域设为特定区域, 并将所述至少两张照片中所述特定区域的画面作为特征画面,所述至少两张照片中除所述特定区域之外的画面作为非特征画面。The specific manner of the processor 801 detecting the acquired at least two photos to obtain the feature picture and the non-feature picture may be: setting an area including the facial feature in the at least two photos as a specific area, The screen of the specific area in the at least two photos is used as a feature screen, and a picture other than the specific area among the at least two photos is used as a non-feature picture.
在一个可选的实施例中,所述特定区域包括不同位置的多个区域;In an optional embodiment, the specific area includes a plurality of areas at different locations;
所述处理器从所述特征画面中选择符合预设条件的特征画面作为选定特征画面的具体方式可以为:从每个区域的特征画面中选符合预设条件的特征画面作为选定特征画面;The specific manner in which the processor selects the feature image that meets the preset condition from the feature image as the selected feature image may be: selecting a feature image that meets the preset condition from the feature image of each region as the selected feature image;
所述处理器将所述选定特征画面与所述非特征画面进行合成之前,所述处理器调用所述存储器中存储的程序代码,还用于执行以下操作:Before the processor combines the selected feature picture with the non-feature picture, the processor invokes the program code stored in the memory, and is further configured to perform the following operations:
判断多个所述选定特征画面是否在同一张照片中;Determining whether a plurality of the selected feature pictures are in the same photo;
所述处理器将所述选定特征画面与所述非特征画面进行合成,得到合成照片的具体方式可以为:The processor may combine the selected feature picture and the non-feature picture to obtain a composite photo. The specific manner may be:
若所述处理器判断所述多个所述选定特征画面在同一张照片中,则输出所述多个所述选定特征画面所在的照片;If the processor determines that the plurality of selected feature pictures are in the same photo, outputting a photo of the plurality of the selected feature pictures;
若所述处理器判断所述多个所述选定特征画面在不同照片中,则将所述多个所述选定特征画面与所述非特征画面进行合成,得到合成照片。And if the processor determines that the plurality of the selected feature pictures are in different photos, synthesizing the plurality of the selected feature pictures and the non-feature picture to obtain a composite picture.
本发明实施例方法中的步骤可以根据实际需要进行顺序调整、合并和删减。The steps in the method of the embodiment of the present invention may be sequentially adjusted, merged, and deleted according to actual needs.
本发明实施例终端中的单元可以根据实际需要进行合并、划分和删减。The units in the terminal in the embodiment of the present invention may be combined, divided, and deleted according to actual needs.
本领域普通技术人员可以理解实现图1、图2、图6所示方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,所述的程序可存储于一计算机可读取存储介质中,该程序在执行时,可包括如上述各方法的实施例的流程。其中,所述的存储介质可为磁碟、光盘、只读存储记忆体(Read-Only Memory,ROM)或随机存取存储器(Random Access Memory,简称RAM)等。A person skilled in the art can understand that all or part of the processes in the methods shown in FIG. 1 , FIG. 2 and FIG. 6 can be implemented by a computer program to instruct related hardware, and the program can be stored in a computer readable manner. In the storage medium, the program, when executed, may include the flow of an embodiment of the methods as described above. The storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM), or a random access memory (RAM).
以上所揭露的仅为本发明较佳实施例而已,当然不能以此来限定本发明之权利范围,因此依本发明权利要求所作的等同变化,仍属本发明所涵盖的范围。 The above is only the preferred embodiment of the present invention, and the scope of the present invention is not limited thereto, and thus equivalent changes made in the claims of the present invention are still within the scope of the present invention.

Claims (15)

  1. 一种照片合成的方法,其特征在于,所述方法包括:A method of photo composition, characterized in that the method comprises:
    获取至少两张照片;Get at least two photos;
    检测所述获取的至少两张照片以获得特征画面和非特征画面,其中所述特征画面为所述至少两张照片中特定区域的画面,所述非特征画面为所述至少两张照片中除所述特定区域之外的画面;Detecting the acquired at least two photos to obtain a feature picture and a non-feature picture, wherein the feature picture is a picture of a specific area in the at least two photos, and the non-feature picture is in the at least two photos a picture outside the specific area;
    在所述特征画面中选择符合预设条件的特征画面作为选定特征画面;Selecting a feature picture that meets a preset condition as the selected feature picture in the feature picture;
    将所述选定特征画面与所述非特征画面进行合成,得到合成照片。The selected feature picture and the non-feature picture are combined to obtain a composite picture.
  2. 如权1所述的方法,其特征在于,所述获取至少两张照片包括:The method of claim 1, wherein the obtaining at least two photos comprises:
    在预设的时间内,通过终端摄像头连续拍摄至少两张照片。At least two photos are continuously captured by the terminal camera within a preset time.
  3. 如权1所述的方法,其特征在于,所述检测所述获取的至少两张照片以获得特征画面和非特征画面包括:The method of claim 1, wherein the detecting the acquired at least two photos to obtain the feature picture and the non-feature picture comprises:
    计算所述至少两张照片相同位置处的图像值差值;Calculating a difference in image values at the same position of the at least two photos;
    将所述至少两张照片中所述图像值差值超过预定值的区域设为特定区域;并将所述至少两张照片中所述特定区域的画面作为特征画面,所述至少两张照片中除所述特定区域之外的画面作为非特征画面。And determining, in the at least two photos, an area in which the difference of the image values exceeds a predetermined value as a specific area; and using a picture of the specific area in the at least two photos as a feature picture, in the at least two photos A picture other than the specific area is taken as a non-feature picture.
  4. 如权1所述的方法,其特征在于,所述获取至少两张照片包括:The method of claim 1, wherein the obtaining at least two photos comprises:
    获取至少两张包括多个面部特征的照片;Obtaining at least two photos including a plurality of facial features;
    所述检测所述获取的至少两张照片以获得特征画面和非特征画面包括:The detecting the acquired at least two photos to obtain the feature picture and the non-feature picture comprises:
    将所述至少两张照片中包含面部特征的区域设为特定区域,并将所述至少两张照片中所述特定区域的画面作为特征画面,所述至少两张照片中除所述特定区域之外的画面作为非特征画面。And setting an area including the facial features in the at least two photos as a specific area, and using a picture of the specific area in the at least two photos as a feature picture, wherein the at least two photos are apart from the specific area The outside picture is used as a non-feature picture.
  5. 如权1-4所述的任一方法,其特征在于,所述特定区域包括不同位置的多个区域;从所述特征画面中选择符合预设条件的特征画面作为选定特征画面,包括: The method of claim 1-4, wherein the specific area includes a plurality of areas at different locations; and selecting a feature picture that meets the preset condition from the feature picture as the selected feature picture comprises:
    从每个区域的特征画面中选符合预设条件的特征画面作为选定特征画面;Selecting a feature picture that meets a preset condition from the feature picture of each area as the selected feature picture;
    所述将所述选定特征画面与所述非特征画面进行合成之前包括:Before the synthesizing the selected feature picture and the non-feature picture, the method includes:
    判断多个所述选定特征画面是否在同一张照片中;Determining whether a plurality of the selected feature pictures are in the same photo;
    所述将所述选定特征画面与所述非特征画面进行合成,得到合成照片包括:The synthesizing the selected feature picture and the non-feature picture to obtain a composite photo includes:
    若所述多个所述选定特征画面在同一张照片中,则输出所述多个所述选定特征画面所在的照片;If the plurality of the selected feature pictures are in the same photo, outputting the photos of the plurality of the selected feature pictures;
    若所述多个所述选定特征画面在不同照片中,If the plurality of the selected feature pictures are in different photos,
    则将所述多个所述选定特征画面与所述非特征画面进行合成,得到合成照片。And then combining the plurality of the selected feature pictures with the non-feature picture to obtain a composite picture.
  6. 一种终端,其特征在于,所述终端包括:A terminal, wherein the terminal comprises:
    获取单元,用于获取至少两张照片;An acquisition unit for obtaining at least two photos;
    检测单元,用于检测所述获取的至少两张照片以获得特征画面和非特征画面,其中所述特征画面为所述至少两张照片中特定区域的画面,所述非特征画面为所述至少两张照片中除所述特定区域之外的画面;a detecting unit, configured to detect the acquired at least two photos to obtain a feature picture and a non-feature picture, wherein the feature picture is a picture of a specific area in the at least two photos, and the non-feature picture is the at least a picture of two photos other than the specific area;
    选定单元,用于在所述特征画面中选择符合预设条件的特征画面作为选定特征画面;a selecting unit, configured to select, in the feature picture, a feature picture that meets a preset condition as the selected feature picture;
    合成单元,用于将所述选定特征画面与所述非特征画面进行合成,得到合成照片。And a synthesizing unit, configured to synthesize the selected feature picture and the non-feature picture to obtain a composite photo.
  7. 如权6所述的终端,其特征在于,所述获得单元用于在预设的时间内,通过终端摄像头连续拍摄至少两张照片。The terminal according to claim 6, wherein the obtaining unit is configured to continuously capture at least two photos through the terminal camera within a preset time.
  8. 如权6所述的终端,其特征在于,所述检测单元用于计算所述至少两张照片相同位置处的图像值差值,并将所述至少两张照片中所述图像值差值超过预定值的区域设为特定区域;将所述至少两张照片中所述特定区域的画面作为特征画面,所述至少两张照片中除所述特定区域之外的画面作为非特征画面。The terminal according to claim 6, wherein the detecting unit is configured to calculate an image value difference value at the same position of the at least two photos, and the image value difference in the at least two photos exceeds The area of the predetermined value is set as a specific area; the picture of the specific area in the at least two photos is used as a feature picture, and a picture other than the specific area among the at least two pictures is used as a non-feature picture.
  9. 如权6所述的终端,其特征在于,所述获得单元,用于获取至少两张包括多个面部特征的照片;所述检测单元,用于将所述至少两张照片中包含面部 特征的区域设为特定区域,并将所述至少两张照片中所述特定区域的画面作为特征画面,所述至少两张照片中除所述特定区域之外的画面作为非特征画面。The terminal according to claim 6, wherein the obtaining unit is configured to acquire at least two photos including a plurality of facial features, and the detecting unit is configured to include the at least two photos in the face The area of the feature is set as a specific area, and a picture of the specific area in the at least two photos is used as a feature picture, and a picture other than the specific area among the at least two pictures is regarded as a non-feature picture.
  10. 如权6-9所述的任一终端,其特征在于,所述特定区域包括不同位置的多个区域;所述选定单元,用于从每个区域的特征画面中选符合预设条件的特征画面作为选定特征画面;所述终端还包括:The terminal according to any one of claims 6-9, wherein the specific area includes a plurality of areas at different positions; and the selected unit is configured to select a feature that meets a preset condition from a feature picture of each area The screen is a selected feature picture; the terminal further includes:
    判断单元,用于判断多个所述选定特征画面是否在同一张照片中;a determining unit, configured to determine whether the plurality of the selected feature pictures are in the same photo;
    所述合成单元,用于若所述判断单元判断结果为是,则输出所述多个所述选定特征画面所在的照片;The synthesizing unit is configured to output a photo of the plurality of the selected feature screens if the determining unit determines that the result is YES;
    所述合成单元,还用于若所述判断单元判断结果为否,则将所述多个所述选定特征画面与所述非特征画面中任意一幅进行合成,得到合成照片。The synthesizing unit is further configured to synthesize any one of the plurality of selected feature pictures and the non-characteristic picture to obtain a composite photo if the determining result of the determining unit is negative.
  11. 一种终端,其特征在于,所述终端包括用户接口、存储器以及处理器,其中,所述存储器中存储一组程序代码,且所述处理器调用所述存储器中存储的程序代码,用于执行以下操作:A terminal, comprising: a user interface, a memory, and a processor, wherein the memory stores a set of program codes, and the processor calls program code stored in the memory for execution The following operations:
    获取至少两张照片;Get at least two photos;
    检测所述获取的至少两张照片以获得特征画面和非特征画面,其中所述特征画面为所述至少两张照片中特定区域的画面,所述非特征画面为所述至少两张照片中除所述特定区域之外的画面;Detecting the acquired at least two photos to obtain a feature picture and a non-feature picture, wherein the feature picture is a picture of a specific area in the at least two photos, and the non-feature picture is in the at least two photos a picture outside the specific area;
    在所述特征画面中选择符合预设条件的特征画面作为选定特征画面;Selecting a feature picture that meets a preset condition as the selected feature picture in the feature picture;
    将所述选定特征画面与所述非特征画面进行合成,得到合成照片。The selected feature picture and the non-feature picture are combined to obtain a composite picture.
  12. 如权利要求11所述的终端,其特征在于,所述处理器获取至少两张照片的具体方式为:The terminal according to claim 11, wherein the specific manner in which the processor acquires at least two photos is:
    在预设的时间内,通过终端摄像头连续拍摄至少两张照片。At least two photos are continuously captured by the terminal camera within a preset time.
  13. 如权利要求11所述的终端,其特征在于,所述处理器检测所述获取的至少两张照片以获得特征画面和非特征画面的具体方式为:The terminal according to claim 11, wherein the specific manner in which the processor detects the acquired at least two photos to obtain a feature picture and a non-feature picture is:
    计算所述至少两张照片相同位置处的图像值差值; Calculating a difference in image values at the same position of the at least two photos;
    将所述至少两张照片中所述图像值差值超过预定值的区域设为特定区域;并将所述至少两张照片中所述特定区域的画面作为特征画面,所述至少两张照片中除所述特定区域之外的画面作为非特征画面。And determining, in the at least two photos, an area in which the difference of the image values exceeds a predetermined value as a specific area; and using a picture of the specific area in the at least two photos as a feature picture, in the at least two photos A picture other than the specific area is taken as a non-feature picture.
  14. 如权利要求11所述的终端,其特征在于,所述处理器获取至少两张照片的具体方式为:获取至少两张包括多个面部特征的照片;The terminal according to claim 11, wherein the processor acquires at least two photos by acquiring at least two photos including a plurality of facial features;
    处理器检测所述获取的至少两张照片以获得特征画面和非特征画面的具体方式可以为:将所述至少两张照片中包含面部特征的区域设为特定区域,并将所述至少两张照片中所述特定区域的画面作为特征画面,所述至少两张照片中除所述特定区域之外的画面作为非特征画面。The specific manner of the processor detecting the acquired at least two photos to obtain the feature picture and the non-feature picture may be: setting an area including the facial feature in the at least two photos as a specific area, and setting the at least two A picture of the specific area in the photo is used as a feature picture, and a picture other than the specific area among the at least two pictures is regarded as a non-feature picture.
  15. 如权利要求11-14任一项所述的终端,其特征在于,所述特定区域包括不同位置的多个区域;The terminal according to any one of claims 11 to 14, wherein the specific area includes a plurality of areas at different positions;
    所述处理器从所述特征画面中选择符合预设条件的特征画面作为选定特征画面的具体方式为:从每个区域的特征画面中选符合预设条件的特征画面作为选定特征画面;The specific manner of the processor selecting a feature image that meets the preset condition from the feature image as the selected feature image is: selecting a feature image that meets the preset condition from the feature image of each region as the selected feature image;
    所述处理器将所述选定特征画面与所述非特征画面进行合成之前,所述处理器调用所述存储器中存储的程序代码,还用于执行以下操作:Before the processor combines the selected feature picture with the non-feature picture, the processor invokes the program code stored in the memory, and is further configured to perform the following operations:
    判断多个所述选定特征画面是否在同一张照片中;Determining whether a plurality of the selected feature pictures are in the same photo;
    所述处理器将所述选定特征画面与所述非特征画面进行合成,得到合成照片的具体方式为:The processor combines the selected feature picture with the non-feature picture to obtain a composite photo by:
    若所述处理器判断所述多个所述选定特征画面在同一张照片中,则输出所述多个所述选定特征画面所在的照片;If the processor determines that the plurality of selected feature pictures are in the same photo, outputting a photo of the plurality of the selected feature pictures;
    若所述处理器判断所述多个所述选定特征画面在不同照片中,则将所述多个所述选定特征画面与所述非特征画面进行合成,得到合成照片。 And if the processor determines that the plurality of the selected feature pictures are in different photos, synthesizing the plurality of the selected feature pictures and the non-feature picture to obtain a composite picture.
PCT/CN2014/087762 2014-03-26 2014-09-29 Photograph synthesis method and terminal WO2015143857A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201410116591.9A CN103873777A (en) 2014-03-26 2014-03-26 Photograph synthetic method and terminal
CN201410116591.9 2014-03-26

Publications (1)

Publication Number Publication Date
WO2015143857A1 true WO2015143857A1 (en) 2015-10-01

Family

ID=50911865

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2014/087762 WO2015143857A1 (en) 2014-03-26 2014-09-29 Photograph synthesis method and terminal

Country Status (2)

Country Link
CN (1) CN103873777A (en)
WO (1) WO2015143857A1 (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103873777A (en) * 2014-03-26 2014-06-18 深圳市金立通信设备有限公司 Photograph synthetic method and terminal
CN106210542A (en) * 2016-08-16 2016-12-07 深圳市金立通信设备有限公司 The method of a kind of photo synthesis and terminal
CN106303259A (en) * 2016-09-29 2017-01-04 努比亚技术有限公司 A kind of method and apparatus realizing taking pictures
CN107018325A (en) * 2017-03-29 2017-08-04 努比亚技术有限公司 A kind of image combining method and device
CN109035186B (en) * 2018-07-06 2021-03-26 电子科技大学中山学院 Terrain non-feature area synthesis method and device based on parallel random sampling and propagation and electronic equipment

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103188428A (en) * 2011-12-30 2013-07-03 富泰华工业(深圳)有限公司 Shooting device and method
CN103491299A (en) * 2013-09-17 2014-01-01 宇龙计算机通信科技(深圳)有限公司 Photographic processing method and device
CN103548034A (en) * 2011-05-23 2014-01-29 微软公司 Automatically optimizing capture of images of one or more subjects
CN103561205A (en) * 2013-11-15 2014-02-05 深圳市中兴移动通信有限公司 Shooting method and shooting device
CN103747180A (en) * 2014-01-07 2014-04-23 宇龙计算机通信科技(深圳)有限公司 Photo shooting method and photographing terminal
CN103873777A (en) * 2014-03-26 2014-06-18 深圳市金立通信设备有限公司 Photograph synthetic method and terminal

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4408779B2 (en) * 2004-09-15 2010-02-03 キヤノン株式会社 Image processing device
JP2006330800A (en) * 2005-05-23 2006-12-07 Nippon Telegr & Teleph Corp <Ntt> Image synthesis system, image synthesis method, and program of the method
JP4853320B2 (en) * 2007-02-15 2012-01-11 ソニー株式会社 Image processing apparatus and image processing method
JP4748244B2 (en) * 2009-03-31 2011-08-17 カシオ計算機株式会社 Image selection apparatus, image selection method, and program
JP5458865B2 (en) * 2009-09-18 2014-04-02 ソニー株式会社 Image processing apparatus, imaging apparatus, image processing method, and program
JP5787648B2 (en) * 2011-07-11 2015-09-30 キヤノン株式会社 Image processing apparatus and image processing apparatus control method
JP5299488B2 (en) * 2011-09-13 2013-09-25 カシオ計算機株式会社 Image processing apparatus, image processing method, and program
CN103533212A (en) * 2012-07-04 2014-01-22 腾讯科技(深圳)有限公司 Image synthesizing method and apparatus

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103548034A (en) * 2011-05-23 2014-01-29 微软公司 Automatically optimizing capture of images of one or more subjects
CN103188428A (en) * 2011-12-30 2013-07-03 富泰华工业(深圳)有限公司 Shooting device and method
CN103491299A (en) * 2013-09-17 2014-01-01 宇龙计算机通信科技(深圳)有限公司 Photographic processing method and device
CN103561205A (en) * 2013-11-15 2014-02-05 深圳市中兴移动通信有限公司 Shooting method and shooting device
CN103747180A (en) * 2014-01-07 2014-04-23 宇龙计算机通信科技(深圳)有限公司 Photo shooting method and photographing terminal
CN103873777A (en) * 2014-03-26 2014-06-18 深圳市金立通信设备有限公司 Photograph synthetic method and terminal

Also Published As

Publication number Publication date
CN103873777A (en) 2014-06-18

Similar Documents

Publication Publication Date Title
US10284789B2 (en) Dynamic generation of image of a scene based on removal of undesired object present in the scene
US9860448B2 (en) Method and electronic device for stabilizing video
CN112565589B (en) Photographing preview method and device, storage medium and electronic equipment
US20170032219A1 (en) Methods and devices for picture processing
WO2017016146A1 (en) Image display method and apparatus
WO2015143857A1 (en) Photograph synthesis method and terminal
TWI640199B (en) Image capturing apparatus and photo composition method thereof
US9195880B1 (en) Interactive viewer for image stacks
US10546185B2 (en) Image processing apparatus for performing image processing according to privacy level
TWI496109B (en) Image processor and image merging method thereof
WO2017031901A1 (en) Human-face recognition method and apparatus, and terminal
WO2019105305A1 (en) Image brightness processing method, computer readable storage medium and electronic device
JP2016096487A (en) Imaging system
WO2013175051A1 (en) Method and apparatus for producing a cinemagraph
JP6720881B2 (en) Image processing apparatus and image processing method
WO2019105304A1 (en) Image white balance processing method, computer readable storage medium, and electronic device
WO2021057359A1 (en) Image processing method, electronic device, and readable storage medium
US20130308829A1 (en) Still image extraction apparatus
JP2014050022A (en) Image processing device, imaging device, and program
US20140285649A1 (en) Image acquisition apparatus that stops acquisition of images
US9374525B2 (en) Shooting apparatus and shooting method
JP6907274B2 (en) Imaging device and imaging method
US20180041711A1 (en) Selective Partial View Enlargement for Image and Preview
JP5447134B2 (en) Image processing apparatus, reply image generation system, and program
JP5293422B2 (en) Image specifying device and image specifying program

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 14886811

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 14886811

Country of ref document: EP

Kind code of ref document: A1