CN105430269B - A kind of photographic method and device applied to mobile terminal - Google Patents
A kind of photographic method and device applied to mobile terminal Download PDFInfo
- Publication number
- CN105430269B CN105430269B CN201510909453.0A CN201510909453A CN105430269B CN 105430269 B CN105430269 B CN 105430269B CN 201510909453 A CN201510909453 A CN 201510909453A CN 105430269 B CN105430269 B CN 105430269B
- Authority
- CN
- China
- Prior art keywords
- preview area
- image
- center point
- front camera
- mobile terminal
- 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.)
- Expired - Fee Related
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/60—Control of cameras or camera modules
- H04N23/63—Control of cameras or camera modules by using electronic viewfinders
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/60—Control of cameras or camera modules
- H04N23/61—Control of cameras or camera modules based on recognised objects
- H04N23/611—Control of cameras or camera modules based on recognised objects where the recognised objects include parts of the human body
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Studio Devices (AREA)
- Telephone Function (AREA)
Abstract
本发明公开了一种应用于移动终端的拍照方法及装置,该拍照方法包括:在采用移动终端的前置摄像头对待拍摄对象进行拍照时,在第一预览区域中显示包含待拍摄对象的第一图像;根据第一图像在第一预览区域上形成第二预览区域,其中,第二预览区域位于前置摄像头的下方且靠近前置摄像头;在第二预览区域中显示包含待拍摄对象的第二图像;上述拍照方法能使用户在自拍时,通过注视该第二预览区域不仅方便调整拍照角度,还可确保拍出来的照片视线是看向镜头的,有效提升自拍体验。
The invention discloses a photographing method and device applied to a mobile terminal. The photographing method includes: when using a front camera of a mobile terminal to photograph an object to be photographed, displaying a first image containing the object to be photographed in a first preview area. An image; a second preview area is formed on the first preview area according to the first image, wherein the second preview area is located below the front camera and close to the front camera; the second preview area containing the object to be photographed is displayed in the second preview area Image; the above-mentioned photographing method enables the user to not only adjust the photographing angle conveniently by watching the second preview area when taking a selfie, but also ensure that the line of sight of the photographed photograph is looking at the lens, effectively improving the selfportrait experience.
Description
技术领域technical field
本发明涉及移动终端领域,尤其涉及一种应用于移动终端的拍照方法及装置。The present invention relates to the field of mobile terminals, in particular to a photographing method and device applied to mobile terminals.
背景技术Background technique
随着科学技术的高速发展,智能终端越来越普及,如智能PAD、智能手机的数量与日俱增,几乎达到了人手一部的状态。With the rapid development of science and technology, smart terminals are becoming more and more popular, such as the number of smart PADs and smart phones is increasing day by day, almost reaching the state of having one in every hand.
目前,由于智能终端的硬件性能越来越高,尤其是摄像头的规格越来越好,成像的质量也越来越高,并且由于智能终端的拍照功能越来越强大,譬如,智能对焦、场景分析、笑脸识别、语音输入、快速连拍等等,越来越多的用户喜欢采用智能手机拍照,尤其是自拍,不仅拍照效果好,而且使用方便。At present, as the hardware performance of smart terminals is getting higher and higher, especially the camera specifications are getting better and better, the imaging quality is getting higher and higher, and because the camera functions of smart terminals are becoming more and more powerful, such as smart focus, scene Analysis, smile recognition, voice input, rapid continuous shooting, etc., more and more users like to take pictures with smartphones, especially selfies, which not only have good photo effects, but also are easy to use.
但是,在用户自拍的时候,会出现这样的情况:用户对自拍完成的照片进行浏览时,经常会发现自己的眼睛并没有看镜头,而是看往其他地方的,其原因是当前的手机镜头一般是放在手机的顶部,所以只有当用户目光看着顶部镜头区域进行自拍时,眼睛才是看镜头的,但是,用户如果拍照的时候眼睛看镜头,就很难看清屏幕上的预览,又不知道照片会拍成什么样了。However, when the user is taking a selfie, there will be such a situation: when the user browses the photos completed by the selfie, he often finds that his eyes are not looking at the lens, but looking at other places. The reason is that the current mobile phone lens It is usually placed on the top of the mobile phone, so only when the user looks at the top lens area to take a selfie, the eyes are looking at the lens. However, if the user looks at the lens when taking a photo, it is difficult to see the preview on the screen. I don't know what the photo will look like.
发明内容Contents of the invention
本发明的目的在于提供一种应用于移动终端的拍照方法及装置,以解决现有手机自拍时,用户视线容易对不准镜头的技术问题。The purpose of the present invention is to provide a method and device for taking pictures applied to mobile terminals, so as to solve the technical problem that the user's line of sight is easily misaligned with the lens when taking selfies with existing mobile phones.
为解决上述技术问题,本发明实施例提供以下技术方案:In order to solve the above technical problems, embodiments of the present invention provide the following technical solutions:
一种应用于移动终端的拍照方法,其包括:A photographing method applied to a mobile terminal, comprising:
在采用所述移动终端的前置摄像头对待拍摄对象进行拍照时,在第一预览区域中显示包含所述待拍摄对象的第一图像;When using the front camera of the mobile terminal to take pictures of the subject to be photographed, displaying a first image containing the subject to be photographed in a first preview area;
根据所述第一图像在所述第一预览区域上形成第二预览区域,其中,所述第二预览区域位于所述前置摄像头的下方且靠近所述前置摄像头;forming a second preview area on the first preview area according to the first image, wherein the second preview area is located below the front camera and close to the front camera;
在所述第二预览区域中显示包含所述待拍摄对象的第二图像。A second image containing the object to be photographed is displayed in the second preview area.
进一步地,所述根据所述第一图像在所述第一预览区域上形成第二预览区域的步骤具体包括:Further, the step of forming a second preview area on the first preview area according to the first image specifically includes:
检测所述第一图像中所述待拍摄对象的面部图像;detecting a facial image of the subject to be photographed in the first image;
根据所述面部图像在所述第一预览区域上形成第二预览区域。A second preview area is formed on the first preview area based on the face image.
进一步地,所述根据所述面部图像在所述第一预览区域上形成第二预览区域的步骤具体包括:Further, the step of forming a second preview area on the first preview area according to the facial image specifically includes:
获取所述面部图像的中心点在所述第一预览区域上的位置信息;Acquiring position information of the center point of the facial image on the first preview area;
获取所述前置摄像头在触摸区域上的位置信息,所述触摸区域包含所述第一预览区域和所述第二预览区域;Acquiring position information of the front camera on a touch area, where the touch area includes the first preview area and the second preview area;
根据所述面部图像中心点的位置信息以及前置摄像头的位置信息在所述第一预览区域上形成第二预览区域。A second preview area is formed on the first preview area according to the position information of the central point of the facial image and the position information of the front camera.
进一步地,所述摄像头、面部图像中心点以及所述第二预览区域的中心点位于同一条直线上。Further, the camera, the central point of the facial image and the central point of the second preview area are located on the same straight line.
进一步地,所述第二图像由所述第一图像根据预设比例缩小而成。Further, the second image is reduced from the first image according to a preset ratio.
为解决上述技术问题,本发明实施例还提供以下技术方案:In order to solve the above technical problems, embodiments of the present invention also provide the following technical solutions:
一种应用于移动终端的拍照装置,其包括:A camera device applied to a mobile terminal, comprising:
第一显示模块,用于在采用所述移动终端的前置摄像头对待拍摄对象进行拍照时,在第一预览区域中显示包含所述待拍摄对象的第一图像;A first display module, configured to display a first image containing the object to be photographed in a first preview area when the object to be photographed is photographed by the front camera of the mobile terminal;
形成模块,用于根据所述第一图像在所述第一预览区域上形成第二预览区域,其中,所述第二预览区域位于所述前置摄像头的下方且靠近所述前置摄像头;A forming module, configured to form a second preview area on the first preview area according to the first image, wherein the second preview area is located below the front camera and close to the front camera;
第二显示模块,用于在所述第二预览区域中显示包含所述待拍摄对象的第二图像。A second display module, configured to display a second image containing the object to be photographed in the second preview area.
进一步地,所述形成模块具体包括:Further, the forming module specifically includes:
检测子模块,用于检测所述第一图像中所述待拍摄对象的面部图像;A detection submodule, configured to detect the facial image of the subject to be photographed in the first image;
形成子模块,用于根据所述面部图像在所述第一预览区域上形成第二预览区域。A forming submodule is used for forming a second preview area on the first preview area according to the facial image.
进一步地,所述形成子模块具体用于:Further, the forming submodule is specifically used for:
获取所述面部图像的中心点在所述第一预览区域上的位置信息;Acquiring position information of the center point of the facial image on the first preview area;
获取所述前置摄像头在触摸区域上的位置信息,所述触摸区域包含所述第一预览区域和所述第二预览区域;Acquiring position information of the front camera on a touch area, where the touch area includes the first preview area and the second preview area;
根据所述面部图像中心点的位置信息以及前置摄像头的位置信息在所述第一预览区域上形成第二预览区域。A second preview area is formed on the first preview area according to the position information of the central point of the facial image and the position information of the front camera.
进一步地,所述摄像头、面部图像中心点以及所述第二预览区域的中心点位于同一条直线上。Further, the camera, the central point of the facial image and the central point of the second preview area are located on the same straight line.
进一步地,所述第二图像由所述第一图像根据预设比例缩小而成。Further, the second image is reduced from the first image according to a preset ratio.
本发明所述的应用于移动终端的拍照方法及装置,在采用移动终端的前置摄像头对待拍摄对象进行拍照时,在第一预览区域中显示包含该待拍摄对象的第一图像,根据该第一图像在该第一预览区域上形成第二预览区域,并在该第二预览区域中显示包含该待拍摄对象的第二图像,能使用户在自拍时,通过注视该第二预览区域不仅方便调整拍照角度,还可确保拍出来的照片视线是看向镜头的,有效提升自拍体验。According to the photographing method and device applied to a mobile terminal according to the present invention, when the front camera of the mobile terminal is used to photograph an object to be photographed, the first image containing the object to be photographed is displayed in the first preview area, according to the first image An image forms a second preview area on the first preview area, and a second image containing the object to be photographed is displayed in the second preview area, so that when a user takes a selfie, it is not only convenient to look at the second preview area Adjusting the camera angle can also ensure that the line of sight of the photos taken is looking at the camera, effectively improving the selfie experience.
附图说明Description of drawings
下面结合附图,通过对本发明的具体实施方式详细描述,将使本发明的技术方案及其它有益效果显而易见。The technical solutions and other beneficial effects of the present invention will be apparent through the detailed description of specific embodiments of the present invention in conjunction with the accompanying drawings.
图1是本发明第一实施例提供的应用于移动终端的拍照方法的流程示意图。FIG. 1 is a schematic flowchart of a photographing method applied to a mobile terminal provided by a first embodiment of the present invention.
图2为本发明第二实施例提供的应用于移动终端的拍照装置的结构示意图。FIG. 2 is a schematic structural diagram of a photographing device applied to a mobile terminal provided by a second embodiment of the present invention.
具体实施方式Detailed ways
请参照图式,其中相同的组件符号代表相同的组件,本发明的原理是以实施在一适当的运算环境中来举例说明。以下的说明是基于所例示的本发明具体实施例,其不应被视为限制本发明未在此详述的其它具体实施例。Referring to the drawings, wherein like reference numerals represent like components, the principles of the present invention are exemplified when implemented in a suitable computing environment. The following description is based on illustrated specific embodiments of the invention, which should not be construed as limiting other specific embodiments of the invention not described in detail herein.
在以下的说明中,本发明的具体实施例将参考由一部或多部计算机所执行的步骤及符号来说明,除非另有述明。因此,这些步骤及操作将有数次提到由计算机执行,本文所指的计算机执行包括了由代表了以一结构化型式中的数据的电子信号的计算机处理单元的操作。此操作转换该数据或将其维持在该计算机的内存系统中的位置处,其可重新配置或另外以本领域测试人员所熟知的方式来改变该计算机的运作。该数据所维持的数据结构为该内存的实体位置,其具有由该数据格式所定义的特定特性。但是,本发明原理以上述文字来说明,其并不代表为一种限制,本领域测试人员将可了解到以下所述的多种步骤及操作亦可实施在硬件当中。In the following description, specific embodiments of the present invention will be described with reference to steps and symbols executed by one or more computers, unless otherwise stated. Accordingly, these steps and operations will several times be referred to as being computer-implemented, which herein refers to operations by a computer processing unit of electronic signals representing data in a structured form. This operation transforms the data or maintains it at a location in the computer's memory system that can reconfigure or otherwise alter the operation of the computer in a manner well known to testers in the art. The data structures maintained by the data are physical locations in the memory that have certain characteristics defined by the data format. However, the principles of the present invention are described in the above words, which are not meant to be a limitation. Those skilled in the art will understand that the various steps and operations described below can also be implemented in hardware.
第一实施例first embodiment
在本实施例中,将从应用于移动终端的拍照装置的角度进行描述,该拍照装置可以集成在手机、PAD等带有拍照功能的移动终端中。In this embodiment, description will be made from the perspective of a photographing device applied to a mobile terminal, and the photographing device can be integrated into a mobile terminal with a photographing function such as a mobile phone or a PAD.
请参阅图1,图1为本发明第一实施例提供的应用于移动终端的拍照方法的流程示意图。所述方法可以包括:Please refer to FIG. 1 . FIG. 1 is a schematic flowchart of a photographing method applied to a mobile terminal according to a first embodiment of the present invention. The method can include:
S101、在采用移动终端的前置摄像头对待拍摄对象进行拍照时,在第一预览区域中显示包含该待拍摄对象的第一图像。S101. When a front camera of a mobile terminal is used to take pictures of a subject to be photographed, display a first image including the subject to be photographed in a first preview area.
本实施例中,该第一预览区域可以为移动终端触摸屏的显示区域。该待拍摄对象可以为人或者动物等。该第一预览区域不仅显示包含该待拍摄对象的第一图像,还显示拍照背景。譬如,当用户通过前置摄像头自拍时,该第一预览区域会显示用户头像以及头像周围的背景物。In this embodiment, the first preview area may be a display area of the touch screen of the mobile terminal. The object to be photographed may be a person or an animal. The first preview area not only displays the first image containing the object to be photographed, but also displays the photographing background. For example, when the user takes a selfie with the front camera, the first preview area will display the user's avatar and the background objects around the avatar.
S102、根据该第一图像在该第一预览区域上形成第二预览区域,其中,该第二预览区域位于该前置摄像头的下方且靠近该前置摄像头。S102. Form a second preview area on the first preview area according to the first image, wherein the second preview area is located below the front camera and close to the front camera.
优选的,上述步骤S102具体可以包括:Preferably, the above step S102 may specifically include:
a、检测该第一图像中该待拍摄对象的面部图像。a. Detecting the face image of the subject to be photographed in the first image.
本实施例中,可以通过人脸识别模块检测该第一图像中该待拍摄对象的面部图像,该人脸识别模块主要采用人脸规则法和肤色模型法等来实现面部识别。In this embodiment, the face image of the object to be photographed in the first image can be detected by a face recognition module, which mainly uses face rule method and skin color model method to realize face recognition.
具体的,由于面部具有一定的结构分布特征,譬如眼睛、鼻子、嘴巴的分布位置,可以通过提取这些特征生成相应的规则(即人脸规则法)以判断该第一图像中是否包含面部图像,如果有,则可以利用面部肤色在色彩空间中分布相对集中的特点(即肤色模型法)对该面部进行跟踪定位。Specifically, since the face has certain structural distribution features, such as the distribution positions of eyes, nose, and mouth, these features can be extracted to generate corresponding rules (i.e. the face rule method) to determine whether the first image contains a facial image, If there is, then the face can be tracked and positioned by using the feature that the facial skin color is relatively concentrated in the color space (that is, the skin color model method).
b、根据该面部图像在该第一预览区域上形成第二预览区域。b. Forming a second preview area on the first preview area according to the facial image.
优选的,上述步骤b具体可以包括:Preferably, the above step b may specifically include:
获取该面部图像的中心点在该第一预览区域上的位置信息;Obtain the position information of the center point of the facial image on the first preview area;
获取该前置摄像头在触摸区域上的位置信息,该触摸区域包含该第一预览区域和该第二预览区域;Obtain the position information of the front camera on the touch area, the touch area includes the first preview area and the second preview area;
根据该面部图像中心点的位置信息以及前置摄像头的位置信息在该第一预览区域上形成第二预览区域。A second preview area is formed on the first preview area according to the position information of the central point of the facial image and the position information of the front camera.
优选的,该摄像头、面部图像中心点以及该第二预览区域的中心点位于同一条直线上。Preferably, the camera, the central point of the facial image and the central point of the second preview area are located on the same straight line.
具体的,该第二预览区域可以通过预览框的形式来体现。该位置信息可以表现为横坐标和纵坐标信息,通过相关的分析算法得到该面部图像的中心点,并获取该面部图像中心点在第一预览区域上的横坐标和纵坐标,同时,获取该移动终端前置摄像头在触摸区域上的横坐标和纵坐标,根据该面部图像中心点的坐标位置以及前置摄像头的坐标位置确定第二预览区域中心点的坐标位置,确保该摄像头、面部图像中心点以及该第二预览区域的中心点位于同一条直线上。Specifically, the second preview area may be embodied in the form of a preview frame. The location information can be expressed as abscissa and ordinate information, and the center point of the facial image is obtained through a relevant analysis algorithm, and the abscissa and ordinate of the center point of the facial image on the first preview area are obtained, and at the same time, the The abscissa and ordinate of the front camera of the mobile terminal on the touch area, determine the coordinate position of the center point of the second preview area according to the coordinate position of the center point of the face image and the coordinate position of the front camera, ensure that the center point of the camera and face image point and the center point of the second preview area are located on the same straight line.
本实施例中,该第二预览区域的尺寸大小可由用户自行设定,或者为系统默认。由于该第二预览区域位于该前置摄像头的下方且靠近该前置摄像头,故该第二预览区域中心点的纵坐标位置在第一预览区域上是固定的,通过摄像头和面部图像中心点之间确定的直线可以进一步确定该第二预览区域中心点的横坐标位置,进而确定该第二预览区域中心点位置。In this embodiment, the size of the second preview area can be set by the user or defaulted by the system. Since the second preview area is located below the front camera and close to the front camera, the ordinate position of the center point of the second preview area is fixed on the first preview area. The straight line determined between can further determine the abscissa position of the center point of the second preview area, and then determine the position of the center point of the second preview area.
可以理解的是,当该待拍摄物相对于手机显示屏的位置发生变化(即面部图像中心点的位置发生变化)时,该第二预览区域中心点的横坐标位置也是变化的,其会随着面部图像中心点的移动而移动,这样可使得即使用户的人脸和手机显示屏的角度不垂直时,也有一个相对好的预览视角,能让用户看清楚该第二预览框的内容,方便用户调整拍照角度。It can be understood that when the position of the subject to be photographed changes relative to the display screen of the mobile phone (that is, the position of the central point of the facial image changes), the abscissa position of the central point of the second preview area also changes, and it will change with the Move according to the movement of the center point of the facial image, so that even when the angle between the user's face and the display screen of the mobile phone is not perpendicular, there is a relatively good preview angle, allowing the user to see clearly the content of the second preview frame, which is convenient The user adjusts the camera angle.
S103、在该第二预览区域中显示包含该待拍摄对象的第二图像。S103. Display a second image including the object to be photographed in the second preview area.
优选的,该第二图像由该第一图像根据预设比例缩小而成。该预设比例可以由用户根据自己的喜好而定,确保用户能看清该第二预览区域中的内容即可。Preferably, the second image is reduced from the first image according to a preset ratio. The preset ratio can be determined by the user according to his/her preference, and it is only necessary to ensure that the user can clearly see the content in the second preview area.
由上述可知,本实施例提供的应用于移动终端的拍照方法,在采用移动终端的前置摄像头对待拍摄对象进行拍照时,在第一预览区域中显示包含该待拍摄对象的第一图像,根据该第一图像在该第一预览区域上形成第二预览区域,并在该第二预览区域中显示包含该待拍摄对象的第二图像,能使用户在自拍时,通过注视该第二预览区域不仅方便调整拍照角度,还可确保拍出来的照片视线是看向镜头的,有效提升自拍体验。As can be seen from the above, in the photographing method applied to a mobile terminal provided in this embodiment, when the front camera of the mobile terminal is used to photograph the object to be photographed, the first image containing the object to be photographed is displayed in the first preview area, according to The first image forms a second preview area on the first preview area, and a second image containing the object to be photographed is displayed in the second preview area, enabling the user to take a selfie by looking at the second preview area Not only is it convenient to adjust the camera angle, but it can also ensure that the line of sight of the photos taken is looking at the camera, effectively improving the selfie experience.
第二实施例second embodiment
为便于更好的实施本发明实施例提供的应用于移动终端的拍照方法,本发明实施例还提供一种应用于移动终端的拍照装置,该拍照装置具体可以集成在手机、PAD等带有拍照功能的移动终端中。其中名词的含义与上述应用于移动终端的拍照方法中相同,具体实现细节可以参考方法实施例中的说明。In order to better implement the photographing method applied to the mobile terminal provided by the embodiment of the present invention, the embodiment of the present invention also provides a photographing device applied to the mobile terminal. The photographing device can be integrated into a mobile phone, a PAD, etc. functions in mobile terminals. The meanings of the nouns are the same as those in the above-mentioned photographing method applied to the mobile terminal, and for specific implementation details, please refer to the description in the method embodiments.
请参阅图2,图2为本发明第二实施例提供的应用于移动终端的拍照装置的结构示意图。该应用于移动终端的拍照装置可以包括:Please refer to FIG. 2 . FIG. 2 is a schematic structural diagram of a photographing device applied to a mobile terminal provided by a second embodiment of the present invention. The photographing device applied to the mobile terminal may include:
第一显示模块10,用于在采用该移动终端的前置摄像头对待拍摄对象进行拍照时,在第一预览区域中显示包含该待拍摄对象的第一图像。The first display module 10 is configured to display a first image containing the subject to be photographed in a first preview area when the mobile terminal's front camera is used to photograph the subject to be photographed.
本实施例中,该第一预览区域可以为移动终端触摸屏的显示区域。该待拍摄对象可以为人或者动物等。该第一预览区域不仅显示包含该待拍摄对象的第一图像,还显示拍照背景。譬如,当用户通过前置摄像头自拍时,该第一预览区域会显示用户头像以及头像周围的背景物。In this embodiment, the first preview area may be a display area of the touch screen of the mobile terminal. The object to be photographed may be a person or an animal. The first preview area not only displays the first image containing the object to be photographed, but also displays the photographing background. For example, when the user takes a selfie with the front camera, the first preview area will display the user's avatar and the background objects around the avatar.
形成模块20,用于根据该第一图像在该第一预览区域上形成第二预览区域,其中,该第二预览区域位于该前置摄像头的下方且靠近该前置摄像头。The forming module 20 is configured to form a second preview area on the first preview area according to the first image, wherein the second preview area is located below the front camera and close to the front camera.
优选的,上述形成模块20具体可以包括:Preferably, the above-mentioned forming module 20 may specifically include:
检测子模块21,用于检测该第一图像中该待拍摄对象的面部图像。The detection sub-module 21 is configured to detect the facial image of the subject to be photographed in the first image.
本实施例中,该第二预览区域可以通过预览框的形式来体现。该检测子模块21可以通过硬件的方式实现,也可以通过软件的方式实现。当以软件方式实现时,该检测子模块21可以为人脸识别模块,该人脸识别模块主要采用人脸规则法和肤色模型法等来实现面部识别。In this embodiment, the second preview area may be represented in the form of a preview frame. The detection sub-module 21 can be realized by hardware or by software. When implemented in software, the detection sub-module 21 can be a face recognition module, and the face recognition module mainly uses face rule method and skin color model method to realize face recognition.
具体的,由于面部具有一定的结构分布特征,譬如眼睛、鼻子、嘴巴的分布位置,可以通过提取这些特征生成相应的规则(即人脸规则法)以判断该第一图像中是否包含面部图像,如果有,则可以利用面部肤色在色彩空间中分布相对集中的特点(即肤色模型法)对该面部进行跟踪定位。Specifically, since the face has certain structural distribution features, such as the distribution positions of eyes, nose, and mouth, these features can be extracted to generate corresponding rules (i.e. the face rule method) to determine whether the first image contains a facial image, If there is, then the face can be tracked and positioned by using the feature that the facial skin color is relatively concentrated in the color space (that is, the skin color model method).
形成子模块22,用于根据该面部图像在该第一预览区域上形成第二预览区域。A forming sub-module 22 is used for forming a second preview area on the first preview area according to the face image.
优选的,该形成子模块22具体可以用于:Preferably, the forming submodule 22 can specifically be used for:
获取该面部图像的中心点在该第一预览区域上的位置信息;Obtain the position information of the center point of the facial image on the first preview area;
获取该前置摄像头在触摸区域上的位置信息,该触摸区域包含该第一预览区域和该第二预览区域;Obtain the position information of the front camera on the touch area, the touch area includes the first preview area and the second preview area;
根据该面部图像中心点的位置信息以及前置摄像头的位置信息在该第一预览区域上形成第二预览区域。A second preview area is formed on the first preview area according to the position information of the central point of the facial image and the position information of the front camera.
优选的,该摄像头、面部图像中心点以及该第二预览区域的中心点位于同一条直线上。Preferably, the camera, the central point of the facial image and the central point of the second preview area are located on the same straight line.
具体的,该位置信息可以表现为横坐标和纵坐标信息,形成子模块32通过相关的分析算法得到该面部图像的中心点,并获取该面部图像中心点在第一预览区域上的横坐标和纵坐标,同时,获取该移动终端前置摄像头在触摸区域上的横坐标和纵坐标,根据该面部图像中心点的坐标位置以及前置摄像头的坐标位置确定第二预览区域中心点的坐标位置,确保该摄像头、面部图像中心点以及该第二预览区域的中心点位于同一条直线上。Specifically, the position information can be expressed as abscissa and ordinate information, and the forming submodule 32 obtains the center point of the facial image through a related analysis algorithm, and obtains the abscissa and ordinate of the facial image center point on the first preview area. Ordinate, at the same time, obtain the abscissa and ordinate of the mobile terminal front camera on the touch area, determine the coordinate position of the center point of the second preview area according to the coordinate position of the center point of the face image and the coordinate position of the front camera, Make sure that the camera, the center point of the facial image and the center point of the second preview area are on the same straight line.
本实施例中,该第二预览区域的尺寸大小可由用户自行设定,或者为系统默认。由于该第二预览区域位于该前置摄像头的下方且靠近该前置摄像头,故该第二预览区域中心点的纵坐标位置在第一预览区域上是固定的,通过摄像头和面部图像中心点之间确定的直线可以进一步确定该第二预览区域中心点的横坐标位置,进而确定该第二预览区域中心点位置。In this embodiment, the size of the second preview area can be set by the user or defaulted by the system. Since the second preview area is located below the front camera and close to the front camera, the ordinate position of the center point of the second preview area is fixed on the first preview area. The straight line determined between can further determine the abscissa position of the center point of the second preview area, and then determine the position of the center point of the second preview area.
可以理解的是,当该待拍摄物相对于手机显示屏的位置发生变化(即面部图像中心点的位置发生变化)时,该第二预览区域中心点的横坐标位置也是变化的,其会随着面部图像中心点的移动而移动,这样可使得即使用户的人脸和手机显示屏的角度不垂直时,也有一个相对好的预览视角,能让用户看清楚该第二预览框的内容,方便用户调整拍照角度。It can be understood that when the position of the subject to be photographed changes relative to the display screen of the mobile phone (that is, the position of the central point of the facial image changes), the abscissa position of the central point of the second preview area also changes, and it will change with the Move according to the movement of the center point of the facial image, so that even when the angle between the user's face and the display screen of the mobile phone is not perpendicular, there is a relatively good preview angle, allowing the user to see clearly the content of the second preview frame, which is convenient The user adjusts the camera angle.
第二显示模块30,用于在该第二预览区域中显示包含该待拍摄对象的第二图像。The second display module 30 is configured to display a second image containing the object to be photographed in the second preview area.
优选的,该第二图像可以由该第一图像根据预设比例缩小而成。该预设比例可以由用户根据自己的喜好而定,确保用户能看清该第二预览区域中的内容即可。Preferably, the second image can be reduced from the first image according to a preset ratio. The preset ratio can be determined by the user according to his/her preference, and it is only necessary to ensure that the user can clearly see the content in the second preview area.
具体实施时,以上各个单元可以作为独立的实体来实现,也可以进行任意组合,作为同一或若干个实体来实现,以上各个单元的具体实施可参见前面的方法实施例,在此不再赘述。During specific implementation, each of the above units may be implemented as an independent entity, or may be combined arbitrarily as the same or several entities. The specific implementation of each of the above units may refer to the previous method embodiments, and will not be repeated here.
由上述可知,本实施例提供的应用于移动终端的拍照装置,在采用移动终端的前置摄像头对待拍摄对象进行拍照时,在第一预览区域中显示包含该待拍摄对象的第一图像,根据该第一图像在该第一预览区域上形成第二预览区域,并在该第二预览区域中显示包含该待拍摄对象的第二图像,能使用户在自拍时,通过注视该第二预览区域不仅方便调整拍照角度,还可确保拍出来的照片视线是看向镜头的,有效提升自拍体验。As can be seen from the above, the photographing device applied to a mobile terminal provided in this embodiment, when using the front camera of the mobile terminal to photograph the object to be photographed, displays the first image containing the object to be photographed in the first preview area, according to The first image forms a second preview area on the first preview area, and a second image containing the object to be photographed is displayed in the second preview area, enabling the user to take a selfie by looking at the second preview area Not only is it convenient to adjust the camera angle, but it can also ensure that the line of sight of the photos taken is looking at the camera, effectively improving the selfie experience.
本领域普通技术人员可以理解上述实施例的各种方法中的全部或部分步骤是可以通过程序来指令相关的硬件来完成,该程序可以存储于一计算机可读存储介质中,存储介质可以包括:只读存储器(ROM,Read Only Memory)、随机存取记忆体(RAM,RandomAccess Memory)、磁盘或光盘等。Those of ordinary skill in the art can understand that all or part of the steps in the various methods of the above-mentioned embodiments can be completed by instructing related hardware through a program, and the program can be stored in a computer-readable storage medium, and the storage medium can include: Read Only Memory (ROM, Read Only Memory), Random Access Memory (RAM, Random Access Memory), disk or CD, etc.
以上对本发明实施例所提供的一种应用于移动终端的拍照方法及装置进行了详细介绍,本文中应用了具体个例对本发明的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本发明的方法及其核心思想;同时,对于本领域的技术人员,依据本发明的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本发明的限制。The method and device for photographing a mobile terminal provided by the embodiments of the present invention have been described in detail above. In this paper, specific examples are used to illustrate the principle and implementation of the present invention. The description of the above embodiments is only for To help understand the method of the present invention and its core idea; at the same time, for those skilled in the art, according to the idea of the present invention, there will be changes in the specific implementation and application range. In summary, the content of this specification is not It should be understood as a limitation of the present invention.
Claims (9)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201510909453.0A CN105430269B (en) | 2015-12-10 | 2015-12-10 | A kind of photographic method and device applied to mobile terminal |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201510909453.0A CN105430269B (en) | 2015-12-10 | 2015-12-10 | A kind of photographic method and device applied to mobile terminal |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN105430269A CN105430269A (en) | 2016-03-23 |
| CN105430269B true CN105430269B (en) | 2018-09-21 |
Family
ID=55508172
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201510909453.0A Expired - Fee Related CN105430269B (en) | 2015-12-10 | 2015-12-10 | A kind of photographic method and device applied to mobile terminal |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN105430269B (en) |
Families Citing this family (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN107277375B (en) * | 2017-07-31 | 2020-03-27 | 维沃移动通信有限公司 | Self-photographing method and mobile terminal |
| WO2019028757A1 (en) * | 2017-08-10 | 2019-02-14 | 华为技术有限公司 | Method for selfie guidance and terminal |
| CN108650454A (en) * | 2018-04-23 | 2018-10-12 | 联想(北京)有限公司 | A kind of information processing method, electronic equipment and computer readable storage medium |
| CN110740246A (en) * | 2018-07-18 | 2020-01-31 | 阿里健康信息技术有限公司 | image correction method, mobile device and terminal device |
| CN115442509B (en) * | 2021-06-01 | 2023-10-13 | 荣耀终端有限公司 | Photography methods, user interfaces and electronic equipment |
| CN113891002B (en) * | 2021-11-12 | 2022-10-21 | 维沃移动通信有限公司 | Shooting method and device |
Family Cites Families (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| KR101545883B1 (en) * | 2012-10-30 | 2015-08-20 | 삼성전자주식회사 | Method for controlling camera of terminal and terminal thereof |
| CN103049175B (en) * | 2013-01-22 | 2016-08-10 | 华为终端有限公司 | Preview screen presentation method, device and terminal |
| JP2015142317A (en) * | 2014-01-30 | 2015-08-03 | シャープ株式会社 | Electronics |
| CN104076882A (en) * | 2014-07-21 | 2014-10-01 | 联想(北京)有限公司 | Electronic device and information processing method applied to electronic device |
| CN104618652A (en) * | 2015-02-02 | 2015-05-13 | 上海卓悠网络科技有限公司 | Method and device for optimizing self-timer effect of intelligent terminal |
| CN104967773A (en) * | 2015-06-03 | 2015-10-07 | 上海华豚科技有限公司 | Electronic device having front camera shooting function |
-
2015
- 2015-12-10 CN CN201510909453.0A patent/CN105430269B/en not_active Expired - Fee Related
Also Published As
| Publication number | Publication date |
|---|---|
| CN105430269A (en) | 2016-03-23 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN112529784B (en) | Image distortion correction method and device | |
| CN110100251B (en) | Apparatus, method, and computer-readable storage medium for processing documents | |
| CN105430269B (en) | A kind of photographic method and device applied to mobile terminal | |
| CN111553864B (en) | Image restoration method and device, electronic equipment and storage medium | |
| CN106570110B (en) | Image duplicate removal method and device | |
| KR102018887B1 (en) | Image preview using detection of body parts | |
| US9692959B2 (en) | Image processing apparatus and method | |
| CN104754239B (en) | Photographic method and device | |
| WO2019109801A1 (en) | Method and device for adjusting photographing parameter, storage medium, and mobile terminal | |
| WO2017124899A1 (en) | Information processing method, apparatus and electronic device | |
| WO2016011747A1 (en) | Skin color adjustment method and device | |
| WO2016192325A1 (en) | Method and device for processing logo on video file | |
| WO2019237745A1 (en) | Facial image processing method and apparatus, electronic device and computer readable storage medium | |
| CN106534669A (en) | Shooting composition method and mobile terminal | |
| WO2016197657A1 (en) | Photographing processing method and apparatus | |
| CN114742703B (en) | Method, device, equipment and storage medium for generating binocular stereoscopic panoramic images | |
| CN107426493A (en) | A kind of image pickup method and terminal for blurring background | |
| CN109784327B (en) | Boundary box determining method and device, electronic equipment and storage medium | |
| US12192616B2 (en) | Photographing method and apparatus | |
| CN106548117B (en) | A kind of face image processing process and device | |
| US12159373B2 (en) | Image processing method and apparatus | |
| CN111797754B (en) | Image detection method, device, electronic equipment and medium | |
| CN109040588A (en) | Face image photographing method and device, storage medium and terminal | |
| CN111754411A (en) | Image noise reduction method, image noise reduction device and terminal equipment | |
| US10902265B2 (en) | Imaging effect based on object depth information |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| C06 | Publication | ||
| PB01 | Publication | ||
| C10 | Entry into substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant | ||
| CP01 | Change 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. |
|
| CP01 | Change in the name or title of a patent holder | ||
| CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20180921 |
|
| CF01 | Termination of patent right due to non-payment of annual fee |