[go: up one dir, main page]

CN108810276A - A kind of method and mobile terminal of face recognition - Google Patents

A kind of method and mobile terminal of face recognition Download PDF

Info

Publication number
CN108810276A
CN108810276A CN201810586130.6A CN201810586130A CN108810276A CN 108810276 A CN108810276 A CN 108810276A CN 201810586130 A CN201810586130 A CN 201810586130A CN 108810276 A CN108810276 A CN 108810276A
Authority
CN
China
Prior art keywords
mobile terminal
target
facial recognition
detected
face recognition
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201810586130.6A
Other languages
Chinese (zh)
Other versions
CN108810276B (en
Inventor
粟舟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Weaver Mobile Communications (shenzhen) Co Ltd
Original Assignee
Weaver Mobile Communications (shenzhen) Co 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 Weaver Mobile Communications (shenzhen) Co Ltd filed Critical Weaver Mobile Communications (shenzhen) Co Ltd
Priority to CN201810586130.6A priority Critical patent/CN108810276B/en
Publication of CN108810276A publication Critical patent/CN108810276A/en
Application granted granted Critical
Publication of CN108810276B publication Critical patent/CN108810276B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72454User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to context-related or environment-related conditions
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/30Authentication, i.e. establishing the identity or authorisation of security principals
    • G06F21/31User authentication
    • G06F21/32User authentication using biometric data, e.g. fingerprints, iris scans or voiceprints
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M2250/00Details of telephonic subscriber devices
    • H04M2250/12Details of telephonic subscriber devices including a sensor for measuring a physical value, e.g. temperature or motion

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Theoretical Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Computer Hardware Design (AREA)
  • Environmental & Geological Engineering (AREA)
  • Human Computer Interaction (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Telephone Function (AREA)

Abstract

本发明实施例提供一种面部识别的方法及移动终端,该方法包括:在所述移动终端进行面部识别的过程中,若检测到所述移动终端处于目标运动状态,取消面部识别,否则,继续进行面部识别。通过上述方式,本发明能够在移动终端进行面部识别的过程中,根据用户的不同需求,取消或继续进行面部识别,不仅能在误触发面部识别时,及时取消面部识别,还能满足用户突发的、临时性的取消面部识别的需求,更加方便快捷,提升用户体验。

An embodiment of the present invention provides a face recognition method and a mobile terminal. The method includes: during the face recognition process of the mobile terminal, if it is detected that the mobile terminal is in a target motion state, cancel the face recognition; otherwise, continue to Do facial recognition. Through the above method, the present invention can cancel or continue face recognition according to the different needs of users during the process of face recognition on the mobile terminal, not only can cancel face recognition in time when face recognition is triggered by mistake, but also meet user emergency It is more convenient and quicker to temporarily cancel the need for facial recognition and improve user experience.

Description

一种面部识别的方法及移动终端A face recognition method and mobile terminal

技术领域technical field

本发明实施例涉及移动终端技术领域,尤其涉及一种面部识别的方法及移动终端。Embodiments of the present invention relate to the technical field of mobile terminals, and in particular, to a face recognition method and a mobile terminal.

背景技术Background technique

随着移动终端的发展,越来越多的移动终端支持面部识别的功能,只需要用户将面部对准手机前置摄像头,就可以通过识别此面部特征是否与事先录入的一致,从而对用户使用移动终端的某些功能,如:解锁、支付等的权限进行验证,操作简单,响应快捷。与指纹识别不同,面部识别的过程是非接触式的,无需像指纹识别一样,将手指与固定的识别位置相接触,因此,面部识别难以有明确的触发方式,容易造成误触发,或者影响其他功能的正常使用。With the development of mobile terminals, more and more mobile terminals support the function of facial recognition. Users only need to point their faces at the front camera of the mobile phone to identify whether the facial features are consistent with those recorded in advance. Some functions of the mobile terminal, such as: unlocking, payment, etc., are verified, and the operation is simple and the response is fast. Unlike fingerprint recognition, the process of facial recognition is non-contact. Like fingerprint recognition, there is no need to touch your finger to a fixed recognition position. Therefore, it is difficult to have a clear trigger method for facial recognition, which may easily cause false triggers or affect other functions. normal use.

例如:现有技术中对处于锁屏状态的移动终端进行解锁时,通常在用户点亮移动终端的显示屏(或者有触发点亮显示屏的操作)之后启动面部识别。但是在移动终端未加入面部识别功能之前,点亮显示屏通常出现的是锁屏界面,用户可以在锁屏界面上查看时间、通知,和欣赏自己喜欢的壁纸,甚至可以控制音乐的播放和暂停。移动终端加入了面部识别功能之后,点亮显示屏后就启动面部识别,移动终端解锁进入待机状态,不停留在锁屏界面,此时,用户无法使用锁屏界面提供的功能,如:一用户想将音乐暂停,但点亮显示屏后就立刻启动面部识别,进入解锁后的界面,从而用户不能在锁屏界面暂停播放中的音乐,给用户带来不便。For example: in the prior art, when unlocking a mobile terminal in a locked screen state, face recognition is usually started after the user lights up the display screen of the mobile terminal (or there is an operation that triggers the display screen to be turned on). However, before the face recognition function was added to the mobile terminal, the lock screen interface usually appeared when the display screen was turned on. Users could check the time, notifications, and enjoy their favorite wallpapers on the lock screen interface, and even control the playback and pause of music. . After the face recognition function is added to the mobile terminal, the face recognition will be started after the display is turned on, and the mobile terminal will be unlocked and enter the standby state without staying on the lock screen interface. At this time, the user cannot use the functions provided by the lock screen interface, such as: a user I want to pause the music, but after turning on the display screen, face recognition is activated immediately to enter the unlocked interface, so that the user cannot pause the playing music on the lock screen interface, which brings inconvenience to the user.

因而,如何在移动终端进行面部识别的过程中,取消面部识别,是目前亟待解决的技术问题。Therefore, how to cancel the facial recognition during the facial recognition process of the mobile terminal is a technical problem to be solved urgently at present.

发明内容Contents of the invention

本发明实施例提供一种面部识别的方法及移动终端,以解决如何在移动终端进行面部识别的过程中,取消面部识别的问题。Embodiments of the present invention provide a face recognition method and a mobile terminal to solve the problem of how to cancel face recognition during the face recognition process of the mobile terminal.

为了解决上述技术问题,本发明是这样实现的:In order to solve the problems of the technologies described above, the present invention is achieved in that:

第一方面,本发明实施例提供了一种面部识别的方法,应用于移动终端,包括:In a first aspect, an embodiment of the present invention provides a face recognition method applied to a mobile terminal, including:

在所述移动终端进行面部识别的过程中,若检测到所述移动终端处于目标运动状态,取消面部识别,否则,继续进行面部识别。During the facial recognition process of the mobile terminal, if it is detected that the mobile terminal is in a moving state of the target, the facial recognition is canceled; otherwise, the facial recognition is continued.

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

面部识别模块,用于在所述移动终端进行面部识别的过程中,若检测到所述移动终端处于目标运动状态,取消面部识别,否则,继续进行面部识别。The face recognition module is used to cancel the face recognition if it is detected that the mobile terminal is in the target motion state during the face recognition process of the mobile terminal, otherwise, continue to perform face recognition.

第三方面,本发明实施例提供了一种移动终端,包括处理器、存储器及存储在所述存储器上并可在所述处理器上运行的计算机程序,所述计算机程序被所述处理器执行时实现如上述的面部识别的方法的步骤。In a third aspect, an embodiment of the present invention provides a mobile terminal, including a processor, a memory, and a computer program stored on the memory and operable on the processor, and the computer program is executed by the processor When realizing the steps of the method for facial recognition as described above.

第四方面,本发明实施例提供了一种计算机可读介质,所述计算机可读存储介质上存储计算机程序,所述计算机程序被处理器执行时实现如上述的面部识别方法的步骤。In a fourth aspect, an embodiment of the present invention provides a computer-readable medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the steps of the above facial recognition method are implemented.

在本发明实施例中,能够在移动终端进行面部识别的过程中,根据用户的不同需求,取消或继续进行面部识别,不仅能在误触发面部识别时,及时取消面部识别,还能满足用户突发的、临时性的取消面部识别的需求,更加方便快捷,提升用户体验。In the embodiment of the present invention, during the facial recognition process of the mobile terminal, the facial recognition can be canceled or continued according to the different needs of the user. Not only can the facial recognition be canceled in time when the facial recognition is triggered by mistake, but it can also meet the needs of the user. It is more convenient and faster to cancel the need for facial recognition issued and temporarily, and improve the user experience.

附图说明Description of drawings

图1是本发明实施例一的面部识别的方法的流程示意图;FIG. 1 is a schematic flow chart of a face recognition method according to Embodiment 1 of the present invention;

图2是本发明一些优选实施例的面部识别的方法中移动终端向目标方向翻转的示意图;Fig. 2 is a schematic diagram of the mobile terminal flipping towards the target direction in the face recognition method of some preferred embodiments of the present invention;

图3是本发明一些优选实施例的面部识别的方法中具体应用场景的流程示意图;Fig. 3 is a schematic flow chart of a specific application scenario in the facial recognition method of some preferred embodiments of the present invention;

图4是本发明实施例二的移动终端的结构示意图;FIG. 4 is a schematic structural diagram of a mobile terminal according to Embodiment 2 of the present invention;

图5是本发明一些优选实施例的移动终端的结构示意图;Fig. 5 is a schematic structural diagram of a mobile terminal in some preferred embodiments of the present invention;

图6是本发明实施例三的移动终端的结构示意图;FIG. 6 is a schematic structural diagram of a mobile terminal according to Embodiment 3 of the present invention;

图7是实现本发明各个实施例的一种移动终端的硬件结构示意图。Fig. 7 is a schematic diagram of a hardware structure of a mobile terminal implementing various embodiments of the present invention.

具体实施方式Detailed ways

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

参阅图1,图1是本发明实施例一的面部识别的方法的流程示意图,该方法应用于移动终端,包括:Referring to FIG. 1, FIG. 1 is a schematic flowchart of a face recognition method according to Embodiment 1 of the present invention. The method is applied to a mobile terminal, including:

步骤S11:在所述移动终端进行面部识别的过程中,若检测到所述移动终端处于目标运动状态,取消面部识别,否则,继续进行面部识别。Step S11: During the face recognition process of the mobile terminal, if it is detected that the mobile terminal is in a moving state of the target, cancel the face recognition, otherwise, continue the face recognition.

其中,所述移动终端进行面部识别的过程包括以下阶段:启动阶段、面部采集阶段、匹配分析阶段和输出结果阶段。在移动终端进行面部识别过程中的任意阶段,可实时通过所述移动终端中的加速度传感器、重力传感器或陀螺仪等器件检测移动终端的运动状况,例如:移动终端运动的方向、角度、速度等。根据实时检测的移动终端的运动状况,结合根据实际需求设定的目标运动状态,将所述目标运动状态作为判断是否需要取消面部识别的标准,从而取消面部识别或继续进行面部识别。Wherein, the process of performing facial recognition by the mobile terminal includes the following stages: a start-up stage, a face collection stage, a matching analysis stage and a result output stage. At any stage during the face recognition process of the mobile terminal, the acceleration sensor, gravity sensor or gyroscope and other devices in the mobile terminal can be used to detect the movement status of the mobile terminal in real time, such as: the direction, angle, speed, etc. of the mobile terminal movement . According to the motion status of the mobile terminal detected in real time, combined with the target motion state set according to actual needs, the target motion state is used as a criterion for judging whether to cancel facial recognition, thereby canceling facial recognition or continuing facial recognition.

本发明实施例能够实现在移动终端进行面部识别的过程中,根据用户的不同需求,取消或继续进行面部识别,不仅能在误触发面部识别时,及时取消面部识别,还能满足用户突发的、临时性的取消面部识别的需求,更加方便快捷,提升用户体验。The embodiment of the present invention can realize that in the process of face recognition of the mobile terminal, according to the different needs of the user, the face recognition can be canceled or continued. , Temporarily cancel the need for facial recognition, more convenient and faster, and improve user experience.

在本发明的一些优选实施例中,所述目标运动状态为向目标方向翻转,且翻转的角度大于或等于目标角度。In some preferred embodiments of the present invention, the target motion state is flipping toward the target direction, and the flipping angle is greater than or equal to the target angle.

可选地,检测到所述移动终端向目标方向翻转时,获取所述移动终端向所述目标方向翻转的角度;当所述翻转的角度大于或等于所述目标角度时,取消面部识别;当所述翻转的角度小于所述目标角度时,继续进行面部识别。Optionally, when it is detected that the mobile terminal is flipped toward the target direction, the angle at which the mobile terminal is flipped toward the target direction is obtained; when the flipped angle is greater than or equal to the target angle, facial recognition is canceled; when When the flipped angle is smaller than the target angle, face recognition is continued.

在面部采集阶段中,当检测到所述移动终端向目标方向翻转,且翻转的角度大于或等于所述目标角度时,移动终端的前置摄像头不能检测到用户完整的面部,因而,说明用户需要取消面部识别,进而取消面部识别。In the face collection stage, when it is detected that the mobile terminal is flipped towards the target direction, and the flipped angle is greater than or equal to the target angle, the front camera of the mobile terminal cannot detect the complete face of the user, thus indicating that the user needs to Cancel Face ID, which in turn cancels Face ID.

其中,所述目标方向可以是与移动终端所在平面呈角度的方向,或者任意其他设定方向,所述目标角度可根据实际需求进行设定。所述移动终端翻转时可以绕一目标轴(例如:移动终端的一条边)翻转。Wherein, the target direction may be a direction forming an angle with the plane where the mobile terminal is located, or any other set direction, and the target angle may be set according to actual needs. When the mobile terminal is turned over, it can be turned around a target axis (for example, a side of the mobile terminal).

举例来说,参阅图2,移动终端21位于用户的面部22的正前方,目标方向为图2中箭头所示方向,目标角度为30°,当检测到移动终端沿箭头所示方向绕轴翻转时,获取移动终端翻转的角度,当翻转的角度大于或等于30°时,移动终端的前置摄像头不能检测到用户完整的面部,取消面部识别,当翻转的角度小于30°时,继续进行面部识别。For example, referring to FIG. 2, the mobile terminal 21 is located directly in front of the user's face 22, the target direction is the direction shown by the arrow in FIG. 2, and the target angle is 30°. , obtain the flip angle of the mobile terminal. When the flip angle is greater than or equal to 30°, the front camera of the mobile terminal cannot detect the complete face of the user, and cancel facial recognition. When the flip angle is less than 30°, continue to perform facial recognition. identify.

可选地,所述目标角度为180°。Optionally, the target angle is 180°.

当检测到移动终端被翻转180°时,此时,用户的面部正对与移动终端的显示屏相背的一面,移动终端的前置摄像头检测不到用户的面部,取消面部识别,否则,继续进行面部识别。When it is detected that the mobile terminal is flipped 180°, at this time, the user's face is facing the side opposite to the display screen of the mobile terminal, and the front camera of the mobile terminal cannot detect the user's face, cancel facial recognition, otherwise, continue Perform facial recognition.

在启动阶段、匹配分析阶段或输出结果阶段,当检测到所述移动终端向目标方向翻转,且翻转的角度大于或等于所述目标角度时,也可以取消面部识别。In the startup phase, matching analysis phase or output result phase, when it is detected that the mobile terminal is flipped towards the target direction, and the flip angle is greater than or equal to the target angle, facial recognition can also be canceled.

在本发明的另一些优选实施例中,所述目标运动状态为晃动状态。也就是说,当检测到所述移动终端被晃动时,取消面部识别,否则,继续进行面部识别。In other preferred embodiments of the present invention, the target motion state is a shaking state. That is to say, when it is detected that the mobile terminal is shaken, the facial recognition is canceled; otherwise, the facial recognition continues.

在面部采集阶段中,当检测到所述移动终端被晃动时,移动终端的前置摄像头不能清楚检测到用户完整的面部,说明用户需要取消面部识别,进而取消面部识别。在启动阶段、匹配分析阶段或输出结果阶段,当检测到所述移动终端被晃动时,也可以取消面部识别。In the face collection stage, when it is detected that the mobile terminal is shaken, the front camera of the mobile terminal cannot clearly detect the complete face of the user, indicating that the user needs to cancel the facial recognition, and then cancel the facial recognition. In the startup stage, matching analysis stage or output result stage, when it is detected that the mobile terminal is shaken, facial recognition can also be canceled.

在本发明的一些优选实施例中,步骤S11之前,所述方法还包括:在检测到满足触发所述移动终端启动面部识别的触发条件的情况下,启动面部识别。In some preferred embodiments of the present invention, before step S11, the method further includes: starting face recognition when it is detected that a trigger condition triggering the mobile terminal to start face recognition is met.

可选地,所述触发条件为所述移动终端的目标物理按键(如:电源键和/或音量键)被按压。Optionally, the trigger condition is that a target physical key (such as a power key and/or a volume key) of the mobile terminal is pressed.

可选地,所述触发条件为检测到目标应用的一目标功能被触发。Optionally, the trigger condition is that a target function of the target application is detected to be triggered.

其中,所述目标应用可以为移动终端上安装的理财类、购物类应用,所述目标功能可以为登录、支付功能。如:一用户利用一手机银行应用向好友转账,当检测到“确认转账”按键被点击时,启动面部识别,从而能方便、快速地对用户的权限进行验证。又如:一用户利用一购物应用进行确认收货,当检测到“确认收货”按键被点击时,启动面部识别。当然,所述目标应用、所述目标功能可以根据实际需求具体设定,更加灵活方便。Wherein, the target application may be financial management and shopping applications installed on the mobile terminal, and the target function may be login and payment functions. For example: a user uses a mobile banking application to transfer money to a friend. When the "confirm transfer" button is detected to be clicked, facial recognition is activated, so that the user's authority can be verified conveniently and quickly. Another example: a user uses a shopping application to confirm receipt, and when it is detected that the "confirm receipt" button is clicked, facial recognition is activated. Of course, the target application and the target function can be specifically set according to actual needs, which is more flexible and convenient.

虽然用户在触发目标应用的一目标功能时已经有触发面部识别的心理预期,不太容易造成预期外的误触发,但启动面部识别后,用户突然想取消本次面部识别时,采用本发明实施例中的面部识别的方法,能够更方便地取消面部识别,进一步提升用户体验。Although the user already has the psychological expectation of triggering facial recognition when triggering a target function of the target application, it is not easy to cause unexpected false triggers, but after starting facial recognition, when the user suddenly wants to cancel this facial recognition, the implementation of the present invention The facial recognition method in the example can cancel the facial recognition more conveniently and further improve the user experience.

可选地,所述触发条件为当所述移动终端处于锁屏状态,检测到用于点亮所述移动终端的显示屏的操作,且未检测到目标触控操作。Optionally, the trigger condition is that when the mobile terminal is in a screen-locked state, an operation for turning on the display screen of the mobile terminal is detected, and no target touch operation is detected.

其中,检测到的用于点亮所述移动终端的显示屏的操作可以为以下至少之一:抬腕解锁操作、锁屏/解锁键被按压的操作、电源键被按压的操作和双击显示屏的触控操作。其中,抬腕解锁操作为用户手持移动终端抬动手腕的操作,可通过检测移动终端被倾斜的角度,来判断是否有抬腕解锁操作。Wherein, the detected operation for lighting up the display screen of the mobile terminal may be at least one of the following: an operation of raising the wrist to unlock, an operation of pressing the lock screen/unlock key, an operation of pressing the power key, and double-clicking the display screen touch operation. Wherein, the operation of raising the wrist to unlock is an operation in which the user holds the mobile terminal and raises the wrist, and whether there is an operation of raising the wrist to unlock can be determined by detecting the angle at which the mobile terminal is tilted.

所述目标触控操作可根据实际需求进行设定,例如:可以设定所述目标触控操作为在所述显示屏上的显示区域按压的按压操作,或者,在所述显示屏上绘制目标图案的滑动操作,或者,点击所述显示屏上显示的目标按键的点击操作。The target touch operation can be set according to actual needs, for example: the target touch operation can be set as a press operation of pressing a display area on the display screen, or drawing a target on the display screen The sliding operation of the pattern, or the clicking operation of clicking the target button displayed on the display screen.

其中,所述目标按键可以为用于指示不进行面部识别的取消按键,或者,用于触发目标应用的一目标功能的按键,例如:在锁屏界面上显示的用于触发音乐播放器暂停播放音乐的暂停按键。Wherein, the target button may be a cancel button used to indicate that facial recognition is not performed, or a button used to trigger a target function of the target application, for example: a button displayed on the lock screen interface used to trigger the music player to pause playback Pause button for music.

请参阅图3,在一具体应用场景中,一移动终端处于锁屏状态,当检测到用于点亮所述移动终端的显示屏的操作时,点亮所述显示屏;当检测到目标触控操作,保持所述锁屏状态,不启动面部识别,满足了用户仅希望点亮显示屏而无需启动面部识别进行解锁的需求,便于用户在锁屏界面上查看时间或推送的消息等;否则,启动面部识别。假设移动终端进行面部识别的过程所需的时间为3s,在这3s内,若检测到所述移动终端向目标方向翻转,获取所述移动终端向所述目标方向翻转的角度;当所述翻转的角度大于或等于目标角度时,取消本次面部识别;当所述翻转的角度小于目标角度时,继续进行面部识别,以对移动终端解锁。Please refer to FIG. 3. In a specific application scenario, a mobile terminal is in a screen-locked state. When an operation for lighting the display screen of the mobile terminal is detected, the display screen is lit; Control operation, keep the lock screen state, do not start face recognition, meet the needs of users who only want to light up the display screen without starting face recognition for unlocking, so that users can check the time or pushed messages on the lock screen interface; otherwise to activate facial recognition. Assuming that the time required for the mobile terminal to perform facial recognition is 3s, within these 3s, if it is detected that the mobile terminal is flipped to the target direction, the angle at which the mobile terminal is flipped to the target direction is obtained; when the flip When the angle of flipping is greater than or equal to the target angle, the face recognition is canceled; when the flipped angle is smaller than the target angle, face recognition is continued to unlock the mobile terminal.

在现有技术常见的三种解锁方式中,第一种,点亮显示屏后就启动面部识别,移动终端解锁进入待机状态,不停留在锁屏界面,用户无法使用锁屏界面的功能,给用户带来不便;第二种,对处于锁屏状态的移动终端进行解锁时,在锁屏界面不进行面部识别,通过其他的方式(如:在显示屏上上滑)启动面部识别,操作繁琐;第三种,点亮显示屏的同时启动面部识别进行解锁,但仍停留在锁屏界面,仍需要再操作一步才能实现真正的“解锁”,操作也十分繁琐。而本发明实施例不仅提供了多种触发面部识别操作的方式,还能在启动面部识别之后,取消面部识别,从而能满足用户的不同需求,如:仅希望点亮显示屏而不启动面部识别进行解锁;点亮显示屏并对移动终端解锁;启动面部识别后又需要取消面部识别等,操作简单,方便快捷。Among the three common unlocking methods in the prior art, the first one is to start facial recognition after the display screen is lit, and the mobile terminal is unlocked and enters the standby state without staying on the lock screen interface, and the user cannot use the functions of the lock screen interface. Inconvenience to the user; second, when unlocking the mobile terminal in the locked screen state, face recognition is not performed on the lock screen interface, and face recognition is started by other methods (such as: sliding up on the display screen), which is cumbersome to operate ; The third way is to start facial recognition to unlock while lighting up the display screen, but it still stays on the lock screen interface, and still needs one more operation to realize the real "unlock", and the operation is also very cumbersome. However, the embodiment of the present invention not only provides a variety of ways to trigger facial recognition operations, but also cancels facial recognition after face recognition is activated, so as to meet different needs of users, such as: only want to light up the display screen without activating facial recognition Unlocking; lighting the display screen and unlocking the mobile terminal; canceling face recognition after starting face recognition, etc., the operation is simple, convenient and quick.

本发明实施例中,移动终端进行面部识别的过程所需时间可以根据需要设定,例如为3s,或5s等。该面部识别的过程所需时间为从启动面部识别开始至面部识别结束所需时间,即启动面部识别所需时间,加上采集用户的面部特征的时间、与保存的面部特征进行比对的时间和输出比对结果的时间。在该面部识别的过程中,可以根据需要取消面部识别,以满足用户的不同需求。In the embodiment of the present invention, the time required for the facial recognition process of the mobile terminal can be set as required, for example, 3s or 5s. The time required for the facial recognition process is the time required from the start of facial recognition to the end of facial recognition, that is, the time required to start facial recognition, plus the time for collecting the user's facial features and the time for comparing with the saved facial features and the time to output the comparison result. During the facial recognition process, the facial recognition can be canceled as needed to meet different needs of users.

基于与上述面部识别的方法相同的发明构思,本发明还提供一种移动终端,参阅图4,图4是本发明实施例二的移动终端40的结构示意图,包括:Based on the same inventive concept as the above facial recognition method, the present invention also provides a mobile terminal, refer to FIG. 4 , which is a schematic structural diagram of a mobile terminal 40 according to Embodiment 2 of the present invention, including:

面部识别模块41,用于在所述移动终端进行面部识别的过程中,若检测到所述移动终端处于目标运动状态,取消面部识别,否则,继续进行面部识别。The face recognition module 41 is configured to cancel the face recognition if it is detected that the mobile terminal is in a moving state during the face recognition process of the mobile terminal, otherwise, continue to perform face recognition.

本发明实施例的移动终端能够在面部识别的过程中,根据用户的不同需求,取消或继续进行面部识别,不仅能在误触发面部识别时,及时取消面部识别,还能满足用户突发的、临时性的取消面部识别的需求,更加方便快捷,提升用户体验。The mobile terminal of the embodiment of the present invention can cancel or continue face recognition according to the different needs of users during the process of face recognition. Temporarily canceling the need for facial recognition is more convenient and quicker, and improves user experience.

优选地,所述目标运动状态为向目标方向翻转,且翻转的角度大于或等于目标角度;或者,所述目标运动状态为晃动状态。Preferably, the target motion state is flipping toward the target direction, and the flip angle is greater than or equal to the target angle; or, the target motion state is a shaking state.

优选地,参阅图5,所述移动终端40还包括:Preferably, referring to FIG. 5, the mobile terminal 40 further includes:

启动模块42,用于在检测到满足触发所述移动终端启动面部识别的触发条件的情况下,启动面部识别。The starting module 42 is configured to start facial recognition when it is detected that the trigger condition for triggering the mobile terminal to start facial recognition is met.

优选地,所述触发条件为当所述移动终端处于锁屏状态,检测到用于点亮所述移动终端的显示屏的操作,且未检测到目标触控操作;或者,所述触发条件为检测到目标应用的一目标功能被触发;或者,所述触发条件为所述移动终端的目标物理按键被按压。Preferably, the trigger condition is when the mobile terminal is in a locked screen state, an operation for lighting up the display screen of the mobile terminal is detected, and no target touch operation is detected; or, the trigger condition is It is detected that a target function of the target application is triggered; or, the trigger condition is that a target physical key of the mobile terminal is pressed.

优选地,所述目标触控操作为在所述显示屏上的显示区域按压的按压操作,或者,在所述显示屏上绘制目标图案的滑动操作,或者,点击所述显示屏上显示的目标按键的点击操作。Preferably, the target touch operation is a pressing operation of pressing a display area on the display screen, or a sliding operation of drawing a target pattern on the display screen, or clicking a target displayed on the display screen Button click operation.

基于与上述面部识别的方法相同的发明构思,本发明还提供一种移动终端,参阅图6,图6是本发明实施例三的移动终端60的结构示意图,包括处理器61、存储器62及存储在所述存储器62上并可在所述处理器61上运行的计算机程序,所述处理器61执行所述程序时实现如下步骤:Based on the same inventive concept as the above facial recognition method, the present invention also provides a mobile terminal, referring to FIG. On the memory 62 and the computer program that can run on the processor 61, the processor 61 implements the following steps when executing the program:

在所述移动终端进行面部识别的过程中,若检测到所述移动终端处于目标运动状态,取消面部识别,否则,继续进行面部识别。During the facial recognition process of the mobile terminal, if it is detected that the mobile terminal is in a moving state of the target, the facial recognition is canceled; otherwise, the facial recognition is continued.

本发明实施例的处理器能够在移动终端进行面部识别的过程中,根据用户的不同需求,取消或继续进行面部识别,不仅能在误触发面部识别时,及时取消面部识别,还能满足用户突发的、临时性的取消面部识别的需求,更加方便快捷,提升用户体验。The processor of the embodiment of the present invention can cancel or continue face recognition according to different needs of users during the face recognition process of the mobile terminal. It is more convenient and faster to cancel the need for facial recognition issued and temporarily, and improve the user experience.

优选地,所述目标运动状态为向目标方向翻转,且翻转的角度大于或等于目标角度;或者,所述目标运动状态为晃动状态。Preferably, the target motion state is flipping toward the target direction, and the flip angle is greater than or equal to the target angle; or, the target motion state is a shaking state.

优选地,计算机程序被处理器61执行时还可实现如下步骤:Preferably, when the computer program is executed by the processor 61, the following steps can also be realized:

所述在所述移动终端进行面部识别的过程中,若检测到所述移动终端处于目标运动状态,取消面部识别,否则,继续进行面部识别的步骤之前,所述方法还包括:In the process of performing facial recognition on the mobile terminal, if it is detected that the mobile terminal is in a target motion state, cancel the facial recognition; otherwise, before proceeding to the step of facial recognition, the method further includes:

在检测到满足触发所述移动终端启动面部识别的触发条件的情况下,启动面部识别。When it is detected that the trigger condition for triggering the mobile terminal to start the facial recognition is met, the facial recognition is started.

优选地,所述触发条件为当所述移动终端处于锁屏状态,检测到用于点亮所述移动终端的显示屏的操作,且未检测到目标触控操作;或者,所述触发条件为检测到目标应用的一目标功能被触发;或者,所述触发条件为所述移动终端的目标物理按键被按压。Preferably, the trigger condition is when the mobile terminal is in a locked screen state, an operation for lighting up the display screen of the mobile terminal is detected, and no target touch operation is detected; or, the trigger condition is It is detected that a target function of the target application is triggered; or, the trigger condition is that a target physical key of the mobile terminal is pressed.

优选地,所述目标触控操作为在所述显示屏上的显示区域按压的按压操作,或者,在所述显示屏上绘制目标图案的滑动操作,或者,点击所述显示屏上显示的目标按键的点击操作。Preferably, the target touch operation is a pressing operation of pressing a display area on the display screen, or a sliding operation of drawing a target pattern on the display screen, or clicking a target displayed on the display screen Button click operation.

参阅图7,图7为实现本发明各个实施例的一种终端的硬件结构示意图。Referring to FIG. 7, FIG. 7 is a schematic diagram of a hardware structure of a terminal implementing various embodiments of the present invention.

该移动终端100包括但不限于:射频单元101、网络模块102、音频输出单元103、输入单元104、传感器105、显示单元106、用户输入单元107、接口单元108、存储器109、处理器110、以及电源111等部件。本领域技术人员可以理解,图7中示出的移动终端结构并不构成对移动终端的限定,移动终端可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。在本发明实施例中,移动终端包括但不限于手机、平板电脑、笔记本电脑、掌上电脑、车载终端、可穿戴设备、以及计步器等。The mobile terminal 100 includes but not limited to: a radio frequency unit 101, a network module 102, an audio output unit 103, an input unit 104, a sensor 105, a display unit 106, a user input unit 107, an interface unit 108, a memory 109, a processor 110, and Power supply 111 and other components. Those skilled in the art can understand that the structure of the mobile terminal shown in FIG. 7 does not constitute a limitation on the mobile terminal, and the mobile terminal may include more or less components than shown in the figure, or combine some components, or different components layout. In the embodiment of the present invention, the mobile terminal includes, but is not limited to, a mobile phone, a tablet computer, a notebook computer, a palmtop computer, a vehicle-mounted terminal, a wearable device, and a pedometer.

其中,处理器110,用于在所述移动终端进行面部识别的过程中,若检测到所述移动终端处于目标运动状态,取消面部识别,否则,继续进行面部识别。Wherein, the processor 110 is configured to cancel the facial recognition if it is detected that the mobile terminal is in a target motion state during the facial recognition process of the mobile terminal, otherwise, continue to perform facial recognition.

本发明实施例的处理器能够在移动终端进行面部识别的过程中,根据用户的不同需求,取消或继续进行面部识别,不仅能在误触发面部识别时,及时取消面部识别,还能满足用户突发的、临时性的取消面部识别的需求,更加方便快捷,提升用户体验。The processor of the embodiment of the present invention can cancel or continue face recognition according to different needs of users during the face recognition process of the mobile terminal. It is more convenient and faster to cancel the need for facial recognition issued and temporarily, and improve the user experience.

应理解的是,本发明实施例中,射频单元101可用于收发信息或通话过程中,信号的接收和发送,具体的,将来自基站的下行数据接收后,给处理器110处理;另外,将上行的数据发送给基站。通常,射频单元101包括但不限于天线、至少一个放大器、收发信机、耦合器、低噪声放大器、双工器等。此外,射频单元101还可以通过无线通信系统与网络和其他设备通信。It should be understood that, in the embodiment of the present invention, the radio frequency unit 101 can be used for receiving and sending signals during sending and receiving information or during a call. Specifically, after receiving the downlink data from the base station, the processor 110 processes it; Uplink data is sent to the base station. Generally, the radio frequency unit 101 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. In addition, the radio frequency unit 101 can also communicate with the network and other devices through a wireless communication system.

移动终端通过网络模块102为用户提供了无线的宽带互联网访问,如帮助用户收发电子邮件、浏览网页和访问流式媒体等。The mobile terminal provides users with wireless broadband Internet access through the network module 102, such as helping users send and receive emails, browse web pages, and access streaming media.

音频输出单元103可以将射频单元101或网络模块102接收的或者在存储器109中存储的音频数据转换成音频信号并且输出为声音。而且,音频输出单元103还可以提供与移动终端100执行的特定功能相关的音频输出(例如,呼叫信号接收声音、消息接收声音等等)。音频输出单元103包括扬声器、蜂鸣器以及受话器等。The audio output unit 103 may convert audio data received by the radio frequency unit 101 or the network module 102 or stored in the memory 109 into an audio signal and output as sound. Also, the audio output unit 103 can also provide audio output related to a specific function performed by the mobile terminal 100 (eg, call signal reception sound, message reception sound, etc.). The audio output unit 103 includes a speaker, a buzzer, a receiver, and the like.

输入单元104用于接收音频或视频信号。输入单元104可以包括图形处理器(Graphics Processing Unit,GPU)1041和麦克风1042,图形处理器1041对在视频捕获模式或图像捕获模式中由图像捕获装置(如摄像头)获得的静态图片或视频的图像数据进行处理。处理后的图像帧可以显示在显示单元106上。经图形处理器1041处理后的图像帧可以存储在存储器109(或其它存储介质)中或者经由射频单元101或网络模块102进行发送。麦克风1042可以接收声音,并且能够将这样的声音处理为音频数据。处理后的音频数据可以在电话通话模式的情况下转换为可经由射频单元101发送到移动通信基站的格式输出。The input unit 104 is used to receive audio or video signals. The input unit 104 may include a graphics processing unit (Graphics Processing Unit, GPU) 1041 and a microphone 1042, and the graphics processing unit 1041 is used for still pictures or video images obtained by an image capture device (such as a camera) in a video capture mode or an image capture mode. The data is processed. The processed image frames may be displayed on the display unit 106 . The image frames processed by the graphics processor 1041 may be stored in the memory 109 (or other storage media) or sent via the radio frequency unit 101 or the network module 102 . The microphone 1042 can receive sound and can process such sound into audio data. The processed audio data can be converted into a format that can be sent to a mobile communication base station via the radio frequency unit 101 for output in the case of a phone call mode.

移动终端100还包括至少一种传感器105,比如光传感器、运动传感器以及其他传感器。具体地,光传感器包括环境光传感器及接近传感器,其中,环境光传感器可根据环境光线的明暗来调节显示面板1061的亮度,接近传感器可在移动终端100移动到耳边时,关闭显示面板1061和/或背光。作为运动传感器的一种,加速计传感器可检测各个方向上(一般为三轴)加速度的大小,静止时可检测出重力的大小及方向,可用于识别移动终端姿态(比如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比如计步器、敲击)等;传感器105还可以包括指纹传感器、压力传感器、虹膜传感器、分子传感器、陀螺仪、气压计、湿度计、温度计、红外线传感器等,在此不再赘述。The mobile terminal 100 also includes at least one sensor 105, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor and a proximity sensor, wherein the ambient light sensor can adjust the brightness of the display panel 1061 according to the brightness of the ambient light, and the proximity sensor can turn off the display panel 1061 and the display panel 1061 when the mobile terminal 100 moves to the ear / or backlighting. As a kind of motion sensor, the accelerometer sensor can detect the magnitude of acceleration in various directions (generally three axes), and can detect the magnitude and direction of gravity when it is still, and can be used to identify the posture of mobile terminals (such as horizontal and vertical screen switching, related games, etc.) , magnetometer posture calibration), vibration recognition-related functions (such as pedometer, knocking), etc.; the sensor 105 can also include fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, Infrared sensors, etc., will not be repeated here.

显示单元106用于显示由用户输入的信息或提供给用户的信息。显示单元106可包括显示面板1061,可以采用液晶显示器(Liquid Crystal Display,LCD)、有机发光二极管(Organic Light-Emitting Diode,OLED)等形式来配置显示面板1061。The display unit 106 is used to display information input by the user or information provided to the user. The display unit 106 may include a display panel 1061, and the display panel 1061 may be configured in the form of a liquid crystal display (Liquid Crystal Display, LCD), an organic light-emitting diode (Organic Light-Emitting Diode, OLED), or the like.

用户输入单元107可用于接收输入的数字或字符信息,以及产生与移动终端的用户设置以及功能控制有关的键信号输入。具体地,用户输入单元107包括触控面板1071以及其他输入设备1072。触控面板1071,也称为触摸屏,可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在触控面板1071上或在触控面板1071附近的操作)。触控面板1071可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再送给处理器110,接收处理器110发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触控面板1071。除了触控面板1071,用户输入单元107还可以包括其他输入设备1072。具体地,其他输入设备1072可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆,在此不再赘述。The user input unit 107 can be used to receive input numbers or character information, and generate key signal input related to user settings and function control of the mobile terminal. Specifically, the user input unit 107 includes a touch panel 1071 and other input devices 1072 . The touch panel 1071, also referred to as a touch screen, can collect touch operations of the user on or near it (for example, the user uses any suitable object or accessory such as a finger or a stylus on the touch panel 1071 or near the touch panel 1071). operate). The touch panel 1071 may include two parts, a touch detection device and a touch controller. Among them, the touch detection device detects the user's touch orientation, and detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into contact coordinates, and sends it to the For the processor 110, receive the command sent by the processor 110 and execute it. In addition, the touch panel 1071 can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic wave. In addition to the touch panel 1071 , the user input unit 107 may also include other input devices 1072 . Specifically, other input devices 1072 may include, but are not limited to, physical keyboards, function keys (such as volume control keys, switch keys, etc.), trackballs, mice, and joysticks, which will not be repeated here.

进一步的,触控面板1071可覆盖在显示面板1061上,当触控面板1071检测到在其上或附近的触摸操作后,传送给处理器110以确定触摸事件的类型,随后处理器110根据触摸事件的类型在显示面板1061上提供相应的视觉输出。虽然在图7中,触控面板1071与显示面板1061是作为两个独立的部件来实现移动终端的输入和输出功能,但是在某些实施例中,可以将触控面板1071与显示面板1061集成而实现移动终端的输入和输出功能,具体此处不做限定。Further, the touch panel 1071 can be covered on the display panel 1061, and when the touch panel 1071 detects a touch operation on or near it, it will be sent to the processor 110 to determine the type of the touch event, and then the processor 110 can The type of event provides a corresponding visual output on the display panel 1061 . Although in FIG. 7, the touch panel 1071 and the display panel 1061 are used as two independent components to realize the input and output functions of the mobile terminal, in some embodiments, the touch panel 1071 and the display panel 1061 can be integrated. The implementation of the input and output functions of the mobile terminal is not specifically limited here.

接口单元108为外部装置与移动终端100连接的接口。例如,外部装置可以包括有线或无线头戴式耳机端口、外部电源(或电池充电器)端口、有线或无线数据端口、存储卡端口、用于连接具有识别模块的装置的端口、音频输入/输出(I/O)端口、视频I/O端口、耳机端口等等。接口单元108可以用于接收来自外部装置的输入(例如,数据信息、电力等等)并且将接收到的输入传输到移动终端100内的一个或多个元件或者可以用于在移动终端100和外部装置之间传输数据。The interface unit 108 is an interface for connecting an external device to the mobile terminal 100 . For example, an external device may include a wired or wireless headset port, an external power (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device with an identification module, audio input/output (I/O) ports, video I/O ports, headphone ports, and more. The interface unit 108 can be used to receive input from an external device (for example, data information, power, etc.) transfer data between devices.

存储器109可用于存储软件程序以及各种数据。存储器109可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序(比如声音播放功能、图像播放功能等)等;存储数据区可存储根据手机的使用所创建的数据(比如音频数据、电话本等)等。此外,存储器109可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。The memory 109 can be used to store software programs as well as various data. The memory 109 can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, at least one application program required by a function (such as a sound playback function, an image playback function, etc.) etc.; Data created by the use of mobile phones (such as audio data, phonebook, etc.), etc. In addition, the memory 109 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage devices.

处理器110是移动终端的控制中心,利用各种接口和线路连接整个移动终端的各个部分,通过运行或执行存储在存储器109内的软件程序和/或模块,以及调用存储在存储器109内的数据,执行移动终端的各种功能和处理数据,从而对移动终端进行整体监控。处理器110可包括一个或多个处理单元;优选地,处理器110可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器110中。The processor 110 is the control center of the mobile terminal, and uses various interfaces and lines to connect various parts of the entire mobile terminal, by running or executing software programs and/or modules stored in the memory 109, and calling data stored in the memory 109 , execute various functions of the mobile terminal and process data, so as to monitor the mobile terminal as a whole. The processor 110 may include one or more processing units; preferably, the processor 110 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface and application programs, etc., and the modem The processor mainly handles wireless communication. It can be understood that the foregoing modem processor may not be integrated into the processor 110 .

移动终端100还可以包括给各个部件供电的电源111(比如电池),优选地,电源111可以通过电源管理系统与处理器110逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。The mobile terminal 100 can also include a power supply 111 (such as a battery) for supplying power to various components. Preferably, the power supply 111 can be logically connected to the processor 110 through a power management system, so as to manage charging, discharging, and power consumption through the power management system. and other functions.

另外,移动终端100包括一些未示出的功能模块,在此不再赘述。In addition, the mobile terminal 100 includes some functional modules not shown, which will not be repeated here.

本发明实施例还提供一种计算机可读存储介质,计算机可读存储介质上存储有计算机程序,该计算机程序被处理器执行时实现上述面部识别的方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。其中,所述的计算机可读存储介质,如只读存储器(Read-Only Memory,简称ROM)、随机存取存储器(Random Access Memory,简称RAM)、磁碟或者光盘等。The embodiment of the present invention also provides a computer-readable storage medium. A computer program is stored on the computer-readable storage medium. When the computer program is executed by a processor, each process of the above-mentioned facial recognition method embodiment is realized, and the same Technical effects, in order to avoid repetition, will not be repeated here. Wherein, the computer-readable storage medium is, for example, a read-only memory (Read-Only Memory, ROM for short), a random access memory (Random Access Memory, RAM for short), a magnetic disk or an optical disk, and the like.

需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。It should be noted that, in this document, the term "comprising", "comprising" or any other variation thereof is intended to cover a non-exclusive inclusion such that a process, method, article or apparatus comprising a set of elements includes not only those elements, It also includes other elements not expressly listed, or elements inherent in the process, method, article, or device. Without further limitations, an element defined by the phrase "comprising a ..." does not preclude the presence of additional identical elements in the process, method, article, or apparatus comprising that element.

通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端(可以是手机,计算机,服务器,空调器,或者网络设备等)执行本发明各个实施例所述的方法。Through the description of the above embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus a necessary general-purpose hardware platform, and of course also by hardware, but in many cases the former is better implementation. Based on such an understanding, the essence of the technical solution of the present invention or the part that contributes to the prior art can be embodied in the form of software products, and the computer software products are stored in a storage medium (such as ROM/RAM, disk, CD) contains several instructions to make a terminal (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) execute the methods described in various embodiments of the present invention.

上面结合附图对本发明的实施例进行了描述,但是本发明并不局限于上述的具体实施方式,上述的具体实施方式仅仅是示意性的,而不是限制性的,本领域的普通技术人员在本发明的启示下,在不脱离本发明宗旨和权利要求所保护的范围情况下,还可做出很多形式,均属于本发明的保护之内。Embodiments of the present invention have been described above in conjunction with the accompanying drawings, but the present invention is not limited to the above-mentioned specific implementations, and the above-mentioned specific implementations are only illustrative, rather than restrictive. Those of ordinary skill in the art will Under the enlightenment of the present invention, many forms can also be made without departing from the gist of the present invention and the protection scope of the claims, all of which belong to the protection of the present invention.

Claims (11)

1.一种面部识别的方法,应用于移动终端,其特征在于,包括:1. A method for facial recognition, applied to a mobile terminal, is characterized in that, comprising: 在所述移动终端进行面部识别的过程中,若检测到所述移动终端处于目标运动状态,取消面部识别,否则,继续进行面部识别。During the facial recognition process of the mobile terminal, if it is detected that the mobile terminal is in a moving state of the target, the facial recognition is canceled; otherwise, the facial recognition is continued. 2.如权利要求1所述的面部识别的方法,其特征在于,2. the method for facial recognition as claimed in claim 1, is characterized in that, 所述目标运动状态为向目标方向翻转,且翻转的角度大于或等于目标角度;或者The target motion state is flipping towards the target direction, and the flipping angle is greater than or equal to the target angle; or 所述目标运动状态为晃动状态。The target motion state is a shaking state. 3.如权利要求1所述的面部识别的方法,其特征在于,所述在所述移动终端进行面部识别的过程中,若检测到所述移动终端处于目标运动状态,取消面部识别,否则,继续进行面部识别的步骤之前,所述方法还包括:3. The method for facial recognition as claimed in claim 1, characterized in that, in the process of performing facial recognition on the mobile terminal, if it is detected that the mobile terminal is in a state of target motion, the facial recognition is canceled; otherwise, Before proceeding to the step of facial recognition, the method further includes: 在检测到满足触发所述移动终端启动面部识别的触发条件的情况下,启动面部识别。When it is detected that the trigger condition for triggering the mobile terminal to start the facial recognition is met, the facial recognition is started. 4.如权利要求3所述的面部识别的方法,其特征在于,4. the method for facial recognition as claimed in claim 3 is characterized in that, 所述触发条件为当所述移动终端处于锁屏状态,检测到用于点亮所述移动终端的显示屏的操作,且未检测到目标触控操作;或者The trigger condition is when the mobile terminal is in a locked screen state, an operation for lighting up the display screen of the mobile terminal is detected, and no target touch operation is detected; or 所述触发条件为检测到目标应用的一目标功能被触发;或者The trigger condition is that a target function of the target application is detected to be triggered; or 所述触发条件为所述移动终端的目标物理按键被按压。The trigger condition is that a target physical key of the mobile terminal is pressed. 5.如权利要求4所述的面部识别的方法,其特征在于,5. the method for facial recognition as claimed in claim 4 is characterized in that, 所述目标触控操作为在所述显示屏上的显示区域按压的按压操作,或者,在所述显示屏上绘制目标图案的滑动操作,或者,点击所述显示屏上显示的目标按键的点击操作。The target touch operation is a pressing operation of pressing a display area on the display screen, or a sliding operation of drawing a target pattern on the display screen, or a click of a target button displayed on the display screen operate. 6.一种移动终端,其特征在于,包括:6. A mobile terminal, characterized in that, comprising: 面部识别模块,用于在所述移动终端进行面部识别的过程中,若检测到所述移动终端处于目标运动状态,取消面部识别,否则,继续进行面部识别。The face recognition module is used to cancel the face recognition if it is detected that the mobile terminal is in the target motion state during the face recognition process of the mobile terminal, otherwise, continue to perform face recognition. 7.如权利要求6所述的移动终端,其特征在于,7. The mobile terminal according to claim 6, wherein: 所述目标运动状态为向目标方向翻转,且翻转的角度大于或等于目标角度;或者The target motion state is flipping towards the target direction, and the flipping angle is greater than or equal to the target angle; or 所述目标运动状态为晃动状态。The target motion state is a shaking state. 8.如权利要求6所述的移动终端,其特征在于,还包括:8. The mobile terminal according to claim 6, further comprising: 启动模块,用于在检测到满足触发所述移动终端启动面部识别的触发条件的情况下,启动面部识别。The starting module is configured to start facial recognition when it is detected that the trigger condition for triggering the mobile terminal to start facial recognition is met. 9.如权利要求8所述的移动终端,其特征在于,9. The mobile terminal according to claim 8, wherein: 所述触发条件为当所述移动终端处于锁屏状态,检测到用于点亮所述移动终端的显示屏的操作,且未检测到目标触控操作;或者The trigger condition is when the mobile terminal is in a locked screen state, an operation for lighting up the display screen of the mobile terminal is detected, and no target touch operation is detected; or 所述触发条件为检测到目标应用的一目标功能被触发;或者The trigger condition is that a target function of the target application is detected to be triggered; or 所述触发条件为所述移动终端的目标物理按键被按压。The trigger condition is that a target physical key of the mobile terminal is pressed. 10.如权利要求9所述的移动终端,其特征在于,10. The mobile terminal according to claim 9, wherein: 所述目标触控操作为在所述显示屏上的显示区域按压的按压操作,或者,在所述显示屏上绘制目标图案的滑动操作,或者,点击所述显示屏上显示的目标按键的点击操作。The target touch operation is a pressing operation of pressing a display area on the display screen, or a sliding operation of drawing a target pattern on the display screen, or a click of a target button displayed on the display screen operate. 11.一种移动终端,其特征在于,包括处理器、存储器及存储在所述存储器上并可在所述处理器上运行的计算机程序,所述计算机程序被所述处理器执行时实现如权利要求1至5中任一项所述的面部识别的方法的步骤。11. A mobile terminal, characterized by comprising a processor, a memory, and a computer program stored on the memory and operable on the processor, when the computer program is executed by the processor, the The steps of the facial recognition method described in any one of claims 1 to 5.
CN201810586130.6A 2018-06-08 2018-06-08 Face recognition method and mobile terminal Active CN108810276B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810586130.6A CN108810276B (en) 2018-06-08 2018-06-08 Face recognition method and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810586130.6A CN108810276B (en) 2018-06-08 2018-06-08 Face recognition method and mobile terminal

Publications (2)

Publication Number Publication Date
CN108810276A true CN108810276A (en) 2018-11-13
CN108810276B CN108810276B (en) 2021-03-30

Family

ID=64087873

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810586130.6A Active CN108810276B (en) 2018-06-08 2018-06-08 Face recognition method and mobile terminal

Country Status (1)

Country Link
CN (1) CN108810276B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113055524A (en) * 2021-03-09 2021-06-29 北京有竹居网络技术有限公司 Terminal control method and device, terminal and storage medium
CN113687899A (en) * 2021-08-25 2021-11-23 读书郎教育科技有限公司 A method and device for solving the conflict between viewing notifications and face unlocking
CN120564245A (en) * 2025-07-30 2025-08-29 杭州秋果计划科技有限公司 A face detection method and related equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107589968A (en) * 2017-08-28 2018-01-16 广东欧珀移动通信有限公司 Screen-off unlocking method and device
CN107613550A (en) * 2017-09-27 2018-01-19 广东欧珀移动通信有限公司 Unlock control method and related products
CN107992733A (en) * 2017-12-13 2018-05-04 王东红 A kind of intelligent terminal and its safe unlocking method
CN108010170A (en) * 2017-12-25 2018-05-08 维沃移动通信有限公司 A control method and device for facial recognition unlocking function

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107589968A (en) * 2017-08-28 2018-01-16 广东欧珀移动通信有限公司 Screen-off unlocking method and device
CN107613550A (en) * 2017-09-27 2018-01-19 广东欧珀移动通信有限公司 Unlock control method and related products
CN107992733A (en) * 2017-12-13 2018-05-04 王东红 A kind of intelligent terminal and its safe unlocking method
CN108010170A (en) * 2017-12-25 2018-05-08 维沃移动通信有限公司 A control method and device for facial recognition unlocking function

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113055524A (en) * 2021-03-09 2021-06-29 北京有竹居网络技术有限公司 Terminal control method and device, terminal and storage medium
CN113687899A (en) * 2021-08-25 2021-11-23 读书郎教育科技有限公司 A method and device for solving the conflict between viewing notifications and face unlocking
CN120564245A (en) * 2025-07-30 2025-08-29 杭州秋果计划科技有限公司 A face detection method and related equipment

Also Published As

Publication number Publication date
CN108810276B (en) 2021-03-30

Similar Documents

Publication Publication Date Title
CN107835286B (en) Method and mobile terminal for preventing false unlocking
CN107808084A (en) A kind of touch operation method and mobile terminal
CN108491130A (en) A kind of application programe switch-over method and mobile terminal
CN107678829A (en) A kind of application control method and mobile terminal
CN108256308A (en) A kind of recognition of face solution lock control method and mobile terminal
CN108108110A (en) A kind of screen control method, screen control device and mobile terminal
CN108664818B (en) Unlocking control method and device
CN108279843B (en) Screen capture method and mobile terminal
CN108108111A (en) A kind of inspection method, device and the mobile terminal of screen locking pictorial information
CN110837328A (en) Display method and electronic equipment
CN110096203A (en) A kind of screenshot method and mobile terminal
CN108810276A (en) A kind of method and mobile terminal of face recognition
CN108509131A (en) A kind of application program launching method and terminal
CN108196663A (en) A kind of face identification method, mobile terminal
CN107908983A (en) A kind of method and mobile terminal for controlling mobile terminal screen
CN108363914A (en) Fingerprint unlocking control method and device
CN111562959A (en) Icon management method and electronic device
CN107808151A (en) Bio-identification resume module method, device and mobile terminal
CN108540642A (en) Operation method of mobile terminal and mobile terminal
CN110471068B (en) Proximity detection method and mobile terminal
CN107908941A (en) The operating method and mobile terminal of application program
CN108897467B (en) Display control method and terminal equipment
CN110516515B (en) An unlocking method and mobile terminal
CN108259807B (en) A communication method, mobile terminal and computer-readable storage medium
CN108881481A (en) A file retrieval method, device and terminal equipment thereof

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant