[go: up one dir, main page]

CN108062465B - Unlocking method and mobile terminal - Google Patents

Unlocking method and mobile terminal Download PDF

Info

Publication number
CN108062465B
CN108062465B CN201711339124.2A CN201711339124A CN108062465B CN 108062465 B CN108062465 B CN 108062465B CN 201711339124 A CN201711339124 A CN 201711339124A CN 108062465 B CN108062465 B CN 108062465B
Authority
CN
China
Prior art keywords
mobile terminal
information
acceleration value
user
unlocking
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.)
Active
Application number
CN201711339124.2A
Other languages
Chinese (zh)
Other versions
CN108062465A (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.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication 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 Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN201711339124.2A priority Critical patent/CN108062465B/en
Publication of CN108062465A publication Critical patent/CN108062465A/en
Application granted granted Critical
Publication of CN108062465B publication Critical patent/CN108062465B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • 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
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/03Arrangements for converting the position or the displacement of a member into a coded form
    • G06F3/033Pointing devices displaced or positioned by the user, e.g. mice, trackballs, pens or joysticks; Accessories therefor
    • G06F3/0346Pointing devices displaced or positioned by the user, e.g. mice, trackballs, pens or joysticks; Accessories therefor with detection of the device orientation or free movement in a 3D space, e.g. 3D mice, 6-DOF [six degrees of freedom] pointers using gyroscopes, accelerometers or tilt-sensors
    • 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/72463User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions to restrict the functionality of the device

Landscapes

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

Abstract

本发明提供一种解锁方法及移动终端,该方法包括:获取所述移动终端检测的加速度数值,所述加速度数值用于指示所述移动终端的空间姿态信息;判断所述加速度数值是否在预设范围内;若所述加速度数值不在所述预设范围内,则采集用户的手部特征信息并根据所述手部特征信息进行解锁。这样,通过获取移动终端的加速度信息确定移动终端的空间姿态信息,通过移动终端的空间姿态信息确定移动终端不方便使用头像解锁时,可以使用手部特征进行解锁,从而无需将移动终端拿到用户的面前采集头像再进行解锁,简化了移动终端的解锁过程。

Figure 201711339124

The present invention provides an unlocking method and a mobile terminal. The method includes: acquiring an acceleration value detected by the mobile terminal, where the acceleration value is used to indicate spatial attitude information of the mobile terminal; and judging whether the acceleration value is in a preset value If the acceleration value is not within the preset range, the user's hand feature information is collected and unlocked according to the hand feature information. In this way, the spatial attitude information of the mobile terminal is determined by acquiring the acceleration information of the mobile terminal, and when it is determined by the spatial attitude information of the mobile terminal that it is inconvenient to unlock the mobile terminal by using the avatar, the hand feature can be used to unlock the mobile terminal, so that the mobile terminal does not need to be taken to the user. The avatar is collected in front of the mobile terminal and then unlocked, which simplifies the unlocking process of the mobile terminal.

Figure 201711339124

Description

一种解锁方法及移动终端An unlocking method and mobile terminal

技术领域technical field

本发明涉及通信技术领域,尤其涉及一种解锁方法及移动终端。The present invention relates to the field of communication technologies, and in particular, to an unlocking method and a mobile terminal.

背景技术Background technique

随着移动终端的迅速发展,移动终端已经成为人们生活中必不可少的一种工具,并且为用户生活的各个方面带来了极大的便捷。现有移动终端具有很多解锁的方式,例如指纹解锁、数字密码解锁、图案轨迹解锁或者人脸识别解锁等等。人脸识别解锁作为一种比较新颖的解锁方式,深受广大用户的欢迎。With the rapid development of mobile terminals, mobile terminals have become an indispensable tool in people's lives, and have brought great convenience to all aspects of users' lives. Existing mobile terminals have many unlocking methods, such as fingerprint unlocking, digital password unlocking, pattern track unlocking, face recognition unlocking, and the like. As a relatively novel unlocking method, face recognition unlocking is very popular among users.

现有技术中,人脸解锁需要移动终端采集到用户的头像,才能进行人脸解锁。但是有时候,移动终端可能在一些其他的位置(例如移动终端平放在桌面)无法获取到用户的头像,需要用户将移动终端拿到自己的面前,采头像信息再进行人脸解锁。可见,当移动终端无法获取到用户的头像时,进行解锁的过程比较繁琐。In the prior art, face unlocking requires a mobile terminal to collect a user's avatar before face unlocking can be performed. But sometimes, the mobile terminal may not be able to obtain the user's avatar in some other positions (for example, the mobile terminal is flat on the desktop), and the user needs to bring the mobile terminal in front of him, collect the avatar information, and then perform face unlocking. It can be seen that, when the mobile terminal cannot obtain the user's avatar, the unlocking process is rather cumbersome.

发明内容SUMMARY OF THE INVENTION

本发明实施例提供一种解锁方法及移动终端,以解决移动终端无法获取到用户的头像时,进行解锁的过程比较繁琐的问题。Embodiments of the present invention provide an unlocking method and a mobile terminal, so as to solve the problem that the unlocking process is cumbersome when the mobile terminal cannot obtain the user's avatar.

为了解决上述技术问题,本发明是这样实现的:In order to solve the above-mentioned technical problems, the present invention is achieved in this way:

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

获取所述移动终端检测的加速度数值,所述加速度数值用于指示所述移动终端的空间姿态信息;Acquiring an acceleration value detected by the mobile terminal, where the acceleration value is used to indicate spatial attitude information of the mobile terminal;

判断所述加速度数值是否在预设范围内;Determine whether the acceleration value is within a preset range;

若所述加速度数值不在所述预设范围内,则采集用户的手部特征信息并根据所述手部特征信息进行解锁。If the acceleration value is not within the preset range, the user's hand feature information is collected and unlocked according to the hand feature information.

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

获取模块,用于获取所述移动终端检测的加速度数值,所述加速度数值用于指示所述移动终端的空间姿态信息;an acquisition module, configured to acquire an acceleration value detected by the mobile terminal, where the acceleration value is used to indicate the spatial attitude information of the mobile terminal;

判断模块,用于判断所述加速度数值是否在预设范围内;a judgment module for judging whether the acceleration value is within a preset range;

第一采集模块,用于若所述判断模块判断所述加速度数值不在所述预设范围内,则采集用户的手部特征信息并根据所述手部特征信息进行解锁。The first collection module is configured to collect the user's hand feature information and unlock according to the hand feature information if the judgment module judges that the acceleration value is not within the preset range.

第三方面,本发明实施例还提供一种移动终端,包括处理器、存储器及存储在所述存储器上并可在所述处理器上运行的计算机程序,所述计算机程序被所述处理器执行时实现上述解锁方法的步骤。In a third aspect, an embodiment of the present invention further provides a mobile terminal, including a processor, a memory, and a computer program stored on the memory and executable on the processor, where the computer program is executed by the processor When implementing the steps of the above unlocking method.

第四方面,本发明实施例还提供一种计算机可读存储介质,所述计算机可读存储介质上存储计算机程序,所述计算机程序被处理器执行时实现上述解锁方法的步骤。In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage 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 unlocking method are implemented.

在本发明实施例中,获取所述移动终端检测的加速度数值,所述加速度数值用于指示所述移动终端的空间姿态信息;判断所述加速度数值是否在预设范围内;若所述加速度数值不在所述预设范围内,则采集用户的手部特征信息并根据所述手部特征信息进行解锁。这样,通过获取移动终端的加速度信息确定移动终端的空间姿态信息,通过移动终端的空间姿态信息确定移动终端不方便使用头像解锁时,可以使用手部特征进行解锁,从而无需将移动终端拿到用户的面前采集头像再进行解锁,简化了移动终端的解锁过程。In the embodiment of the present invention, the acceleration value detected by the mobile terminal is obtained, and the acceleration value is used to indicate the spatial attitude information of the mobile terminal; it is judged whether the acceleration value is within a preset range; If it is not within the preset range, the user's hand feature information is collected and unlocked according to the hand feature information. In this way, the spatial attitude information of the mobile terminal is determined by acquiring the acceleration information of the mobile terminal, and when it is determined by the spatial attitude information of the mobile terminal that it is inconvenient to unlock the mobile terminal by using the avatar, the hand feature can be used to unlock the mobile terminal, so that the mobile terminal does not need to be taken to the user. The avatar is collected in front of the mobile terminal and then unlocked, which simplifies the unlocking process of the mobile terminal.

附图说明Description of drawings

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

图1是本发明一实施例提供的解锁方法的流程图;1 is a flowchart of an unlocking method provided by an embodiment of the present invention;

图2是本发明又一实施例提供的解锁方法的流程图;2 is a flowchart of an unlocking method provided by another embodiment of the present invention;

图3是本发明一实施例提供的移动终端的结构图之一;3 is one of the structural diagrams of a mobile terminal provided by an embodiment of the present invention;

图4是本发明一实施例提供的移动终端的结构图之二;4 is a second structural diagram of a mobile terminal provided by an embodiment of the present invention;

图5是本发明一实施例提供的移动终端的第二采集模块的结构图;5 is a structural diagram of a second collection module of a mobile terminal provided by an embodiment of the present invention;

图6是本发明一实施例提供的移动终端的第一采集模块的结构图之一;6 is one of the structural diagrams of a first acquisition module of a mobile terminal provided by an embodiment of the present invention;

图7是本发明一实施例提供的移动终端的第一采集模块的结构图之二;7 is a second structural diagram of a first acquisition module of a mobile terminal provided by an embodiment of the present invention;

图8是本发明又一实施例提供的移动终端的结构图。FIG. 8 is a structural diagram of a mobile terminal according to another embodiment of the present invention.

具体实施方式Detailed ways

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

参见图1,图1是本发明实施例提供的解锁方法的流程图,如图1所示,包括以下步骤:Referring to FIG. 1, FIG. 1 is a flowchart of an unlocking method provided by an embodiment of the present invention, as shown in FIG. 1, including the following steps:

步骤101、获取移动终端检测的加速度数值,所述加速度数值用于指示所述移动终端的空间姿态信息。Step 101: Acquire an acceleration value detected by a mobile terminal, where the acceleration value is used to indicate spatial attitude information of the mobile terminal.

本发明实施例中,获取移动终端检测的加速度数值,可以是获取某一个方向上的加速度数值,也可以获取多个方向上的加速度数值。而这些加速度数值,可以是由一个加速度传感器检测得到的数值,或者也可以是由多个加速度传感器检测得到的数值等等。In this embodiment of the present invention, the acquisition of the acceleration value detected by the mobile terminal may be to acquire the acceleration value in a certain direction, or may acquire the acceleration value in multiple directions. These acceleration values may be values detected by one acceleration sensor, or may be values detected by multiple acceleration sensors, and so on.

本发明实施例中,一般移动终端在出厂时都会装配重力传感器。从而使用重力传感器检测加速度数值,可以为移动终端的检测简约成本,不需要装配其他的传感器就可以检测加速度数值。并且重力传感器检测的加速度数值都是三个轴的加速度数值,从而可以更加准确的通过加速度数值确定移动终端当前的姿势。上述空间姿态信息,可以表示移动终端的姿态为水平、竖直或者以某个角度倾斜等等。In the embodiment of the present invention, a general mobile terminal is equipped with a gravity sensor when it leaves the factory. Therefore, the use of the gravity sensor to detect the acceleration value can reduce the cost for the detection of the mobile terminal, and the acceleration value can be detected without assembling other sensors. In addition, the acceleration values detected by the gravity sensor are the acceleration values of the three axes, so that the current posture of the mobile terminal can be more accurately determined by the acceleration values. The above-mentioned spatial attitude information may indicate that the attitude of the mobile terminal is horizontal, vertical, inclined at a certain angle, or the like.

步骤102、判断所述加速度数值是否在预设范围内。Step 102: Determine whether the acceleration value is within a preset range.

本发明实施例中,上述预设范围可以是设置的一个合适的范围。例如当用户拿起手机准备使用手机的时候,手机在三个方向上都会检测到加速度的数值。预设范围可以设定为:-3m/s2<x<3m/s2,4m/s2<y<9m/s2,3m/s2<z<9m/s2,其中,x为x轴的重力加速度数值,y为y轴的重力加速度数值,z为z轴的重力加速度数值。当三个轴的重力加速度值均在各自的预设范围内时,就可以认为手机是面对用户的姿势。In this embodiment of the present invention, the above-mentioned preset range may be an appropriate range that is set. For example, when the user picks up the mobile phone and prepares to use the mobile phone, the mobile phone will detect the acceleration value in three directions. The preset range can be set as: -3m/s 2 <x<3m/s 2 , 4m/s 2 <y<9m/s 2 , 3m/s 2 <z<9m/s 2 , where x is x The gravitational acceleration value of the axis, y is the gravitational acceleration value of the y-axis, and z is the gravitational acceleration value of the z-axis. When the gravitational acceleration values of the three axes are all within their respective preset ranges, it can be considered that the mobile phone is facing the user.

当然,除了上述举例的范围之外,其他一些合适的范围也是可以的,对此本发明实施例不作限定。Certainly, in addition to the ranges exemplified above, other suitable ranges are also possible, which are not limited by this embodiment of the present invention.

步骤103、若所述加速度数值不在所述预设范围内,则采集用户的手部特征信息并根据所述手部特征信息进行解锁。Step 103: If the acceleration value is not within the preset range, collect the user's hand feature information and unlock according to the hand feature information.

本发明实施例中,当加速度数值不在预设范围内,可能说明移动终端当前的姿势采集不到用户的头像信息,那么就可以采集用户的手部特征信息进行解锁。上述手部特征信息可以是摄像头采集的指纹信息,可以是摄像头采集的掌纹信息,或者也可以是摄像头采集得掌纹以及指纹的信息等等,对此本发明实施例不作限定。但是考虑到移动终端使用摄像头采集的指纹可能没有采集的掌纹那么清晰,优选的可以采集用户的掌纹。In the embodiment of the present invention, when the acceleration value is not within the preset range, it may indicate that the current posture of the mobile terminal cannot collect the user's avatar information, and then the user's hand feature information can be collected to unlock. The above hand feature information may be fingerprint information collected by a camera, palmprint information collected by a camera, or palmprint and fingerprint information collected by a camera, etc., which are not limited in this embodiment of the present invention. However, considering that the fingerprint collected by the mobile terminal using the camera may not be as clear as the collected palm print, it is preferable to collect the user's palm print.

本发明实施例中,在某些情况下移动终端可能不方便采集到用户的头像信息,例如移动终端放在桌面上的时候,可能此时就采集不到用户的头像信息,通过加速度的判断之后,就可以采集用户的手部特征信息进行解锁。这样,用户就无需将移动终端拿到自己的面前采集用户头像信息也可以进行解锁,使解锁的过程更加灵活,更加简便。In the embodiments of the present invention, in some cases, it may be inconvenient for the mobile terminal to collect the user's avatar information. For example, when the mobile terminal is placed on the desktop, the user's avatar information may not be collected at this time. After judging by the acceleration , you can collect the user's hand feature information to unlock. In this way, the user can also unlock the mobile terminal without bringing the mobile terminal in front of him to collect the user's avatar information, which makes the unlocking process more flexible and simpler.

需要说明的是,若所述加速度数值在所述预设范围内,可以继续检测,也可以结束流程,本发明实施例中的图1以结束流程进行举例说明。It should be noted that, if the acceleration value is within the preset range, the detection may be continued, or the process may be terminated. FIG. 1 in the embodiment of the present invention uses the termination process as an example.

本发明实施例中,上述移动终端可以是手机、平板电脑(Tablet PersonalComputer)、膝上型电脑(Laptop Computer)、个人数字助理(personal digitalassistant,简称PDA)、移动上网装置(Mobile Internet Device,MID)或可穿戴式设备(Wearable Device)等等。In the embodiment of the present invention, the above-mentioned mobile terminal may be a mobile phone, a tablet computer (Tablet PersonalComputer), a laptop computer (Laptop Computer), a personal digital assistant (personal digital assistant, PDA for short), a mobile Internet Device (Mobile Internet Device, MID) Or wearable devices (Wearable Device) and so on.

本发明实施例的一种解锁方法,获取所述移动终端检测的加速度数值,所述加速度数值用于指示所述移动终端的空间姿态信息;判断所述加速度数值是否在预设范围内;若所述加速度数值不在所述预设范围内,则采集用户的手部特征信息并根据所述手部特征信息进行解锁。这样,通过获取移动终端的加速度信息确定移动终端的空间姿态信息,通过移动终端的空间姿态信息确定移动终端不方便使用头像解锁时,可以使用手部特征进行解锁,从而无需将移动终端拿到用户的面前采集头像再进行解锁,简化了移动终端的解锁过程。In an unlocking method according to an embodiment of the present invention, an acceleration value detected by the mobile terminal is obtained, and the acceleration value is used to indicate the spatial attitude information of the mobile terminal; it is judged whether the acceleration value is within a preset range; If the acceleration value is not within the preset range, the user's hand feature information is collected and unlocked according to the hand feature information. In this way, the spatial attitude information of the mobile terminal is determined by acquiring the acceleration information of the mobile terminal, and when it is determined by the spatial attitude information of the mobile terminal that it is inconvenient to unlock the mobile terminal by using the avatar, the hand feature can be used to unlock the mobile terminal, so that the mobile terminal does not need to be taken to the user. The avatar is collected in front of the mobile terminal and then unlocked, which simplifies the unlocking process of the mobile terminal.

参见图2,图2是本发明实施例提供的解锁方法的流程图。本实施例与上个实施例的主要区别在于本方法中若加速度数值在预设范围内,则采集用户的头像信息并根据头像信息进行解锁。如图2所示,包括以下步骤:Referring to FIG. 2, FIG. 2 is a flowchart of an unlocking method provided by an embodiment of the present invention. The main difference between this embodiment and the previous embodiment is that in this method, if the acceleration value is within the preset range, the user's avatar information is collected and unlocked according to the avatar information. As shown in Figure 2, it includes the following steps:

步骤201、获取所述移动终端检测的加速度数值,所述加速度数值用于指示所述移动终端的空间姿态信息。Step 201: Acquire an acceleration value detected by the mobile terminal, where the acceleration value is used to indicate spatial attitude information of the mobile terminal.

本发明实施例中,获取移动终端检测的加速度数值,可以是获取某一个方向上的加速度数值,也可以获取多个方向上的加速度数值。而这些加速度数值,可以是由一个加速度传感器检测得到的数值,或者也可以是由多个加速度传感器检测得到的数值等等。In this embodiment of the present invention, the acquisition of the acceleration value detected by the mobile terminal may be to acquire the acceleration value in a certain direction, or may acquire the acceleration value in multiple directions. These acceleration values may be values detected by one acceleration sensor, or may be values detected by multiple acceleration sensors, and so on.

本发明实施例中,一般移动终端在出厂时都会装配重力传感器。从而使用重力传感器检测加速度数值,可以为移动终端的检测简约成本,不需要装配其他的传感器就可以检测加速度数值。并且重力传感器检测的加速度数值都是三个轴的加速度数值,从而可以更加准确的通过加速度数值确定移动终端当前的姿势。上述空间姿态信息,可以表示移动终端的姿态为水平、竖直或者以某个角度倾斜等等。In the embodiment of the present invention, a general mobile terminal is equipped with a gravity sensor when it leaves the factory. Therefore, the use of the gravity sensor to detect the acceleration value can reduce the cost for the detection of the mobile terminal, and the acceleration value can be detected without assembling other sensors. In addition, the acceleration values detected by the gravity sensor are the acceleration values of the three axes, so that the current posture of the mobile terminal can be more accurately determined by the acceleration values. The above-mentioned spatial attitude information may indicate that the attitude of the mobile terminal is horizontal, vertical, inclined at a certain angle, or the like.

步骤202、判断所述加速度数值是否在预设范围内。Step 202: Determine whether the acceleration value is within a preset range.

本发明实施例中,上述预设范围可以是设置的一个合适的范围。例如当用户拿起手机准备使用手机的时候,手机在三个方向上都会检测到加速度的数值。预设范围可以设定为:-3m/s2<x<3m/s2,4m/s2<y<9m/s2,3m/s2<z<9m/s2,其中,x为x轴的重力加速度数值,y为y轴的重力加速度数值,z为z轴的重力加速度数值。当三个轴的重力加速度值均在各自的预设范围内时,就可以认为手机是面对用户的姿势。In this embodiment of the present invention, the above-mentioned preset range may be an appropriate range that is set. For example, when the user picks up the mobile phone and prepares to use the mobile phone, the mobile phone will detect the acceleration value in three directions. The preset range can be set as: -3m/s 2 <x<3m/s 2 , 4m/s 2 <y<9m/s 2 , 3m/s 2 <z<9m/s 2 , where x is x The gravitational acceleration value of the axis, y is the gravitational acceleration value of the y-axis, and z is the gravitational acceleration value of the z-axis. When the gravitational acceleration values of the three axes are all within their respective preset ranges, it can be considered that the mobile phone is facing the user.

当然,除了上述举例的范围之外,其他一些合适的范围也是可以的,对此本发明实施例不作限定。Certainly, in addition to the ranges exemplified above, other suitable ranges are also possible, which are not limited by this embodiment of the present invention.

步骤203、若所述加速度数值不在所述预设范围内,则采集用户的手部特征信息并根据所述手部特征信息进行解锁。Step 203: If the acceleration value is not within the preset range, collect the user's hand feature information and unlock according to the hand feature information.

本发明实施例中,当加速度数值不在预设范围内,可能说明移动终端当前的姿势采集不到用户的头像信息,那么就可以采集用户的手部特征信息进行解锁。上述手部特征信息可以是摄像头采集的指纹信息,可以是摄像头采集的掌纹信息,或者也可以是摄像头采集得掌纹以及指纹的信息等等,对此本发明实施例不作限定。但是考虑到移动终端使用摄像头采集的指纹可能没有采集的掌纹那么清晰,优选的可以采集用户的掌纹。In the embodiment of the present invention, when the acceleration value is not within the preset range, it may indicate that the current posture of the mobile terminal cannot collect the user's avatar information, and then the user's hand feature information can be collected to unlock. The above hand feature information may be fingerprint information collected by a camera, palmprint information collected by a camera, or palmprint and fingerprint information collected by a camera, etc., which are not limited in this embodiment of the present invention. However, considering that the fingerprint collected by the mobile terminal using the camera may not be as clear as the collected palm print, it is preferable to collect the user's palm print.

本发明实施例中,在某些情况下移动终端可能不方便采集到用户的头像信息,例如移动终端放在桌面上的时候,可能此时就采集不到用户的头像信息,通过加速度的判断之后,就可以采集用户的手部特征信息进行解锁。这样,用户就无需将移动终端拿到自己的面前采集用户头像信息也可以进行解锁,使解锁的过程更加灵活,更加简便。In the embodiments of the present invention, in some cases, it may be inconvenient for the mobile terminal to collect the user's avatar information. For example, when the mobile terminal is placed on the desktop, the user's avatar information may not be collected at this time. After judging by the acceleration , you can collect the user's hand feature information to unlock. In this way, the user can also unlock the mobile terminal without bringing the mobile terminal in front of him to collect the user's avatar information, which makes the unlocking process more flexible and simpler.

步骤204、若所述加速度数值在所述预设范围内,则采集用户的头像信息并根据所述头像信息进行解锁。Step 204: If the acceleration value is within the preset range, collect the user's avatar information and unlock according to the avatar information.

本发明实施例中,当加速度数值在预设范围内,可以表明移动终端当前的姿势可以采集到用户的头像信息,就可以采集用户头像信息并根据头像信息进行解锁。In the embodiment of the present invention, when the acceleration value is within the preset range, it can indicate that the current posture of the mobile terminal can collect the user's avatar information, and the user's avatar information can be collected and unlocked according to the avatar information.

可选的,所述采集用户的头像信息并根据所述头像信息进行解锁的步骤,包括:Optionally, the step of collecting the avatar information of the user and unlocking according to the avatar information includes:

使用所述移动终端的前置摄像头采集用户的头像信息;Using the front camera of the mobile terminal to collect the profile picture information of the user;

判断所述头像信息是否与预设头像信息相匹配;determining whether the avatar information matches the preset avatar information;

若所述头像信息与所述预设头像信息相匹配,则所述移动终端进行解锁。If the avatar information matches the preset avatar information, the mobile terminal is unlocked.

本实施方式中,由于用户使用移动终端时,一般都是正对着屏幕,使用前置摄像头采集用户头像信息,可以更加方便。假如需要使用后置摄像头采集用户的头像信息,那么还需要将移动终端先反过来采集,在采集完成之后再反过来回到正面才可以开始使用。直接使用前置摄像头采集,采集完成进行解锁之后就可以立马使用移动终端,使用户操作更加便捷。In this embodiment, since the user generally faces the screen when using the mobile terminal, it is more convenient to use the front camera to collect the user's profile picture information. If it is necessary to use the rear camera to collect the user's avatar information, then the mobile terminal needs to be collected in reverse first, and after the collection is completed, it can be turned back to the front before it can be used. Directly use the front camera to capture, and after the capture is completed and unlocked, the mobile terminal can be used immediately, making the user operation more convenient.

可选的,所述若所述加速度数值不在所述预设范围内,则采集用户的手部特征信息并根据所述手部特征信息进行解的步骤,包括:Optionally, if the acceleration value is not within the preset range, the steps of collecting the user's hand feature information and performing a solution according to the hand feature information include:

若所述加速度数值不在所述预设范围内,则判断所述移动终端的红外传感器在预设距离以内是否检测到物体;If the acceleration value is not within the preset range, determine whether the infrared sensor of the mobile terminal detects an object within the preset distance;

若所述红外传感器在所述预设距离以内检测到物体,则采集用户的手部特征信息并根据所述手部特征信息进行解锁,其中,所述手部特征信息包括指纹信息和掌纹信息中的至少一种信息。If the infrared sensor detects an object within the preset distance, the user's hand feature information is collected and unlocked according to the hand feature information, wherein the hand feature information includes fingerprint information and palm print information at least one of the information.

本实施方式中,当加速度数值不在预设范围内,说明移动终端可能不方便采集用户的头像,此时就可以采集用户的手部特征信息。当用户的手部接近移动终端的时候,就可以开始采集手部特征信息。且通过红外传感器可以检测手部的与移动终端之间的距离。In this embodiment, when the acceleration value is not within the preset range, it means that the mobile terminal may not be convenient to collect the user's avatar, and in this case, the user's hand feature information can be collected. When the user's hand approaches the mobile terminal, the hand feature information can be collected. And the distance between the hand and the mobile terminal can be detected by the infrared sensor.

本发明实施例中,当红外传感器在预设距离以内检测到物体时,才开始进行手部特征信息的采集,移动终端就无需时刻都处于采集的状态,可以节约移动终端的功耗。当红外传感器检测到有物体接近时才开始采集,使移动终端更加智能,用户使用也更加方便。手部特征信息包括指纹信息和掌纹信息中的至少一种信息,但是考虑到移动终端使用摄像头采集的指纹可能没有采集的掌纹那么清晰,优选的可以采集用户的掌纹。In the embodiment of the present invention, when the infrared sensor detects an object within a preset distance, the collection of hand feature information is started, and the mobile terminal does not need to be in the collection state all the time, which can save the power consumption of the mobile terminal. When the infrared sensor detects that an object is approaching, it starts to collect, which makes the mobile terminal more intelligent and more convenient for users to use. The hand feature information includes at least one of fingerprint information and palm print information, but considering that the fingerprint collected by the mobile terminal using the camera may not be as clear as the collected palm print, it is preferable to collect the user's palm print.

可选的,所述采集用户的手部特征信息并根据所述手部特征信息进行解锁的步骤,包括:Optionally, the step of collecting the user's hand feature information and unlocking according to the hand feature information includes:

使用所述移动终端的前置摄像头或者后置摄像头采集用户的手部特征信息;Using the front camera or the rear camera of the mobile terminal to collect the hand feature information of the user;

判断所述手部特征信息是否与预设手部特征信息相匹配;judging whether the hand feature information matches the preset hand feature information;

若所述手部特征信息与所述预设手部特征信息相匹配,则所述移动终端进行解锁。If the hand feature information matches the preset hand feature information, the mobile terminal is unlocked.

本实施方式中,当移动终端无法采集到用户的头像信息时,一般来说都会离用户相对来说稍微有点远,但是使用手的话就可以很好的进行手部特征信息的采集。例如用户躺在床上的时候,移动终端可能放在身边。但是此时移动终端不方便采集用户的头像信息,用户就可以把手伸到移动终端摄像头的部位,使移动终端可以采集用户的手部特征信息从而进行解锁。In this embodiment, when the mobile terminal cannot collect the avatar information of the user, it is generally a little far from the user, but the hand feature information can be collected well by using the hand. For example, when the user is lying on a bed, the mobile terminal may be placed beside him. However, at this time, it is inconvenient for the mobile terminal to collect the user's avatar information, and the user can extend his hand to the camera of the mobile terminal, so that the mobile terminal can collect the user's hand feature information to unlock it.

当然,当移动终端正面朝下,反面朝上时,就可以使用后置摄像头采集用户的手部特征信息;当移动终端正面朝上,反面朝下时,就可以使用前置摄像头采集用户的手部特征信息。在移动终端不方便获取到用户的头像信息时,用户可以把手伸过去供移动终端进行手部特征信息的采集,从而依旧可以顺利的进行解锁。Of course, when the mobile terminal is facing down and the back is up, the rear camera can be used to collect the user's hand feature information; when the mobile terminal is facing up and the back is down, the front camera can be used to capture the user's hand. feature information. When it is inconvenient for the mobile terminal to obtain the user's avatar information, the user can reach out for the mobile terminal to collect hand feature information, so that the unlocking can still be performed smoothly.

可选的,所述获取所述移动终端检测的加速度数值的步骤,包括:Optionally, the step of acquiring the acceleration value detected by the mobile terminal includes:

在所述移动终端熄屏锁定的状态下,获取所述移动终端检测的加速度数值。In a state where the screen of the mobile terminal is off and locked, the acceleration value detected by the mobile terminal is acquired.

本实施方式中,在移动终端熄屏锁定的状态下,也可以获取移动终端检测的加速度数值,使移动终端更加智能。In this embodiment, in a state where the screen of the mobile terminal is off and locked, the acceleration value detected by the mobile terminal can also be acquired, so that the mobile terminal is more intelligent.

本发明实施例的一种解锁方法,获取所述移动终端检测的加速度数值,所述加速度数值用于指示所述移动终端的空间姿态信息;判断所述加速度数值是否在预设范围内;若所述加速度数值在所述预设范围内,则采集用户的头像信息并根据所述头像信息进行解锁;若所述加速度数值不在所述预设范围内,则采集用户的手部特征信息并根据所述手部特征信息进行解锁。这样,通过获取移动终端的加速度信息确定移动终端的空间姿态信息,通过移动终端的空间姿态信息确定移动终端不方便使用头像解锁时,可以使用手部特征进行解锁,从而无需将移动终端拿到用户的面前采集头像再进行解锁,简化了移动终端的解锁过程。In an unlocking method according to an embodiment of the present invention, an acceleration value detected by the mobile terminal is obtained, and the acceleration value is used to indicate the spatial attitude information of the mobile terminal; it is judged whether the acceleration value is within a preset range; If the acceleration value is within the preset range, the user's avatar information is collected and unlocked according to the avatar information; if the acceleration value is not within the preset range, the user's hand feature information is collected and according to the The hand feature information is described to unlock. In this way, the spatial attitude information of the mobile terminal is determined by acquiring the acceleration information of the mobile terminal, and when it is determined by the spatial attitude information of the mobile terminal that it is inconvenient to unlock the mobile terminal by using the avatar, the hand feature can be used to unlock the mobile terminal, so that the mobile terminal does not need to be taken to the user. The avatar is collected in front of the mobile terminal and then unlocked, which simplifies the unlocking process of the mobile terminal.

参见图3,图3是本发明实施例提供的移动终端的结构图,能实现上述实施例中解锁方法的细节,并达到相同的效果。如图3所示,移动终端300包括获取模块301、判断模块302和第一采集模块303,获取模块301和判断模块302连接,判断模块302和第一采集模块303连接,其中:Referring to FIG. 3 , FIG. 3 is a structural diagram of a mobile terminal provided by an embodiment of the present invention, which can implement the details of the unlocking method in the above-mentioned embodiment, and achieve the same effect. As shown in FIG. 3 , the mobile terminal 300 includes an acquisition module 301, a judgment module 302 and a first acquisition module 303, the acquisition module 301 is connected with the judgment module 302, and the judgment module 302 is connected with the first acquisition module 303, wherein:

获取模块301,用于获取所述移动终端检测的加速度数值,所述加速度数值用于指示所述移动终端的空间姿态信息;an acquisition module 301, configured to acquire an acceleration value detected by the mobile terminal, where the acceleration value is used to indicate spatial attitude information of the mobile terminal;

判断模块302,用于判断所述加速度数值是否在预设范围内;A judgment module 302, configured to judge whether the acceleration value is within a preset range;

第一采集模块303,用于若所述判断模块302判断所述加速度数值不在所述预设范围内,则采集用户的手部特征信息并根据所述手部特征信息进行解锁。The first collection module 303 is configured to collect the user's hand feature information and unlock according to the hand feature information if the determination module 302 determines that the acceleration value is not within the preset range.

可选的,如图4所示,所述移动终端300还包括:Optionally, as shown in FIG. 4 , the mobile terminal 300 further includes:

第二采集模块304,用于若所述判断模块302判断所述加速度数值在所述预设范围内,则采集用户的头像信息并根据所述头像信息进行解锁。The second collection module 304 is configured to collect the avatar information of the user and unlock according to the avatar information if the determination module 302 determines that the acceleration value is within the preset range.

可选的,如图5所示,所述第二采集模块304,包括:Optionally, as shown in FIG. 5 , the second collection module 304 includes:

第一采集子模块3041,用于使用所述移动终端的前置摄像头采集用户的头像信息;The first collection sub-module 3041 is used to collect the avatar information of the user by using the front camera of the mobile terminal;

第一判断子模块3042,用于判断所述头像信息是否与预设头像信息相匹配;The first judgment submodule 3042 is used to judge whether the avatar information matches the preset avatar information;

第一解锁子模块3043,用于若所述第一判断子模块3042判断所述头像信息与所述预设头像信息相匹配,则所述移动终端进行解锁。The first unlocking sub-module 3043 is configured to unlock the mobile terminal if the first determining sub-module 3042 determines that the avatar information matches the preset avatar information.

可选的,如图6所示,所述第一采集模块303,包括:Optionally, as shown in FIG. 6 , the first collection module 303 includes:

第二判断子模块3031,用于若所述判断模块判断所述加速度数值不在所述预设范围内,则判断所述移动终端的红外传感器在预设距离以内是否检测到物体;The second judging sub-module 3031 is configured to judge whether the infrared sensor of the mobile terminal detects an object within the preset distance if the judging module judges that the acceleration value is not within the preset range;

第二采集子模块3032,用于若所述第二判断子模块3031判断所述红外传感器在所述预设距离以内检测到物体,则采集用户的手部特征信息并根据所述手部特征信息进行解锁,其中,所述手部特征信息包括指纹信息和掌纹信息中的至少一种信。The second collection sub-module 3032 is configured to collect the user's hand feature information according to the hand feature information if the second determination sub-module 3031 determines that the infrared sensor detects an object within the preset distance Unlocking is performed, wherein the hand feature information includes at least one of fingerprint information and palmprint information.

可选的,如图7所示,所述第一采集模块303,包括:Optionally, as shown in FIG. 7 , the first collection module 303 includes:

第三采集子模块3033,用于使用所述移动终端的前置摄像头或者后置摄像头采集用户的手部特征信息;The third collection sub-module 3033 is used to collect the hand feature information of the user by using the front camera or the rear camera of the mobile terminal;

第三判断子模块3034,用于判断所述手部特征信息是否与预设手部特征信息相匹配;The third judgment sub-module 3034 is used for judging whether the hand feature information matches the preset hand feature information;

第二解锁子模块3035,用于若所述第三判断子模块3034判断所述手部特征信息与所述预设手部特征信息相匹配,则所述移动终端进行解锁。The second unlocking sub-module 3035 is configured to unlock the mobile terminal if the third determining sub-module 3034 determines that the hand feature information matches the preset hand feature information.

可选的,所述获取模块301,用于:在所述移动终端熄屏锁定的状态下,获取所述移动终端检测的加速度数值。Optionally, the acquiring module 301 is configured to acquire the acceleration value detected by the mobile terminal in a state where the screen of the mobile terminal is off and locked.

移动终端300能实现上述方法实施例中移动终端实现的各个过程,为避免重复,这里不再赘述。The mobile terminal 300 can implement each process implemented by the mobile terminal in the foregoing method embodiments, and in order to avoid repetition, details are not repeated here.

本发明实施例的移动终端300,获取所述移动终端检测的加速度数值,所述加速度数值用于指示所述移动终端的空间姿态信息;判断所述加速度数值是否在预设范围内;若所述加速度数值不在所述预设范围内,则采集用户的手部特征信息并根据所述手部特征信息进行解锁。这样,通过获取移动终端的加速度信息确定移动终端的空间姿态信息,通过移动终端的空间姿态信息确定移动终端不方便使用头像解锁时,可以使用手部特征进行解锁,从而无需将移动终端拿到用户的面前采集头像再进行解锁,简化了移动终端的解锁过程。The mobile terminal 300 in this embodiment of the present invention acquires an acceleration value detected by the mobile terminal, where the acceleration value is used to indicate the spatial attitude information of the mobile terminal; judges whether the acceleration value is within a preset range; if the If the acceleration value is not within the preset range, the user's hand feature information is collected and unlocked according to the hand feature information. In this way, the spatial attitude information of the mobile terminal is determined by acquiring the acceleration information of the mobile terminal, and when it is determined by the spatial attitude information of the mobile terminal that it is inconvenient to unlock the mobile terminal by using the avatar, the hand feature can be used to unlock the mobile terminal, so that the mobile terminal does not need to be taken to the user. The avatar is collected in front of the mobile terminal and then unlocked, which simplifies the unlocking process of the mobile terminal.

参见图8,图8为实现本发明各个实施例的一种移动终端的硬件结构示意图,该移动终端800包括但不限于:射频单元801、网络模块802、音频输出单元803、输入单元804、传感器805、显示单元806、用户输入单元807、接口单元808、存储器809、处理器810、以及电源811等部件。本领域技术人员可以理解,图8中示出的移动终端结构并不构成对移动终端的限定,移动终端可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。在本发明实施例中,移动终端包括但不限于手机、平板电脑、笔记本电脑、掌上电脑、车载终端、可穿戴设备、以及计步器等。Referring to FIG. 8, FIG. 8 is a schematic diagram of the hardware structure of a mobile terminal for implementing various embodiments of the present invention. The mobile terminal 800 includes but is not limited to: a radio frequency unit 801, a network module 802, an audio output unit 803, an input unit 804, a sensor 805 , a display unit 806 , a user input unit 807 , an interface unit 808 , a memory 809 , a processor 810 , and a power supply 811 and other components. Those skilled in the art can understand that the structure of the mobile terminal shown in FIG. 8 does not constitute a limitation on the mobile terminal, and the mobile terminal may include more or less components than the one shown, or combine some components, or different components layout. In this 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, a pedometer, and the like.

其中,处理器810,用于获取所述移动终端检测的加速度数值,所述加速度数值用于指示所述移动终端的空间姿态信息;判断所述加速度数值是否在预设范围内;若所述加速度数值不在所述预设范围内,则采集用户的手部特征信息并根据所述手部特征信息进行解锁。这样,通过获取移动终端的加速度信息确定移动终端的空间姿态信息,通过移动终端的空间姿态信息确定移动终端不方便使用头像解锁时,可以使用手部特征进行解锁,从而无需将移动终端拿到用户的面前采集头像再进行解锁,简化了移动终端的解锁过程。The processor 810 is configured to acquire the acceleration value detected by the mobile terminal, where the acceleration value is used to indicate the spatial attitude information of the mobile terminal; determine whether the acceleration value is within a preset range; If the value is not within the preset range, the user's hand feature information is collected and unlocked according to the hand feature information. In this way, the spatial attitude information of the mobile terminal is determined by acquiring the acceleration information of the mobile terminal, and when it is determined by the spatial attitude information of the mobile terminal that it is inconvenient to unlock the mobile terminal by using the avatar, the hand feature can be used to unlock the mobile terminal, so that the mobile terminal does not need to be taken to the user. The avatar is collected in front of the mobile terminal and then unlocked, which simplifies the unlocking process of the mobile terminal.

可选的,处理器810,还用于若所述加速度数值在所述预设范围内,则采集用户的头像信息并根据所述头像信息进行解锁。Optionally, the processor 810 is further configured to, if the acceleration value is within the preset range, collect the avatar information of the user and unlock according to the avatar information.

可选的,处理器810,还用于使用所述移动终端的前置摄像头采集用户的头像信息;判断所述头像信息是否与预设头像信息相匹配;若所述头像信息与所述预设头像信息相匹配,则所述移动终端进行解锁。Optionally, the processor 810 is further configured to use the front camera of the mobile terminal to collect the avatar information of the user; determine whether the avatar information matches the preset avatar information; if the avatar information matches the preset avatar information; If the avatar information matches, the mobile terminal is unlocked.

可选的,处理器810,还用于若所述加速度数值不在所述预设范围内,则判断所述移动终端的红外传感器在预设距离以内是否检测到物体;若所述红外传感器在所述预设距离以内检测到物体,则采集用户的手部特征信息并根据所述手部特征信息进行解锁,其中,所述手部特征信息包括指纹信息和掌纹信息中的至少一种信息。Optionally, the processor 810 is further configured to determine whether the infrared sensor of the mobile terminal detects an object within the preset distance if the acceleration value is not within the preset range; If an object is detected within the preset distance, the user's hand feature information is collected and unlocked according to the hand feature information, wherein the hand feature information includes at least one of fingerprint information and palmprint information.

可选的,处理器810,还用于使用所述移动终端的前置摄像头或者后置摄像头采集用户的手部特征信息;判断所述手部特征信息是否与预设手部特征信息相匹配;若所述手部特征信息与所述预设手部特征信息相匹配,则所述移动终端进行解锁。Optionally, the processor 810 is further configured to use the front camera or the rear camera of the mobile terminal to collect the user's hand feature information; determine whether the hand feature information matches the preset hand feature information; If the hand feature information matches the preset hand feature information, the mobile terminal is unlocked.

可选的,处理器810,还用于在所述移动终端熄屏锁定的状态下,获取所述移动终端检测的加速度数值。Optionally, the processor 810 is further configured to acquire the acceleration value detected by the mobile terminal when the mobile terminal is in a screen-off-locked state.

应理解的是,本发明实施例中,射频单元801可用于收发信息或通话过程中,信号的接收和发送,具体的,将来自基站的下行数据接收后,给处理器810处理;另外,将上行的数据发送给基站。通常,射频单元801包括但不限于天线、至少一个放大器、收发信机、耦合器、低噪声放大器、双工器等。此外,射频单元801还可以通过无线通信系统与网络和其他设备通信。It should be understood that, in this embodiment of the present invention, the radio frequency unit 801 can be used for receiving and sending signals during sending and receiving of information or during a call. Specifically, after receiving the downlink data from the base station, it is processed by the processor 810; The uplink data is sent to the base station. Generally, the radio frequency unit 801 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 801 can also communicate with the network and other devices through a wireless communication system.

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

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

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

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

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

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

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

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

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

处理器810是移动终端的控制中心,利用各种接口和线路连接整个移动终端的各个部分,通过运行或执行存储在存储器809内的软件程序和/或模块,以及调用存储在存储器809内的数据,执行移动终端的各种功能和处理数据,从而对移动终端进行整体监控。处理器810可包括一个或多个处理单元;优选的,处理器810可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器810中。The processor 810 is the control center of the mobile terminal, uses various interfaces and lines to connect various parts of the entire mobile terminal, runs or executes the software programs and/or modules stored in the memory 809, and calls the data stored in the memory 809. , perform various functions of the mobile terminal and process data, so as to monitor the mobile terminal as a whole. The processor 810 may include one or more processing units; preferably, the processor 810 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 above-mentioned modulation and demodulation processor may not be integrated into the processor 810.

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

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

优选的,本发明实施例还提供一种移动终端,包括处理器810,存储器809,存储在存储器809上并可在所述处理器810上运行的计算机程序,该计算机程序被处理器810执行时实现上述解锁方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。Preferably, an embodiment of the present invention further provides a mobile terminal, including a processor 810 , a memory 809 , a computer program stored in the memory 809 and running on the processor 810 , when the computer program is executed by the processor 810 The various processes of the above unlocking method embodiments are implemented, and the same technical effect can be achieved. To avoid repetition, details are not repeated here.

本发明实施例还提供一种计算机可读存储介质,计算机可读存储介质上存储有计算机程序,该计算机程序被处理器执行时实现上述解锁方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。其中,所述的计算机可读存储介质,如只读存储器(Read-Only Memory,简称ROM)、随机存取存储器(Random Access Memory,简称RAM)、磁碟或者光盘等。Embodiments of the present invention further provide a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, each process of the foregoing unlocking method embodiment can be achieved, and the same technical effect can be achieved , in order to avoid repetition, it will not be repeated here. 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.

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

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

上面结合附图对本发明的实施例进行了描述,但是本发明并不局限于上述的具体实施方式,上述的具体实施方式仅仅是示意性的,而不是限制性的,本领域的普通技术人员在本发明的启示下,在不脱离本发明宗旨和权利要求所保护的范围情况下,还可做出很多形式,均属于本发明的保护之内。The 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 embodiments, which are merely illustrative rather than restrictive. Under the inspiration of the present invention, without departing from the spirit of the present invention and the scope protected by the claims, many forms can be made, which all belong to the protection of the present invention.

Claims (10)

1. An unlocking method is applied to a mobile terminal, and is characterized by comprising the following steps:
acquiring an acceleration value detected by the mobile terminal, wherein the acceleration value is used for indicating the space attitude information of the mobile terminal;
judging whether the acceleration value is within a preset range or not;
if the acceleration value is not within the preset range, acquiring hand characteristic information of a user and unlocking according to the hand characteristic information;
after the step of determining whether the acceleration value is within a preset range, the method further includes:
if the acceleration value is within the preset range, acquiring the head portrait information of the user and unlocking according to the head portrait information;
if the acceleration value is not within the preset range, judging whether an infrared sensor of the mobile terminal detects an object within a preset distance;
if the infrared sensor detects an object within the preset distance, acquiring hand characteristic information of a user and unlocking according to the hand characteristic information, wherein the hand characteristic information comprises at least one of fingerprint information and palm print information.
2. The method of claim 1, wherein the step of collecting the avatar information of the user and unlocking according to the avatar information comprises:
acquiring head portrait information of a user by using a front camera of the mobile terminal;
judging whether the head portrait information is matched with preset head portrait information or not;
and if the head portrait information is matched with the preset head portrait information, unlocking the mobile terminal.
3. The method of any one of claims 1 to 2, wherein the step of collecting hand characteristic information of a user and unlocking according to the hand characteristic information comprises:
acquiring hand feature information of a user by using a front camera or a rear camera of the mobile terminal;
judging whether the hand characteristic information is matched with preset hand characteristic information or not;
and if the hand characteristic information is matched with the preset hand characteristic information, unlocking the mobile terminal.
4. The method according to any one of claims 1 to 2, wherein the step of obtaining the acceleration value detected by the mobile terminal comprises:
and acquiring an acceleration value detected by the mobile terminal in a state that the screen of the mobile terminal is turned off and locked.
5. A mobile terminal, comprising:
the acquisition module is used for acquiring an acceleration value detected by the mobile terminal, and the acceleration value is used for indicating the space attitude information of the mobile terminal;
the judging module is used for judging whether the acceleration value is in a preset range or not;
the first acquisition module is used for acquiring the hand characteristic information of the user and unlocking according to the hand characteristic information if the judgment module judges that the acceleration value is not in the preset range;
the mobile terminal further includes:
the second acquisition module is used for acquiring the head portrait information of the user and unlocking according to the head portrait information if the judgment module judges that the acceleration value is within the preset range;
the first acquisition module comprises:
the second judgment submodule is used for judging whether an infrared sensor of the mobile terminal detects an object within a preset distance or not if the judgment module judges that the acceleration value is not within the preset range;
and the second acquisition sub-module is used for acquiring hand characteristic information of a user and unlocking according to the hand characteristic information if the second judgment sub-module judges that the infrared sensor detects an object within the preset distance, wherein the hand characteristic information comprises at least one of fingerprint information and palm print information.
6. The mobile terminal of claim 5, wherein the second acquisition module comprises:
the first acquisition submodule is used for acquiring head portrait information of a user by using a front camera of the mobile terminal;
the first judgment sub-module is used for judging whether the head portrait information is matched with preset head portrait information or not;
and the first unlocking submodule is used for unlocking the mobile terminal if the first judging submodule judges that the head portrait information is matched with the preset head portrait information.
7. The mobile terminal according to any of claims 5 to 6, wherein the first acquisition module comprises:
the third acquisition submodule is used for acquiring the hand characteristic information of the user by using a front camera or a rear camera of the mobile terminal;
the third judgment sub-module is used for judging whether the hand characteristic information is matched with preset hand characteristic information or not;
and the second unlocking submodule is used for unlocking the mobile terminal if the third judging submodule judges that the hand characteristic information is matched with the preset hand characteristic information.
8. The mobile terminal according to any of claims 5 to 6, wherein the obtaining module is configured to: and acquiring an acceleration value detected by the mobile terminal in a state that the screen of the mobile terminal is turned off and locked.
9. A mobile terminal, characterized in that it comprises a processor, a memory and a computer program stored on the memory and executable on the processor, which computer program, when executed by the processor, carries out the steps of the unlocking method according to any one of claims 1 to 4.
10. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the unlocking method according to any one of claims 1 to 4.
CN201711339124.2A 2017-12-14 2017-12-14 Unlocking method and mobile terminal Active CN108062465B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711339124.2A CN108062465B (en) 2017-12-14 2017-12-14 Unlocking method and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711339124.2A CN108062465B (en) 2017-12-14 2017-12-14 Unlocking method and mobile terminal

Publications (2)

Publication Number Publication Date
CN108062465A CN108062465A (en) 2018-05-22
CN108062465B true CN108062465B (en) 2020-09-29

Family

ID=62138643

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711339124.2A Active CN108062465B (en) 2017-12-14 2017-12-14 Unlocking method and mobile terminal

Country Status (1)

Country Link
CN (1) CN108062465B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109101119B (en) * 2018-07-23 2021-10-22 Oppo广东移动通信有限公司 Terminal control method, device and mobile terminal
CN109189637A (en) * 2018-08-20 2019-01-11 广东小天才科技有限公司 Mobile terminal state detection method and device and mobile terminal

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103186793A (en) * 2013-03-26 2013-07-03 北京小米科技有限责任公司 Mobile terminal screen unlocking method and device
CN104169933A (en) * 2011-12-29 2014-11-26 英特尔公司 Method, apparatus, and computer-readable recording medium for authenticating a user
CN104284004A (en) * 2013-07-02 2015-01-14 华为终端有限公司 Screen unlocking method and mobile terminal
CN106020782A (en) * 2016-05-27 2016-10-12 广东欧珀移动通信有限公司 Fingerprint unlocking control method and mobile terminal
CN106156559A (en) * 2015-04-22 2016-11-23 中兴通讯股份有限公司 A kind of terminal unlocking method and device
CN106874723A (en) * 2016-12-30 2017-06-20 努比亚技术有限公司 A kind of method and terminal for realizing unblock
CN107169331A (en) * 2017-06-15 2017-09-15 广东欧珀移动通信有限公司 Terminal unlocking method and device, terminal and computer readable storage medium
CN107277265A (en) * 2017-07-13 2017-10-20 广东欧珀移动通信有限公司 Unlock control method and related products

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107465809B (en) * 2017-07-03 2020-12-04 Oppo广东移动通信有限公司 Authentication method and terminal

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104169933A (en) * 2011-12-29 2014-11-26 英特尔公司 Method, apparatus, and computer-readable recording medium for authenticating a user
CN103186793A (en) * 2013-03-26 2013-07-03 北京小米科技有限责任公司 Mobile terminal screen unlocking method and device
CN104284004A (en) * 2013-07-02 2015-01-14 华为终端有限公司 Screen unlocking method and mobile terminal
CN106156559A (en) * 2015-04-22 2016-11-23 中兴通讯股份有限公司 A kind of terminal unlocking method and device
CN106020782A (en) * 2016-05-27 2016-10-12 广东欧珀移动通信有限公司 Fingerprint unlocking control method and mobile terminal
CN106874723A (en) * 2016-12-30 2017-06-20 努比亚技术有限公司 A kind of method and terminal for realizing unblock
CN107169331A (en) * 2017-06-15 2017-09-15 广东欧珀移动通信有限公司 Terminal unlocking method and device, terminal and computer readable storage medium
CN107277265A (en) * 2017-07-13 2017-10-20 广东欧珀移动通信有限公司 Unlock control method and related products

Also Published As

Publication number Publication date
CN108062465A (en) 2018-05-22

Similar Documents

Publication Publication Date Title
CN108459797B (en) Control method of folding screen and mobile terminal
CN107908382B (en) A split-screen display method and mobile terminal
CN107682634A (en) A kind of facial image acquisition methods and mobile terminal
CN108376096B (en) A message display method and mobile terminal
CN108229420B (en) Face recognition method and mobile terminal
CN107742072A (en) Face identification method and mobile terminal
CN111290810A (en) An image display method and electronic device
CN108256308A (en) A kind of recognition of face solution lock control method and mobile terminal
CN110018805A (en) A kind of display control method and mobile terminal
CN107609363B (en) An unlocking method and mobile terminal
CN108305342A (en) A kind of Work attendance method and mobile terminal
CN108924319B (en) Proximity detection method and mobile terminal
CN108363914A (en) Fingerprint unlocking control method and device
CN107809515A (en) A kind of display control method and mobile terminal
CN110764650A (en) Button trigger detection method and electronic device
CN108062465B (en) Unlocking method and mobile terminal
CN111246061A (en) Mobile terminal, detection method of shooting mode, and storage medium
CN107491685B (en) A face recognition method and mobile terminal
CN110826044B (en) Unlocking method and electronic equipment
CN108681429A (en) A kind of bright screen control method and mobile terminal
CN108536513A (en) A kind of picture display direction method of adjustment and mobile terminal
CN108108608B (en) Control method of a mobile terminal and mobile terminal
CN110795020A (en) Unlocking method and electronic equipment
CN108897467B (en) Display control method and terminal equipment
CN111459352A (en) Application icon display method and electronic device

Legal Events

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