[go: up one dir, main page]

CN104468995A - Method and mobile terminal for controlling camera - Google Patents

Method and mobile terminal for controlling camera Download PDF

Info

Publication number
CN104468995A
CN104468995A CN201410713100.9A CN201410713100A CN104468995A CN 104468995 A CN104468995 A CN 104468995A CN 201410713100 A CN201410713100 A CN 201410713100A CN 104468995 A CN104468995 A CN 104468995A
Authority
CN
China
Prior art keywords
blinking
blink
camera
preset condition
user
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.)
Pending
Application number
CN201410713100.9A
Other languages
Chinese (zh)
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 Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201410713100.9A priority Critical patent/CN104468995A/en
Publication of CN104468995A publication Critical patent/CN104468995A/en
Pending legal-status Critical Current

Links

Landscapes

  • Eye Examination Apparatus (AREA)

Abstract

The embodiment of the invention discloses a method for controlling a camera, which comprises the following steps: locating the user's eyes by detecting; detecting whether the positioned eyes of the user generate blinking actions meeting first preset conditions or not; and under the condition that the blinking motion meeting the first preset condition is detected, controlling the camera to rotate according to a rotation mode corresponding to the blinking motion of the first preset condition. The embodiment of the invention also discloses a mobile terminal. By adopting the embodiment of the invention, the blinking action of the eyes of the user can be identified under the condition of detecting and positioning the eyes of the user, the camera is controlled to rotate, take a picture and switch the front camera and the rear camera, and the interestingness and the experience of the user on shooting are enhanced.

Description

一种控制摄像头的方法及移动终端Method and mobile terminal for controlling camera

技术领域technical field

本发明实施例涉及移动终端设备控制技术领域,尤其涉及一种控制摄像头的方法及移动终端。Embodiments of the present invention relate to the technical field of mobile terminal equipment control, and in particular, to a method for controlling a camera and a mobile terminal.

背景技术Background technique

随着移动终端设备(如智能手机或平板电脑)智能化程度越来越高,移动终端设备已经成为生活的必需品,移动终端可以通过内置的摄像头随时随地记录与分享生活中的各种新鲜事。As mobile terminal devices (such as smart phones or tablet computers) become more and more intelligent, mobile terminal devices have become a necessity of life. Mobile terminals can record and share various new things in life anytime and anywhere through built-in cameras.

目前,终端主要靠那只的摄像头摄取外部景物,通常情况下,摄像头的角度在初始状态下是固定的,往往需要用户根据需要通过手动调节方式对摄像头的角度进行调节,而目前的手动调节方式通常需要进行多次的触控或按键操作方可完成,调节较为繁琐,且调节过程可能比较慢,较大地影响到用户体验,且容易错失短暂出现的精彩画面的捕捉。At present, the terminal mainly relies on the camera to capture the external scenery. Usually, the angle of the camera is fixed in the initial state, and the user often needs to adjust the angle of the camera manually according to the needs. The current manual adjustment method Usually, multiple touch or button operations are required to complete the adjustment. The adjustment is cumbersome, and the adjustment process may be relatively slow, which greatly affects the user experience, and it is easy to miss the capture of a short-lived wonderful picture.

发明内容Contents of the invention

本发明实施例提供了一种控制摄像头的方法及移动终端,可通过用户眼睛的眨眼动作控制摄像头,简化调节方式,加快调节过程,从而增强用户体验。Embodiments of the present invention provide a method for controlling a camera and a mobile terminal, which can control the camera by blinking the user's eyes, simplify the adjustment method, and speed up the adjustment process, thereby enhancing user experience.

本发明实施例第一方面提供了一种控制摄像头的方法,包括:The first aspect of the embodiment of the present invention provides a method for controlling a camera, including:

通过检测定位用户眼睛;Locate the user's eyes by detecting;

检测定位到的所述用户眼睛是否发生符合第一预设条件的眨眼动作;Detecting whether the located eye of the user has a blink action that meets the first preset condition;

在检测到符合所述第一预设条件的眨眼动作的情况下,控制移动终端的摄像头按照与所述第一预设条件的眨眼动作对应的旋转方式进行旋转。When the blinking action meeting the first preset condition is detected, the camera of the mobile terminal is controlled to rotate in a rotation manner corresponding to the blinking action of the first preset condition.

本发明实施例第一方面提供了一种移动终端,包括:The first aspect of the embodiment of the present invention provides a mobile terminal, including:

定位单元,用于通过检测定位用户眼睛;a positioning unit, configured to locate the user's eyes through detection;

检测单元,用于检测所述定位单元定位到的所述用户眼睛是否发生符合第一预设条件的眨眼动作;A detection unit, configured to detect whether the eye of the user positioned by the positioning unit blinks in accordance with a first preset condition;

控制单元,用于在所述检测单元检测到符合所述第一预设条件的眨眼动作的情况下,控制移动终端的摄像头按照与所述第一预设条件的眨眼动作对应的旋转方式进行旋转。A control unit, configured to control the camera of the mobile terminal to rotate in a rotation manner corresponding to the blinking action of the first preset condition when the detection unit detects the blinking action meeting the first preset condition .

本发明实施例通过检测定位用户眼睛;检测定位到的所述用户眼睛是否发生符合第一预设条件的眨眼动作;在检测到符合所述第一预设条件的眨眼动作的情况下,控制移动终端的摄像头按照与所述第一预设条件的眨眼动作对应的旋转方式进行旋转。采用本发明实施例,可在检测并定位到用户眼睛的情况下,识别用户眼睛的眨眼动作,控制摄像头旋转、拍照及前后置摄像头切换,增强了用户对摄影的趣味性及体验感。The embodiment of the present invention detects and locates the user's eyes; detects whether the located user's eyes have a blinking action that meets the first preset condition; The camera of the terminal rotates in a rotation manner corresponding to the blinking action of the first preset condition. By adopting the embodiment of the present invention, when the user's eyes are detected and located, the blinking action of the user's eyes can be recognized, and the rotation of the camera, taking pictures and switching between the front and rear cameras can be controlled, which enhances the interest and experience of the user in photography.

附图说明Description of drawings

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

图1为本发明实施例提供的一种控制摄像头的方法的第一实施例流程示意图;FIG. 1 is a schematic flowchart of a first embodiment of a method for controlling a camera provided by an embodiment of the present invention;

图2为本发明实施例提供的一种控制摄像头的方法的第二实施例流程示意图;FIG. 2 is a schematic flowchart of a second embodiment of a method for controlling a camera provided by an embodiment of the present invention;

图3为本发明实施例提供的一种控制摄像头的方法的第三实施例流程示意图;FIG. 3 is a schematic flowchart of a third embodiment of a method for controlling a camera provided by an embodiment of the present invention;

图4为本发明实施例提供的一种控制摄像头的方法的第四实施例流程示意图;FIG. 4 is a schematic flowchart of a fourth embodiment of a method for controlling a camera provided by an embodiment of the present invention;

图5为本发明实施例提供的一种移动终端的第一实施例结构示意图;FIG. 5 is a schematic structural diagram of a first embodiment of a mobile terminal provided by an embodiment of the present invention;

图6为本发明实施例提供的一种移动终端的第二实施例结构示意图。FIG. 6 is a schematic structural diagram of a second embodiment of a mobile terminal provided by an embodiment of the present invention.

实施方式Implementation

下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明实施例一部分实施例,而不是全部的实施例。基于本发明实施例中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明实施例保护的范围。The technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of them. . Based on the embodiments in 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 embodiments of the present invention.

实现中,本发明实施例中,移动终端可以包括但不限于:笔记本电脑、手机、平板电脑、智能可穿戴设备等等。移动终端的系统指终端的操作系统,可以包括但不限于:Android系统、塞班系统、Windows系统、IOS(苹果公司开发的移动操作系统)系统等等。需要说明的是,Android移动终端指Android系统的移动终端,塞班移动终端指塞班系统的移动终端,等等。上述移动终端仅是举例,而非穷举,包含但不限于上述移动终端。In implementation, in the embodiment of the present invention, the mobile terminal may include but not limited to: a notebook computer, a mobile phone, a tablet computer, a smart wearable device, and the like. The system of the mobile terminal refers to the operating system of the terminal, which may include but not limited to: Android system, Symbian system, Windows system, IOS (mobile operating system developed by Apple Inc.) system and so on. It should be noted that the Android mobile terminal refers to the mobile terminal of the Android system, and the Symbian mobile terminal refers to the mobile terminal of the Symbian system, and so on. The above mobile terminals are only examples, not exhaustive, including but not limited to the above mobile terminals.

下面将以手机为例,结合图1至图6对本发明实施例提供的一种控制摄像头的方法及移动终端进行描述。A mobile phone will be taken as an example below to describe a method for controlling a camera and a mobile terminal provided in an embodiment of the present invention with reference to FIG. 1 to FIG. 6 .

请参阅图1,图1是本发明实施例提供的一种控制摄像头的方法的实施例流程示意图。本实施例中所描述的控制摄像头的方法,包括步骤:Please refer to FIG. 1 . FIG. 1 is a schematic flowchart of an embodiment of a method for controlling a camera provided by an embodiment of the present invention. The method for controlling the camera described in this embodiment includes steps:

S101、通过检测定位用户眼睛。S101. Locate the eyes of the user through detection.

实现中,移动终端在摄像头开启模式下,利用前置摄像头或者后置摄像头的进行取景,在取景画片里进行人眼识别,可检测场景里人脸,对人脸进行定位,再定位人眼位置,可通过鼻梁检测确定人眼是人脸中的左眼还是右眼或者直接通过人脸匹配,按照人脸型中器官的相对位置,确定到底是左眼还是右眼。可选地,检测定位用户眼睛,用户的数目可以是多人,因而,场景中用户的眼睛可以是多只眼睛,如果用户的眼睛挡住了,可能会出现数目为奇数的眼睛。在某些特定场景下,如用户离摄像头镜头较远,这种情况下,移动终端会对较近的用户进行人眼识别,由最近的用户的眨眼动作控制摄像头;当人眼被其他透明物体或者反光物体挡住了,移动终端可对如镜片反光之类的情况,作高光去噪处理,使得移动终端可以更方便地识别人眼。当识别到多个有效用户时,即多个用户都可以通过眨眼动作控制摄像头,可通过一个用户的眨眼动作与另一个用户或者多个用户的眨眼动作对摄像头进行控制,如一个用户的左眼与另一个用户的右眼对摄像头进行控制。这样可以更好地争强用户对移动终端的体验感与趣味性。In the implementation, the mobile terminal uses the front camera or the rear camera to view the view in the camera-on mode, and performs human eye recognition in the viewfinder picture, which can detect the face in the scene, locate the face, and then locate the position of the human eye It can determine whether the human eye is the left eye or the right eye in the face through nose bridge detection, or directly through face matching, and determine whether it is the left eye or the right eye according to the relative positions of the organs in the face shape. Optionally, the user's eyes are detected and located. There may be multiple users. Therefore, the user's eyes in the scene may be multiple eyes. If the user's eyes are blocked, an odd number of eyes may appear. In some specific scenarios, if the user is far away from the camera lens, in this case, the mobile terminal will recognize the eyes of the nearby users, and the camera will be controlled by the blinking action of the nearest user; when the human eyes are detected by other transparent objects Or if the reflective object is blocked, the mobile terminal can perform highlight denoising processing on the situation such as mirror reflection, so that the mobile terminal can more conveniently identify human eyes. When multiple valid users are identified, that is, multiple users can control the camera by blinking, and the camera can be controlled by blinking one user and another user or multiple users, such as a user's left eye Control the camera with another user's right eye. In this way, the user's sense of experience and interest in the mobile terminal can be better enhanced.

S102、检测定位到的所述用户眼睛是否发生符合第一预设条件的眨眼动作。S102. Detect whether the located eye of the user has a blinking action that meets a first preset condition.

实现中,移动终端定位了用户的眼睛之后,就会对用户眼睛是否发生符合第一预设条件的眨眼动作进行检测。In implementation, after the mobile terminal locates the user's eyes, it will detect whether the user's eyes blink according to the first preset condition.

作为一种可能的实施方式,第一预设条件的眨眼动作例如可包括如下眨眼动作中的至少一种:左眨眼、右眨眼、左眼先眨与右眼后眨、右眼先眨与左眼后眨、左眼连眨两次、右眼连眨两次和左右眼一起眨等。As a possible implementation manner, the blinking action of the first preset condition may include at least one of the following blinking actions, for example: blinking left, blinking right, blinking the left eye first and then blinking the right eye, blinking the right eye first and blinking the left Blink back, blink the left eye twice, blink the right eye twice, and blink the left and right eyes together.

作为一种可能的实施方式,左眼先眨与右眼后眨之间的眨眼时间间隔可为0.2秒~0.5秒或0.1秒~0.6秒或0.2秒~0.7秒或0.1秒~0.6秒或0.2秒~0.7秒;右眼先眨与左眼后眨之间的眨眼时间间隔可为0.2秒~0.5秒或0.1秒~0.6秒或0.2秒~0.7秒;左眼连眨两次之间的眨眼时间间隔可为0.2秒~0.5秒或0.1秒~0.6秒或0.2秒~0.7秒;右眼连眨两次之间的眨眼时间间隔可为0.2秒~0.5秒或0.1秒~0.6秒或0.2秒~0.7秒。若两次眨眼动作之间的时间间隔大于间隔时间,可认为是两个动作。As a possible implementation, the blink interval between blinking the left eye first and blinking the right eye afterwards can be 0.2 seconds to 0.5 seconds or 0.1 seconds to 0.6 seconds or 0.2 seconds to 0.7 seconds or 0.1 seconds to 0.6 seconds or 0.2 seconds seconds to 0.7 seconds; the blink interval between the first blink of the right eye and the second blink of the left eye can be 0.2 seconds to 0.5 seconds or 0.1 seconds to 0.6 seconds or 0.2 seconds to 0.7 seconds; the blink of the left eye between two consecutive blinks The time interval can be 0.2 seconds to 0.5 seconds or 0.1 seconds to 0.6 seconds or 0.2 seconds to 0.7 seconds; the blink time interval between two consecutive blinks of the right eye can be 0.2 seconds to 0.5 seconds or 0.1 seconds to 0.6 seconds or 0.2 seconds ~0.7 seconds. If the time interval between two blinking actions is greater than the interval time, it can be considered as two actions.

S103、在检测到符合所述第一预设条件的眨眼动作的情况下,控制移动终端的摄像头按照与所述第一预设条件的眨眼动作对应的旋转方式进行旋转。S103. In a case where the eye blinking action conforming to the first preset condition is detected, control the camera of the mobile terminal to rotate in a rotation manner corresponding to the eye blinking action of the first preset condition.

实现中,在移动终端检测到步骤S102中描述的预设条件的眨眼动作的情况下,会控制摄像头按照与预设条件的眨眼动作对应的旋转方式进行旋转。如一种设置方式为:当第一预设条件的眨眼动作为如下眨眼动作中的一种时:左眨眼、右眨眼、左眼先眨与右眼后眨、右眼先眨与左眼后眨、左眼连眨两次、右眼连眨两次和左右眼一起眨等,移动终端可控制摄像头向左旋转、向右旋转、向上旋转或者向下旋转。In implementation, when the mobile terminal detects the blinking action with the preset condition described in step S102, it will control the camera to rotate in a rotation manner corresponding to the blinking action with the preset condition. For example, a setting method is: when the blinking action of the first preset condition is one of the following blinking actions: left blinking, right blinking, left eye blinking first and right eye blinking later, right eye blinking first and left eye blinking later , blinking the left eye twice, blinking the right eye twice, and blinking the left and right eyes at the same time, etc., the mobile terminal can control the camera to rotate left, right, upward or downward.

作为一种可能的实施方式,摄像头的旋转方式可包括但不仅限于:左右旋转或上下旋转、沿着左上45度方向旋转、沿着右上45度方向旋转、沿着左下45度方向旋转、沿着右下45度方向旋转。旋转方式可为顺时针方向或逆时针方向。As a possible implementation, the rotation mode of the camera may include but not limited to: left and right rotation or up and down rotation, rotation along the upper left direction of 45 degrees, rotation along the direction of upper right 45 degrees, rotation along the direction of lower left 45 degrees, along the Rotate 45 degrees to the lower right. Rotation can be clockwise or counterclockwise.

作为一种可能的实施方式,在检测到符合第一预设条件的眨眼动作的情况的同时,检测符合所述第一预设条件的眨眼动作的眨眼速度,移动终端控制摄像头按照控制摄像头按照与预设条件的眨眼动作对应的旋转方式进行旋转包括:控制摄像头按照与预设条件的眨眼动作对应的旋转方式,且以与该眨眼速度对应的旋转速度进行旋转。As a possible implementation manner, when the blinking action meeting the first preset condition is detected, the blinking speed of the blinking action meeting the first preset condition is detected, and the mobile terminal controls the camera according to the Rotating in a rotation manner corresponding to the preset eye blinking action includes: controlling the camera to rotate in a rotation manner corresponding to the preset eye blinking action and at a rotation speed corresponding to the blinking speed.

作为一种可能的实施方式,第一预设条件还可包括但不仅限于:语音动作、手势动作、触屏手势动作、肢体动作等。As a possible implementation manner, the first preset condition may further include, but not limited to: voice action, gesture action, touch screen gesture action, body action, and the like.

本发明实施例通过检测定位用户眼睛;检测定位到的所述用户眼睛是否发生符合第一预设条件的眨眼动作;在检测到符合所述第一预设条件的眨眼动作的情况下,控制移动终端的摄像头按照与所述第一预设条件的眨眼动作对应的旋转方式进行旋转。采用本发明实施例,可在检测并定位到用户眼睛的情况下,识别用户眼睛的眨眼动作,控制摄像头旋转,增强了用户对摄影的趣味性及体验感。The embodiment of the present invention detects and locates the user's eyes; detects whether the located user's eyes have a blinking action that meets the first preset condition; The camera of the terminal rotates in a rotation manner corresponding to the blinking action of the first preset condition. By adopting the embodiment of the present invention, when the user's eyes are detected and located, the blinking action of the user's eyes can be recognized, and the rotation of the camera can be controlled, which enhances the interest and experience of the user in photography.

请参阅图2,图2是本发明实施例提供的一种控制摄像头的方法的第二实施例流程示意图,包括步骤:Please refer to FIG. 2. FIG. 2 is a schematic flowchart of a second embodiment of a method for controlling a camera provided by an embodiment of the present invention, including steps:

S201、通过检测定位用户眼睛。S201. Locate the eyes of the user through detection.

实现中,移动终端在摄像头开启模式下,利用前置摄像头或者后置摄像头的进行取景,在取景画片里进行人眼识别,可检测场景里人脸,对人脸进行定位,再定位人眼位置,可通过鼻梁检测确定人眼是人脸中的左眼还是右眼或者直接通过人脸匹配,按照人脸型中器官的相对位置,确定到底是左眼还是右眼。可选地,检测定位用户眼睛,用户的数目可以是多人,因而,场景中用户的眼睛可以是多只眼睛,如果用户的眼睛挡住了,可能会出现数目为奇数的眼睛。在某些特定场景下,如用户离摄像头镜头较远,这种情况下,移动终端会对较近的用户进行人眼识别,由最近的用户的眨眼动作控制摄像头;当人眼被其他透明物体或者反光物体挡住了,移动终端可对如镜片反光之类的情况,作高光去噪处理,使得移动终端可以更方便地识别人眼。当识别到多个有效用户时,即多个用户都可以通过眨眼动作控制摄像头,可通过一个用户的眨眼动作与另一个用户或者多个用户的眨眼动作对摄像头进行控制,如一个用户的左眼与另一个用户的右眼对摄像头进行控制。这样可以更好地争强用户对移动终端的体验感与趣味性。In the implementation, the mobile terminal uses the front camera or the rear camera to view the view in the camera-on mode, and performs human eye recognition in the viewfinder picture, which can detect the face in the scene, locate the face, and then locate the position of the human eye It can determine whether the human eye is the left eye or the right eye in the face through nose bridge detection, or directly through face matching, and determine whether it is the left eye or the right eye according to the relative positions of the organs in the face shape. Optionally, the user's eyes are detected and located. There may be multiple users. Therefore, the user's eyes in the scene may be multiple eyes. If the user's eyes are blocked, an odd number of eyes may appear. In some specific scenarios, if the user is far away from the camera lens, in this case, the mobile terminal will recognize the eyes of the nearby users, and the camera will be controlled by the blinking action of the nearest user; when the human eyes are detected by other transparent objects Or if the reflective object is blocked, the mobile terminal can perform highlight denoising processing on the situation such as mirror reflection, so that the mobile terminal can more conveniently identify human eyes. When multiple valid users are identified, that is, multiple users can control the camera by blinking, and the camera can be controlled by blinking one user and another user or multiple users, such as a user's left eye Control the camera with another user's right eye. In this way, the user's sense of experience and interest in the mobile terminal can be better enhanced.

S202、检测定位到的所述用户眼睛是否发生符合第二预设条件的眨眼动作。S202. Detect whether the located eye of the user has a blink action that meets a second preset condition.

实现中,移动终端定位了用户的眼睛之后,就会对用户眼睛是否发生符合第二预设条件的眨眼动作进行检测,In implementation, after the mobile terminal locates the user's eyes, it will detect whether the user's eyes blink in accordance with the second preset condition,

作为一种可能的实施方式,第二预设条件的眨眼动作例如可包括如下眨眼动作中的至少一种:左眨眼、右眨眼、左眼先眨与右眼后眨、右眼先眨与左眼后眨、左眼连眨两次、右眼连眨两次和左右眼一起眨等。As a possible implementation manner, the blinking action of the second preset condition may include at least one of the following blinking actions, for example: blinking left, blinking right, blinking the left eye first and then blinking the right eye, blinking the right eye first and blinking the left Blink back, blink the left eye twice, blink the right eye twice, and blink the left and right eyes together.

S203、在检测到符合所述第二预设条件的眨眼动作的情况下,控制摄像头进行拍照。S203. Control the camera to take a picture when the blinking action meeting the second preset condition is detected.

实现中,当检测到所述用户眼睛发生符合第二预设条件的眨眼动作时,控制所述摄像头进行拍照。In implementation, when it is detected that the user's eye blinks that meets the second preset condition, the camera is controlled to take a picture.

作为一种可能的实施方式,第二预设条件的眨眼动作例如可包括如下眨眼动作中的至少一种:左眨眼、右眨眼、左眼先眨与右眼后眨、右眼先眨与左眼后眨、左眼连眨两次、右眼连眨两次和左右眼一起眨等。As a possible implementation manner, the blinking action of the second preset condition may include at least one of the following blinking actions, for example: blinking left, blinking right, blinking the left eye first and then blinking the right eye, blinking the right eye first and blinking the left Blink back, blink the left eye twice, blink the right eye twice, and blink the left and right eyes together.

作为一种可能的实施方式,当检测到所述用户眼睛发生符合第三预设条件的眨眼动作的情况下,控制移动终端设备进行前后置摄像头切换。As a possible implementation manner, when it is detected that the eye of the user blinks that meets the third preset condition, the mobile terminal device is controlled to switch between the front and rear cameras.

作为一种可能的实施方式,第三预设条件的眨眼动作例如可包括如下眨眼动作中的至少一种:左眨眼、右眨眼、左眼先眨与右眼后眨、右眼先眨与左眼后眨、左眼连眨两次、右眼连眨两次和左右眼一起眨等。As a possible implementation manner, the blink action of the third preset condition may include at least one of the following blink actions, for example: blinking left, blinking right, blinking the left eye first and then blinking the right eye, blinking the right eye first and blinking the left Blink back, blink the left eye twice, blink the right eye twice, and blink the left and right eyes together.

作为一种可能的实施方式,当检测到所述用户眼睛发生符合第四预设条件的眨眼动作时,控制摄像头进行伸缩。As a possible implementation manner, when it is detected that the user's eye blinks that meets the fourth preset condition, the camera is controlled to expand and contract.

作为一种可能的实施方式,第四预设条件的眨眼动作例如可包括如下眨眼动作中的至少一种:左眨眼、右眨眼、左眼先眨与右眼后眨、右眼先眨与左眼后眨、左眼连眨两次、右眼连眨两次和左右眼一起眨等。As a possible implementation manner, the blinking action of the fourth preset condition may include at least one of the following blinking actions, for example: blinking left, blinking right, blinking the left eye first and then blinking the right eye, blinking the right eye first and blinking the left Blink back, blink the left eye twice, blink the right eye twice, and blink the left and right eyes together.

作为一种可能的实施方式,第一预设条件的眨眼动作可与第二预设条件的眨眼动作相同,第一预设条件的眨眼动作可与第三预设条件的眨眼动作相同,第一预设条件的眨眼动作可与第三预设条件的眨眼动作相同,第二预设条件的眨眼动作可与第三预设条件的眨眼动作相同,第二预设条件的眨眼动作可与第四预设条件的眨眼动作相同,第一预设条件的眨眼动作可与第四预设条件的眨眼动作相同。As a possible implementation manner, the blinking action of the first preset condition may be the same as the blinking action of the second preset condition, the blinking action of the first preset condition may be the same as the blinking action of the third preset condition, and the first The blinking action of the preset condition can be the same as the blinking action of the third preset condition, the blinking action of the second preset condition can be the same as the blinking action of the third preset condition, and the blinking action of the second preset condition can be the same as the blinking action of the fourth preset condition. The blinking actions of the preset conditions are the same, and the blinking actions of the first preset condition may be the same as the blinking actions of the fourth preset condition.

作为一种可能的实施方式,左眼先眨与右眼后眨之间的眨眼时间间隔可为0.2秒~0.5秒或0.1秒~0.6秒或0.2秒~0.7秒、右眼先眨与左眼后眨之间的眨眼时间间隔可为0.2秒~0.5秒或0.1秒~0.6秒或0.2秒~0.7秒、左眼连眨两次之间的眨眼时间间隔可为0.2秒~0.5秒或0.1秒~0.6秒或0.2秒~0.7秒、右眼连眨两次之间的眨眼时间间隔可为0.2秒~0.5秒或0.1秒~0.6秒或0.2秒~0.7秒。As a possible implementation, the blink time interval between blinking the left eye first and blinking the right eye afterwards can be 0.2 seconds to 0.5 seconds or 0.1 seconds to 0.6 seconds or 0.2 seconds to 0.7 seconds, and the blinking interval of the right eye first and the left eye The blink time interval between back blinks can be 0.2 seconds to 0.5 seconds or 0.1 seconds to 0.6 seconds or 0.2 seconds to 0.7 seconds, and the blink time interval between double blinks of the left eye can be 0.2 seconds to 0.5 seconds or 0.1 seconds ~0.6 seconds or 0.2 seconds to 0.7 seconds, and the blink interval between two consecutive blinks of the right eye can be 0.2 seconds to 0.5 seconds or 0.1 seconds to 0.6 seconds or 0.2 seconds to 0.7 seconds.

本发明实施例通过检测定位用户眼睛;检测定位到的所述用户眼睛是否发生符合第二预设条件的眨眼动作;在检测到符合所述第二预设条件的眨眼动作的情况下,控制移动终端的摄像头按照与所述第二预设条件的眨眼动作对应的旋转方式进行拍照。采用本发明实施例,可在检测并定位到用户眼睛的情况下,识别用户眼睛的眨眼动作,控制摄像头拍照、伸缩、前后置摄像头切换,从而增强了用户对摄影的趣味性及体验感。In the embodiment of the present invention, by detecting and locating the user's eyes; detecting whether the located user's eye blinks in accordance with the second preset condition; The camera of the terminal takes pictures in a rotation manner corresponding to the blinking action of the second preset condition. By adopting the embodiment of the present invention, when the user's eyes are detected and located, the blinking action of the user's eyes can be recognized, and the camera can be controlled to take pictures, zoom, and switch between the front and rear cameras, thereby enhancing the user's interest and experience in photography.

请参阅图3,图3是本发明实施例提供的一种控制摄像头的方法的第三实施例流程示意图,包括步骤:Please refer to FIG. 3. FIG. 3 is a schematic flowchart of a third embodiment of a method for controlling a camera provided by an embodiment of the present invention, including steps:

S301、通过检测定位用户眼睛。S301. Locate the eyes of the user through detection.

实现中,参见步骤S101或者步骤S201。During implementation, refer to step S101 or step S201.

S302、检测定位到的所述用户眼睛是否发生符合第一预设条件的眨眼动作。S302. Detect whether the located eye of the user has a blinking action that meets a first preset condition.

实现中,第一预设条件的眨眼动作例如可包括如下眨眼动作中的至少一种:左眨眼、右眨眼、左眼先眨与右眼后眨、右眼先眨与左眼后眨、左眼连眨两次、右眼连眨两次和左右眼一起眨等。In implementation, the blinking action of the first preset condition may include at least one of the following blinking actions, for example: left blinking, right blinking, left eye blinking first and right eye blinking later, right eye blinking first and left eye blinking later, left Blink the eye twice, blink the right eye twice, and blink the left and right eyes together.

S303、在检测到符合所述第一预设条件的眨眼动作的情况下,控制所述摄像头先旋转再拍照。S303. Control the camera to rotate first and then take a picture in a case that a blinking action meeting the first preset condition is detected.

实现中,在检测到所述用户眼睛发生符合第一预设条件的眨眼动作的情况下,控制摄像头先旋转再拍照。可选地,如第一预设条件的眨眼动作为左眨眼,在检测到用户左眨眼的眨眼动作情况下,摄像头先进行向左旋转,旋转到指定位置,然后进行拍照。In implementation, when it is detected that the user's eye blinks that meets the first preset condition, the camera is controlled to rotate first and then take a picture. Optionally, if the blinking action of the first preset condition is left blinking, when the blinking action of the user's left blinking is detected, the camera first rotates to the left, rotates to a designated position, and then takes a picture.

作为一种可能的实施方式,在检测到所述用户眼睛发生符合第一预设条件的眨眼动作的情况下,控制摄像头先拍照再旋转。可选地,如第一预设条件的眨眼动作为左眨眼,在检测到用户左眨眼的眨眼动作的情况下,摄像头先进行拍照,然后再向左旋转。As a possible implementation manner, when it is detected that the user's eye blinks that meets the first preset condition, the camera is controlled to first take a picture and then rotate. Optionally, if the blinking action of the first preset condition is a left blinking action, when the blinking action of the user's left blinking is detected, the camera first takes a photo and then rotates to the left.

作为一种可能的实施方式,在检测到所述用户眼睛发生符合第一预设条件的眨眼动作的情况下,控制摄像头先伸缩再旋转。可选地,如第一预设条件的眨眼动作为左眨眼,在检测到用户左眨眼的眨眼动作的情况下,摄像头先进行向外伸缩,伸缩到指定位置,然后再向左旋转。As a possible implementation manner, when it is detected that the user's eye blinks that meets the first preset condition, the camera is controlled to zoom first and then rotate. Optionally, if the blinking action of the first preset condition is left blinking, when the blinking action of the user's left blinking is detected, the camera first zooms out to a specified position, and then rotates to the left.

作为一种可能的实施方式,在检测到所述用户眼睛发生符合第一预设条件的眨眼动作的情况下,控制摄像头先旋转再伸缩。可选地,如第一预设条件的眨眼动作为左眨眼,在检测到用户左眨眼的眨眼动作的情况下,摄像头先进行旋转,然后再伸缩。As a possible implementation manner, when it is detected that the user's eye blinks that meets the first preset condition, the camera is controlled to first rotate and then expand and contract. Optionally, if the blinking action of the first preset condition is left blinking, in the case that the blinking action of the user blinking left is detected, the camera first rotates and then stretches.

作为一种可能的实施方式,在检测到所述用户眼睛发生符合第一预设条件的眨眼动作的情况下,控制摄像头先伸缩再拍照。可选地,如第一预设条件的眨眼动作为左眨眼,在检测到用户左眨眼的眨眼动作的情况下,摄像头先进行向外伸缩,伸缩到指定位置,然后拍照。As a possible implementation manner, when it is detected that the user's eye blinks that meets the first preset condition, the camera is controlled to zoom in and out before taking a picture. Optionally, if the blinking action of the first preset condition is left blinking, when the blinking action of the user's left blinking is detected, the camera first expands and retracts to a specified position, and then takes a picture.

作为一种可能的实施方式,在检测到所述用户眼睛发生符合第一预设条件的眨眼动作的情况下,控制摄像头先拍照再伸缩。可选地,如第一预设条件的眨眼动作为左眨眼,在检测到用户左眨眼的眨眼动作的情况下,摄像头先进行拍照,然后进行伸缩。As a possible implementation manner, when it is detected that the user's eye blinks that meets the first preset condition, the camera is controlled to first take a picture and then zoom out. Optionally, if the blinking action of the first preset condition is left blinking, in the case that the blinking action of the user's left blinking is detected, the camera first takes a picture and then zooms in and out.

作为一种可能的实施方式,在检测到所述用户眼睛发生符合第一预设条件的眨眼动作的情况下,控制摄像头先切换前后置摄像头再拍照。可选地,如第一预设条件的眨眼动作为左眨眼,在检测到用户左眨眼的眨眼动作的情况下,摄像头先进行前后置切换,然后进行拍照。As a possible implementation manner, when it is detected that the user's eye blinks that meets the first preset condition, the camera is controlled to switch between the front and rear cameras before taking a picture. Optionally, if the blinking action of the first preset condition is a left blinking action, when the blinking action of the user's left blinking is detected, the camera first performs front-to-back switching, and then takes a picture.

作为一种可能的实施方式,在检测到所述用户眼睛发生符合第一预设条件的眨眼动作的情况下,控制摄像头先拍照再切换前后置摄像头。可选地,如第一预设条件的眨眼动作为左眨眼,在检测到用户左眨眼的眨眼动作的情况下,摄像头先拍照,然后进行前后置切换。As a possible implementation manner, when it is detected that the user's eye blinks that meets the first preset condition, the camera is controlled to first take a photo and then switch between the front and rear cameras. Optionally, if the blinking action of the first preset condition is a left blinking action, if the blinking action of the user's left eye is detected, the camera first takes a photo, and then switches between the front and back.

作为一种可能的实施方式,在检测到所述用户眼睛发生符合第一预设条件的眨眼动作的情况下,控制摄像头先拍照再切换前后置摄像头再旋转。可选地,如第一预设条件的眨眼动作为左眨眼,在检测到用户左眨眼的眨眼动作的情况下,摄像头先拍照,再进行前后置摄像头切换,最后进行旋转。可选地,在检测到所述用户眼睛发生符合第一预设条件的眨眼动作时,控制摄像头进行旋转、拍照、伸缩、前后置摄像头切换中的任意三种组合动作。As a possible implementation manner, when it is detected that the user's eye blinks that meets the first preset condition, the camera is controlled to first take a picture, then switch the front and rear cameras, and then rotate. Optionally, if the blinking action of the first preset condition is left blinking, when the blinking action of the user's left blinking is detected, the camera first takes a picture, then switches the front and rear cameras, and finally rotates. Optionally, when it is detected that the user's eyes are blinking according to the first preset condition, the camera is controlled to perform any three combined actions of rotating, taking pictures, zooming, and switching between front and rear cameras.

作为一种可能的实施方式,在检测到所述用户眼睛发生符合第一预设条件的眨眼动作的情况下,控制摄像头先拍照再切换前后置摄像头再旋转最后伸缩。可选地,如第一预设条件的眨眼动作为左眨眼,在检测到用户左眨眼的眨眼动作的情况下,摄像头先拍照,再进行前后置摄像头切换,然后进行旋转、最后伸缩。可选地,在检测到所述用户眼睛发生符合第一预设条件的眨眼动作时,控制摄像头进行旋转、拍照、伸缩、前后置摄像头切换中的任意四种组合动作。As a possible implementation manner, when it is detected that the user's eye blinks that meet the first preset condition, the camera is controlled to first take a picture, then switch the front and rear cameras, then rotate and finally zoom. Optionally, if the blinking action of the first preset condition is a left blinking action, when the blinking action of the user's eyes is detected, the camera first takes a picture, then switches the front and rear cameras, then rotates, and finally stretches. Optionally, when it is detected that the user's eyes are blinking that meets the first preset condition, the camera is controlled to perform any four combined actions of rotating, taking pictures, zooming, and switching between front and rear cameras.

作为一种可能的实施方式,左眼先眨与右眼后眨之间的眨眼时间间隔可为0.2秒~0.5秒或0.1秒~0.6秒或0.2秒~0.7秒;右眼先眨与左眼后眨之间的眨眼时间间隔可为0.2秒~0.5秒或0.1秒~0.6秒或0.2秒~0.7秒;左眼连眨两次之间的眨眼时间间隔可为0.2秒~0.5秒或0.1秒~0.6秒或0.2秒~0.7秒;右眼连眨两次之间的眨眼时间间隔可为0.2秒~0.5秒或0.1秒~0.6秒或0.2秒~0.7秒。As a possible implementation, the blink interval between blinking the left eye first and blinking the right eye afterwards can be 0.2 seconds to 0.5 seconds or 0.1 seconds to 0.6 seconds or 0.2 seconds to 0.7 seconds; The blink time interval between back blinks can be 0.2 seconds to 0.5 seconds or 0.1 seconds to 0.6 seconds or 0.2 seconds to 0.7 seconds; the blink time interval between double blinks of the left eye can be 0.2 seconds to 0.5 seconds or 0.1 seconds ~0.6 seconds or 0.2 seconds to 0.7 seconds; the blink interval between two consecutive blinks of the right eye can be 0.2 seconds to 0.5 seconds or 0.1 seconds to 0.6 seconds or 0.2 seconds to 0.7 seconds.

本发明实施例通过检测定位用户眼睛;检测定位到的所述用户眼睛是否发生符合第二预设条件的眨眼动作;在检测到符合所述第一预设条件的眨眼动作的情况下,控制移动终端的摄像头进行旋转、拍照、伸缩、前后置摄像头切换中的至少一种。采用本发明实施例,可在检测并定位到用户眼睛的情况下,识别用户眼睛的眨眼动作,控制摄像头旋转、拍照、伸缩、前后置摄像头切换,从而增强了用户对摄影的趣味性及体验感。In the embodiment of the present invention, by detecting and locating the user's eyes; detecting whether the located user's eyes have a blinking action that meets the second preset condition; The camera of the terminal performs at least one of rotation, photographing, telescoping, and front and rear camera switching. By adopting the embodiment of the present invention, when the user's eyes are detected and located, the blinking action of the user's eyes can be recognized, and the camera can be controlled to rotate, take pictures, stretch, and switch between the front and rear cameras, thereby enhancing the user's interest and experience in photography .

请参阅图4,图4是本发明实施例提供的一种控制摄像头的方法的第四实施例流程示意图,包括步骤:Please refer to FIG. 4. FIG. 4 is a schematic flowchart of a fourth embodiment of a method for controlling a camera provided by an embodiment of the present invention, including steps:

S401、通过检测定位用户眼睛。S401. Locate the eyes of the user through detection.

实现中,参见步骤S101或者步骤S201。During implementation, refer to step S101 or step S201.

S402、检测定位到的所述用户眼睛是否发生符合预设条件的眨眼动作。S402. Detect whether the located eye of the user has a blinking action that meets a preset condition.

实现中,预设条件的眨眼动作例如可包括如下眨眼动作中的至少一种:左眨眼、右眨眼、左眼先眨与右眼后眨、右眼先眨与左眼后眨、左眼连眨两次、右眼连眨两次和左右眼一起眨等。预设条件可包括:第一预设条件、第二预设条件、第三预设条件或者第四预设条件。In implementation, the blinking action of the preset condition may include at least one of the following blinking actions, for example: left blinking, right blinking, left eye blinking first and right eye blinking later, right eye blinking first and left eye blinking later, left eye blinking in succession Blink twice, blink right eye twice, blink left and right together, etc. The preset conditions may include: a first preset condition, a second preset condition, a third preset condition or a fourth preset condition.

S403、在检测到符合所述预设条件的眨眼动作的情况下,控制所述摄像头进行预设条件相应的动作。S403. In a case where a blinking action meeting the preset condition is detected, control the camera to perform an action corresponding to the preset condition.

实现中,在检测到符合第一预设条件的眨眼动作的情况下,控制移动终端的摄像头进行旋转。在检测到符合第二预设条件的眨眼动作的情况下,控制所述摄像头进行拍照。在检测到符合所述第三预设条件的眨眼动作的情况下,控制移动终端进行前后置摄像头切换。在检测到所述用户眼睛发生符合第四预设条件的眨眼动作的情况下,控制摄像头进行伸缩。可选地,假设第一预设条件动作为左眨眼或右眨眼,控制摄像头向左旋转或向右旋转;第二预设条件动作为左眼与右眼一起眨,控制摄像头进行拍照;第三预设条件动作为左眼先眨与右眼后眨或右眼先眨与左眼后眨,控制移动终端进行前后摄像头切换;第四预设条件动作为左眼眨两次或右眼眨两次,控制摄像头进行伸缩。检测到用户眼睛作了一组动作时,如先眨左眼,然后左右眼一起眨,再接着左眼先眨与右眼后眨,最后左眼连眨两次,此时,摄像头先向左旋转,然后摄像头进行拍照,再接着进行前后置摄像头切换,最后将切换后的摄像头进行伸缩。In implementation, when a blinking action meeting the first preset condition is detected, the camera of the mobile terminal is controlled to rotate. In the case that a blinking action meeting the second preset condition is detected, the camera is controlled to take pictures. In the case that a blinking action meeting the third preset condition is detected, the mobile terminal is controlled to switch between the front and rear cameras. When it is detected that the user's eye blinks that meets the fourth preset condition, the camera is controlled to expand and contract. Optionally, assuming that the first preset condition action is to blink left or right, control the camera to rotate left or right; the second preset condition action is to blink the left eye and right eye together, and control the camera to take pictures; the third The action of the preset condition is to blink the left eye first and then blink the right eye or blink the right eye first and then blink the left eye to control the mobile terminal to switch between the front and rear cameras; the action of the fourth preset condition is to blink the left eye twice or blink the right eye twice Second, control the camera to zoom. When it is detected that the user's eyes have made a set of actions, such as blinking the left eye first, then blinking the left and right eyes together, then blinking the left eye first and then blinking the right eye, and finally blinking the left eye twice, at this time, the camera first rotates to the left Turn, then the camera takes pictures, then switches the front and rear cameras, and finally stretches the switched camera.

本发明实施例通过检测定位用户眼睛;检测定位到的所述用户眼睛是否发生符合预设条件的眨眼动作;在检测到符合所述预设条件的眨眼动作的情况下,控制所述摄像头进行预设条件相应的动作。采用本发明实施例,可在检测并定位到用户眼睛的情况下,识别用户眼睛的眨眼动作,控制摄像头旋转、拍照、伸缩、前后置摄像头切换,从而增强了用户对摄影的趣味性及体验感。The embodiment of the present invention detects and locates the user's eyes; detects whether the located user's eyes have a blinking action that meets the preset condition; Actions corresponding to conditions. By adopting the embodiment of the present invention, when the user's eyes are detected and located, the blinking action of the user's eyes can be recognized, and the camera can be controlled to rotate, take pictures, stretch, and switch between the front and rear cameras, thereby enhancing the user's interest and experience in photography .

请参见图5,图5为本发明实施例提供的一种移动终端的第一实施例的结构示意图,图5中所描述的移动终端可完成实施图1、图2、图3或者图4所描述的方法,如下:Please refer to FIG. 5. FIG. 5 is a schematic structural diagram of a first embodiment of a mobile terminal provided by an embodiment of the present invention. The mobile terminal described in FIG. The method described is as follows:

定位单元501,用于通过检测定位用户眼睛。The positioning unit 501 is configured to locate the user's eyes through detection.

实现中,定位单元501在移动终端在摄像头开启模式下,利用前置摄像头或者后置摄像头的进行取景,在取景画片里进行人眼识别,可检测场景里人脸,对人脸进行定位,再定位人眼位置,可通过鼻梁检测确定人眼是人脸中的左眼还是右眼或者直接通过人脸匹配,按照人脸型中器官的相对位置,确定到底是左眼还是右眼。可选地,检测定位用户眼睛,用户的数目可以是多人,因而,场景中用户的眼睛可以是多只眼睛,如果用户的眼睛挡住了,可能会出现数目为奇数的眼睛。在某些特定场景下,如用户离摄像头镜头较远,这种情况下,移动终端会对较近的用户进行人眼识别,由最近的用户的眨眼动作控制摄像头;当人眼被其他透明物体或者反光物体挡住了,移动终端可对如镜片反光之类的情况,作高光去噪处理,使得移动终端可以更方便地识别人眼。当定位单元501识别到多个有效用户时,即多个用户都可以通过眨眼动作控制摄像头,可通过检测单元502对一个用户的眨眼动作与另一个用户或者多个用户的眨眼动作对摄像头进行控制,如一个用户的左眼与另一个用户的右眼对摄像头进行控制。这样可以更好地争强用户对移动终端的体验感与趣味性。In the implementation, the positioning unit 501 uses the front camera or the rear camera to take a view when the mobile terminal is in the camera-on mode, and performs human eye recognition in the viewfinder picture, which can detect the face in the scene, locate the face, and then To locate the position of the human eye, you can determine whether the human eye is the left eye or the right eye in the face through nose bridge detection, or directly through face matching, and determine whether it is the left eye or the right eye according to the relative positions of the organs in the face shape. Optionally, the user's eyes are detected and located. There may be multiple users. Therefore, the user's eyes in the scene may be multiple eyes. If the user's eyes are blocked, an odd number of eyes may appear. In some specific scenarios, if the user is far away from the camera lens, in this case, the mobile terminal will recognize the eyes of the nearby users, and the camera will be controlled by the blinking action of the nearest user; when the human eyes are detected by other transparent objects Or if the reflective object is blocked, the mobile terminal can perform highlight denoising processing on the situation such as mirror reflection, so that the mobile terminal can more conveniently identify human eyes. When the positioning unit 501 recognizes multiple valid users, that is, multiple users can control the camera through blinking actions, the camera can be controlled by the detection unit 502 on the blinking actions of one user and the blinking actions of another user or multiple users , such as one user's left eye controls the camera with another user's right eye. In this way, the user's sense of experience and interest in the mobile terminal can be better enhanced.

检测单元502,用于检测所述定位单元501定位到的所述用户眼睛是否发生符合第一预设条件的眨眼动作。The detection unit 502 is configured to detect whether the eye of the user located by the positioning unit 501 has a blink action that meets a first preset condition.

实现中,移动终端定位了用户的眼睛之后,检测单元502就会对用户眼睛是否发生符合第一预设条件的眨眼动作进行检测。In implementation, after the mobile terminal locates the user's eyes, the detection unit 502 will detect whether the user's eyes have a blinking action that meets the first preset condition.

作为一种可能的实施方式,第一预设条件的眨眼动作例如可包括如下眨眼动作中的至少一种:左眨眼、右眨眼、左眼先眨与右眼后眨、右眼先眨与左眼后眨、左眼连眨两次、右眼连眨两次和左右眼一起眨等。As a possible implementation manner, the blinking action of the first preset condition may include at least one of the following blinking actions, for example: blinking left, blinking right, blinking the left eye first and then blinking the right eye, blinking the right eye first and blinking the left Blink back, blink the left eye twice, blink the right eye twice, and blink the left and right eyes together.

作为一种可能的实施方式,第一预设条件还可包括但不仅限于:语音动作、手势动作、触屏手势动作、肢体动作等。As a possible implementation manner, the first preset condition may further include, but not limited to: voice action, gesture action, touch screen gesture action, body action, and the like.

作为一种可能的实施方式,左眼先眨与右眼后眨之间的眨眼时间间隔可为0.2秒~0.5秒或0.1秒~0.6秒或0.2秒~0.7秒;右眼先眨与左眼后眨之间的眨眼时间间隔可为0.2秒~0.5秒或0.1秒~0.6秒或0.2秒~0.7秒;左眼连眨两次之间的眨眼时间间隔可为0.2秒~0.5秒或0.1秒~0.6秒或0.2秒~0.7秒;右眼连眨两次之间的眨眼时间间隔可为0.2秒~0.5秒或0.1秒~0.6秒或0.2秒~0.7秒。若两次眨眼动作之间的时间间隔大于间隔时间,则认为是两个动作。As a possible implementation, the blink interval between blinking the left eye first and blinking the right eye afterwards can be 0.2 seconds to 0.5 seconds or 0.1 seconds to 0.6 seconds or 0.2 seconds to 0.7 seconds; The blink time interval between back blinks can be 0.2 seconds to 0.5 seconds or 0.1 seconds to 0.6 seconds or 0.2 seconds to 0.7 seconds; the blink time interval between double blinks of the left eye can be 0.2 seconds to 0.5 seconds or 0.1 seconds ~0.6 seconds or 0.2 seconds to 0.7 seconds; the blink interval between two consecutive blinks of the right eye can be 0.2 seconds to 0.5 seconds or 0.1 seconds to 0.6 seconds or 0.2 seconds to 0.7 seconds. If the time interval between two blinking actions is greater than the interval time, it is considered as two actions.

控制单元503,用于在所述检测单元502检测到符合所述第一预设条件的眨眼动作的情况下,控制移动终端的摄像头按照与所述第一预设条件的眨眼动作对应的旋转方式进行旋转。The control unit 503 is configured to control the camera of the mobile terminal to rotate in a manner corresponding to the blinking action of the first preset condition when the detection unit 502 detects the blinking action meeting the first preset condition. to rotate.

实现中,当检测单元502检测到符合第一预设条件的眨眼动作的情况下,控制单元503控制摄像头按照与预设条件的眨眼动作对应的旋转方式进行旋转。如一种设置方式为:当第一预设条件的眨眼动作为如下眨眼动作中的一种时:左眨眼、右眨眼、左眼先眨与右眼后眨、右眼先眨与左眼后眨、左眼连眨两次、右眼连眨两次和左右眼一起眨等,控制单元503可控制摄像头向左旋转、向右旋转、向上旋转或者向下旋转。In implementation, when the detection unit 502 detects a blinking action meeting the first preset condition, the control unit 503 controls the camera to rotate in a rotation manner corresponding to the blinking action of the preset condition. For example, a setting method is: when the blinking action of the first preset condition is one of the following blinking actions: left blinking, right blinking, left eye blinking first and right eye blinking later, right eye blinking first and left eye blinking later , blinking the left eye twice, blinking the right eye twice, and blinking the left and right eyes at the same time, etc., the control unit 503 can control the camera to rotate left, right, upward or downward.

作为一种可能的实施方式,摄像头的旋转方式可包括但不仅限于:左右旋转或上下旋转、沿着左上45度方向旋转、沿着右上45度方向旋转、沿着左下45度方向旋转、沿着右下45度方向旋转。旋转方式可为顺时针方向或逆时针方向。As a possible implementation, the rotation mode of the camera may include but not limited to: left and right rotation or up and down rotation, rotation along the upper left direction of 45 degrees, rotation along the direction of upper right 45 degrees, rotation along the direction of lower left 45 degrees, along the Rotate 45 degrees to the lower right. Rotation can be clockwise or counterclockwise.

作为一种可能的实施方式,检测单元502还用于检测到符合第一预设条件的眨眼动作的眨眼速度。当检测单元502在检测到符合第一预设条件的眨眼动作的情况的同时,检测符合所述第一预设条件的眨眼动作的眨眼速度,控制单元503控制摄像头按照控制摄像头按照与预设条件的眨眼动作对应的旋转方式进行旋转包括:控制摄像头按照与预设条件的眨眼动作对应的旋转方式,且以与该眨眼速度对应的旋转速度进行旋转。As a possible implementation manner, the detecting unit 502 is further configured to detect the blinking speed of the blinking action meeting the first preset condition. When the detection unit 502 detects the blinking action meeting the first preset condition, and detects the blinking speed of the blinking action meeting the first preset condition, the control unit 503 controls the camera according to the preset condition Rotating in a rotation manner corresponding to the blinking action includes: controlling the camera to rotate in a rotation manner corresponding to the blinking action of a preset condition, and to rotate at a rotation speed corresponding to the blinking speed.

作为一种可能的实施方式,当检测单元502检测到所述用户眼睛发生符合第二预设条件的眨眼动作时,控制单元503还用于:控制所述摄像头进行拍照。其中。As a possible implementation manner, when the detection unit 502 detects that the user's eye blinks that meets the second preset condition, the control unit 503 is further configured to: control the camera to take a picture. in.

作为一种可能的实施方式,第二预设条件的眨眼动作例如可包括如下眨眼动作中的至少一种:左眨眼、右眨眼、左眼先眨与右眼后眨、右眼先眨与左眼后眨、左眼连眨两次、右眼连眨两次和左右眼一起眨等。As a possible implementation manner, the blinking action of the second preset condition may include at least one of the following blinking actions, for example: blinking left, blinking right, blinking the left eye first and then blinking the right eye, blinking the right eye first and blinking the left Blink back, blink the left eye twice, blink the right eye twice, and blink the left and right eyes together.

作为一种可能的实施方式,当检测单元502检测到所述用户眼睛发生符合第三预设条件的眨眼动作时,控制单元503还用于:控制移动终端设备进行前后置摄像头切换。As a possible implementation manner, when the detection unit 502 detects that the user's eyes blink in accordance with the third preset condition, the control unit 503 is further configured to: control the mobile terminal device to switch between the front and rear cameras.

作为一种可能的实施方式,第三预设条件的眨眼动作例如可包括如下眨眼动作中的至少一种:左眨眼、右眨眼、左眼先眨与右眼后眨、右眼先眨与左眼后眨、左眼连眨两次、右眼连眨两次和左右眼一起眨等。As a possible implementation manner, the blink action of the third preset condition may include at least one of the following blink actions, for example: blinking left, blinking right, blinking the left eye first and then blinking the right eye, blinking the right eye first and blinking the left Blink back, blink the left eye twice, blink the right eye twice, and blink the left and right eyes together.

作为一种可能的实施方式,当检测单元502检测到所述用户眼睛发生符合第四预设条件的眨眼动作时,控制单元503还用于控制摄像头进行伸缩。As a possible implementation manner, when the detection unit 502 detects that the user's eye blinks according to the fourth preset condition, the control unit 503 is further configured to control the camera to zoom.

作为一种可能的实施方式,第四预设条件的眨眼动作例如可包括如下眨眼动作中的至少一种:左眨眼、右眨眼、左眼先眨与右眼后眨、右眼先眨与左眼后眨、左眼连眨两次、右眼连眨两次和左右眼一起眨等。As a possible implementation manner, the blinking action of the fourth preset condition may include at least one of the following blinking actions, for example: blinking left, blinking right, blinking the left eye first and then blinking the right eye, blinking the right eye first and blinking the left Blink back, blink the left eye twice, blink the right eye twice, and blink the left and right eyes together.

作为一种可能的实施方式,在检测单元502检测到符合所述第一预设条件的眨眼动作的情况下,控制单元503控制摄像头先旋转再拍照。第一预设条件的眨眼动作例如可包括如下眨眼动作中的至少一种:左眨眼、右眨眼、左眼先眨与右眼后眨、右眼先眨与左眼后眨、左眼连眨两次、右眼连眨两次和左右眼一起眨等。实现中,在检测到所述用户眼睛发生符合第一预设条件的眨眼动作时,控制摄像头先旋转再拍照。可选地,如第一预设条件的眨眼动作为左眨眼,在检测到用户左眨眼的眨眼动作情况下,摄像头先进行向左旋转,旋转到指定位置,然后进行拍照。As a possible implementation manner, when the detection unit 502 detects a blink action meeting the first preset condition, the control unit 503 controls the camera to rotate first and then take a picture. The blinking action of the first preset condition may include at least one of the following blinking actions, for example: left blinking, right blinking, left eye blinking first and right eye blinking later, right eye blinking first and left eye blinking later, left eye blinking continuously Twice, blinking the right eye twice, blinking the left and right eyes together, etc. In implementation, when it is detected that the user's eye blinks that meets the first preset condition, the camera is controlled to rotate first and then take a picture. Optionally, if the blinking action of the first preset condition is left blinking, when the blinking action of the user's left blinking is detected, the camera first rotates to the left, rotates to a designated position, and then takes a picture.

作为一种可能的实施方式,在检测单元502检测到所述用户眼睛发生符合第一预设条件的眨眼动作时,控制单元503控制摄像头先拍照再旋转。可选地,如第一预设条件的眨眼动作为左眨眼,在检测单元502检测到用户左眨眼的眨眼动作的情况下,控制单元503控制摄像头先进行拍照,然后再向左旋转。As a possible implementation manner, when the detection unit 502 detects that the user's eye blinks that meets the first preset condition, the control unit 503 controls the camera to first take a picture and then rotate. Optionally, if the blinking action of the first preset condition is left blinking, when the detection unit 502 detects the blinking action of the user blinking left, the control unit 503 controls the camera to first take a photo and then rotate to the left.

作为一种可能的实施方式,在检测单元502检测到所述用户眼睛发生符合第一预设条件的眨眼动作时,控制单元503控制摄像头先伸缩再旋转。可选地,如第一预设条件的眨眼动作为左眨眼,在检测单元502检测到用户左眨眼的眨眼动作的情况下,控制单元503控制摄像头先进行向外伸缩,伸缩到指定位置,然后再向左旋转。As a possible implementation manner, when the detection unit 502 detects that the user's eye blinks that meets the first preset condition, the control unit 503 controls the camera to zoom first and then rotate. Optionally, if the blinking action of the first preset condition is left blinking, in the case that the detection unit 502 detects the blinking action of the user blinking left, the control unit 503 controls the camera to first expand and contract to a specified position, and then Rotate left again.

作为一种可能的实施方式,在检测单元502检测到所述用户眼睛发生符合第一预设条件的眨眼动作时,控制单元503控制摄像头先旋转再伸缩。可选地,如第一预设条件的眨眼动作为左眨眼,在检测单元502检测到用户左眨眼的眨眼动作的情况下,控制单元503控制摄像头先进行旋转,然后再伸缩。As a possible implementation manner, when the detection unit 502 detects that the user's eye blinks that meets the first preset condition, the control unit 503 controls the camera to first rotate and then retract. Optionally, if the blinking action of the first preset condition is left blinking, in the case that the detection unit 502 detects the blinking action of the user blinking left, the control unit 503 controls the camera to first rotate and then expand and contract.

作为一种可能的实施方式,在检测单元502检测到所述用户眼睛发生符合第一预设条件的眨眼动作时,控制单元503控制摄像头先伸缩再拍照。可选地,如第一预设条件的眨眼动作为左眨眼,在检测单元502检测到用户左眨眼的眨眼动作的情况下,控制单元503摄像头先进行向外伸缩,伸缩到指定位置,然后拍照。As a possible implementation manner, when the detection unit 502 detects that the user's eye blinks that meets the first preset condition, the control unit 503 controls the camera to zoom in and out before taking a picture. Optionally, if the blinking action of the first preset condition is left blinking, when the detection unit 502 detects the blinking action of the user left blinking, the control unit 503 first zooms out the camera to a specified position, and then takes a picture .

作为一种可能的实施方式,在检测单元502检测到所述用户眼睛发生符合第一预设条件的眨眼动作时,控制单元503控制摄像头先拍照再伸缩。可选地,如第一预设条件的眨眼动作为左眨眼,在检测单元502检测到用户左眨眼的眨眼动作的情况下,控制单元503摄像头先进行拍照,然后进行伸缩。As a possible implementation manner, when the detection unit 502 detects that the user's eye blinks that meets the first preset condition, the control unit 503 controls the camera to first take a picture and then zoom out. Optionally, if the blinking action of the first preset condition is left blinking, in the case that the detection unit 502 detects the blinking action of the user blinking left, the control unit 503 first takes a picture with the camera, and then zooms in and out.

作为一种可能的实施方式,在检测单元502检测到所述用户眼睛发生符合第一预设条件的眨眼动作时,控制单元503控制摄像头先切换前后置摄像头再拍照。可选地,如第一预设条件的眨眼动作为左眨眼,在检测单元502检测到用户左眨眼的眨眼动作的情况下,控制单元503摄像头先进行前后置切换,然后进行拍照。As a possible implementation manner, when the detection unit 502 detects that the user's eye blinks according to the first preset condition, the control unit 503 controls the camera to switch between the front and rear cameras before taking pictures. Optionally, if the blinking action of the first preset condition is left blinking, when the detection unit 502 detects the blinking action of the user blinking left, the control unit 503 switches the camera to the front and back first, and then takes a picture.

作为一种可能的实施方式,在检测单元502检测到所述用户眼睛发生符合第一预设条件的眨眼动作时,控制单元503控制摄像头先拍照再切换前后置摄像头。可选地,如第一预设条件的眨眼动作为左眨眼,在检测单元502检测到用户左眨眼的眨眼动作的情况下,控制单元503摄像头先进行拍照,然后进行前后置切换。As a possible implementation manner, when the detection unit 502 detects that the user's eye blinks in accordance with the first preset condition, the control unit 503 controls the camera to take a picture first and then switches the front and rear cameras. Optionally, if the blinking action of the first preset condition is left blinking, when the detection unit 502 detects the blinking action of the user blinking left, the control unit 503 takes a photo with the camera first, and then performs front-to-back switching.

作为一种可能的实施方式,在检测单元502检测到所述用户眼睛发生符合第一预设条件的眨眼动作时,控制单元503控制摄像头先拍照再切换前后置摄像头再旋转。可选地,如第一预设条件的眨眼动作为左眨眼,在检测单元502检测到用户左眨眼的眨眼动作的情况下,控制单元503控制摄像头先拍照,再进行前后置摄像头切换,最后进行旋转。可选地,在检测单元502检测到所述用户眼睛发生符合第一预设条件的眨眼动作时,控制单元503控制摄像头进行旋转、拍照、伸缩、前后置摄像头切换中的任意三种组合动作。As a possible implementation manner, when the detection unit 502 detects that the user's eye blinks according to the first preset condition, the control unit 503 controls the camera to first take a picture, then switch between the front and rear cameras, and then rotate. Optionally, if the blinking action of the first preset condition is left blinking, in the case that the detection unit 502 detects the blinking action of the user blinking left, the control unit 503 controls the camera to take pictures first, then switches between the front and rear cameras, and finally performs rotate. Optionally, when the detection unit 502 detects that the user's eyes blink according to the first preset condition, the control unit 503 controls the camera to perform any three combination actions of rotating, taking pictures, zooming, and switching front and rear cameras.

作为一种可能的实施方式,在检测单元502检测到所述用户眼睛发生符合第一预设条件的眨眼动作时,控制单元503控制摄像头先拍照再切换前后置摄像头再旋转最后伸缩。可选地,如第一预设条件的眨眼动作为左眨眼,在检测单元502检测到用户左眨眼的眨眼动作的情况下,控制单元503控制摄像头先拍照,再进行前后置摄像头切换,然后进行旋转、最后伸缩。可选地,在检测单元502检测到所述用户眼睛发生符合第一预设条件的眨眼动作时,控制单元503控制摄像头进行旋转、拍照、伸缩、前后置摄像头切换中的任意四种组合动作。As a possible implementation manner, when the detection unit 502 detects that the user's eyes blink according to the first preset condition, the control unit 503 controls the camera to first take a picture, then switch the front and rear cameras, then rotate and finally zoom. Optionally, if the blinking action of the first preset condition is left blinking, in the case that the detection unit 502 detects the blinking action of the user blinking left, the control unit 503 controls the camera to take pictures first, then switches the front and rear cameras, and then performs Rotate, and finally stretch. Optionally, when the detection unit 502 detects that the user's eyes blink in accordance with the first preset condition, the control unit 503 controls the camera to perform any four combined actions of rotating, taking pictures, zooming, and switching front and rear cameras.

作为一种可能的实施方式,第一预设条件的眨眼动作可与第二预设条件的眨眼动作相同,第一预设条件的眨眼动作可与第三预设条件的眨眼动作相同,第一预设条件的眨眼动作可与第三预设条件的眨眼动作相同,第二预设条件的眨眼动作可与第三预设条件的眨眼动作相同,第二预设条件的眨眼动作可与第四预设条件的眨眼动作相同,第一预设条件的眨眼动作可与第四预设条件的眨眼动作相同。As a possible implementation manner, the blinking action of the first preset condition may be the same as the blinking action of the second preset condition, the blinking action of the first preset condition may be the same as the blinking action of the third preset condition, and the first The blinking action of the preset condition can be the same as the blinking action of the third preset condition, the blinking action of the second preset condition can be the same as the blinking action of the third preset condition, and the blinking action of the second preset condition can be the same as the blinking action of the fourth preset condition. The blinking actions of the preset conditions are the same, and the blinking actions of the first preset condition may be the same as the blinking actions of the fourth preset condition.

实现中,在检测单元502检测到符合第一预设条件的眨眼动作的情况下,控制单元503控制移动终端的摄像头进行旋转。在检测单元502检测到符合第二预设条件的眨眼动作的情况下,控制单元503控制所述摄像头进行拍照。在检测单元502检测到符合所述第三预设条件的眨眼动作的情况下,控制单元503控制移动终端进行前后置摄像头切换。在检测单元502检测到所述用户眼睛发生符合第四预设条件的眨眼动作的情况下,控制单元503控制摄像头进行伸缩。可选地,假设第一预设条件动作为左眨眼或右眨眼,控制摄像头向左旋转或向右旋转;第二预设条件动作为左眼与右眼一起眨,控制摄像头进行拍照;第三预设条件动作为左眼先眨与右眼后眨或右眼先眨与左眼后眨,控制移动终端进行前后摄像头切换;第四预设条件动作为左眼眨两次或右眼眨两次,控制摄像头进行伸缩。检测单元502检测到用户眼睛作了一组动作时,如先眨左眼,然后左右眼一起眨,再接着左眼先眨与右眼后眨,最后左眼连眨两次,此时,控制单元503控制摄像头先向左旋转,然后摄像头进行拍照,再接着进行前后置摄像头切换,最后将切换后的摄像头进行伸缩。In implementation, when the detection unit 502 detects an eye blinking action meeting the first preset condition, the control unit 503 controls the camera of the mobile terminal to rotate. In the case that the detection unit 502 detects an eye blinking action meeting the second preset condition, the control unit 503 controls the camera to take a picture. In the case that the detection unit 502 detects the blinking action meeting the third preset condition, the control unit 503 controls the mobile terminal to switch between the front and rear cameras. When the detection unit 502 detects that the user's eye blinks according to the fourth preset condition, the control unit 503 controls the camera to zoom. Optionally, assuming that the first preset condition action is to blink left or right, control the camera to rotate left or right; the second preset condition action is to blink the left eye and right eye together, and control the camera to take pictures; the third The action of the preset condition is to blink the left eye first and then blink the right eye or blink the right eye first and then blink the left eye to control the mobile terminal to switch between the front and rear cameras; the action of the fourth preset condition is to blink the left eye twice or blink the right eye twice Second, control the camera to zoom. When the detection unit 502 detects that the user's eyes have made a set of actions, such as blinking the left eye first, then blinking the left and right eyes together, then blinking the left eye first and then blinking the right eye, and finally blinking the left eye twice, at this time, the control Unit 503 controls the camera to first rotate to the left, then the camera takes pictures, then switches the front and rear cameras, and finally stretches the switched camera.

作为一种可能的实施方式,左眼先眨与右眼后眨之间的眨眼时间间隔可为0.2秒~0.5秒或0.1秒~0.6秒或0.2秒~0.7秒;右眼先眨与左眼后眨之间的眨眼时间间隔可为0.2秒~0.5秒或0.1秒~0.6秒或0.2秒~0.7秒;左眼连眨两次之间的眨眼时间间隔可为0.2秒~0.5秒或0.1秒~0.6秒或0.2秒~0.7秒;右眼连眨两次之间的眨眼时间间隔可为0.2秒~0.5秒或0.1秒~0.6秒或0.2秒~0.7秒。As a possible implementation, the blink interval between blinking the left eye first and blinking the right eye afterwards can be 0.2 seconds to 0.5 seconds or 0.1 seconds to 0.6 seconds or 0.2 seconds to 0.7 seconds; The blink time interval between back blinks can be 0.2 seconds to 0.5 seconds or 0.1 seconds to 0.6 seconds or 0.2 seconds to 0.7 seconds; the blink time interval between double blinks of the left eye can be 0.2 seconds to 0.5 seconds or 0.1 seconds ~0.6 seconds or 0.2 seconds to 0.7 seconds; the blink interval between two consecutive blinks of the right eye can be 0.2 seconds to 0.5 seconds or 0.1 seconds to 0.6 seconds or 0.2 seconds to 0.7 seconds.

本发明实施例利用定位单元501通过检测定位用户眼睛;检测单元502检测定位到的所述用户眼睛是否发生符合第一预设条件的眨眼动作;在检测到符合所述第一预设条件的眨眼动作的情况下,控制单元503控制摄像头按照与所述第一预设条件的眨眼动作执行动作。采用本发明实施例,可在检测并定位到用户眼睛的情况下,识别用户眼睛的眨眼动作,控制摄像头旋转、拍照、伸缩或前后置摄像头切换,增强了用户对摄影的趣味性及体验感。In the embodiment of the present invention, the positioning unit 501 is used to locate the user's eyes through detection; the detection unit 502 detects whether the located user's eye blinks in accordance with the first preset condition; In the case of an action, the control unit 503 controls the camera to execute the action according to the blinking action corresponding to the first preset condition. By adopting the embodiment of the present invention, when the user's eyes are detected and located, the blinking action of the user's eyes can be recognized, and the camera can be controlled to rotate, take pictures, zoom or switch between the front and rear cameras, which enhances the user's interest and experience in photography.

参见图6,图6为本发明实施例提供的一种移动终端的第二实施例结构示意图。本实施例中所描述的终端包括:至少一个输入设备1000;至少一个输出设备2000;至少一个处理器3000,例如CPU;和存储器4000,上述输入设备1000、输出设备2000、处理器3000和存储器4000通过总线5000连接。Referring to FIG. 6 , FIG. 6 is a schematic structural diagram of a second embodiment of a mobile terminal provided by an embodiment of the present invention. The terminal described in this embodiment includes: at least one input device 1000; at least one output device 2000; at least one processor 3000, such as a CPU; and a memory 4000, the above-mentioned input device 1000, output device 2000, processor 3000 and memory 4000 Connection via bus 5000.

其中,上述输入设备1000可为移动终端的取景界面,取景界面可为触控面板、普通PC、液晶屏、触控屏等,取景界面通过光学感应器件感应用户是否出现在场景里。Wherein, the above-mentioned input device 1000 can be a viewfinder interface of a mobile terminal, and the viewfinder interface can be a touch panel, a common PC, a liquid crystal screen, a touch screen, etc. The viewfinder interface senses whether the user appears in the scene through an optical sensing device.

上述输入设备1000可用于通过检测定位用户眼睛。The input device 1000 described above can be used to locate the user's eyes by detection.

上述输入设备1000可用于输入用户的眨眼动作。The above-mentioned input device 1000 can be used to input the user's blinking action.

上述输出设备2000可用于输出检测到符合第一预设条件的眨眼动作。The above-mentioned output device 2000 may be used to output the detected eye blinking action meeting the first preset condition.

上述输出设备2000输出的符合第一预设条件的眨眼动作例如可包括如下眨眼动作中的至少一种:左眨眼、右眨眼、左眼先眨与右眼后眨、右眼先眨与左眼后眨、左眼连眨两次、右眼连眨两次和左右眼一起眨。上述输出设备2000可为输出检测到符合第二预设条件的眨眼动作。The blinking action output by the output device 2000 that meets the first preset condition may include, for example, at least one of the following blinking actions: blinking left, blinking right, blinking the left eye first and then blinking the right eye, blinking the right eye first and blinking the left eye Blink back, blink the left eye twice, blink the right eye twice, and blink the left and right eyes together. The above-mentioned output device 2000 may output detected blinking actions that meet the second preset condition.

上述输出设备2000输出的符合第二预设条件的眨眼动作例如可包括如下眨眼动作中的至少一种:左眨眼、右眨眼、左眼先眨与右眼后眨、右眼先眨与左眼后眨、左眼连眨两次、右眼连眨两次和左右眼一起眨。The blinking action output by the output device 2000 that meets the second preset condition may include, for example, at least one of the following blinking actions: left blinking, right blinking, left eye blinking first and right eye blinking later, right eye blinking first and left eye blinking. Blink back, blink the left eye twice, blink the right eye twice, and blink the left and right eyes together.

上述输出设备2000可用于输出检测到符合第三预设条件的眨眼动作。The above-mentioned output device 2000 may be used to output the detected eye blinking action meeting the third preset condition.

上述输出设备2000输出的符合第三预设条件的眨眼动作例如可包括如下眨眼动作中的至少一种:左眨眼、右眨眼、左眼先眨与右眼后眨、右眼先眨与左眼后眨、左眼连眨两次、右眼连眨两次和左右眼一起眨。The eye blinking action output by the output device 2000 that meets the third preset condition may include at least one of the following eye blinking actions: left eye blinking, right eye blinking, left eye blinking first and right eye blinking later, right eye blinking first and left eye blinking Blink back, blink the left eye twice, blink the right eye twice, and blink the left and right eyes together.

上述输出设备2000可用于输出检测到符合第四预设条件的眨眼动作。The above-mentioned output device 2000 may be used to output the detected eye blinking action meeting the fourth preset condition.

上述输出设备2000输出的符合第四预设条件的眨眼动作例如可包括如下眨眼动作中的至少一种:左眨眼、右眨眼、左眼先眨与右眼后眨、右眼先眨与左眼后眨、左眼连眨两次、右眼连眨两次和左右眼一起眨。The blinking action output by the output device 2000 that meets the fourth preset condition may include at least one of the following blinking actions: left blinking, right blinking, left eye blinking first and right eye blinking later, right eye blinking first and left eye blinking Blink back, blink the left eye twice, blink the right eye twice, and blink the left and right eyes together.

上述输出设备2000可用于输出检测到符合第一预设条件的眨眼动作。The above-mentioned output device 2000 may be used to output the detected eye blinking action meeting the first preset condition.

上述输出设备2000输出的符合第一预设条件的眨眼动作例如可包括如下眨眼动作中的至少一种:左眨眼、右眨眼、左眼先眨与右眼后眨、右眼先眨与左眼后眨、左眼连眨两次、右眼连眨两次和左右眼一起眨。The blinking action output by the output device 2000 that meets the first preset condition may include, for example, at least one of the following blinking actions: blinking left, blinking right, blinking the left eye first and then blinking the right eye, blinking the right eye first and blinking the left eye Blink back, blink the left eye twice, blink the right eye twice, and blink the left and right eyes together.

上述输出设备2000输出的符合第一预设条件的眨眼动作、第二预设条件的眨眼动作、第三预设条件的眨眼动作或第四预设条件的眨眼动作中的左眼先眨与右眼后眨之间的眨眼时间间隔为0.2秒~0.5秒或0.1秒~0.6秒或0.2秒~0.7秒;右眼先眨与左眼后眨之间的眨眼时间间隔为0.2秒~0.5秒或0.1秒~0.6秒或0.2秒~0.7秒;左眼连眨两次之间的眨眼时间间隔为0.2秒~0.5秒或0.1秒~0.6秒或0.2秒~0.7秒;右眼连眨两次之间的眨眼时间间隔为0.2秒~0.5秒或0.1秒~0.6秒或0.2秒~0.7秒。In the blinking action that meets the first preset condition, the blinking action that meets the second preset condition, the blinking action that meets the third preset condition, or the blinking action that meets the fourth preset condition output by the output device 2000, the left eye blinks first and the right eye blinks first. The blinking interval between blinking behind the eyes is 0.2 seconds to 0.5 seconds or 0.1 seconds to 0.6 seconds or 0.2 seconds to 0.7 seconds; the blinking time interval between blinking of the right eye first and blinking of the left eye after blinking is 0.2 seconds to 0.5 seconds or 0.1 second to 0.6 second or 0.2 second to 0.7 second; the blink interval between two consecutive blinks of the left eye is 0.2 second to 0.5 second or 0.1 second to 0.6 second or 0.2 second to 0.7 second; The time interval between blinks is 0.2 seconds to 0.5 seconds or 0.1 seconds to 0.6 seconds or 0.2 seconds to 0.7 seconds.

上述存储器4000可以是高速RAM存储器,也可为非不稳定的存储器(non-volatile memory),例如磁盘存储器。上述存储器4000用于存储一组程序代码,上述输入设备1000、输出设备2000和处理器3000用于调用存储器4000中存储的程序代码,执行如下操作:The above-mentioned memory 4000 may be a high-speed RAM memory, or a non-volatile memory, such as a disk memory. The above-mentioned memory 4000 is used to store a set of program codes, and the above-mentioned input device 1000, output device 2000 and processor 3000 are used to call the program codes stored in the memory 4000, and perform the following operations:

上述输入设备1000,通过检测定位用户眼睛,并输入用户的眨眼动作。The above-mentioned input device 1000 locates the user's eyes through detection, and inputs the user's blinking action.

上述输出设备2000可输出检测到符合第一预设条件的眨眼动作或者可输出检测到符合第二预设条件的用户眨眼动作或者可输出检测到符合第叁预设条件的用户眨眼动作或者可输出检测到符合第四预设条件的眨眼动作。The above-mentioned output device 2000 may output an eye blinking action detected to meet a first preset condition, or may output an eye blinking action of a user that is detected to meet a second preset condition, or may output an eye blinking action of a user that is detected to meet a third preset condition, or may output A blink action meeting the fourth preset condition is detected.

上述处理器3000,在检测到符合所述第一预设条件的眨眼动作的情况下,控制移动终端的摄像头按照与所述第一预设条件的眨眼动作对应的旋转方式进行旋转。The above-mentioned processor 3000 controls the camera of the mobile terminal to rotate in a rotation manner corresponding to the blinking action of the first preset condition when the blinking action meeting the first preset condition is detected.

上述处理器3000,还用于:The above-mentioned processor 3000 is also used for:

检测所述符合所述第一预设条件的眨眼动作的眨眼速度;并控制摄像头按照控制摄像头按照与第一预设条件的眨眼动作对应的旋转方式进行旋转包括:控制摄像头按照与所述第一预设条件的眨眼动作对应的旋转方式,且以与所述眨眼速度对应的旋转速度进行旋转。Detecting the blinking speed of the blinking action that meets the first preset condition; and controlling the camera to rotate in a rotation manner corresponding to the blinking action of the first preset condition includes: controlling the camera to rotate in accordance with the first preset condition The rotation mode corresponding to the eye blinking action of the preset condition, and the rotation is performed at the rotation speed corresponding to the eye blinking speed.

上述处理器3000还用于:The above-mentioned processor 3000 is also used for:

在检测到所述用户眼睛发生符合第二预设条件的眨眼动作的情况下,控制所述摄像头进行拍照。When it is detected that the eye of the user blinks that meets the second preset condition, the camera is controlled to take a picture.

上述处理器3000还用于:The above-mentioned processor 3000 is also used for:

在检测到所述用户眼睛发生符合第三预设条件的眨眼动作的情况下,控制移动终端进行前后置摄像头切换。In a case where it is detected that the user's eyes are blinking according to the third preset condition, the mobile terminal is controlled to switch between the front and rear cameras.

上述处理器3000还用于:The above-mentioned processor 3000 is also used for:

在检测到所述用户眼睛发生符合第四预设条件的眨眼动作的情况下,控制摄像头进行伸缩。When it is detected that the user's eye blinks that meets the fourth preset condition, the camera is controlled to expand and contract.

上述处理器3000还用于:The above-mentioned processor 3000 is also used for:

在检测到所述用户眼睛发生符合第五个预设条件的眨眼动作的情况下,控制所述摄像头进行旋转、拍照、伸缩、前后置摄像头中的至少两种组合动作。When it is detected that the user's eyes are blinking in accordance with the fifth preset condition, the camera is controlled to perform at least two combined actions of rotation, photographing, telescoping, and front and rear cameras.

实现中,本发明实施例中所描述的输入设备1000、输出设备2000和处理器3000可执行本发明实施例提供的控制摄像头的移动终端可以实施如图1、图2、图3或图4中所描述的实现方式,也可执行本发明实施例提供的移动终端的图5中所描述的移动终端的实现方式,在此不再赘述。In implementation, the input device 1000, the output device 2000 and the processor 3000 described in the embodiment of the present invention can execute the mobile terminal for controlling the camera provided in the embodiment of the present invention, which can be implemented as shown in Fig. 1, Fig. 2, Fig. 3 or Fig. 4 The described implementation manner may also execute the implementation manner of the mobile terminal described in FIG. 5 of the mobile terminal provided in the embodiment of the present invention, and details are not repeated here.

本发明实施例所有实施例中的模块或子模块,可以通过通用集成电路,例如CPU(Central Processing Unit,中央处理器),或通过ASIC(Application SpecificIntegrated Circuit,专用集成电路)来实现。The modules or sub-modules in all the embodiments of the embodiments of the present invention can be implemented 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 steps in the methods of the embodiments of the present invention can be adjusted, combined and deleted according to actual needs.

本发明实施例装置中的单元可以根据实际需要进行合并、划分和删减。The units in the device of the embodiment of the present invention can be combined, divided and 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 for short).

以上所揭露的仅为本发明实施例较佳实施例而已,当然不能以此来限定本发明实施例之权利范围,因此依本发明实施例权利要求所作的等同变化,仍属本发明实施例所涵盖的范围。What is disclosed above is only a preferred embodiment of the embodiment of the present invention, and of course it cannot limit the scope of rights of the embodiment of the present invention. Therefore, the equivalent changes made according to the claims of the embodiment of the present invention still belong to the embodiment of the present invention. range covered.

Claims (16)

1. A method of controlling a camera, comprising:
locating the user's eyes by detecting;
detecting whether the positioned eyes of the user generate blinking actions meeting first preset conditions or not;
and under the condition that the blinking motion meeting the first preset condition is detected, controlling a camera of the mobile terminal to rotate according to a rotation mode corresponding to the blinking motion of the first preset condition.
2. The method of claim 1, wherein the blinking behavior of the first preset condition comprises at least one of: the eye blink is a left blink, a right blink, a left eye blink first and a right eye blink second, a right eye blink first and a left eye blink second, a right eye blink second and a left eye blink together.
3. The method of claim 2, wherein a blink time interval between a left blink and a right blink is between 0.2 seconds and 0.5 seconds;
or,
the blinking time interval between the right eye blinking first and the left eye blinking second is 0.2-0.5 seconds;
or,
the blinking time interval between two consecutive blinks of the left eye is 0.2-0.5 seconds;
or,
the blinking time interval between two times of blinking of the right eye is 0.2-0.5 seconds.
4. The method of claim 1, wherein the rotating manner comprises: rotate left and right or up and down.
5. The method of any one of claims 1 to 4, further comprising:
and controlling the camera to take pictures under the condition that the eyes of the user are detected to generate blinking actions meeting second preset conditions.
6. The method of any one of claims 1 to 4, further comprising:
and under the condition that the eyes of the user are detected to generate blinking actions meeting a third preset condition, controlling the mobile terminal to switch the front camera and the rear camera.
7. The method of any one of claims 1 to 4, further comprising:
and under the condition that the eye of the user is detected to generate a blinking action meeting a fourth preset condition, controlling the camera to stretch.
8. The method of any one of claims 1 to 4, wherein the method comprises:
detecting the blink speed of the blink action meeting the first preset condition;
the control camera rotates according to the rotation mode that the control camera corresponds with the action of blinking of first preset condition includes: and controlling the camera to rotate at a rotation speed corresponding to the blink speed according to a rotation mode corresponding to the blink action of the first preset condition.
9. A mobile terminal, comprising:
a positioning unit for positioning the eyes of the user by detection;
the detection unit is used for detecting whether the eyes of the user positioned by the positioning unit generate blinking actions meeting first preset conditions;
and the control unit is used for controlling the camera of the mobile terminal to rotate according to a rotation mode corresponding to the blinking action of the first preset condition under the condition that the detection unit detects the blinking action meeting the first preset condition.
10. The mobile terminal of claim 9, wherein the blinking behavior of the first preset condition comprises at least one of the following blinking behaviors: the eye blink is a left blink, a right blink, a left eye blink first and a right eye blink second, a right eye blink first and a left eye blink second, a right eye blink second and a left eye blink together.
11. The mobile terminal of claim 9, wherein a blink time interval between a left blink and a right blink is between 0.2 seconds and 0.5 seconds;
or,
the blinking time interval between the right eye blinking first and the left eye blinking second is 0.2-0.5 seconds;
or,
the blinking time interval between two consecutive blinks of the left eye is 0.2-0.5 seconds;
or,
the blinking time interval between two times of blinking of the right eye is 0.2-0.5 seconds.
12. The mobile terminal of claim 9, wherein the rotation mode comprises: rotate left and right or up and down.
13. The mobile terminal of any of claims 9-12, wherein the control unit is further configured to:
and controlling the camera to take pictures under the condition that the eyes of the user are detected to generate blinking actions meeting second preset conditions.
14. The mobile terminal of any of claims 9-12, wherein the control unit is further configured to:
and under the condition that the eyes of the user are detected to generate blinking actions meeting a third preset condition, controlling the mobile terminal to switch the front camera and the rear camera.
15. The mobile terminal of any of claims 9-12, wherein the control unit is further configured to:
and under the condition that the eye of the user is detected to generate a blinking action meeting a fourth preset condition, controlling the camera to stretch.
16. The mobile terminal according to any of claims 9 to 12, wherein the detecting unit is further configured to:
detecting the blink speed of the blink action meeting the first preset condition;
the control unit is further configured to:
and controlling the camera to rotate at a rotation speed corresponding to the blink speed according to a rotation mode corresponding to the blink action of the first preset condition.
CN201410713100.9A 2014-11-28 2014-11-28 Method and mobile terminal for controlling camera Pending CN104468995A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410713100.9A CN104468995A (en) 2014-11-28 2014-11-28 Method and mobile terminal for controlling camera

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410713100.9A CN104468995A (en) 2014-11-28 2014-11-28 Method and mobile terminal for controlling camera

Publications (1)

Publication Number Publication Date
CN104468995A true CN104468995A (en) 2015-03-25

Family

ID=52914330

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410713100.9A Pending CN104468995A (en) 2014-11-28 2014-11-28 Method and mobile terminal for controlling camera

Country Status (1)

Country Link
CN (1) CN104468995A (en)

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105389074A (en) * 2015-07-28 2016-03-09 广东欧珀移动通信有限公司 Smart watch control method and smart watch
CN105872388A (en) * 2016-06-06 2016-08-17 珠海市魅族科技有限公司 Shooting method, shooting device and shooting terminal
CN106354777A (en) * 2016-08-22 2017-01-25 广东小天才科技有限公司 Question searching method and device applied to electronic terminal
CN106534673A (en) * 2016-10-26 2017-03-22 上海与德信息技术有限公司 Feature recognition-based photographing method and device
CN107105160A (en) * 2017-04-25 2017-08-29 维沃移动通信有限公司 A kind of method, system and mobile terminal for starting camera
WO2018023242A1 (en) * 2016-07-31 2018-02-08 杨洁 Automatic photographing method and glasses
WO2018023247A1 (en) * 2016-07-31 2018-02-08 杨洁 Data acquisition method for automatic photographing and technical transmission and glasses
WO2018023246A1 (en) * 2016-07-31 2018-02-08 杨洁 Method for pushing information while photographing and eyeglasses
WO2018023243A1 (en) * 2016-07-31 2018-02-08 杨洁 Automatic-photographing patent-information push method and eyeglasses
WO2018023245A1 (en) * 2016-07-31 2018-02-08 杨洁 Method for automatic photographing and transmission and eyeglasses
CN108513074A (en) * 2018-04-13 2018-09-07 京东方科技集团股份有限公司 Self-timer control method and device, electronic equipment
CN112738407A (en) * 2021-01-06 2021-04-30 富盛科技股份有限公司 Method and device for controlling multiple cameras

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110098056A1 (en) * 2009-10-28 2011-04-28 Rhoads Geoffrey B Intuitive computing methods and systems
CN102624978A (en) * 2012-02-29 2012-08-01 广东步步高电子工业有限公司 Rotatable multi-camera mobile phone and three-dimensional camera implementation method based on sound source recognition and positioning
CN102799277A (en) * 2012-07-26 2012-11-28 深圳先进技术研究院 Wink action-based man-machine interaction method and system
CN102946516A (en) * 2012-11-28 2013-02-27 广东欧珀移动通信有限公司 Method and mobile terminal for realizing self-portrait by detecting blinking action of mobile terminal

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110098056A1 (en) * 2009-10-28 2011-04-28 Rhoads Geoffrey B Intuitive computing methods and systems
CN102624978A (en) * 2012-02-29 2012-08-01 广东步步高电子工业有限公司 Rotatable multi-camera mobile phone and three-dimensional camera implementation method based on sound source recognition and positioning
CN102799277A (en) * 2012-07-26 2012-11-28 深圳先进技术研究院 Wink action-based man-machine interaction method and system
CN102946516A (en) * 2012-11-28 2013-02-27 广东欧珀移动通信有限公司 Method and mobile terminal for realizing self-portrait by detecting blinking action of mobile terminal

Cited By (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105389074A (en) * 2015-07-28 2016-03-09 广东欧珀移动通信有限公司 Smart watch control method and smart watch
CN105872388A (en) * 2016-06-06 2016-08-17 珠海市魅族科技有限公司 Shooting method, shooting device and shooting terminal
WO2018023242A1 (en) * 2016-07-31 2018-02-08 杨洁 Automatic photographing method and glasses
WO2018023247A1 (en) * 2016-07-31 2018-02-08 杨洁 Data acquisition method for automatic photographing and technical transmission and glasses
WO2018023246A1 (en) * 2016-07-31 2018-02-08 杨洁 Method for pushing information while photographing and eyeglasses
WO2018023243A1 (en) * 2016-07-31 2018-02-08 杨洁 Automatic-photographing patent-information push method and eyeglasses
WO2018023245A1 (en) * 2016-07-31 2018-02-08 杨洁 Method for automatic photographing and transmission and eyeglasses
CN106354777B (en) * 2016-08-22 2019-09-17 广东小天才科技有限公司 A method and device for searching questions applied to an electronic terminal
CN106354777A (en) * 2016-08-22 2017-01-25 广东小天才科技有限公司 Question searching method and device applied to electronic terminal
CN106534673A (en) * 2016-10-26 2017-03-22 上海与德信息技术有限公司 Feature recognition-based photographing method and device
CN107105160A (en) * 2017-04-25 2017-08-29 维沃移动通信有限公司 A kind of method, system and mobile terminal for starting camera
CN108513074A (en) * 2018-04-13 2018-09-07 京东方科技集团股份有限公司 Self-timer control method and device, electronic equipment
US10666859B2 (en) 2018-04-13 2020-05-26 Boe Technology Group Co., Ltd. Self-photographing control method and device, and electronic device
CN108513074B (en) * 2018-04-13 2020-08-04 京东方科技集团股份有限公司 Self-photographing control method and device and electronic equipment
CN112738407A (en) * 2021-01-06 2021-04-30 富盛科技股份有限公司 Method and device for controlling multiple cameras
CN112738407B (en) * 2021-01-06 2022-08-30 富盛科技股份有限公司 Method and device for controlling multiple cameras

Similar Documents

Publication Publication Date Title
CN104468995A (en) Method and mobile terminal for controlling camera
KR102664705B1 (en) Electronic device and method for modifying magnification of image using multiple cameras
US9430045B2 (en) Special gestures for camera control and image processing operations
US11108953B2 (en) Panoramic photo shooting method and apparatus
KR102121592B1 (en) Method and apparatus for protecting eyesight
US9170676B2 (en) Enhancing touch inputs with gestures
CN106454135B (en) One kind is taken pictures based reminding method and mobile terminal
CN107357540B (en) Display direction adjusting method and mobile terminal
KR102053361B1 (en) Method for performing smart rotation an electronic device thereof
US10630887B2 (en) Wearable device for changing focal point of camera and method thereof
US10375312B2 (en) Imaging device and video generation method by imaging device
US20180217680A1 (en) Wearable device, control method, and control code
US20170070665A1 (en) Electronic device and control method using electronic device
CN106713764A (en) Photographic method and mobile terminal
US20150205994A1 (en) Smart watch and control method thereof
KR102308201B1 (en) User terminal apparatus and control method thereof
CN104238739A (en) Visibility improvement method based on eye tracking and electronic device
CN104065880A (en) A processing method and system for automatically taking pictures based on eye tracking technology
US20180240213A1 (en) Information processing system, information processing method, and program
JP6229069B2 (en) Mobile terminal, how to handle virtual buttons
CN106815809B (en) Picture processing method and device
CN109040524A (en) Artifact eliminating method, device, storage medium and terminal
CN106973222A (en) The control method and mobile terminal of a kind of Digital Zoom
CN104954672A (en) Mobile terminal and manual focusing method thereof
CN107003730B (en) Electronic equipment, photographing method and photographing device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20150325

RJ01 Rejection of invention patent application after publication