Movatterモバイル変換


[0]ホーム

URL:


CN104754216A - Photographing method and device - Google Patents

Photographing method and device
Download PDF

Info

Publication number
CN104754216A
CN104754216ACN201510100432.4ACN201510100432ACN104754216ACN 104754216 ACN104754216 ACN 104754216ACN 201510100432 ACN201510100432 ACN 201510100432ACN 104754216 ACN104754216 ACN 104754216A
Authority
CN
China
Prior art keywords
facial feature
edge
picture
distance
human face
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201510100432.4A
Other languages
Chinese (zh)
Other versions
CN104754216B (en
Inventor
孙建华
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp LtdfiledCriticalGuangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201510100432.4ApriorityCriticalpatent/CN104754216B/en
Publication of CN104754216ApublicationCriticalpatent/CN104754216A/en
Application grantedgrantedCritical
Publication of CN104754216BpublicationCriticalpatent/CN104754216B/en
Expired - Fee Relatedlegal-statusCriticalCurrent
Anticipated expirationlegal-statusCritical

Links

Landscapes

Abstract

Translated fromChinese

本发明实施例公开了一种拍照方法及装置,其中的方法可包括:在拍照模式下,识别捕捉到的拍摄画面中的人脸面部特征,从而获取所述人脸面部特征中的第一面部特征的位置和第二面部特征的位置,所述第一面部特征与所述第二面部特征为在所述人脸面部特征中相对称的特征;根据所述第一面部特征的位置和所述第二面部特征的位置判断人脸是否处于所述拍摄画面的预设区域内;若否,生成提示信息,以提示调节摄像头,以使所述人脸处于所述预设区域内。采用本发明,实现了在拍照模式下,根据拍摄画面中待拍摄人物的人脸面部特征所处的位置关系,生成提示信息,以使拍摄者根据提示信息调整摄像头从而拍出人脸位置居中的照片,以达到更好的拍摄效果。

The embodiment of the present invention discloses a photographing method and device, wherein the method may include: in the photographing mode, identifying the facial features of the human face in the photographed picture captured, so as to obtain the first surface of the facial features of the human face The position of the facial features and the position of the second facial features, the first facial features and the second facial features are symmetrical features in the facial features of the human face; according to the position of the first facial features and the position of the second facial feature to determine whether the face is in the preset area of the shooting picture; if not, generate prompt information to prompt to adjust the camera so that the face is in the preset area. By adopting the present invention, in the photographing mode, prompt information is generated according to the positional relationship of the facial features of the person to be photographed in the photographing screen, so that the photographer can adjust the camera according to the prompt information so as to take a picture of the centered position of the human face. photos for better results.

Description

Translated fromChinese
一种拍照方法及装置Method and device for taking pictures

技术领域technical field

本发明涉及智能终端领域,尤其涉及一种拍照方法及装置。The present invention relates to the field of intelligent terminals, in particular to a method and device for taking pictures.

背景技术Background technique

随着手机、平板电脑、拍照设备等智能终端的普及,人们经常使用智能终端中内置或是外接的照相机应用进行拍摄静态图片或动态短片,拍照已经成为智能终端领域中的一项必不可少的功能模块,随着拍照应用的普及,人们对拍照的要求也越来越高,往往希望将人物的脸部摆放到摄像界面的中间区域,从而拍出更加协调美观的照片,现有技术中,一般是需要拍照人员根据摄像界面中的预览效果,手动调整移动终端的位置从而使拍摄的人物脸部尽可能的居于摄像界面的中间区域,一般无法准确地将人物脸部调整到摄像界面的中间区域。With the popularization of smart terminals such as mobile phones, tablet computers, and camera devices, people often use built-in or external camera applications in smart terminals to take still pictures or dynamic videos. Taking pictures has become an essential in the field of smart terminals. Functional module, with the popularization of camera applications, people have higher and higher requirements for taking pictures. They often hope to place the faces of people in the middle area of the camera interface, so as to take more coordinated and beautiful photos. Generally, the photographer needs to manually adjust the position of the mobile terminal according to the preview effect in the camera interface, so that the face of the person being photographed is located in the middle area of the camera interface as much as possible. Generally, it is impossible to accurately adjust the face of the person to the center of the camera interface. middle area.

发明内容Contents of the invention

本发明实施例所要解决的技术问题在于,提供一种拍照方法及装置,实现了在拍照模式下,根据拍摄画面中待拍摄人物的人脸面部特征所处的位置关系,生成提示信息,以使拍摄者根据提示信息调整摄像头从而拍出人脸位置居中的照片,以达到更好的拍摄效果。The technical problem to be solved by the embodiments of the present invention is to provide a photographing method and device, which realizes the generation of prompt information according to the positional relationship of the facial features of the person to be photographed in the photographing screen in the photographing mode, so that The photographer adjusts the camera according to the prompt information to take a photo with the face in the center, so as to achieve a better shooting effect.

第一方面,本发明实施例提供了一种拍照方法,包括:In a first aspect, an embodiment of the present invention provides a method for taking pictures, including:

在拍照模式下,识别捕捉到的拍摄画面中的人脸面部特征,从而获取所述人脸面部特征中的第一面部特征的位置和第二面部特征的位置,所述第一面部特征与所述第二面部特征为在所述人脸面部特征中相对称的特征;In the photographing mode, identify the facial features of the human face in the captured picture, thereby obtaining the position of the first facial feature and the position of the second facial feature in the facial features of the human face, the first facial feature The second facial feature is a symmetrical feature among the facial features of the human face;

根据所述第一面部特征的位置和所述第二面部特征的位置判断人脸是否处于所述拍摄画面的预设区域内;judging according to the position of the first facial feature and the position of the second facial feature whether the human face is within a preset area of the photographed picture;

若否,生成提示信息,以提示调节摄像头,以使所述人脸处于所述预设区域内。If not, generate prompt information to prompt to adjust the camera so that the face is within the preset area.

结合第一方面,在第一种可能的实现方式中,所述根据所述第一面部特征的位置和所述第二面部特征的位置判断人脸是否处于所述拍摄画面的预设区域内具体包括:With reference to the first aspect, in a first possible implementation manner, the judging according to the position of the first facial feature and the position of the second facial feature whether the human face is within a preset area of the shooting picture Specifically include:

获取所述第一面部特征的位置与所述第二面部特征的位置连线的中点位置;Obtaining the position of the midpoint of the line connecting the position of the first facial feature and the position of the second facial feature;

根据所述中点位置与所述拍摄画面的中心点位置之间的偏移距离判断所述人脸是否处于所述拍摄画面的预设区域内。According to the offset distance between the midpoint position and the center point position of the shooting picture, it is judged whether the human face is in a preset area of the shooting picture.

结合第一方面,在第二种可能的实现方式中,所述拍摄画面包括第一边缘和第二边缘,所述第一边缘与所述第二边缘为在所述拍摄画面中不相连接的边缘,所述根据所述第一面部特征的位置和所述第二面部特征的位置判断人脸是否处于所述拍摄画面的预设区域内具体包括:With reference to the first aspect, in a second possible implementation manner, the shooting picture includes a first edge and a second edge, and the first edge and the second edge are not connected in the shooting picture. Edge, the judging according to the position of the first facial feature and the position of the second facial feature whether the human face is in the preset area of the shooting picture specifically includes:

获取所述第一面部特征的位置与所述拍摄画面的第一边缘之间的第一距离;Acquiring a first distance between the position of the first facial feature and the first edge of the photographed frame;

获取所述第二面部特征的位置与所述拍摄画面的第二边缘之间的第二距离;Acquiring a second distance between the position of the second facial feature and a second edge of the photographed frame;

根据所述第一距离以及所述第二距离判断所述人脸是否处于所述拍摄画面的预设区域内。It is judged according to the first distance and the second distance whether the human face is within a preset area of the shooting picture.

结合第一方面,在第三种可能的实现方式中,所述生成提示信息具体包括:With reference to the first aspect, in a third possible implementation manner, the generating prompt information specifically includes:

生成提示图标和/或提示语音以指示出所述摄像头的调节方向。Generate a prompt icon and/or prompt voice to indicate the adjustment direction of the camera.

结合第一方面,在第四种可能的实现方式中,所述拍摄画面包括第一边缘和第二边缘,所述第一边缘与所述第二边缘为在所述拍摄画面中不相连接的边缘,所述获取所述人脸面部特征中的第一面部特征的位置和第二面部特征的位置具体包括:With reference to the first aspect, in a fourth possible implementation manner, the photographing picture includes a first edge and a second edge, and the first edge and the second edge are not connected in the photographing picture Edge, the acquisition of the position of the first facial feature and the position of the second facial feature in the facial features of the human face specifically includes:

通过建立坐标位置关系获取所述第一面部特征的位置在所述坐标位置关系中的第一坐标位置,并获取所述第二面部特征的位置在所述坐标位置关系中的第二坐标位置;Obtaining a first coordinate position of the position of the first facial feature in the coordinate position relationship by establishing a coordinate position relationship, and acquiring a second coordinate position of the position of the second facial feature in the coordinate position relationship ;

所述根据所述第一面部特征的位置和所述第二面部特征的位置判断人脸是否处于所述拍摄画面的预设区域内具体包括:The judging whether the human face is in the preset area of the shooting picture according to the position of the first facial feature and the position of the second facial feature specifically includes:

获取所述第一坐标位置到所述第一边缘之间的第一距离,并获取所述第二坐标到所述第二边缘之间的第二距离;obtaining a first distance from the first coordinate position to the first edge, and obtaining a second distance from the second coordinate to the second edge;

根据所述第一距离与所述第二距离的差值是否小于或者等于预设阈值判断所述人脸是否处于所述拍摄画面的预设区域内;According to whether the difference between the first distance and the second distance is less than or equal to a preset threshold, it is judged whether the face is in a preset area of the shooting picture;

所述生成提示信息具体包括:The generating prompt information specifically includes:

根据所述差值以及所述预设阈值生成提示图标和/或提示语音以指示出所述摄像头的调节方向。Generate a prompt icon and/or prompt voice according to the difference and the preset threshold to indicate the adjustment direction of the camera.

第二方面,本发明实施例提供了一种拍照装置,包括:In a second aspect, an embodiment of the present invention provides a photographing device, including:

获取模块,用于在拍照模式下,识别捕捉到的拍摄画面中的人脸面部特征,从而获取所述人脸面部特征中的第一面部特征的位置和第二面部特征的位置,所述第一面部特征与所述第二面部特征为在所述人脸面部特征中相对称的特征;The acquisition module is used to identify the facial features of the human face in the captured picture in the photographing mode, so as to acquire the position of the first facial feature and the position of the second facial feature in the facial features of the human face, the The first facial feature and the second facial feature are symmetrical features in the facial features of the human face;

判断模块,用于根据所述第一面部特征的位置和所述第二面部特征的位置判断人脸是否处于所述拍摄画面的预设区域内;A judging module, configured to judge whether the human face is within a preset area of the photographed picture according to the position of the first facial feature and the position of the second facial feature;

提示模块,用于若所述检测单元检测出所述人脸未处于所述拍摄画面的预设区域内,生成提示信息,以提示调节摄像头,以使所述人脸处于所述预设区域内。A prompting module, configured to generate prompting information if the detection unit detects that the human face is not in the preset area of the shooting picture, to prompt to adjust the camera so that the human face is in the preset area .

结合第二方面,在第一种可能的实现方式中,所述判断模块包括:With reference to the second aspect, in a first possible implementation manner, the judging module includes:

第一获取单元,用于获取所述第一面部特征的位置与所述第二面部特征的位置连线的中点位置;A first acquiring unit, configured to acquire a midpoint position of a line connecting the position of the first facial feature and the position of the second facial feature;

第一判断单元,用于根据所述中点位置与所述拍摄画面的中心点位置之间的偏移距离判断所述人脸是否处于所述拍摄画面的预设区域内。A first judging unit, configured to judge whether the human face is within a preset area of the shooting picture according to an offset distance between the midpoint position and the center point position of the shooting picture.

结合第二方面,在第二种可能的实现方式中,所述拍摄画面包括第一边缘和第二边缘,所述第一边缘与所述第二边缘为在所述拍摄画面中不相连接的边缘,所述判断模块包括:With reference to the second aspect, in a second possible implementation manner, the shooting picture includes a first edge and a second edge, and the first edge and the second edge are not connected in the shooting picture. edge, the judging module includes:

第二获取单元,用于获取所述第一面部特征的位置与所述拍摄画面的第一边缘之间的第一距离;a second acquiring unit, configured to acquire a first distance between the position of the first facial feature and the first edge of the photographed picture;

第三获取单元,用于获取所述第二面部特征的位置与所述拍摄画面的第二边缘之间的第二距离;a third acquiring unit, configured to acquire a second distance between the position of the second facial feature and the second edge of the photographed picture;

第二判断单元,用于根据所述第一距离以及所述第二距离判断所述人脸是否处于所述拍摄画面的预设区域内。A second judging unit, configured to judge whether the human face is within a preset area of the photographed picture according to the first distance and the second distance.

结合第二方面,在第三种可能的实现方式中,所述生成模块具体用于生成提示图标和/或提示语音以指示出所述摄像头的调节方向。With reference to the second aspect, in a third possible implementation manner, the generating module is specifically configured to generate a prompt icon and/or a prompt voice to indicate an adjustment direction of the camera.

结合第二方面,在第四种可能的实现方式中,所述拍摄画面包括第一边缘和第二边缘,,所述第一边缘与所述第二边缘为在所述拍摄画面中不相连接的边缘,所述获取模块具体用于通过建立坐标位置关系获取所述第一面部特征的位置在所述坐标位置关系中的第一坐标位置,并获取所述第二面部特征的位置在所述坐标位置关系中的第二坐标位置;With reference to the second aspect, in a fourth possible implementation manner, the shooting picture includes a first edge and a second edge, and the first edge and the second edge are not connected in the shooting picture , the acquisition module is specifically configured to acquire the first coordinate position of the position of the first facial feature in the coordinate position relationship by establishing a coordinate position relationship, and acquire the position of the second facial feature in the The second coordinate position in the coordinate position relationship;

所述判断模块包括:The judgment module includes:

第四获取单元,用于获取所述第一坐标位置到所述第一边缘之间的第一距离,并获取所述第二坐标到所述第二边缘之间的第二距离;a fourth acquiring unit, configured to acquire a first distance from the first coordinate position to the first edge, and acquire a second distance from the second coordinate to the second edge;

第三判断单元,用于根据所述第一距离与所述第二距离的差值是否小于或者等于预设阈值判断所述人脸是否处于所述拍摄画面的预设区域内;A third judging unit, configured to judge whether the human face is within a preset area of the shooting picture according to whether the difference between the first distance and the second distance is less than or equal to a preset threshold;

所述生成模块具体用于根据所述差值以及所述预设阈值生成提示图标和/或提示语音以指示出所述摄像头的调节方向。The generation module is specifically configured to generate a prompt icon and/or a prompt voice according to the difference and the preset threshold to indicate the adjustment direction of the camera.

通过实施本发明实施例,在拍照模式下,通过识别拍摄画面中待拍摄人物的人脸面部特征,获取人脸面部特征中两个相对称的面部特征在拍摄画面中的位置,从而获取两个相对称的面部特征分别到拍摄画面中的两个边缘之间的距离,根据到两个边缘之间的距离判断待拍摄人物的人脸是否处于拍摄画面的中间位置,从而生成提示信息,以使拍摄者根据提示信息调整摄像头,或者提示待拍摄者进行移动,从而将待拍摄者的人脸位置居于拍摄画面的中间位置,以达到更好的拍摄效果。By implementing the embodiment of the present invention, in the photographing mode, by identifying the facial features of the person to be photographed in the photographed picture, the positions of two symmetrical facial features in the photographed picture are obtained, thereby obtaining two The distance between the relatively symmetrical facial features and the two edges in the shooting picture, according to the distance between the two edges, it is judged whether the face of the person to be photographed is in the middle of the shooting picture, so as to generate prompt information, so that The photographer adjusts the camera according to the prompt information, or prompts the person to be photographed to move, so that the face of the person to be photographed is located in the middle of the shooting picture, so as to achieve a better shooting effect.

附图说明Description of drawings

为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the following will briefly introduce the drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are only These are some embodiments of the present invention. Those skilled in the art can also obtain other drawings based on these drawings without creative work.

图1是本发明实施例提供的拍照方法的第一实施例的流程示意图;FIG. 1 is a schematic flowchart of a first embodiment of a photographing method provided by an embodiment of the present invention;

图1a是本发明实施例提供的拍照方法中的第一实施例的拍摄界面图;Fig. 1a is a photographing interface diagram of the first embodiment of the photographing method provided by the embodiment of the present invention;

图2是本发明实施例提供的拍照方法的第二实施例的流程示意图;Fig. 2 is a schematic flow chart of the second embodiment of the photographing method provided by the embodiment of the present invention;

图2a是本发明实施例提供的拍照方法中的第二实施例的拍摄界面图;Fig. 2a is a photographing interface diagram of the second embodiment of the photographing method provided by the embodiment of the present invention;

图3是本发明实施例提供的拍照方法的第三实施例的流程示意图;Fig. 3 is a schematic flow chart of the third embodiment of the photographing method provided by the embodiment of the present invention;

图3a是本发明实施例提供的拍照方法中的第三实施例的拍摄界面图;Fig. 3a is a photographing interface diagram of the third embodiment in the photographing method provided by the embodiment of the present invention;

图4是本发明实施例提供的拍照方法的第四实施例的流程示意图;Fig. 4 is a schematic flow chart of the fourth embodiment of the photographing method provided by the embodiment of the present invention;

图4a是本发明实施例提供的拍照方法中的坐标轴的示意图;Fig. 4a is a schematic diagram of the coordinate axes in the photographing method provided by the embodiment of the present invention;

图5是本发明实施例提供的拍照装置的结构示意图;Fig. 5 is a schematic structural diagram of a photographing device provided by an embodiment of the present invention;

图6是本发明实施例提供的判断模块的第一实施例的结构示意图;Fig. 6 is a schematic structural diagram of the first embodiment of the judging module provided by the embodiment of the present invention;

图7是本发明实施例提供的判断模块的第二实施例的结构示意图;Fig. 7 is a schematic structural diagram of the second embodiment of the judging module provided by the embodiment of the present invention;

图8是本发明实施例提供的判断模块的第三实施例的结构示意图。Fig. 8 is a schematic structural diagram of the third embodiment of the judging module provided by the embodiment of the present invention.

具体实施方式detailed description

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

需要说明的是,在本发明实施例中使用的术语是仅仅出于描述特定实施例的目的,而非旨在限制本发明。在本发明实施例和所附权利要求书中所使用的单数形式的“一种”、“所述”和“该”也旨在包括多数形式,除非上下文清楚地表示其他含义。还应当理解,本文中使用的术语“和/或”是指并包含一个或多个相关联的列出项目的任何或所有可能组合。It should be noted that the terms used in the embodiments of the present invention are only for the purpose of describing specific embodiments, and are not intended to limit the present invention. As used in the embodiments of the present invention and the appended claims, the singular forms "a", "said" and "the" are also intended to include the plural forms unless the context clearly dictates otherwise. It should also be understood that the term "and/or" as used herein refers to and includes any and all possible combinations of one or more of the associated listed items.

本发明实施例提供了一种拍照方法及装置,实现了在拍照模式下,根据拍摄画面中待拍摄人物的人脸面部特征所处的位置关系,生成提示信息,以使拍摄者根据提示信息调整摄像头从而拍出人脸位置居中的照片,以达到更好的拍摄效果。为了便于理解本发明实施例,下面先对本发明实施例的拍照方法进行描述。The embodiment of the present invention provides a photographing method and device, which realizes that in the photographing mode, prompt information is generated according to the positional relationship of the facial features of the person to be photographed in the photographing screen, so that the photographer can adjust the The camera thus takes a photo with the face in the center to achieve a better shooting effect. In order to facilitate understanding of the embodiment of the present invention, the photographing method of the embodiment of the present invention will be described below first.

参见图1,是本发明实施例提供的拍照方法的第一实施例的流程示意图,该方法应用于终端,该方法包括:Referring to FIG. 1 , it is a schematic flowchart of a first embodiment of a photographing method provided by an embodiment of the present invention. The method is applied to a terminal, and the method includes:

步骤S101:在拍照模式下,识别捕捉到的拍摄画面中的人脸面部特征,从而获取所述人脸面部特征中的第一面部特征的位置和第二面部特征的位置,所述第一面部特征与所述第二面部特征为在所述人脸面部特征中相对称的特征;Step S101: In the photographing mode, identify the facial features of the human face in the captured picture, so as to obtain the position of the first facial feature and the position of the second facial feature in the facial features of the human face, the first The facial features and the second facial features are symmetrical features in the facial features of the human face;

具体地,对于现有拍照终端,例如数码相机或者手机相机,一般均具有人脸识别功能,在所述拍照终端进入拍照模式后,拍照终端根据摄像头捕捉待拍摄人物的人脸,并在拍摄画面或者所述拍照终端的预览界面中通过摄像头识别人脸面部特征,从而获取人脸面部特征中的第一面部特征的位置和第二面部特征的位置,其中所述第一面部特征和第二面部特征为在所述人脸面部特征中相对称的特征,例如左眼和右眼、左耳和右耳等。Specifically, for existing photographing terminals, such as digital cameras or mobile phone cameras, they generally have a face recognition function. After the photographing terminal enters the photographing mode, the photographing terminal captures the face of the person to be photographed according to the camera, and displays it on the photographing screen. Or in the preview interface of the camera terminal, the facial features of the human face are recognized by the camera, so as to obtain the position of the first facial feature and the position of the second facial feature in the facial features of the human face, wherein the first facial feature and the second facial feature Two facial features are features that are symmetrical among the facial features of the human face, such as left and right eyes, left and right ears, and the like.

需要说明的是,当所述待拍摄的人物距离所述摄像头较远时,所述待拍摄人物的第一面部特征以及所述第二面部特征在所述拍摄画面中可以看作两个点,当所述待拍摄的人物距离所述摄像头较近时,所述第一面部特征以及所述第二面部特征在所述拍摄画面中所占的区域面积较大,则需要确定所述第一面部特征的中心点在所述拍摄画面中的第一位置,以及所述第二面部特征的中心点在所述拍摄画面中的第二位置。可以通过在所述第一面部特征的外轮廓形成第一矩形框,通过所述第一矩形框的中心点在所述拍摄画面中的位置确定所述第一面部特征的位置,在所述第二面部特征的外轮廓形成第二矩形框,通过所述第二矩形框的中心点在所述拍摄画面中的位置确定所述第二面部特征的位置。It should be noted that when the person to be photographed is far away from the camera, the first facial feature and the second facial feature of the person to be photographed can be regarded as two points in the photographed picture. , when the person to be photographed is relatively close to the camera, and the area occupied by the first facial feature and the second facial feature in the shooting picture is relatively large, then it is necessary to determine the A center point of a facial feature is at a first position in the shooting frame, and a center point of the second facial feature is at a second position in the shooting frame. A first rectangular frame may be formed on the outer contour of the first facial feature, and the position of the first facial feature may be determined by the position of the center point of the first rectangular frame in the photographed picture. The outer contour of the second facial feature forms a second rectangular frame, and the position of the second facial feature is determined by the position of the center point of the second rectangular frame in the shooting picture.

进一步地,可参见图1a,为所述拍照终端的拍摄界面图,其中所述第一面部特征和所述第二面部特征分别为左眼1011(注:这里的左眼是指人的实际左眼,并不是指屏幕中靠左的眼睛)和右眼1012,拍照终端的摄像头捕捉待拍摄人物的人脸,通过摄像头识别人脸面部特征中的左眼1011和右眼1012,并在所述拍摄画面或者所述拍照终端的预览界面中的左眼外轮廓处形成一个左眼位置对应的矩形框1013,并在右眼外轮廓处形成一个右眼位置对应的矩形框1014,通过获取所述左眼位置对应的矩形框1013的中心点的位置可以得到所述第一面部特征的位置,即左眼位置,通过获取右眼位置对应的矩形框1014的中心点的位置可以得到所述第二面部特征的位置,即右眼位置。Further, please refer to FIG. 1a, which is a photographing interface diagram of the camera terminal, wherein the first facial feature and the second facial feature are respectively the left eye 1011 (note: the left eye here refers to the actual Left eye, not referring to the left eye in the screen) and right eye 1012, the camera of the camera terminal captures the face of the person to be photographed, and recognizes the left eye 1011 and right eye 1012 in the facial features of the person through the camera, and A rectangular frame 1013 corresponding to the position of the left eye is formed at the outer contour of the left eye in the shooting screen or the preview interface of the photographing terminal, and a rectangular frame 1014 corresponding to the position of the right eye is formed at the outer contour of the right eye. By obtaining the The position of the center point of the rectangular frame 1013 corresponding to the position of the left eye can obtain the position of the first facial feature, that is, the position of the left eye, and the position of the center point of the rectangular frame 1014 corresponding to the position of the right eye can be obtained. The location of the second facial feature, the right eye location.

步骤S103:根据所述第一面部特征的位置和所述第二面部特征的位置判断人脸是否处于所述拍摄画面的预设区域内;Step S103: According to the position of the first facial feature and the position of the second facial feature, it is judged whether the human face is in the preset area of the shooting picture;

具体地,根据摄像头获取到的所述第一面部特征的位置和所述第二面部特征的位置分析判断所述待拍摄人物的人脸是否处于拍摄画面的预设区域内,所述拍摄画面的预设区域可以为所述拍摄画面或所述拍照终端的预览界面的中心位置区域。当待拍摄人物的人脸处于所述拍摄画面或所述拍照终端的预览界面的预设区域内时,表明拍照的拍摄效果较佳,不需要给出提示,拍摄者直接拍照即可;当待拍摄人物的人脸未处于所述拍摄画面或所述拍照终端的预览界面的预设区域内时,表示所述待拍摄人物的人脸在所述拍摄画面或所述拍照终端的预览界面中的偏移较大,拍照的拍摄效果不佳,因此,所述拍照终端通过生成提示信息,提示拍摄者调整摄像头,以使所述待拍摄人物的人脸处于所述拍摄画面或所述拍照终端的预览界面的预设区域内。如果判断出人脸未处于所述拍摄画面的预设区域内,进入步骤S105,如果判断出人脸处于所述拍摄画面的预设区域内,可以生成拍照的提示信息,提示用户可以直接拍照,本发明实施例以结束本流程为例。Specifically, according to the position analysis of the first facial feature and the position of the second facial feature acquired by the camera, it is judged whether the face of the person to be photographed is in a preset area of the shooting picture, and the shooting picture The preset area of the camera may be the center position area of the shooting screen or the preview interface of the camera terminal. When the face of the person to be photographed is within the preset area of the photographing screen or the preview interface of the photographing terminal, it indicates that the photographing effect of the photograph is better, and there is no need to give a prompt, and the photographer can directly photograph; When the face of the person to be photographed is not within the preset area of the photographing picture or the preview interface of the photographing terminal, it means that the face of the subject to be photographed is within the photographing picture or the preview interface of the photographing terminal The offset is large, and the shooting effect of the photo is not good. Therefore, the photo-taking terminal prompts the photographer to adjust the camera by generating prompt information so that the face of the person to be photographed is in the shooting picture or in the photo-taking terminal. In the preset area of the preview interface. If it is determined that the human face is not in the preset area of the shooting picture, enter step S105, if it is determined that the human face is in the preset area of the shooting picture, a prompt message for taking pictures can be generated, prompting the user to take pictures directly, In this embodiment of the present invention, the end of this process is taken as an example.

进一步地,可以通过分析所述第一面部特征的位置和所述第二面部特征的位置之间连线的中点位置与所述拍摄画面或所述拍照终端的预览界面的中心位置的偏移距离来判断所述待拍摄人物的人脸是否处于所述拍摄画面或所述拍照终端的预览界面的预设区域内,也可以通过分别获取所述第一面部特征的位置到拍摄画面或所述拍照终端的预览界面中一个边缘的距离、所述第二面部特征的位置到拍摄画面或所述拍照终端的预览界面中另一个相对的边缘的距离,通过两个距离判断所述待拍摄人物的人脸是否处于所述拍摄画面或所述拍照终端的预览界面的预设区域内。其中所述第一面部特征的位置和所述第二面部特征的位置之间连线的中点位置与所述拍摄画面或所述拍照终端的预览界面的中心位置的偏移距离越小,表示所述待拍摄人物的头像在所述拍摄画面或所述拍照终端的预览界面中越居中,拍摄效果也会越好。所述第一面部特征的位置到所述拍摄画面或所述拍照终端的预览界面中一个边缘的距离与所述第二面部特征的位置到所述拍摄画面或所述拍照终端的预览界面中另一个相对的边缘的距离的差值越小,表示所述待拍摄人物的头像在所述拍摄画面或所述拍照终端的预览界面中越居中,拍摄效果也会越好。因此,本发明实施例可以设置一个预定范围,以便调整所述偏移距离或所述差值处于所述预定范围而达到较好的拍摄效果。Further, it may be possible to analyze the deviation between the midpoint position of the line between the position of the first facial feature and the position of the second facial feature and the center position of the shooting picture or the preview interface of the camera terminal. to determine whether the face of the person to be photographed is within the preset area of the photographing picture or the preview interface of the photographing terminal, or obtain the position of the first facial feature respectively to the photographing picture or The distance between an edge in the preview interface of the photographing terminal, the distance from the position of the second facial feature to the shooting screen or the other opposite edge in the preview interface of the photographing terminal, the two distances are used to judge the to-be-photographed Whether the person's face is in the preset area of the shooting picture or the preview interface of the camera terminal. The smaller the offset distance between the midpoint of the line between the position of the first facial feature and the position of the second facial feature and the center position of the shooting picture or the preview interface of the camera terminal, The more centered the avatar of the person to be photographed is on the photographing screen or the preview interface of the photographing terminal, the better the photographing effect will be. The distance between the position of the first facial feature and an edge in the shooting picture or the preview interface of the camera terminal and the position of the second facial feature in the shooting picture or the preview interface of the camera terminal The smaller the difference between the distances of the other opposite edge, the more centered the head portrait of the person to be photographed is on the photographing screen or the preview interface of the photographing terminal, the better the photographing effect will be. Therefore, in the embodiment of the present invention, a predetermined range may be set, so that the offset distance or the difference value may be adjusted within the predetermined range to achieve a better shooting effect.

步骤S105:生成提示信息,所述提示信息用于提示调整镜头居中或待拍摄人物移动,直至所述偏移信息处于所述预设范围内。Step S105: Generate prompt information, the prompt information is used to prompt to adjust the centering of the lens or the movement of the person to be photographed until the offset information is within the preset range.

具体地,当判断出所述待拍摄人物的人脸未处于所述拍摄画面的预设区域内时,即所述待拍摄人物的人脸未处于所述拍摄画面中的中心区域内,则拍摄终端需要生成提示信息,以提示拍摄者调整摄像头,以使所述待拍摄人物的人脸位置居于所述拍摄画面的预设区域内。Specifically, when it is determined that the face of the person to be photographed is not in the preset area of the photographing picture, that is, the face of the person to be photographed is not in the central area of the photographing picture, then photographing The terminal needs to generate prompt information to prompt the photographer to adjust the camera so that the face position of the person to be photographed is within a preset area of the photographed picture.

进一步地,所述拍照终端可以根据自身音频装置发出语音提示信息,以提示拍摄者调整摄像头,以使所述待拍摄人物的人脸处于所述拍摄画面的预设区域内,在调整所述摄像头的过程中,实时确定所述第一面部特征的位置和所述第二面部特征的位置之间连线的中点位置与所述拍摄画面的中心位置的偏移距离,并不断给出语音提示信息,直到所述偏移距离或所述差值处于预定范围内。其中所述语音提示信息包括两种,一种是提示拍摄者移动所述拍照终端,另一种是提示待拍摄人物移动,语音提醒信息可以提示拍摄者上移、下移、左移、右移等。所述拍照终端也可以生成提示图标,以提示拍摄者调整摄像头,以使待拍摄人物的人脸处于所述拍摄画面的预设区域内,其中提示图标可以包括但不限于:提示箭头,所述提示图标可以提示拍摄者在水平或者垂直等方向上移动,直到所述偏移距离或者所述差值处于预定范围内,提示拍摄者按下按钮完成一次拍照,提示图标可以是从某个位置发出的两个坐标轴线,也可以是从某个位置点发出并指向所述拍摄画面中心点的指向线,或者其他形式,本发明实施例不作具体限定。Further, the photographing terminal can send a voice prompt message according to its own audio device to remind the photographer to adjust the camera so that the face of the person to be photographed is within the preset area of the photographed picture, and when adjusting the camera During the process, the offset distance between the midpoint position of the line between the position of the first facial feature and the position of the second facial feature and the center position of the shooting picture is determined in real time, and the voice is continuously given Prompting information until the offset distance or the difference is within a predetermined range. The voice prompt information includes two types, one is to prompt the photographer to move the camera terminal, and the other is to prompt the person to be photographed to move, and the voice prompt information can prompt the photographer to move up, down, left, and right wait. The camera terminal can also generate a prompt icon to prompt the photographer to adjust the camera so that the face of the person to be photographed is in the preset area of the shooting picture, wherein the prompt icon can include but not limited to: a prompt arrow, the The prompt icon can prompt the photographer to move horizontally or vertically until the offset distance or the difference is within a predetermined range, prompting the photographer to press a button to complete a photo shoot, and the prompt icon can be sent from a certain position The two coordinate axes can also be a pointing line originating from a certain position point and pointing to the center point of the shooting picture, or other forms, which are not specifically limited in this embodiment of the present invention.

进一步地,如图2示出的是本发明实施例提供的拍照方法的第二实施例的流程示意图,该方法应用于终端,该方法包括:Further, as shown in FIG. 2 is a schematic flowchart of a second embodiment of the photographing method provided by the embodiment of the present invention, the method is applied to a terminal, and the method includes:

步骤S201:在拍照模式下,识别捕捉到的拍摄画面中的人脸面部特征,从而获取所述人脸面部特征中的第一面部特征的位置和第二面部特征的位置,所述第一面部特征与所述第二面部特征为在所述人脸面部特征中相对称的特征;Step S201: In the photographing mode, identify the facial features of the human face in the captured picture, so as to obtain the position of the first facial feature and the position of the second facial feature among the facial features of the human face, the first The facial features and the second facial features are symmetrical features in the facial features of the human face;

具体地,对于现有拍照终端,例如数码相机或者手机相机,一般均具有人脸识别功能,在所述拍照终端进入拍照模式后,拍照终端根据摄像头捕捉待拍摄人物的人脸,并在拍摄画面或者所述拍照终端的预览界面中通过摄像头识别人脸面部特征,从而获取人脸面部特征中的第一面部特征的位置和第二面部特征的位置,其中所述第一面部特征和第二面部特征为在所述人脸面部特征中相对称的特征,例如左眼和右眼、左耳和右耳等。Specifically, for existing photographing terminals, such as digital cameras or mobile phone cameras, they generally have a face recognition function. After the photographing terminal enters the photographing mode, the photographing terminal captures the face of the person to be photographed according to the camera, and displays it on the photographing screen. Or in the preview interface of the camera terminal, the facial features of the human face are recognized by the camera, so as to obtain the position of the first facial feature and the position of the second facial feature in the facial features of the human face, wherein the first facial feature and the second facial feature Two facial features are features that are symmetrical among the facial features of the human face, such as left and right eyes, left and right ears, and the like.

需要说明的是,当所述待拍摄的人物距离所述摄像头较远时,所述待拍摄人物的第一面部特征以及所述第二面部特征在所述拍摄画面中可以看作两个点,当所述待拍摄的人物距离所述摄像头较近时,所述第一面部特征以及所述第二面部特征在所述拍摄画面中所占的区域面积较大,则需要确定所述第一面部特征的中心点在所述拍摄画面中的第一位置,以及所述第二面部特征的中心点在所述拍摄画面中的第二位置。可以通过在所述第一面部特征的外轮廓形成第一矩形框,通过所述第一矩形框的中心点在所述拍摄画面中的位置确定所述第一面部特征的位置,在所述第二面部特征的外轮廓形成第二矩形框,通过所述第二矩形框的中心点在所述拍摄画面中的位置确定所述第二面部特征的位置。It should be noted that when the person to be photographed is far away from the camera, the first facial feature and the second facial feature of the person to be photographed can be regarded as two points in the photographed picture. , when the person to be photographed is relatively close to the camera, and the area occupied by the first facial feature and the second facial feature in the shooting picture is relatively large, then it is necessary to determine the A center point of a facial feature is at a first position in the shooting frame, and a center point of the second facial feature is at a second position in the shooting frame. A first rectangular frame may be formed on the outer contour of the first facial feature, and the position of the first facial feature may be determined by the position of the center point of the first rectangular frame in the photographed picture. The outer contour of the second facial feature forms a second rectangular frame, and the position of the second facial feature is determined by the position of the center point of the second rectangular frame in the shooting picture.

进一步地,可参见图1a,为所述拍照终端的拍摄界面图,其中所述第一面部特征和所述第二面部特征分别为左眼1011(注:这里的左眼是指人的实际左眼,并不是指屏幕中靠左的眼睛)和右眼1012,拍照终端的摄像头捕捉待拍摄人物的人脸,通过摄像头识别人脸面部特征中的左眼1011和右眼1012,并在所述拍摄画面或者所述拍照终端的预览界面中的左眼外轮廓处形成一个左眼位置对应的矩形框1013,并在右眼外轮廓处形成一个右眼位置对应的矩形框1014,通过获取所述左眼位置对应的矩形框1013的中心点的位置可以得到所述第一面部特征的位置,即左眼位置,通过获取右眼位置对应的矩形框1014的中心点的位置可以得到所述第二面部特征的位置,即右眼位置。Further, please refer to FIG. 1a, which is a photographing interface diagram of the camera terminal, wherein the first facial feature and the second facial feature are respectively the left eye 1011 (note: the left eye here refers to the actual Left eye, not referring to the left eye in the screen) and right eye 1012, the camera of the camera terminal captures the face of the person to be photographed, and recognizes the left eye 1011 and right eye 1012 in the facial features of the person through the camera, and A rectangular frame 1013 corresponding to the position of the left eye is formed at the outer contour of the left eye in the shooting screen or the preview interface of the photographing terminal, and a rectangular frame 1014 corresponding to the position of the right eye is formed at the outer contour of the right eye. By obtaining the The position of the center point of the rectangular frame 1013 corresponding to the position of the left eye can obtain the position of the first facial feature, that is, the position of the left eye, and the position of the center point of the rectangular frame 1014 corresponding to the position of the right eye can be obtained. The location of the second facial feature, the right eye location.

步骤S203:获取所述第一面部特征的位置与所述第二面部特征的位置连线的中点位置;Step S203: Obtain the position of the midpoint of the line connecting the position of the first facial feature and the position of the second facial feature;

具体地,拍照终端通过在所述拍摄画面或所述拍照终端的预览界面中获取到的所述第一面部特征的位置和所述第二面部特征的位置,将所述第一面部特征的位置和所述第二面部特征的位置相连,从而获取所述第一面部特征的位置与所述第二面部特征的位置连线的中点位置。Specifically, the photographing terminal uses the position of the first facial feature and the position of the second facial feature acquired in the photographing screen or the preview interface of the photographing terminal, The position of is connected with the position of the second facial feature, so as to obtain the midpoint position of the line connecting the position of the first facial feature and the position of the second facial feature.

进一步地,可参见图2a,为所述拍照终端的拍摄界面图,在所述拍摄画面中,可以确定左眼1011位置与右眼1012位置的连线的中点为1015。Further, please refer to FIG. 2 a , which is a photographing interface diagram of the photographing terminal. In the photographing screen, the midpoint of the line connecting the position of the left eye 1011 and the position of the right eye 1012 can be determined as 1015 .

步骤S205:根据所述中点位置与所述拍摄画面的中心点位置之间的偏移距离判断所述人脸是否处于所述拍摄画面的预设区域内;Step S205: judging whether the human face is within a preset area of the shooting picture according to the offset distance between the midpoint position and the center point position of the shooting picture;

具体地,拍照终端根据获取到的所述第一面部特征的位置与所述第二面部特征的位置连线的中点位置与所述拍摄画面或所述拍照终端的预览界面的中心点位置,计算得出所述第一面部特征的位置与所述第二面部特征的位置连线的中点位置与所述拍摄画面或所述拍照终端的预览界面的中心点位置之间的偏移距离,通过判断偏移距离来判断所述待拍摄人物的人脸是否处于所述拍摄画面或所述拍照终端的预览界面的预设区域内。当所述待拍摄人物的人脸处于所述拍摄画面或所述拍照终端的预览界面的预设区域内时,则表明拍照的拍摄效果较佳,不需要给出提示,拍摄者直接拍照即可;当所述待拍摄人物的人脸未处于所述拍摄画面或所述拍照终端的预览界面的预设区域内时,表示所述待拍摄人物的人脸在所述拍摄画面中的偏移较大,拍照的拍摄效果不佳,因此,所述拍照终端通过生成提示信息,提示拍摄者调整摄像头,以使所述待拍摄人物的人脸处于所述拍摄画面或所述拍照终端的预览界面的预设区域内。如果判断出人脸未处于所述拍摄画面的预设区域内,进入步骤S207,如果判断出人脸处于所述拍摄画面的预设区域内,可以生成拍照的提示信息,提示用户可以直接拍照,本发明实施例以结束本流程为例。Specifically, according to the position of the midpoint of the obtained line connecting the position of the first facial feature and the position of the second facial feature and the position of the center point of the shooting picture or the preview interface of the terminal, the photographing terminal Calculate the offset between the midpoint position of the line connecting the position of the first facial feature and the position of the second facial feature and the center point position of the shooting picture or the preview interface of the camera terminal distance, by judging the offset distance to judge whether the face of the person to be photographed is within the preset area of the photographing picture or the preview interface of the photographing terminal. When the face of the person to be photographed is in the preset area of the photographing screen or the preview interface of the photographing terminal, it indicates that the photographing effect of the photograph is better, and there is no need to give a prompt, and the photographer can directly photograph ; when the face of the person to be photographed is not in the preset area of the photographing picture or the preview interface of the photographing terminal, it means that the face of the person to be photographed is less offset in the photographing picture Therefore, the photographing terminal prompts the photographer to adjust the camera so that the face of the person to be photographed is at the front of the photographing screen or the preview interface of the photographing terminal by generating prompt information. within the preset area. If it is determined that the human face is not in the preset area of the shooting picture, enter step S207, if it is judged that the human face is in the preset area of the shooting picture, a prompt message for taking pictures can be generated, prompting the user to take pictures directly, In this embodiment of the present invention, the end of this process is taken as an example.

进一步地,其中所述第一面部特征的位置与所述第二面部特征的位置连线的中点位置与所述拍摄画面的中心点位置的偏移距离越小,表示所述待拍摄人物的头像在所述拍摄画面或所述拍照终端的预览界面中越居中,拍摄效果也会越好。因此,本发明实施例可以设置一个预定范围,以便调整所述偏移距离或所述差值处于所述预定范围而达到较好的拍摄效果。可参见图2a,为所述拍照终端的拍摄界面图,其中左眼与右眼位置连线的中点为1015,所述拍摄画面或者所述拍照终端的预览界面的中心点为1016,则可以根据所述中点1015与所述中心点1016之间的距离判断所述待拍摄人物的人脸是否处于所述拍摄画面或所述拍照终端的预览界面的中间区域。Further, the smaller the offset distance between the midpoint position of the line connecting the position of the first facial feature and the position of the second facial feature and the center point position of the shooting picture, it means that the person to be photographed The more centered the avatar is on the shooting screen or the preview interface of the camera terminal, the better the shooting effect will be. Therefore, in the embodiment of the present invention, a predetermined range may be set, so that the offset distance or the difference value may be adjusted within the predetermined range to achieve a better shooting effect. Can refer to Fig. 2 a, it is the photographing interface diagram of described photographing terminal, wherein the midpoint of the line connecting the left eye and the right eye position is 1015, and the center point of the photographing picture or the preview interface of the photographing terminal is 1016, then it can According to the distance between the midpoint 1015 and the center point 1016, it is judged whether the face of the person to be photographed is in the middle area of the photographing picture or the preview interface of the photographing terminal.

步骤S207:生成提示信息,以提示调节摄像头,以使所述人脸处于所述预设区域内。Step S207: Generate prompt information to prompt to adjust the camera so that the face is within the preset area.

具体地,当判断出所述待拍摄人物的人脸未处于所述拍摄画面的预设区域内时,即所述待拍摄人物的人脸未处于所述拍摄画面中的中心区域内,则拍摄终端需要生成提示信息,以提示拍摄者调整摄像头,以使所述待拍摄人物的人脸位置居于所述拍摄画面的预设区域内。Specifically, when it is determined that the face of the person to be photographed is not in the preset area of the photographing picture, that is, the face of the person to be photographed is not in the central area of the photographing picture, then photographing The terminal needs to generate prompt information to prompt the photographer to adjust the camera so that the face position of the person to be photographed is within a preset area of the photographed picture.

进一步地,所述拍照终端可以根据自身音频装置发出语音提示信息,以提示拍摄者调整摄像头,以使所述待拍摄人物的人脸处于所述拍摄画面的预设区域内,在调整所述摄像头的过程中,实时确定所述第一面部特征的位置和所述第二面部特征的位置之间连线的中点位置与所述拍摄画面的中心位置的偏移距离,并不断给出语音提示信息,直到所述偏移距离或所述差值处于预定范围内。其中所述语音提示信息包括两种,一种是提示拍摄者移动所述拍照终端,另一种是提示待拍摄人物移动,语音提醒信息可以提示拍摄者上移、下移、左移、右移等。所述拍照终端也可以生成提示图标,以提示拍摄者调整摄像头,以使待拍摄人物的人脸处于所述拍摄画面的预设区域内,其中提示图标可以包括但不限于:提示箭头,所述提示图标可以提示拍摄者在水平或者垂直等方向上移动,直到所述偏移距离或者所述差值处于预定范围内,提示拍摄者按下按钮完成一次拍照,提示图标可以是从某个位置发出的两个坐标轴线,也可以是从某个位置点发出并指向所述拍摄画面中心点的指向线,或者其他形式,本发明实施例不作具体限定。可参见图2a,为所述拍照终端的拍摄界面图,当所述左眼与右眼的中点位置位于所述拍摄画面中心点位置的斜上方时,生成指向斜上方的箭头,所述箭头可以在所述拍摄画面中的任意位置,提示拍摄者调整摄像头。Further, the photographing terminal can send a voice prompt message according to its own audio device to remind the photographer to adjust the camera so that the face of the person to be photographed is within the preset area of the photographed picture, and when adjusting the camera During the process, the offset distance between the midpoint position of the line between the position of the first facial feature and the position of the second facial feature and the center position of the shooting picture is determined in real time, and the voice is continuously given Prompting information until the offset distance or the difference is within a predetermined range. The voice prompt information includes two types, one is to prompt the photographer to move the camera terminal, and the other is to prompt the person to be photographed to move, and the voice prompt information can prompt the photographer to move up, down, left, and right wait. The camera terminal can also generate a prompt icon to prompt the photographer to adjust the camera so that the face of the person to be photographed is in the preset area of the shooting picture, wherein the prompt icon can include but not limited to: a prompt arrow, the The prompt icon can prompt the photographer to move horizontally or vertically until the offset distance or the difference is within a predetermined range, prompting the photographer to press a button to complete a photo shoot, and the prompt icon can be sent from a certain position The two coordinate axes can also be a pointing line originating from a certain position point and pointing to the center point of the shooting picture, or other forms, which are not specifically limited in this embodiment of the present invention. Refer to Fig. 2a, which is a shooting interface diagram of the camera terminal, when the midpoint position of the left eye and the right eye is located obliquely above the center point of the shooting picture, an arrow pointing obliquely upward is generated, and the arrow The photographer can be prompted to adjust the camera at any position in the shooting picture.

进一步地,如图3示出的是本发明实施例提供的拍照方法的第三实施例的流程示意图,该方法应用于终端,该方法包括:Further, as shown in FIG. 3 is a schematic flowchart of a third embodiment of the photographing method provided by the embodiment of the present invention, the method is applied to a terminal, and the method includes:

步骤S301:在拍照模式下,识别捕捉到的拍摄画面中的人脸面部特征,从而获取所述人脸面部特征中的第一面部特征的位置和第二面部特征的位置,所述第一面部特征与所述第二面部特征为在所述人脸面部特征中相对称的特征;Step S301: In the photographing mode, identify the facial features of the human face in the captured picture, so as to obtain the position of the first facial feature and the position of the second facial feature in the facial features of the human face, the first facial feature The facial features and the second facial features are symmetrical features in the facial features of the human face;

具体地,对于现有拍照终端,例如数码相机或者手机相机,一般均具有人脸识别功能,在所述拍照终端进入拍照模式后,拍照终端根据摄像头捕捉待拍摄人物的人脸,并在拍摄画面或者所述拍照终端的预览界面中通过摄像头识别人脸面部特征,从而获取人脸面部特征中的第一面部特征的位置和第二面部特征的位置,其中所述第一面部特征和第二面部特征为在所述人脸面部特征中相对称的特征,例如左眼和右眼、左耳和右耳等。Specifically, for existing photographing terminals, such as digital cameras or mobile phone cameras, they generally have a face recognition function. After the photographing terminal enters the photographing mode, the photographing terminal captures the face of the person to be photographed according to the camera, and displays it on the photographing screen. Or in the preview interface of the camera terminal, the facial features of the human face are recognized by the camera, so as to obtain the position of the first facial feature and the position of the second facial feature in the facial features of the human face, wherein the first facial feature and the second facial feature Two facial features are features that are symmetrical among the facial features of the human face, such as left and right eyes, left and right ears, and the like.

需要说明的是,当所述待拍摄的人物距离所述摄像头较远时,所述待拍摄人物的第一面部特征以及所述第二面部特征在所述拍摄画面中可以看作两个点,当所述待拍摄的人物距离所述摄像头较近时,所述第一面部特征以及所述第二面部特征在所述拍摄画面中所占的区域面积较大,则需要确定所述第一面部特征的中心点在所述拍摄画面中的第一位置,以及所述第二面部特征的中心点在所述拍摄画面中的第二位置。可以通过在所述第一面部特征的外轮廓形成第一矩形框,通过所述第一矩形框的中心点在所述拍摄画面中的位置确定所述第一面部特征的位置,在所述第二面部特征的外轮廓形成第二矩形框,通过所述第二矩形框的中心点在所述拍摄画面中的位置确定所述第二面部特征的位置。It should be noted that when the person to be photographed is far away from the camera, the first facial feature and the second facial feature of the person to be photographed can be regarded as two points in the photographed picture. , when the person to be photographed is relatively close to the camera, and the area occupied by the first facial feature and the second facial feature in the shooting picture is relatively large, then it is necessary to determine the A center point of a facial feature is at a first position in the shooting frame, and a center point of the second facial feature is at a second position in the shooting frame. A first rectangular frame may be formed on the outer contour of the first facial feature, and the position of the first facial feature may be determined by the position of the center point of the first rectangular frame in the photographed picture. The outer contour of the second facial feature forms a second rectangular frame, and the position of the second facial feature is determined by the position of the center point of the second rectangular frame in the shooting picture.

进一步地,可参见图1a,为所述拍照终端的拍摄界面图,其中所述第一面部特征和所述第二面部特征分别为左眼1011(注:这里的左眼是指人的实际左眼,并不是指屏幕中靠左的眼睛)和右眼1012,拍照终端的摄像头捕捉待拍摄人物的人脸,通过摄像头识别人脸面部特征中的左眼1011和右眼1012,并在所述拍摄画面或者所述拍照终端的预览界面中的左眼外轮廓处形成一个左眼位置对应的矩形框1013,并在右眼外轮廓处形成一个右眼位置对应的矩形框1014,通过获取所述左眼位置对应的矩形框1013的中心点的位置可以得到所述第一面部特征的位置,即左眼位置,通过获取右眼位置对应的矩形框1014的中心点的位置可以得到所述第二面部特征的位置,即右眼位置。Further, please refer to FIG. 1a, which is a photographing interface diagram of the camera terminal, wherein the first facial feature and the second facial feature are respectively the left eye 1011 (note: the left eye here refers to the actual Left eye, not referring to the left eye in the screen) and right eye 1012, the camera of the camera terminal captures the face of the person to be photographed, and recognizes the left eye 1011 and right eye 1012 in the facial features of the person through the camera, and A rectangular frame 1013 corresponding to the position of the left eye is formed at the outer contour of the left eye in the shooting screen or the preview interface of the photographing terminal, and a rectangular frame 1014 corresponding to the position of the right eye is formed at the outer contour of the right eye. By obtaining the The position of the center point of the rectangular frame 1013 corresponding to the position of the left eye can obtain the position of the first facial feature, that is, the position of the left eye, and the position of the center point of the rectangular frame 1014 corresponding to the position of the right eye can be obtained. The location of the second facial feature, the right eye location.

步骤S303:获取所述第一面部特征的位置与所述拍摄画面的第一边缘之间的第一距离;Step S303: Obtain a first distance between the position of the first facial feature and the first edge of the photographed picture;

具体地,拍照终端通过在所述拍摄画面中获取所述第一面部特征与所述拍摄画面或所述拍照终端的预览界面的第一边缘之间的第一距离,例如通过获取待拍摄人物的左眼到拍摄画面的右边缘(或左边缘,或上边缘,或下边缘)的距离或者通过获取待拍摄人物的左眼到所述拍照终端的预览界面的右边缘(或左边缘,或上边缘,或下边缘)的距离得到所述第一面部特征与所述拍摄画面的第一边缘之间的第一距离。Specifically, the photographing terminal acquires the first distance between the first facial feature and the first edge of the photographing picture or the preview interface of the photographing terminal in the photographing picture, for example, by acquiring the person to be photographed The distance from the left eye of the person to the right edge (or the left edge, or the upper edge, or the lower edge) of the shooting screen or by obtaining the left eye of the person to be photographed to the right edge (or left edge, or The distance between the upper edge, or the lower edge) obtains a first distance between the first facial feature and the first edge of the captured image.

进一步地,可参见图3a,为所述拍照终端的拍摄界面图,第一边缘为所述拍照终端的预览界面的右边界1017,左眼到右边界距离1019。Further, please refer to FIG. 3 a , which is a photographing interface diagram of the photographing terminal, the first edge is the right border 1017 of the preview interface of the photographing terminal, and the distance 1019 from the left eye to the right border.

步骤S305:获取所述第二面部特征的位置与所述拍摄画面的第二边缘之间的第二距离;Step S305: Obtain a second distance between the position of the second facial feature and the second edge of the photographed picture;

具体地,拍照终端通过在所述拍摄画面中获取所述第二面部特征与所述拍摄画面或所述拍照终端的预览界面的第二边缘之间的第二距离,例如通过获取待拍摄人物的右眼到拍摄画面的左边缘(或右边缘,或下边缘,或上边缘)的距离或者通过获取待拍摄人物的右眼到所述拍照终端的预览界面的左边缘(或右边缘,或下边缘,或上边缘)的距离得到所述第二面部特征与所述拍摄画面的第二边缘之间的第二距离。其中,当所述第一边缘为所述拍摄画面或所述拍照终端的预览界面的右边缘时,所述第二边缘为所述拍摄画面或所述拍照终端的预览界面的左边缘,当所述第一边缘为所述拍摄画面或所述拍照终端的预览界面的上边缘时,所述第二边缘为所述拍摄画面或所述拍照终端的预览界面的下边缘,即所述第一边缘与所述第二边缘为所述拍照画面或所述拍照终端的预览界面中的两个相对的边缘。Specifically, the photographing terminal acquires the second distance between the second facial feature and the second edge of the photographing picture or the preview interface of the photographing terminal in the photographing picture, for example, by acquiring the The distance from the right eye to the left edge (or right edge, or lower edge, or upper edge) of the shooting picture or by obtaining the right eye of the person to be photographed to the left edge (or right edge, or lower edge) of the preview interface of the photographing terminal edge, or upper edge) to obtain a second distance between the second facial feature and the second edge of the photographed frame. Wherein, when the first edge is the right edge of the shooting screen or the preview interface of the camera terminal, the second edge is the left edge of the shooting screen or the preview interface of the camera terminal, when the When the first edge is the upper edge of the shooting screen or the preview interface of the camera terminal, the second edge is the lower edge of the shooting screen or the preview interface of the camera terminal, that is, the first edge The second edge is two opposite edges in the photographing frame or the preview interface of the photographing terminal.

进一步地,可参见图3a,为所述拍照终端的拍摄界面图,第二边缘为所述拍照终端的预览界面的左边界1018,右眼到左边界距离1020。Further, please refer to FIG. 3 a , which is a photographing interface diagram of the photographing terminal, the second edge is the left border 1018 of the preview interface of the photographing terminal, and the distance 1020 from the right eye to the left border.

步骤S307:根据所述第一距离以及所述第二距离判断所述人脸是否处于所述拍摄画面的预设区域内;Step S307: According to the first distance and the second distance, it is judged whether the human face is within a preset area of the shooting picture;

具体地,根据获取到的所述第一距离以及所述第二距离,判断所述第一距离与所述第二距离是否相同,或者所述第一距离与所述第二距离之间的差值是否在预定范围内,若是,则表明所述待拍摄人物的人脸处于所述拍摄画面或者所述拍照终端的预览界面的中间区域。若否,则表明所述待拍摄人物的人脸未处于所述拍摄画面或所述拍照终端的预览界面的中间区域,当所述待拍摄人物的人脸处于所述拍摄画面或所述拍照终端的预览界面的预设区域内时,则表明拍照的拍摄效果较佳,不需要给出提示,拍摄者直接拍照即可;当所述待拍摄人物的人脸未处于所述拍摄画面或所述拍照终端的预览界面的预设区域内时,表示所述待拍摄人物的人脸在所述拍摄画面或所述拍照终端的预览界面中的偏移较大,拍照的拍摄效果不佳,因此,所述拍照终端通过生成提示信息,提示拍摄者调整摄像头,以使所述待拍摄人物的人脸处于所述拍摄画面的预设区域内。如果判断出人脸未处于所述拍摄画面的预设区域内,进入步骤S309,如果判断出人脸处于所述拍摄画面的预设区域内,可以生成拍照的提示信息,提示用户可以直接拍照,本发明实施例以结束本流程为例。Specifically, according to the obtained first distance and the second distance, it is judged whether the first distance and the second distance are the same, or the difference between the first distance and the second distance Whether the value is within a predetermined range, if yes, it indicates that the face of the person to be photographed is in the middle area of the photographing picture or the preview interface of the photographing terminal. If not, it indicates that the face of the person to be photographed is not in the middle area of the shooting screen or the preview interface of the photographing terminal, when the face of the person to be photographed is in the photographing screen or the photographing terminal If it is within the preset area of the preview interface, it indicates that the shooting effect of the photo is better, and there is no need to give a prompt, and the photographer can directly take a photo; When it is within the preset area of the preview interface of the camera terminal, it means that the face of the person to be photographed has a large offset in the shooting screen or the preview interface of the camera terminal, and the shooting effect of the camera is not good. Therefore, The photographing terminal prompts the photographer to adjust the camera by generating prompt information so that the face of the person to be photographed is within a preset area of the photographed picture. If it is determined that the human face is not in the preset area of the shooting picture, enter step S309, if it is judged that the human face is in the preset area of the shooting picture, a prompt message for taking pictures can be generated, prompting the user to take pictures directly, In this embodiment of the present invention, the end of this process is taken as an example.

进一步地,可参见图3a,为所述拍照终端的拍摄界面图,根据左眼到右边界的距离1019,以及右眼到左边界的距离1020之间的差值判断所述待拍摄人物的人脸是否处于所述拍摄画面的中心区域。Further, please refer to FIG. 3 a , which is a shooting interface diagram of the camera terminal, judging the person to be photographed according to the difference between the distance 1019 from the left eye to the right boundary and the distance 1020 from the right eye to the left boundary Whether the face is in the central area of the shooting frame.

步骤S309:生成提示信息,以提示调节摄像头,以使所述人脸处于所述预设区域内。Step S309: Generate prompt information to prompt to adjust the camera so that the face is within the preset area.

具体地,当判断出所述待拍摄人物的人脸未处于所述拍摄画面的预设区域内时,即所述待拍摄人物的人脸未处于所述拍摄画面中的中心区域内,则拍摄终端需要生成提示信息,以提示拍摄者调整摄像头,以使所述待拍摄人物的人脸位置居于所述拍摄画面的预设区域内。Specifically, when it is determined that the face of the person to be photographed is not in the preset area of the photographing picture, that is, the face of the person to be photographed is not in the central area of the photographing picture, then photographing The terminal needs to generate prompt information to prompt the photographer to adjust the camera so that the face position of the person to be photographed is within a preset area of the photographed picture.

进一步地,所述拍照终端可以根据自身音频装置发出语音提示信息,以提示拍摄者调整摄像头,以使所述待拍摄人物的人脸处于所述拍摄画面的预设区域内,在调整所述摄像头的过程中,实时确定所述第一面部特征的位置和所述第二面部特征的位置之间连线的中点位置与所述拍摄画面的中心位置的偏移距离,并不断给出语音提示信息,直到所述偏移距离或所述差值处于预定范围内。其中所述语音提示信息包括两种,一种是提示拍摄者移动所述拍照终端,另一种是提示待拍摄人物移动,语音提醒信息可以提示拍摄者上移、下移、左移、右移等。所述拍照终端也可以生成提示图标,以提示拍摄者调整摄像头,以使待拍摄人物的人脸处于所述拍摄画面的预设区域内,其中提示图标可以包括但不限于:提示箭头,所述提示图标可以提示拍摄者在水平或者垂直等方向上移动,直到所述偏移距离或者所述差值处于预定范围内,提示拍摄者按下按钮完成一次拍照,提示图标可以是从某个位置发出的两个坐标轴线,也可以是从某个位置点发出并指向所述拍摄画面中心点的指向线,或者其他形式,本发明实施例不作具体限定。可参见图3a,为所述拍照终端的拍摄界面图,所述距离1019小于1020,则生成指向水平向右的箭头。Further, the photographing terminal can send a voice prompt message according to its own audio device to remind the photographer to adjust the camera so that the face of the person to be photographed is within the preset area of the photographed picture, and when adjusting the camera During the process, the offset distance between the midpoint position of the line between the position of the first facial feature and the position of the second facial feature and the center position of the shooting picture is determined in real time, and the voice is continuously given Prompting information until the offset distance or the difference is within a predetermined range. The voice prompt information includes two types, one is to prompt the photographer to move the camera terminal, and the other is to prompt the person to be photographed to move, and the voice prompt information can prompt the photographer to move up, down, left, and right wait. The camera terminal can also generate a prompt icon to prompt the photographer to adjust the camera so that the face of the person to be photographed is in the preset area of the shooting picture, wherein the prompt icon can include but not limited to: a prompt arrow, the The prompt icon can prompt the photographer to move horizontally or vertically until the offset distance or the difference is within a predetermined range, prompting the photographer to press a button to complete a photo shoot, and the prompt icon can be sent from a certain position The two coordinate axes can also be a pointing line originating from a certain position point and pointing to the center point of the shooting picture, or other forms, which are not specifically limited in this embodiment of the present invention. Referring to FIG. 3 a , which is a photographing interface diagram of the photographing terminal, if the distance 1019 is less than 1020 , an arrow pointing horizontally to the right is generated.

进一步地,如图4示出的是本发明实施例提供的拍照方法的第四实施例的流程示意图,该方法应用于终端,该方法包括:Further, as shown in FIG. 4 is a schematic flowchart of a fourth embodiment of a photographing method provided by an embodiment of the present invention. The method is applied to a terminal, and the method includes:

步骤S401:在拍照模式下,识别捕捉到的拍摄画面中的人脸面部特征,通过建立坐标位置关系获取所述第一面部特征的位置在所述坐标位置关系中的第一坐标位置,并获取所述第二面部特征的位置在所述坐标位置关系中的第二坐标位置;Step S401: In the photographing mode, identify the facial features of the captured image, obtain the first coordinate position of the first facial feature in the coordinate position relationship by establishing a coordinate position relationship, and acquiring a second coordinate position of the position of the second facial feature in the coordinate position relationship;

具体地,对于现有拍照终端,例如数码相机或者手机相机,一般均具有人脸识别功能,在所述拍照终端进入拍照模式后,拍照终端根据摄像头捕捉待拍摄人物的人脸,并在拍摄画面或者所述拍照终端的预览界面中通过摄像头识别人脸面部特征,从而获取人脸面部特征中的第一面部特征的位置和第二面部特征的位置,其中所述第一面部特征和第二面部特征为在所述人脸面部特征中相对称的特征,例如左眼和右眼、左耳和右耳等。可以通过建立坐标位置关系或者建立坐标轴,获取所述第一面部特征的位置在所述坐标位置关系或坐标轴中的第一坐标位置,获取所述第二面部特征的位置在所述坐标位置关系或坐标轴中的第二坐标位置,可以将所述拍摄画面或所述拍照终端的预览界面中最左下角的点设为坐标轴的原点,以所述拍摄画面或所述拍照终端的预览界面的水平方向为坐标轴的横轴方向,以所述拍摄画面或所述拍照终端的预览界面的垂直方向为坐标轴的纵轴方向建立坐标轴,在所述坐标轴中,获取所述第一面部特征的位置在所述坐标轴中的第一坐标位置(横轴坐标位置或纵轴坐标位置),并获取所述第二面部特征的位置在所述坐标轴中的第二坐标位置(横轴坐标位置或纵轴坐标位置)。Specifically, for existing photographing terminals, such as digital cameras or mobile phone cameras, they generally have a face recognition function. After the photographing terminal enters the photographing mode, the photographing terminal captures the face of the person to be photographed according to the camera, and displays it on the photographing screen. Or in the preview interface of the camera terminal, the facial features of the human face are recognized by the camera, so as to obtain the position of the first facial feature and the position of the second facial feature in the facial features of the human face, wherein the first facial feature and the second facial feature Two facial features are features that are symmetrical among the facial features of the human face, such as left and right eyes, left and right ears, and the like. The first coordinate position of the position of the first facial feature in the coordinate position relationship or the coordinate axis may be obtained by establishing a coordinate position relationship or a coordinate axis, and the position of the second facial feature in the coordinate position may be obtained. For the positional relationship or the second coordinate position in the coordinate axis, the point in the lower left corner of the shooting screen or the preview interface of the camera terminal can be set as the origin of the coordinate axis, and the shooting screen or the camera terminal The horizontal direction of the preview interface is the horizontal axis direction of the coordinate axis, and the vertical axis direction of the coordinate axis is established with the vertical direction of the shooting picture or the preview interface of the photographing terminal as the coordinate axis, and in the coordinate axis, the The position of the first facial feature is in the first coordinate position (horizontal axis coordinate position or vertical axis coordinate position) in the coordinate axis, and the second coordinate position of the position of the second facial feature in the coordinate axis is obtained Position (horizontal axis coordinate position or vertical axis coordinate position).

进一步地,当所述第一面部特征和所述第二面部特征为左眼和右眼时,拍摄终端通过摄像头捕捉待拍摄人物的人脸,通过摄像头识别人脸面部特征中的左眼和右眼,并在拍摄画面或者拍照终端的预览界面中的左眼外轮廓处形成一个矩形框,并在右眼外轮廓处形成另一个矩形框,通过获取左眼矩形框中心点的位置可以得到第一面部特征的位置,即左眼位置,通过获取右眼矩形框中心点的位置可以得到第二面部特征的位置,即右眼位置。在所述坐标轴中,获取所述左眼位置在所述坐标轴中的第一坐标位置(横轴坐标位置或纵轴坐标位置),并获取所述右眼位置在所述坐标轴中的第二坐标位置(横轴坐标位置或纵轴坐标位置)。Further, when the first facial feature and the second facial feature are the left eye and the right eye, the shooting terminal captures the face of the person to be photographed through the camera, and recognizes the left eye and the right eye in the facial features of the human face through the camera. Right eye, and form a rectangular frame at the outer contour of the left eye in the shooting screen or the preview interface of the camera terminal, and form another rectangular frame at the outer contour of the right eye, which can be obtained by obtaining the center point of the left eye rectangular frame The position of the first facial feature, that is, the position of the left eye, and the position of the second facial feature, that is, the position of the right eye can be obtained by obtaining the position of the center point of the right eye rectangle. In the coordinate axis, obtain the first coordinate position (horizontal axis coordinate position or vertical axis coordinate position) of the left eye position in the coordinate axis, and obtain the position of the right eye in the coordinate axis The second coordinate position (a horizontal axis coordinate position or a vertical axis coordinate position).

需要说明的是,当所述待拍摄的人物距离所述摄像头较远时,所述待拍摄人物的第一面部特征以及所述第二面部特征在所述拍摄画面中可以看作两个点,当所述待拍摄的人物距离所述摄像头较近时,所述第一面部特征以及所述第二面部特征在所述拍摄画面中所占的区域面积较大,则需要确定所述第一面部特征的中心点在所述拍摄画面中的第一位置,以及所述第二面部特征的中心点在所述拍摄画面中的第二位置。可以通过在所述第一面部特征的外轮廓形成第一矩形框,通过所述第一矩形框的中心点在所述拍摄画面中的位置确定所述第一面部特征的位置,在所述第二面部特征的外轮廓形成第二矩形框,通过所述第二矩形框的中心点在所述拍摄画面中的位置确定所述第二面部特征的位置。It should be noted that when the person to be photographed is far away from the camera, the first facial feature and the second facial feature of the person to be photographed can be regarded as two points in the photographed picture. , when the person to be photographed is relatively close to the camera, and the area occupied by the first facial feature and the second facial feature in the shooting picture is relatively large, then it is necessary to determine the A center point of a facial feature is at a first position in the shooting frame, and a center point of the second facial feature is at a second position in the shooting frame. A first rectangular frame may be formed on the outer contour of the first facial feature, and the position of the first facial feature may be determined by the position of the center point of the first rectangular frame in the photographed picture. The outer contour of the second facial feature forms a second rectangular frame, and the position of the second facial feature is determined by the position of the center point of the second rectangular frame in the shooting picture.

步骤S403:获取所述第一坐标位置到所述第一边缘之间的第一距离,并获取所述第二坐标到所述第二边缘之间的第二距离;Step S403: Obtain a first distance between the first coordinate position and the first edge, and obtain a second distance between the second coordinate and the second edge;

具体地,通过在所述坐标轴中获取到的所述第一坐标位置(横轴坐标位置或纵轴坐标位置),以及所述第二坐标位置(横轴坐标位置或纵轴坐标位置)获取所述第一坐标位置到所述第一边缘之间的第一距离,并获取所述第二坐标位置到所述第二边缘之间的第二距离。例如在所述坐标轴中通过获取所述待拍摄人物的左眼位置到所述拍摄画面的右边缘(或左边缘,或上边缘,或下边缘)的距离或者通过获取待拍摄人物的左眼到所述拍照终端的预览界面的右边缘(或左边缘,或上边缘,或下边缘)的距离得到所述第一面部特征与所述拍摄画面的第一边缘之间的第一距离,以及获取待拍摄人物的右眼位置到拍摄画面的左边缘(或右边缘,或下边缘,或上边缘)的距离或者通过获取待拍摄人物的右眼到所述拍照终端的预览界面的左边缘(或右边缘,或下边缘,或上边缘)的距离得到所述第二面部特征与所述拍摄画面的第二边缘之间的第二距离。Specifically, through the first coordinate position (horizontal axis coordinate position or vertical axis coordinate position) and the second coordinate position (horizontal axis coordinate position or vertical axis coordinate position) acquired in the coordinate axis A first distance between the first coordinate position and the first edge is obtained, and a second distance between the second coordinate position and the second edge is acquired. For example, in the coordinate axis, by obtaining the distance from the position of the left eye of the person to be photographed to the right edge (or left edge, or upper edge, or lower edge) of the photographed picture or by obtaining the left eye of the person to be photographed The distance to the right edge (or left edge, or upper edge, or lower edge) of the preview interface of the camera terminal obtains the first distance between the first facial feature and the first edge of the shooting picture, And obtain the distance from the right eye position of the person to be photographed to the left edge (or the right edge, or the lower edge, or the upper edge) of the photographed picture or by obtaining the right eye of the person to be photographed to the left edge of the preview interface of the photographing terminal (or the distance from the right edge, or the lower edge, or the upper edge) to obtain a second distance between the second facial feature and the second edge of the photographed picture.

步骤S405:根据所述第一距离与所述第二距离的差值是否小于或者等于预设阈值判断所述人脸是否处于所述拍摄画面的预设区域内;Step S405: According to whether the difference between the first distance and the second distance is less than or equal to a preset threshold, it is judged whether the human face is in a preset area of the shooting picture;

具体地,根据获取到的所述第一距离以及所述第二距离,判断所述第一距离与所述第二距离之间的差值是否在预设范围内,若是,则表明所述待拍摄人物的人脸处于所述拍摄画面或者所述拍照终端的预览界面的中间区域。若否,则表明所述待拍摄人物的人脸未处于所述拍摄画面或所述拍照终端的预览界面的中间区域,当待拍摄人物的人脸处于所述拍摄画面或所述拍照终端的预览界面的预设区域内时,则表明拍照的拍摄效果较佳,不需要给出提示,拍摄者直接拍照即可;当待拍摄人物的人脸未处于所述拍摄画面或所述拍照终端的预览界面的预设区域内时,表示所述待拍摄人物的人脸在所述拍摄画面中的偏移较大,拍照的拍摄效果不佳,因此,所述拍照终端通过生成提示信息,提示拍摄者调整摄像头,以使所述待拍摄人物的人脸处于所述拍摄画面的预设区域内。如果判断出人脸未处于所述拍摄画面的预设区域内,进入步骤S407,如果判断出人脸处于所述拍摄画面的预设区域内,可以生成拍照的提示信息,提示用户可以直接拍照,本发明实施例以结束本流程为例。Specifically, according to the obtained first distance and the second distance, it is judged whether the difference between the first distance and the second distance is within a preset range, and if so, it indicates that the pending The face of the photographed person is in the middle area of the photographing picture or the preview interface of the photographing terminal. If not, it indicates that the human face of the person to be photographed is not in the middle area of the shooting picture or the preview interface of the photographing terminal, when the human face of the person to be photographed is in the photographing picture or the preview of the photographing terminal When it is within the preset area of the interface, it indicates that the shooting effect of the photo is better, and there is no need to give a prompt, and the photographer can directly take a photo; When it is within the preset area of the interface, it means that the face of the person to be photographed has a large offset in the photographing picture, and the photographing effect of photographing is not good. Therefore, the photographing terminal prompts the photographer by generating prompt information The camera is adjusted so that the face of the person to be photographed is within a preset area of the photographed image. If it is determined that the human face is not in the preset area of the shooting picture, enter step S407, if it is determined that the human face is in the preset area of the shooting picture, a prompt message for taking pictures can be generated, prompting the user to take pictures directly, In this embodiment of the present invention, the end of this process is taken as an example.

步骤S407:生成提示信息,以提示调节摄像头,以使所述人脸处于所述预设区域内。Step S407: Generate prompt information to prompt to adjust the camera so that the face is within the preset area.

具体地,当判断出所述待拍摄人物的人脸未处于所述拍摄画面的预设区域内时,即所述待拍摄人物的人脸未处于所述拍摄画面中的中心区域内,则拍摄终端需要生成提示信息,以提示拍摄者调整摄像头,以使所述待拍摄人物的人脸位置居于所述拍摄画面的预设区域内。Specifically, when it is determined that the face of the person to be photographed is not in the preset area of the photographing picture, that is, the face of the person to be photographed is not in the central area of the photographing picture, then photographing The terminal needs to generate prompt information to prompt the photographer to adjust the camera so that the face position of the person to be photographed is within a preset area of the photographed picture.

进一步地,所述拍照终端可以根据自身音频装置发出语音提示信息,以提示拍摄者调整摄像头,以使所述待拍摄人物的人脸处于所述拍摄画面的预设区域内,在调整所述摄像头的过程中,实时确定所述第一面部特征的位置和所述第二面部特征的位置之间连线的中点位置与所述拍摄画面的中心位置的偏移距离,并不断给出语音提示信息,直到所述偏移距离或所述差值处于预定范围内。其中所述语音提示信息包括两种,一种是提示拍摄者移动所述拍照终端,另一种是提示待拍摄人物移动,语音提醒信息可以提示拍摄者上移、下移、左移、右移等。所述拍照终端也可以生成提示图标,以提示拍摄者调整摄像头,以使待拍摄人物的人脸处于所述拍摄画面的预设区域内,其中提示图标可以包括但不限于:提示箭头,所述提示图标可以提示拍摄者在水平或者垂直等方向上移动,直到所述偏移距离或者所述差值处于预定范围内,提示拍摄者按下按钮完成一次拍照,提示图标可以是从某个位置发出的两个坐标轴线,也可以是从某个位置点发出并指向所述拍摄画面中心点的指向线,或者其他形式,本发明实施例不作具体限定。Further, the photographing terminal can send a voice prompt message according to its own audio device to remind the photographer to adjust the camera so that the face of the person to be photographed is within the preset area of the photographed picture, and when adjusting the camera During the process, the offset distance between the midpoint position of the line between the position of the first facial feature and the position of the second facial feature and the center position of the shooting picture is determined in real time, and the voice is continuously given Prompting information until the offset distance or the difference is within a predetermined range. The voice prompt information includes two types, one is to prompt the photographer to move the camera terminal, and the other is to prompt the person to be photographed to move, and the voice prompt information can prompt the photographer to move up, down, left, and right wait. The camera terminal can also generate a prompt icon to prompt the photographer to adjust the camera so that the face of the person to be photographed is in the preset area of the shooting picture, wherein the prompt icon can include but not limited to: a prompt arrow, the The prompt icon can prompt the photographer to move horizontally or vertically until the offset distance or the difference is within a predetermined range, prompting the photographer to press a button to complete a photo shoot, and the prompt icon can be sent from a certain position The two coordinate axes can also be a pointing line originating from a certain position point and pointing to the center point of the shooting picture, or other forms, which are not specifically limited in this embodiment of the present invention.

更进一步地,可参见图4a,为本发明实施例中的坐标轴的示意图,其中所述拍摄画面中最左下角位置的点为坐标轴原点,坐标值为(0,0),设右眼坐标为(x1,y1),左眼坐标为(x2,y2),设所述拍摄画面的宽度为X,长度为Y,则可以通过坐标值及所述拍摄画面的宽度或长度计算所述待拍摄人物的头像是否处于所述拍摄画面的中心区域内,通过判断y1-y2的正负值提示拍摄者的调整方向,如果y1-y2>0,则提示拍摄者顺时针旋转所述拍摄画面或所述拍照终端的预览界面;如果y1-y2<0,则提示拍摄者逆时针旋转所述拍摄画面或所述拍照终端的预览界面;也可以通过判断在某个方向上的坐标关系提示所述拍摄者的调整方式,例如通过判断(X-x2)-x1的正负来判断所述拍摄画面或所述拍照终端的预览界面应该水平左移还是水平右移,当(X-x2)-x1>0时,提示拍摄者将所述拍摄画面或所述拍照终端的预览界面水平左移;当(X-x2)-x1<0时,提示拍摄者将所述拍摄画面或所述拍照终端的预览界面水平右移。Furthermore, please refer to Fig. 4a, which is a schematic diagram of the coordinate axes in the embodiment of the present invention, wherein the point at the bottom left corner in the shooting picture is the origin of the coordinate axes, and the coordinate value is (0,0). Let the right eye The coordinates are (x1, y1), the coordinates of the left eye are (x2, y2), if the width of the shooting picture is X, and the length is Y, then the described waiting time can be calculated by the coordinate value and the width or length of the shooting picture. Whether the portrait of the person being photographed is in the central area of the shooting picture, prompt the photographer to adjust the direction by judging the positive and negative values of y1-y2, if y1-y2>0, prompt the photographer to rotate the shooting picture clockwise or The preview interface of the camera terminal; if y1-y2<0, the photographer is prompted to rotate the shooting screen or the preview interface of the camera terminal counterclockwise; the coordinate relationship in a certain direction can also be prompted to The adjustment method of the photographer, for example, by judging whether (X-x2)-x1 is positive or negative, it is judged whether the shooting screen or the preview interface of the camera terminal should be moved horizontally to the left or horizontally to the right, when (X-x2)-x1 When >0, the photographer is prompted to move the shooting screen or the preview interface of the camera terminal horizontally to the left; when (X-x2)-x1<0, the photographer is prompted to move the shooting screen or the preview interface of the camera terminal The preview interface moves horizontally to the right.

上述详细阐述了本发明实施例的方法,下面为了便于更好地实施本发明实施例的上述方案,相应地,下面还提供用于配合实施上述方案的相关装置。The method of the embodiment of the present invention has been described in detail above. In order to facilitate better implementation of the above-mentioned solution of the embodiment of the present invention, correspondingly, the following also provides related devices for coordinating the implementation of the above-mentioned solution.

如图5示出的本发明实施例提供的拍照装置的结构示意图,拍照装置50包括:获取模块501、判断模块503和提示模块505,其中Fig. 5 is a schematic structural diagram of a photographing device provided by an embodiment of the present invention. The photographing device 50 includes: an acquisition module 501, a judgment module 503, and a prompt module 505, wherein

获取模块501,用于在拍照模式下,识别捕捉到的拍摄画面中的人脸面部特征,从而获取所述人脸面部特征中的第一面部特征的位置和第二面部特征的位置,所述第一面部特征与所述第二面部特征为在所述人脸面部特征中相对称的特征;The acquisition module 501 is configured to identify the facial features of the human face in the captured picture in the photographing mode, so as to acquire the position of the first facial feature and the position of the second facial feature in the facial features of the human face. The first facial feature and the second facial feature are symmetrical features in the facial features of the human face;

判断模块503,用于根据所述第一面部特征的位置和所述第二面部特征的位置判断人脸是否处于所述拍摄画面的预设区域内;A judging module 503, configured to judge whether the human face is within a preset area of the photographed picture according to the position of the first facial feature and the position of the second facial feature;

提示单元505,用于若所述检测单元检测出所述人脸未处于所述拍摄画面的预设区域内,生成提示信息,以提示调节摄像头,以使所述人脸处于所述预设区域内。A prompting unit 505, configured to generate prompting information if the detection unit detects that the human face is not in the preset area of the shooting picture, to prompt to adjust the camera so that the human face is in the preset area Inside.

可理解的是,本实施例的拍照装置50的各功能模块的功能可根据上述图1方法实施例的方法具体实现,此处不再赘述。It can be understood that the functions of each functional module of the photographing device 50 in this embodiment can be specifically implemented according to the method in the above-mentioned method embodiment in FIG. 1 , which will not be repeated here.

进一步地,如图6示出的本发明实施例提供的判断模块的第一实施例的结构示意图,所述判断模块503可以包括:第一获取单元5031和第一判断单元5033,其中Further, as shown in FIG. 6 , which is a schematic structural diagram of the first embodiment of the judging module provided by the embodiment of the present invention, the judging module 503 may include: a first acquiring unit 5031 and a first judging unit 5033, wherein

第一获取单元5031,用于获取所述第一面部特征的位置与所述第二面部特征的位置连线的中点位置;The first acquiring unit 5031 is configured to acquire the position of the midpoint of the line connecting the position of the first facial feature and the position of the second facial feature;

第一判断单元5033,用于根据所述中点位置与所述拍摄画面的中心点位置之间的偏移距离判断所述人脸是否处于所述拍摄画面的预设区域内。The first judging unit 5033 is configured to judge whether the human face is within a preset area of the shooting picture according to an offset distance between the midpoint position and the center point position of the shooting picture.

可理解的是,本实施例的判断模块503的各功能模块的功能可根据上述图2方法实施例的方法具体实现,此处不再赘述。It can be understood that the functions of each functional module of the judging module 503 in this embodiment can be specifically implemented according to the method in the above-mentioned method embodiment in FIG. 2 , which will not be repeated here.

进一步地,如图7示出的本发明实施例提供的判断模块的第二实施例的结构示意图,所述判断模块503可以包括:第二获取单元5035、第三获取单元5037和第二判断单元5039,其中Further, as shown in FIG. 7 , a schematic structural diagram of the second embodiment of the judging module provided by the embodiment of the present invention, the judging module 503 may include: a second acquiring unit 5035, a third acquiring unit 5037, and a second judging unit 5039, of which

第二获取单元5035,用于获取所述第一面部特征的位置与所述拍摄画面的第一边缘之间的第一距离;The second acquiring unit 5035 is configured to acquire a first distance between the position of the first facial feature and the first edge of the photographed picture;

第三获取单元5037,用于获取所述第二面部特征的位置与所述拍摄画面的第二边缘之间的第二距离;A third acquiring unit 5037, configured to acquire a second distance between the position of the second facial feature and the second edge of the photographed picture;

第二判断单元5039用于根据所述第一距离以及所述第二距离判断所述人脸是否处于所述拍摄画面的预设区域内。The second judging unit 5039 is configured to judge whether the human face is within a preset area of the shooting frame according to the first distance and the second distance.

可理解的是,本实施例的判断模块503的各功能模块的功能可根据上述图3方法实施例的方法具体实现,此处不再赘述。It can be understood that the functions of each functional module of the judging module 503 in this embodiment can be specifically implemented according to the method in the above-mentioned method embodiment in FIG. 3 , which will not be repeated here.

进一步地,如图8示出的本发明实施例提供的判断模块的第三实施例的结构示意图,所述判断模块503可以包括:第四获取单元50311和第三判断单元50313,其中Further, as shown in FIG. 8 , which is a schematic structural diagram of the third embodiment of the judging module provided by the embodiment of the present invention, the judging module 503 may include: a fourth acquiring unit 50311 and a third judging unit 50313, wherein

第四获取单元517,用于获取所述第一坐标位置到所述第一边缘之间的第一距离,并获取所述第二坐标到所述第二边缘之间的第二距离;A fourth acquiring unit 517, configured to acquire a first distance from the first coordinate position to the first edge, and acquire a second distance from the second coordinate to the second edge;

第三判断单元519,用于根据所述第一距离与所述第二距离的差值是否小于或者等于预设阈值判断所述人脸是否处于所述拍摄画面的预设区域内;The third judging unit 519 is configured to judge whether the human face is in a preset area of the shooting picture according to whether the difference between the first distance and the second distance is less than or equal to a preset threshold;

可理解的是,本实施例的判断模块503的各功能模块的功能可根据上述图4方法实施例的方法具体实现,此处不再赘述。It can be understood that the functions of each functional module of the judging module 503 in this embodiment can be specifically implemented according to the method in the method embodiment in FIG. 4 , and details are not repeated here.

综上所述,通过实施本发明实施例,在拍照模式下,通过识别拍摄画面中待拍摄人物的人脸面部特征,获取人脸面部特征中两个相对称的面部特征在拍摄画面中的位置,从而获取两个相对称的面部特征分别到拍摄画面中的两个边缘之间的距离,根据到两个边缘之间的距离判断待拍摄人物的人脸是否处于拍摄画面的中间位置,从而生成提示信息,以使拍摄者根据提示信息调整摄像头,或者提示待拍摄者进行移动,从而将待拍摄者的人脸位置居于拍摄画面的中间位置,以达到更好的拍摄效果。To sum up, by implementing the embodiment of the present invention, in the photographing mode, by identifying the facial features of the person to be photographed in the photographing picture, the positions of two symmetrical facial features in the photographing picture are obtained. , so as to obtain the distances between two symmetrical facial features and the two edges in the shooting picture, and judge whether the face of the person to be photographed is in the middle of the shooting picture according to the distance to the two edges, thereby generating Prompt information, so that the photographer adjusts the camera according to the prompt information, or prompts the person to be photographed to move, so that the face position of the person to be photographed is in the middle of the shooting screen to achieve a better shooting effect.

本发明所有实施例中的模块或子模块,可以通过通用集成电路,例如CPU(Central Processing Unit,中央处理器),或通过ASIC(Application SpecificIntegrated Circuit,专用集成电路)来实现。The modules or sub-modules in all embodiments of the present invention can be realized by a general-purpose integrated circuit, such as a CPU (Central Processing Unit, central processing unit), or by an ASIC (Application Specific Integrated Circuit, application-specific integrated circuit).

本发明实施例的方法的步骤顺序可以根据实际需要进行调整、合并或删减。本发明实施例的终端的模块可以根据实际需要进行整合、进一步划分或删减。The sequence of steps in the method of the embodiment of the present invention may be adjusted, combined or deleted according to actual needs. The modules of the terminal in the embodiment of the present invention can be integrated, further divided or deleted according to actual needs.

本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,所述的程序可存储于一计算机可读取存储介质中,该程序在执行时,可包括如上述各方法的实施例的流程。其中,所述的存储介质可为磁碟、光盘、只读存储记忆体(Read-Only Memory,ROM)或随机存储记忆体(Random Access Memory,RAM)等。Those of ordinary skill in the art can understand that all or part of the processes in the methods of the above embodiments can be implemented through computer programs to instruct related hardware, and the programs can be stored in a computer-readable storage medium. During execution, it may include the processes of the embodiments of the above-mentioned methods. Wherein, the storage medium may be a magnetic disk, an optical disk, a read-only memory (Read-Only Memory, ROM) or a random access memory (Random Access Memory, RAM), etc.

以上所揭露的仅为本发明一种较佳实施例而已,当然不能以此来限定本发明之权利范围,本领域普通技术人员可以理解实现上述实施例的全部或部分流程,并依本发明权利要求所作的等同变化,仍属于发明所涵盖的范围。What is disclosed above is only a preferred embodiment of the present invention, and of course it cannot limit the scope of rights of the present invention. Those of ordinary skill in the art can understand all or part of the process of realizing the above embodiments, and according to the rights of the present invention The equivalent changes required still belong to the scope covered by the invention.

Claims (10)

Translated fromChinese
1.一种拍照方法,其特征在于,包括:1. A method for taking pictures, characterized in that, comprising:在拍照模式下,识别捕捉到的拍摄画面中的人脸面部特征,从而获取所述人脸面部特征中的第一面部特征的位置和第二面部特征的位置,所述第一面部特征与所述第二面部特征为在所述人脸面部特征中相对称的特征;In the photographing mode, identify the facial features of the human face in the captured picture, thereby obtaining the position of the first facial feature and the position of the second facial feature in the facial features of the human face, the first facial feature The second facial feature is a symmetrical feature among the facial features of the human face;根据所述第一面部特征的位置和所述第二面部特征的位置判断人脸是否处于所述拍摄画面的预设区域内;judging according to the position of the first facial feature and the position of the second facial feature whether the human face is within a preset area of the photographed picture;若否,生成提示信息,以提示调节摄像头,以使所述人脸处于所述预设区域内。If not, generate prompt information to prompt to adjust the camera so that the face is within the preset area.2.如权利要求1所述的方法,其特征在于,所述根据所述第一面部特征的位置和所述第二面部特征的位置判断人脸是否处于所述拍摄画面的预设区域内具体包括:2. The method according to claim 1, characterized in that, according to the position of the first facial feature and the position of the second facial feature, it is judged whether the human face is in the preset area of the shooting picture Specifically include:获取所述第一面部特征的位置与所述第二面部特征的位置连线的中点位置;Obtaining the position of the midpoint of the line connecting the position of the first facial feature and the position of the second facial feature;根据所述中点位置与所述拍摄画面的中心点位置之间的偏移距离判断所述人脸是否处于所述拍摄画面的预设区域内。According to the offset distance between the midpoint position and the center point position of the shooting picture, it is judged whether the human face is in a preset area of the shooting picture.3.如权利要求1所述的方法,其特征在于,所述拍摄画面包括第一边缘和第二边缘,所述第一边缘与所述第二边缘为在所述拍摄画面中不相连接的边缘,所述根据所述第一面部特征的位置和所述第二面部特征的位置判断人脸是否处于所述拍摄画面的预设区域内具体包括:3. The method according to claim 1, wherein the photographed picture comprises a first edge and a second edge, and the first edge and the second edge are not connected in the photographed picture Edge, the judging according to the position of the first facial feature and the position of the second facial feature whether the human face is in the preset area of the shooting picture specifically includes:获取所述第一面部特征的位置与所述拍摄画面的第一边缘之间的第一距离;Acquiring a first distance between the position of the first facial feature and the first edge of the photographed frame;获取所述第二面部特征的位置与所述拍摄画面的第二边缘之间的第二距离;Acquiring a second distance between the position of the second facial feature and a second edge of the photographed frame;根据所述第一距离以及所述第二距离判断所述人脸是否处于所述拍摄画面的预设区域内。It is judged according to the first distance and the second distance whether the human face is within a preset area of the shooting picture.4.如权利要求1所述的方法,其特征在于,所述生成提示信息具体包括:4. The method according to claim 1, wherein said generating prompt information specifically comprises:生成提示图标和/或提示语音以指示出所述摄像头的调节方向。Generate a prompt icon and/or prompt voice to indicate the adjustment direction of the camera.5.如权利要求1所述的方法,其特征在于,所述拍摄画面包括第一边缘和第二边缘,所述第一边缘与所述第二边缘为在所述拍摄画面中不相连接的边缘,所述获取所述人脸面部特征中的第一面部特征的位置和第二面部特征的位置具体包括:5. The method according to claim 1, wherein the photographed picture comprises a first edge and a second edge, and the first edge and the second edge are not connected in the photographed picture Edge, the acquisition of the position of the first facial feature and the position of the second facial feature in the facial features of the human face specifically includes:通过建立坐标位置关系获取所述第一面部特征的位置在所述坐标位置关系中的第一坐标位置,并获取所述第二面部特征的位置在所述坐标位置关系中的第二坐标位置;Obtaining a first coordinate position of the position of the first facial feature in the coordinate position relationship by establishing a coordinate position relationship, and acquiring a second coordinate position of the position of the second facial feature in the coordinate position relationship ;所述根据所述第一面部特征的位置和所述第二面部特征的位置判断人脸是否处于所述拍摄画面的预设区域内具体包括:The judging whether the human face is in the preset area of the shooting picture according to the position of the first facial feature and the position of the second facial feature specifically includes:获取所述第一坐标位置到所述第一边缘之间的第一距离,并获取所述第二坐标到所述第二边缘之间的第二距离;obtaining a first distance from the first coordinate position to the first edge, and obtaining a second distance from the second coordinate to the second edge;根据所述第一距离与所述第二距离的差值是否小于或者等于预设阈值判断所述人脸是否处于所述拍摄画面的预设区域内;According to whether the difference between the first distance and the second distance is less than or equal to a preset threshold, it is judged whether the face is in a preset area of the shooting picture;所述生成提示信息具体包括:The generating prompt information specifically includes:根据所述差值以及所述预设阈值生成提示图标和/或提示语音以指示出所述摄像头的调节方向。Generate a prompt icon and/or prompt voice according to the difference and the preset threshold to indicate the adjustment direction of the camera.6.一种拍照装置,其特征在于,包括:6. A photographing device, characterized in that it comprises:获取模块,用于在拍照模式下,识别捕捉到的拍摄画面中的人脸面部特征,从而获取所述人脸面部特征中的第一面部特征的位置和第二面部特征的位置,所述第一面部特征与所述第二面部特征为在所述人脸面部特征中相对称的特征;The acquisition module is used to identify the facial features of the human face in the captured picture in the photographing mode, so as to acquire the position of the first facial feature and the position of the second facial feature in the facial features of the human face, the The first facial feature and the second facial feature are symmetrical features in the facial features of the human face;判断模块,用于根据所述第一面部特征的位置和所述第二面部特征的位置判断人脸是否处于所述拍摄画面的预设区域内;A judging module, configured to judge whether the human face is within a preset area of the photographed picture according to the position of the first facial feature and the position of the second facial feature;提示模块,用于若所述检测单元检测出所述人脸未处于所述拍摄画面的预设区域内,生成提示信息,以提示调节摄像头,以使所述人脸处于所述预设区域内。A prompting module, configured to generate prompting information if the detection unit detects that the human face is not in the preset area of the shooting picture, to prompt to adjust the camera so that the human face is in the preset area .7.如权利要求6所述的装置,其特征在于,所述判断模块包括:7. The device according to claim 6, wherein the judging module comprises:第一获取单元,用于获取所述第一面部特征的位置与所述第二面部特征的位置连线的中点位置;A first acquiring unit, configured to acquire a midpoint position of a line connecting the position of the first facial feature and the position of the second facial feature;第一判断单元,用于根据所述中点位置与所述拍摄画面的中心点位置之间的偏移距离判断所述人脸是否处于所述拍摄画面的预设区域内。A first judging unit, configured to judge whether the human face is within a preset area of the shooting picture according to an offset distance between the midpoint position and the center point position of the shooting picture.8.如权利要求6所述的装置,其特征在于,所述拍摄画面包括第一边缘和第二边缘,所述第一边缘与所述第二边缘为在所述拍摄画面中不相连接的边缘,所述判断模块包括:8. The device according to claim 6, wherein the photographing frame comprises a first edge and a second edge, and the first edge and the second edge are not connected in the photographing frame edge, the judging module includes:第二获取单元,用于获取所述第一面部特征的位置与所述拍摄画面的第一边缘之间的第一距离;a second acquiring unit, configured to acquire a first distance between the position of the first facial feature and the first edge of the photographed picture;第三获取单元,用于获取所述第二面部特征的位置与所述拍摄画面的第二边缘之间的第二距离;a third acquiring unit, configured to acquire a second distance between the position of the second facial feature and the second edge of the photographed picture;第二判断单元,用于根据所述第一距离以及所述第二距离判断所述人脸是否处于所述拍摄画面的预设区域内。A second judging unit, configured to judge whether the human face is within a preset area of the photographed picture according to the first distance and the second distance.9.如权利要求6所述的装置,其特征在于,所述生成模块具体用于生成提示图标和/或提示语音以指示出所述摄像头的调节方向。9. The device according to claim 6, wherein the generating module is specifically configured to generate a prompt icon and/or a prompt voice to indicate an adjustment direction of the camera.10.如权利要求6所述的装置,其特征在于,所述拍摄画面包括第一边缘和第二边缘,,所述第一边缘与所述第二边缘为在所述拍摄画面中不相连接的边缘,所述获取模块具体用于通过建立坐标位置关系获取所述第一面部特征的位置在所述坐标位置关系中的第一坐标位置,并获取所述第二面部特征的位置在所述坐标位置关系中的第二坐标位置;10. The device according to claim 6, wherein the photographing picture comprises a first edge and a second edge, and the first edge and the second edge are not connected in the photographing picture , the acquisition module is specifically configured to acquire the first coordinate position of the position of the first facial feature in the coordinate position relationship by establishing a coordinate position relationship, and acquire the position of the second facial feature in the The second coordinate position in the coordinate position relationship;所述判断模块包括:The judgment module includes:第四获取单元,用于获取所述第一坐标位置到所述第一边缘之间的第一距离,并获取所述第二坐标到所述第二边缘之间的第二距离;a fourth acquiring unit, configured to acquire a first distance from the first coordinate position to the first edge, and acquire a second distance from the second coordinate to the second edge;第三判断单元,用于根据所述第一距离与所述第二距离的差值是否小于或者等于预设阈值判断所述人脸是否处于所述拍摄画面的预设区域内;A third judging unit, configured to judge whether the human face is within a preset area of the shooting picture according to whether the difference between the first distance and the second distance is less than or equal to a preset threshold;所述生成模块具体用于根据所述差值以及所述预设阈值生成提示图标和/或提示语音以指示出所述摄像头的调节方向。The generation module is specifically configured to generate a prompt icon and/or a prompt voice according to the difference and the preset threshold to indicate the adjustment direction of the camera.
CN201510100432.4A2015-03-062015-03-06A kind of photographic method and deviceExpired - Fee RelatedCN104754216B (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN201510100432.4ACN104754216B (en)2015-03-062015-03-06A kind of photographic method and device

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN201510100432.4ACN104754216B (en)2015-03-062015-03-06A kind of photographic method and device

Publications (2)

Publication NumberPublication Date
CN104754216Atrue CN104754216A (en)2015-07-01
CN104754216B CN104754216B (en)2018-03-27

Family

ID=53593258

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN201510100432.4AExpired - Fee RelatedCN104754216B (en)2015-03-062015-03-06A kind of photographic method and device

Country Status (1)

CountryLink
CN (1)CN104754216B (en)

Cited By (15)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN105187721A (en)*2015-08-312015-12-23广州市幸福网络技术有限公司An identification camera and method for rapidly extracting portrait features
CN105227832A (en)*2015-09-092016-01-06厦门美图之家科技有限公司A kind of self-timer method based on critical point detection, self-heterodyne system and camera terminal
CN105611142A (en)*2015-09-112016-05-25广东欧珀移动通信有限公司Shooting method and apparatus thereof
CN105933607A (en)*2016-05-262016-09-07维沃移动通信有限公司Photographing effect adjusting method of mobile terminal and mobile terminal
CN106250885A (en)*2016-08-312016-12-21宇龙计算机通信科技(深圳)有限公司A kind of iris identification method, device and terminal
CN106341609A (en)*2016-11-112017-01-18清华大学苏州汽车研究院(吴江)Image registration device based on driver video monitoring system in circuit control
WO2017107324A1 (en)*2015-12-242017-06-29中兴通讯股份有限公司Photographing mode processing method and device
CN107872619A (en)*2017-10-302018-04-03维沃移动通信有限公司 A photographing processing method, device and equipment
CN108194801A (en)*2018-02-122018-06-22广州市华标科技发展有限公司Move self-service camera arrangement and method
CN109995994A (en)*2018-01-022019-07-09上海银晨智能识别科技有限公司Camera system and its control device, method, the readable storage medium storing program for executing of automatic adjustment
CN111147749A (en)*2019-12-312020-05-12宇龙计算机通信科技(深圳)有限公司Photographing method, photographing device, terminal and storage medium
CN112750221A (en)*2019-10-312021-05-04深圳云天励飞技术有限公司Campus sign-in method and device and sign-in equipment
CN114071002A (en)*2020-08-042022-02-18珠海格力电器股份有限公司Photographing method and device, storage medium and terminal equipment
CN114549434A (en)*2022-02-092022-05-27南宁市第二人民医院Skin quality detection device based on cloud calculates
CN114845048A (en)*2022-04-062022-08-02福建天创信息科技有限公司Photographing method and system based on intelligent terminal

Citations (11)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
US6424373B1 (en)*1994-05-262002-07-23Fujitsu LimitedApparatus and method for camera control
US20040012702A1 (en)*2002-07-082004-01-22Casio Computer Co., Ltd.Camera apparatus, photographing method and a storage medium that records method of photographing
CN101163189A (en)*2006-10-132008-04-16上海银晨智能识别科技有限公司Face image correcting method
US20080225137A1 (en)*2007-03-132008-09-18Yuichi KuboImage information processing apparatus
CN103139480A (en)*2013-02-282013-06-05华为终端有限公司Image acquisition method and image acquisition device
CN103312949A (en)*2012-03-162013-09-18深圳富泰宏精密工业有限公司System and method for prompting autodyne
CN103716539A (en)*2013-12-162014-04-09乐视致新电子科技(天津)有限公司Photographing method and apparatus
CN103813075A (en)*2012-11-072014-05-21联想(北京)有限公司Reminding method and electronic device
CN104166500A (en)*2014-08-122014-11-26Tcl通讯(宁波)有限公司Method, system and terminal for providing reference coordinate systems in lens image
CN104182741A (en)*2014-09-152014-12-03联想(北京)有限公司Image acquisition prompt method and device and electronic device
CN104279958A (en)*2014-10-242015-01-14西安诺瓦电子科技有限公司LED display device space position detection method and system for guidance and correction

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
US6424373B1 (en)*1994-05-262002-07-23Fujitsu LimitedApparatus and method for camera control
US20040012702A1 (en)*2002-07-082004-01-22Casio Computer Co., Ltd.Camera apparatus, photographing method and a storage medium that records method of photographing
CN101163189A (en)*2006-10-132008-04-16上海银晨智能识别科技有限公司Face image correcting method
US20080225137A1 (en)*2007-03-132008-09-18Yuichi KuboImage information processing apparatus
CN103312949A (en)*2012-03-162013-09-18深圳富泰宏精密工业有限公司System and method for prompting autodyne
CN103813075A (en)*2012-11-072014-05-21联想(北京)有限公司Reminding method and electronic device
CN103139480A (en)*2013-02-282013-06-05华为终端有限公司Image acquisition method and image acquisition device
CN103716539A (en)*2013-12-162014-04-09乐视致新电子科技(天津)有限公司Photographing method and apparatus
CN104166500A (en)*2014-08-122014-11-26Tcl通讯(宁波)有限公司Method, system and terminal for providing reference coordinate systems in lens image
CN104182741A (en)*2014-09-152014-12-03联想(北京)有限公司Image acquisition prompt method and device and electronic device
CN104279958A (en)*2014-10-242015-01-14西安诺瓦电子科技有限公司LED display device space position detection method and system for guidance and correction

Cited By (23)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN105187721B (en)*2015-08-312018-09-21广州市幸福网络技术有限公司A kind of the license camera and method of rapid extraction portrait feature
CN105187721A (en)*2015-08-312015-12-23广州市幸福网络技术有限公司An identification camera and method for rapidly extracting portrait features
CN105227832A (en)*2015-09-092016-01-06厦门美图之家科技有限公司A kind of self-timer method based on critical point detection, self-heterodyne system and camera terminal
CN105227832B (en)*2015-09-092018-08-10厦门美图之家科技有限公司A kind of self-timer method, self-heterodyne system and camera terminal based on critical point detection
CN105611142A (en)*2015-09-112016-05-25广东欧珀移动通信有限公司Shooting method and apparatus thereof
CN105611142B (en)*2015-09-112018-03-27广东欧珀移动通信有限公司A kind of photographic method and device
WO2017107324A1 (en)*2015-12-242017-06-29中兴通讯股份有限公司Photographing mode processing method and device
CN105933607A (en)*2016-05-262016-09-07维沃移动通信有限公司Photographing effect adjusting method of mobile terminal and mobile terminal
CN105933607B (en)*2016-05-262019-01-22维沃移动通信有限公司 A method for adjusting the photographing effect of a mobile terminal and the mobile terminal
CN106250885A (en)*2016-08-312016-12-21宇龙计算机通信科技(深圳)有限公司A kind of iris identification method, device and terminal
CN106250885B (en)*2016-08-312019-10-11宇龙计算机通信科技(深圳)有限公司A kind of iris identification method, device and terminal
CN106341609A (en)*2016-11-112017-01-18清华大学苏州汽车研究院(吴江)Image registration device based on driver video monitoring system in circuit control
CN107872619A (en)*2017-10-302018-04-03维沃移动通信有限公司 A photographing processing method, device and equipment
CN107872619B (en)*2017-10-302020-04-07维沃移动通信有限公司Photographing processing method, device and equipment
CN109995994A (en)*2018-01-022019-07-09上海银晨智能识别科技有限公司Camera system and its control device, method, the readable storage medium storing program for executing of automatic adjustment
CN108194801A (en)*2018-02-122018-06-22广州市华标科技发展有限公司Move self-service camera arrangement and method
CN112750221A (en)*2019-10-312021-05-04深圳云天励飞技术有限公司Campus sign-in method and device and sign-in equipment
CN111147749A (en)*2019-12-312020-05-12宇龙计算机通信科技(深圳)有限公司Photographing method, photographing device, terminal and storage medium
CN114071002A (en)*2020-08-042022-02-18珠海格力电器股份有限公司Photographing method and device, storage medium and terminal equipment
CN114071002B (en)*2020-08-042023-01-31珠海格力电器股份有限公司Photographing method and device, storage medium and terminal equipment
CN114549434A (en)*2022-02-092022-05-27南宁市第二人民医院Skin quality detection device based on cloud calculates
CN114845048A (en)*2022-04-062022-08-02福建天创信息科技有限公司Photographing method and system based on intelligent terminal
CN114845048B (en)*2022-04-062024-01-19福建天创信息科技有限公司Photographing method and system based on intelligent terminal

Also Published As

Publication numberPublication date
CN104754216B (en)2018-03-27

Similar Documents

PublicationPublication DateTitle
CN104754216B (en)A kind of photographic method and device
CN106651955B (en)Method and device for positioning target object in picture
CN106462937B (en) Image processing device and image display device
CN105554389B (en)Shooting method and device
CN109492506A (en)Image processing method, device and system
CN102760024A (en)Screen picture rotating method and system
CN104917959A (en)Photographing method and terminal
TW201337641A (en)Method and system for prompting self-catch
WO2017124899A1 (en)Information processing method, apparatus and electronic device
CN106503682B (en)Method and device for positioning key points in video data
WO2019011091A1 (en)Photographing reminding method and device, terminal and computer storage medium
CN103873693A (en)Method and mobile terminal for automatically correcting photo shooting angle according to gravitational acceleration
CN106231175A (en) A method for taking pictures with terminal gestures
CN105652560B (en)Photographing method and system capable of automatically adjusting focal length
CN104935698A (en) A shooting method, shooting device and smart phone of an intelligent terminal
CN104618643A (en)Shooting method and device
CN104967774B (en)A kind of method and terminal for controlling dual camera shooting
WO2020082827A1 (en)Photographing method, device, terminal, and computer storage medium
CN107958223A (en)Face identification method and device, mobile equipment, computer-readable recording medium
CN105049710B (en)A kind of big visual angle camera control method and user terminal
WO2018196854A1 (en)Photographing method, photographing apparatus and mobile terminal
CN105430269A (en) A photographing method and device applied to a mobile terminal
CN104994280B (en)A kind of preview image processing method and user terminal
CN103873755B (en)Jump portrait system and method
CN105957114B (en)The method and device that polygon in image is detected

Legal Events

DateCodeTitleDescription
C06Publication
PB01Publication
C10Entry into substantive examination
SE01Entry into force of request for substantive examination
GR01Patent grant
GR01Patent grant
CP01Change in the name or title of a patent holder
CP01Change in the name or title of a patent holder

Address after:Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Patentee after:GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

Address before:Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Patentee before:GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

CF01Termination of patent right due to non-payment of annual fee
CF01Termination of patent right due to non-payment of annual fee

Granted publication date:20180327


[8]ページ先頭

©2009-2025 Movatter.jp