CN109558719B - Unlocking method and terminal - Google Patents

Unlocking method and terminal Download PDF

Info

Publication number
CN109558719B
CN109558719B CN201910003991.1A CN201910003991A CN109558719B CN 109558719 B CN109558719 B CN 109558719B CN 201910003991 A CN201910003991 A CN 201910003991A CN 109558719 B CN109558719 B CN 109558719B
Authority
CN
China
Prior art keywords
unlocking
information
mode
current
terminal
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910003991.1A
Other languages
Chinese (zh)
Other versions
CN109558719A (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.)
China United Network Communications Group Co Ltd
Original Assignee
China United Network Communications Group 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 China United Network Communications Group Co Ltd filed Critical China United Network Communications Group Co Ltd
Priority to CN201910003991.1A priority Critical patent/CN109558719B/en
Publication of CN109558719A publication Critical patent/CN109558719A/en
Application granted granted Critical
Publication of CN109558719B publication Critical patent/CN109558719B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Telephone Function (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The invention provides an unlocking method and a terminal, which receive unlocking trigger information input by a user; acquiring the use scene information of the terminal; determining a current unlocking mode according to the using scene information; and displaying prompt information corresponding to the current unlocking mode to a user, and unlocking in the current unlocking mode, so that whether a default unlocking mode is used or a corresponding unlocking mode is switched is determined according to the current use scene, the unlocking efficiency of the user is improved, the unlocking accuracy and reliability under different use scenes are improved, and the user experience is improved.

Description

Unlocking method and terminal
Technical Field
The present invention relates to signal processing technologies, and in particular, to an unlocking method and a terminal.
Background
With the wide popularization of mobile terminals and the increasing expansion of people, the use of mobile terminals is more and more popular. In order to improve the safety of the mobile terminal, the mobile terminal can automatically lock the screen under the condition of no operation for a long time, and a user needs to unlock the mobile terminal through an unlocking operation and then can use the mobile terminal again. Since the user may frequently need to unlock, it is desirable to provide a quick and reliable unlocking method.
The existing unlocking mode is usually face unlocking to realize quick unlocking. For example, when a user clicks any key, the mobile terminal starts a camera to detect a face, matches the detected face with a face preset by the user, and unlocks if matching is successful.
However, a user may have a very high probability of unlocking failure when using the face, and the user experience is not high due to continuous multiple times of unlocking failure, and the existing unlocking method is not reliable.
Disclosure of Invention
The unlocking method and the terminal provided by the invention have the advantages that the unlocking reliability and correctness are improved, and the user experience is improved.
According to a first aspect of the present invention, there is provided an unlocking method, comprising:
receiving unlocking trigger information input by a user;
acquiring use scene information of a terminal;
determining a current unlocking mode according to the using scene information;
and displaying prompt information corresponding to the current unlocking mode to a user, and unlocking in the current unlocking mode.
Optionally, in a possible implementation manner of the first aspect, the determining a current unlocking mode according to the usage scenario information includes:
judging whether the use scene information meets a switching rule or not;
if not, determining the first unlocking mode as the current unlocking mode;
and if so, determining the second unlocking mode as the current unlocking mode.
Optionally, in another possible implementation manner of the first aspect, the first unlocking mode is a face unlocking mode; the switching rule includes whether an ambient lighting intensity indicated by the usage scenario information is less than an illumination threshold;
the acquiring the usage scenario information of the terminal includes:
acquiring ambient illumination intensity information of the terminal;
and using the ambient light intensity information as the using scene information.
Optionally, in yet another possible implementation manner of the first aspect, the first unlocking mode is a touch screen unlocking mode; the switching rule comprises whether the attitude dip angle indicated by the using scene information is within a preset dip angle range or not;
the acquiring the usage scenario information of the terminal includes:
acquiring attitude dip angle information of the terminal;
and taking the attitude dip angle information as using scene information.
Optionally, in another possible implementation manner of the first aspect, after the displaying a prompt message corresponding to the current unlocking mode to the user and unlocking in the current unlocking mode, the method further includes:
obtaining a current unlocking result unlocked in the current unlocking mode, wherein the current unlocking result comprises unlocking success or unlocking failure;
determining a new historical unlocking result and corresponding historical using scene information according to the unlocking result and the corresponding using scene information;
adding the new historical unlocking result and the corresponding historical use scene information into unlocking historical information to obtain updated unlocking historical information;
determining unlocking success probability or unlocking failure probability corresponding to each historical use scene information according to the updated unlocking historical information;
and updating the switching rule according to the unlocking success probability or the unlocking failure probability corresponding to each historical use scene information.
Optionally, in another possible implementation manner of the first aspect, the displaying a prompt message corresponding to the current unlocking mode to a user, and unlocking in the current unlocking mode includes:
displaying unlocking interface information corresponding to the current unlocking mode to a user;
receiving unlocking information which is input by a user and corresponds to the current unlocking mode;
if the unlocking information is matched with the template information corresponding to the current unlocking mode, unlocking;
if the unlocking information is not matched with the template information corresponding to the current unlocking mode, determining that unlocking fails;
if the unlocking failure is determined, returning to execute the unlocking information which is input by the receiving user and corresponds to the current unlocking mode until the number of continuous unlocking failures is larger than or equal to a preset switching threshold value, determining a third unlocking mode as the current unlocking mode, and returning to execute the unlocking interface information which corresponds to the current unlocking mode and is displayed to the user.
In a second aspect of the present invention, there is provided a terminal, including:
the trigger module is used for receiving unlocking trigger information input by a user;
the sensing module is used for acquiring the use scene information of the terminal;
the switching module is used for determining the current unlocking mode according to the using scene information;
and the unlocking module is used for displaying prompt information corresponding to the current unlocking mode to a user and unlocking in the current unlocking mode.
Optionally, in a possible implementation manner of the second aspect, the switching module is specifically configured to:
judging whether the use scene information meets a switching rule or not;
if not, determining the first unlocking mode as the current unlocking mode;
and if so, determining the second unlocking mode as the current unlocking mode.
Optionally, in another possible implementation manner of the second aspect, the first unlocking mode is a face unlocking mode; the switching rule includes whether an ambient lighting intensity indicated by the usage scenario information is less than an illumination threshold;
the trigger module is specifically configured to:
acquiring ambient illumination intensity information of the terminal;
and using the ambient light intensity information as the using scene information.
Optionally, in yet another possible implementation manner of the second aspect, the first unlocking mode is a touch screen unlocking mode; the switching rule comprises whether the attitude dip angle indicated by the using scene information is within a preset dip angle range or not;
the trigger module is specifically configured to:
acquiring attitude dip angle information of the terminal;
and taking the attitude dip angle information as using scene information.
Optionally, in yet another possible implementation manner of the second aspect, the apparatus further includes an updating module, configured to:
displaying prompt information corresponding to the current unlocking mode to a user at the unlocking module, and acquiring a current unlocking result unlocked in the current unlocking mode after unlocking in the current unlocking mode, wherein the current unlocking result comprises unlocking success or unlocking failure;
determining a new historical unlocking result and corresponding historical using scene information according to the unlocking result and the corresponding using scene information;
adding the new historical unlocking result and the corresponding historical use scene information into unlocking historical information to obtain updated unlocking historical information;
determining unlocking success probability or unlocking failure probability corresponding to each historical use scene information according to the updated unlocking historical information;
and updating the switching rule according to the unlocking success probability or the unlocking failure probability corresponding to each historical use scene information.
Optionally, in another possible implementation manner of the second aspect, the unlocking module is specifically configured to:
displaying unlocking interface information corresponding to the current unlocking mode to a user;
receiving unlocking information which is input by a user and corresponds to the current unlocking mode;
if the unlocking information is matched with the template information corresponding to the current unlocking mode, unlocking;
if the unlocking information is not matched with the template information corresponding to the current unlocking mode, determining that unlocking fails;
if the unlocking failure is determined, returning to execute the unlocking information which is input by the receiving user and corresponds to the current unlocking mode until the number of continuous unlocking failures is larger than or equal to a preset switching threshold value, determining a third unlocking mode as the current unlocking mode, and returning to execute the unlocking interface information which corresponds to the current unlocking mode and is displayed to the user.
According to a third aspect of the present invention, there is provided a terminal comprising: memory, a processor and a computer program, the computer program being stored in the memory, the processor running the computer program to perform the method of the first aspect of the invention and its various possible designs.
According to a fourth aspect of the present invention, there is provided a readable storage medium having stored therein a computer program for implementing the method of the first aspect of the present invention and its various possible designs when executed by a processor.
According to the unlocking method and the terminal, unlocking trigger information input by a user is received; acquiring the use scene information of the terminal; determining a current unlocking mode according to the using scene information; and displaying prompt information corresponding to the current unlocking mode to a user, and unlocking in the current unlocking mode, so that whether a default unlocking mode is used or a corresponding unlocking mode is switched is determined according to the current use scene, the unlocking efficiency of the user is improved, the unlocking accuracy and reliability under different use scenes are improved, and the user experience is improved.
Drawings
Fig. 1 is a schematic view of an application scenario of an unlocking method according to an embodiment of the present invention;
fig. 2 is a schematic flowchart of an unlocking method according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of a terminal according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of another terminal provided in the embodiment of the present invention;
fig. 5 is a schematic diagram of a hardware structure of a terminal according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The terms "first," "second," "third," "fourth," and the like in the description and in the claims, as well as in the drawings, if any, are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the invention described herein are capable of operation in sequences other than those illustrated or described herein.
It should be understood that, in various embodiments of the present invention, the sequence numbers of the processes do not mean the execution sequence, and the execution sequence of the processes should be determined by the functions and the internal logic of the processes, and should not constitute any limitation on the implementation process of the embodiments of the present invention.
It should be understood that in the present application, "comprising" and "having" and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
It should be understood that, in the present invention, "a plurality" means two or more. "and/or" is merely an association describing an associated object, meaning that three relationships may exist, for example, and/or B, may mean: a exists alone, A and B exist simultaneously, and B exists alone. The character "/" generally indicates that the former and latter associated objects are in an "or" relationship. "comprises A, B and C" and "comprises A, B, C" means that all three of A, B, C comprise, "comprises A, B or C" means that one of A, B, C comprises, "comprises A, B and/or C" means that any 1 or any 2 or 3 of A, B, C comprises.
It should be understood that in the present invention, "B corresponding to a", "a corresponds to B", or "B corresponds to a" means that B is associated with a, and B can be determined from a. Determining B from a does not mean determining B from a alone, but may be determined from a and/or other information. And the matching of A and B means that the similarity of A and B is greater than or equal to a preset threshold value.
As used herein, "if" may be interpreted as "at … …" or "when … …" or "in response to a determination" or "in response to a detection", depending on the context.
The technical solution of the present invention will be described in detail below with specific examples. The following several specific embodiments may be combined with each other, and details of the same or similar concepts or processes may not be repeated in some embodiments.
It should be understood that in various embodiments of the present invention, "unlock" refers to a switching operation of unlocking in a terminal lock state, so that the terminal becomes an operable state. Unlocking may be understood as a system unlocking of the terminal, or may also or simultaneously be understood as a screen unlocking of the terminal. Typically, the terminal system and the screen are also locked and unlocked simultaneously, so the unlocking in the various embodiments described below may be system unlocking and/or screen unlocking.
The inventor of the invention finds that in an environment with weak illumination intensity, because the light is dim, the recognition degree of the image is low, and the failure rate of unlocking by using a human face of a user is high. After the terminal posture inclination angle is larger than or equal to 180 degrees, because most users lie down, the touch screen operation accuracy is reduced, and the failure rate of the user in touch screen unlocking modes such as gesture unlocking and password unlocking is high. Due to the fact that the unlocking mode in the prior art is single, user experience is not high, and the existing unlocking method is not reliable. Fig. 1 is a schematic view of an application scenario of an unlocking method according to an embodiment of the present invention. In order to improve the reliability of the unlocking method, the present invention provides the unlocking method described in the following various embodiments, and the terminal 1 shown in fig. 1 determines the current unlocking mode most matched with the current usage scenario by sensing and acquiring the usage scenario information. For example, as shown in fig. 1, in a dark environment at night, the illumination intensity is lower than a threshold, a user wants to unlock a terminal in such a usage scene, and if the user performs face unlocking in a default face unlocking mode, it is difficult to identify a clear face image, and the user may need to go to a bright place to normally identify a face for successful unlocking. In the embodiment shown in fig. 1, after the terminal 1 acquires the information of the use scene with too low light, the default face unlocking mode is automatically switched to the sliding unlocking mode, so that the unlocking efficiency is improved, the unlocking mode is adaptively switched according to the scene, the unlocking accuracy and reliability in different use scenes are improved, and the user experience is improved. Alternatively, a selection box whether to perform mode switching may be displayed before switching, or a prompt message that the unlocking mode has been switched may be displayed to the user after switching, so as to notify the user to unlock the terminal in the new unlocking mode.
Referring to fig. 2, which is a flowchart illustrating an unlocking method according to an embodiment of the present invention, an execution main body of the method shown in fig. 2 may be a software and/or hardware device. The method shown in fig. 2 includes steps S101 to S104, which are specifically as follows:
and S101, receiving unlocking trigger information input by a user.
It can be understood that, in the terminal locking state, the user arbitrarily clicks a key on the terminal to trigger the unlocking operation of the terminal. For example, the user presses a power key, the terminal screen lights up and the following steps of the present embodiment are performed. It can also be understood that, when the default unlocking mode is active face unlocking, the camera of the terminal automatically acquires a front image, and when the face image is acquired, the unlocking trigger information is generated, and the following steps are performed.
And S102, acquiring the use scene information of the terminal.
It is understood that the acquired usage scenario information corresponds to the switching condition of the originally default unlock mode of the terminal. The information category to be acquired can be determined according to the current unlocking mode of the terminal, and then the use scene information of the terminal can be acquired according to the information category.
For example, the current unlocking mode is a first unlocking mode, the first unlocking mode is a face unlocking mode, and when the illumination intensity is too low, the failure rate of face unlocking is high, the information category to be acquired is illumination information. For example, obtaining ambient light intensity information of the terminal; and using the ambient light intensity information as the using scene information. Accordingly, the switching rule may be: whether the ambient lighting intensity indicated by the usage scene information is less than an illumination threshold.
For another example, when the current unlocking mode is the first unlocking mode, the first unlocking mode is the touch screen unlocking mode, and when the posture inclination angle of the terminal is in the range of 90 ° to 270 °, the user may be in a lying posture (for example, sleeping) and is not convenient to click the screen, and the failure rate of the touch screen unlocking mode is high, the information category to be acquired is posture type information. For example, acquiring attitude dip angle information of the terminal; and taking the attitude dip angle information as using scene information. Accordingly, the switching rule may be: and whether the attitude dip angle indicated by the using scene information is within a preset dip angle range.
S103, determining the current unlocking mode according to the using scene information.
Specifically, it may be determined whether the usage scenario information satisfies a switching rule; if not, determining the first unlocking mode as the current unlocking mode; and if so, determining the second unlocking mode as the current unlocking mode. For example, the first unlocking mode may be a face unlocking mode, the second unlocking mode may be a touch screen unlocking mode, or other preset unlocking modes.
And S104, displaying prompt information corresponding to the current unlocking mode to a user, and unlocking in the current unlocking mode.
Specifically, the terminal may display unlocking interface information corresponding to the current unlocking mode to the user; receiving unlocking information which is input by a user and corresponds to the current unlocking mode; if the unlocking information is matched with the template information corresponding to the current unlocking mode, unlocking; and if the unlocking information is not matched with the template information corresponding to the current unlocking mode, determining that the unlocking is failed. The template information may be, for example, face template information, password template information, or the like.
Further, if it is determined that the unlocking is failed, returning and executing the unlocking information corresponding to the current unlocking mode and input by the receiving user until the number of continuous unlocking failures is greater than or equal to a preset switching threshold (for example, the number of failures reaches 3), determining a third unlocking mode as the current unlocking mode, and returning and executing the displaying of the unlocking interface information corresponding to the current unlocking mode to the user.
For example, the first unlocking mode is a face unlocking mode or an iris unlocking mode, the second unlocking mode is a touch screen unlocking mode, and the third unlocking mode can be understood as another unlocking mode different from the face unlocking mode and the touch screen unlocking mode, such as a voice unlocking mode or a fingerprint unlocking mode.
In an optional implementation manner, if the face mode is determined as the current unlocking mode, face unlocking interface information may be displayed to the user; acquiring face image information input by a user; and judging whether the face image information is matched with preset face template information, if so, unlocking, and otherwise, continuing to lock.
In an optional implementation manner, if the password mode is determined as the current unlocking mode, displaying password unlocking interface information to a user; acquiring password image information input by a user; and judging whether the password image information is matched with preset password template information, if so, unlocking, and otherwise, continuing to lock. The password unlocking interface can be a key password unlocking interface or a sliding password unlocking interface.
After step S104 (displaying a prompt message corresponding to the current unlocking mode to the user, and unlocking in the current unlocking mode), the method may further include:
obtaining a current unlocking result unlocked in the current unlocking mode, wherein the current unlocking result comprises unlocking success or unlocking failure; determining a new historical unlocking result and corresponding historical using scene information according to the unlocking result and the corresponding using scene information; adding the new historical unlocking result and the corresponding historical use scene information into unlocking historical information to obtain updated unlocking historical information; determining unlocking success probability or unlocking failure probability corresponding to each historical use scene information according to the updated unlocking historical information; and updating the switching rule according to the unlocking success probability or the unlocking failure probability corresponding to each historical use scene information.
For example, it is assumed that the terminal updates the switching rule every 3 days, and in this embodiment, the terminal stores the ambient illumination intensity information obtained during face unlocking every time and marks whether face unlocking is successful or not no matter whether face unlocking (the first unlocking mode) is failed or not. The table is an example of the updated historical unlocking result and the corresponding historical usage scenario information thereof provided by the embodiment of the present invention. The ambient illumination intensity information in table one is historical usage scene information, in lux, abbreviated as LX.
Watch 1
Serial number Ambient light intensity information (LX) Whether the facial unlocking was successful
1 45 Is that
2 81 Is that
3 12 Whether or not
4 23 Whether or not
5 44 Is that
6 28 Whether or not
7 27 Whether or not
8
In this embodiment, the terminal performs preprocessing on ambient light intensity information acquired by the light sensor configured by the terminal, and counts the probability of face unlocking failure in different ambient light intensity ranges at intervals of 5 lx. Table two is an unlocking failure probability corresponding to the updated historical usage scenario information provided by the embodiment of the present invention. The ambient illumination intensity information in table two is historical usage scenario information.
Watch two
Serial number Ambient light intensity information (LX) Probability of failure of facial unlock
1 0-5 100%
2 6-10 98%
3 11-15 96%
4 16-20 88%
5 21-25 77%
6 26-30 72%
7 31-35 45%
8
In the examples shown in the above tables and table two, it is assumed that the switching rule set in advance by the terminal is "whether the ambient light intensity indicated by the usage scene information is less than the illuminance threshold value 20 LX". And in the updated table two, when the ambient light intensity information is between 0-5LX, 6-10LX, 11-15LX, 16-20LX, 21-25LX and 26-30LX, the probability of unlocking failure is greater than 70%. The illuminance threshold is a threshold that is continuously updated according to the user history operation data (unlocking history information), assuming that a preset unlocking failure threshold for determining the illuminance threshold is fixed at 70%. In the examples shown in table one and table two, when the ambient light intensity information is 0 to 30LX, the probability of unlocking failure is greater than 70%, and both should be considered as satisfying the handover condition. The illuminance threshold should be 30LX, but in current switching rules the illuminance threshold is 20 LX. Therefore, the existing switching condition is updated with the newly determined switching condition, that is, the illuminance threshold is updated to 30 LX. The new switching rule is "whether the ambient light intensity indicated using the scene information is less than the illuminance threshold 30 LX".
In the unlocking method provided by the embodiment, the unlocking trigger information input by the user is received; acquiring the use scene information of the terminal; determining a current unlocking mode according to the using scene information; and displaying prompt information corresponding to the current unlocking mode to a user, and unlocking in the current unlocking mode, so that whether a default unlocking mode is used or a corresponding unlocking mode is switched is determined according to the current use scene, the unlocking efficiency of the user is improved, the unlocking accuracy and reliability under different use scenes are improved, and the user experience is improved.
Referring to fig. 3, which is a schematic diagram of a terminal structure according to an embodiment of the present invention, the terminal 30 shown in fig. 3 mainly includes:
and the trigger module 31 is configured to receive unlocking trigger information input by a user.
And the sensing module 32 is used for acquiring the use scene information of the terminal.
And a switching module 33, configured to determine a current unlocking mode according to the usage scenario information.
And the unlocking module 34 is configured to display a prompt message corresponding to the current unlocking mode to a user, and unlock the mobile terminal in the current unlocking mode.
The terminal in the embodiment shown in fig. 3 can be correspondingly used to execute the steps in the method embodiment shown in fig. 2, and the implementation principle and technical effect are similar, which are not described herein again.
Optionally, the switching module 33 is specifically configured to:
judging whether the use scene information meets a switching rule or not;
if not, determining the first unlocking mode as the current unlocking mode;
and if so, determining the second unlocking mode as the current unlocking mode.
Optionally, the first unlocking mode is a face unlocking mode. The switching rule includes whether an ambient lighting intensity indicated by the usage scenario information is less than an illumination threshold.
The triggering module 31 is specifically configured to:
acquiring ambient illumination intensity information of the terminal; and using the ambient light intensity information as the using scene information.
Optionally, the first unlocking mode is a touch screen unlocking mode. The switching rule includes whether the attitude tilt angle indicated by the usage scenario information is within a preset tilt angle range.
The triggering module 31 is specifically configured to:
acquiring attitude dip angle information of the terminal; and taking the attitude dip angle information as using scene information.
Referring to fig. 4, which is a schematic diagram of another terminal structure provided in the embodiment of the present invention, the terminal 30 shown in fig. 4 further includes an updating module 35, configured to:
displaying prompt information corresponding to the current unlocking mode to a user at the unlocking module, and acquiring a current unlocking result unlocked in the current unlocking mode after unlocking in the current unlocking mode, wherein the current unlocking result comprises unlocking success or unlocking failure;
determining a new historical unlocking result and corresponding historical using scene information according to the unlocking result and the corresponding using scene information;
adding the new historical unlocking result and the corresponding historical use scene information into unlocking historical information to obtain updated unlocking historical information;
determining unlocking success probability or unlocking failure probability corresponding to each historical use scene information according to the updated unlocking historical information;
and updating the switching rule according to the unlocking success probability or the unlocking failure probability corresponding to each historical use scene information.
Optionally, the unlocking module 34 is specifically configured to:
displaying unlocking interface information corresponding to the current unlocking mode to a user;
receiving unlocking information which is input by a user and corresponds to the current unlocking mode;
if the unlocking information is matched with the template information corresponding to the current unlocking mode, unlocking;
if the unlocking information is not matched with the template information corresponding to the current unlocking mode, determining that unlocking fails;
if the unlocking failure is determined, returning to execute the unlocking information which is input by the receiving user and corresponds to the current unlocking mode until the number of continuous unlocking failures is larger than or equal to a preset switching threshold value, determining a third unlocking mode as the current unlocking mode, and returning to execute the unlocking interface information which corresponds to the current unlocking mode and is displayed to the user.
Referring to fig. 5, which is a schematic diagram of a hardware structure of a terminal according to an embodiment of the present invention, the terminal 50 includes: a processor 51, a memory 52 and computer programs; wherein
A memory 52 for storing the computer program, which may also be a flash memory (flash). The computer program is, for example, an application program, a functional module, or the like that implements the above method.
A processor 51 for executing the computer program stored in the memory to implement the steps performed by the terminal in the above method. Reference may be made in particular to the description relating to the preceding method embodiment.
Alternatively, the memory 52 may be separate or integrated with the processor 51.
When the memory 52 is a device independent of the processor 51, the terminal may further include:
a bus 53 for connecting the memory 52 and the processor 51.
The present invention also provides a readable storage medium, in which a computer program is stored, which, when being executed by a processor, is adapted to implement the methods provided by the various embodiments described above.
The readable storage medium may be a computer storage medium or a communication medium. Communication media includes any medium that facilitates transfer of a computer program from one place to another. Computer storage media may be any available media that can be accessed by a general purpose or special purpose computer. For example, a readable storage medium is coupled to the processor such that the processor can read information from, and write information to, the readable storage medium. Of course, the readable storage medium may also be an integral part of the processor. The processor and the readable storage medium may reside in an Application Specific Integrated Circuits (ASIC). Additionally, the ASIC may reside in user equipment. Of course, the processor and the readable storage medium may also reside as discrete components in a communication device. The readable storage medium may be a read-only memory (ROM), a random-access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
The present invention also provides a program product comprising execution instructions stored in a readable storage medium. The at least one processor of the device may read the execution instructions from the readable storage medium, and the execution of the execution instructions by the at least one processor causes the device to implement the methods provided by the various embodiments described above.
In the above embodiments of the terminal or the server, it should be understood that the Processor may be a Central Processing Unit (CPU), other general-purpose processors, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of a method disclosed in connection with the present invention may be embodied directly in a hardware processor, or in a combination of the hardware and software modules within the processor.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solution of the present invention, and not to limit the same; while the invention has been described in detail and with reference to the foregoing embodiments, it will be understood by those skilled in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present invention.

Claims (10)

1. An unlocking method, comprising:
receiving unlocking trigger information input by a user;
acquiring use scene information of a terminal;
determining a current unlocking mode according to the using scene information;
displaying prompt information corresponding to the current unlocking mode to a user, and unlocking in the current unlocking mode;
the displaying the prompt information corresponding to the current unlocking mode to the user, and after unlocking in the current unlocking mode, further comprising:
obtaining a current unlocking result unlocked in the current unlocking mode, wherein the current unlocking result comprises unlocking success or unlocking failure;
determining a new historical unlocking result and corresponding historical using scene information according to the unlocking result and the corresponding using scene information;
adding the new historical unlocking result and the corresponding historical use scene information into unlocking historical information to obtain updated unlocking historical information;
determining unlocking success probability or unlocking failure probability corresponding to each historical use scene information according to the updated unlocking historical information;
and updating the switching rule according to the unlocking success probability or the unlocking failure probability corresponding to each historical use scene information.
2. The method of claim 1, wherein determining a current unlock mode according to the usage scenario information comprises:
judging whether the use scene information meets a switching rule or not;
if not, determining the first unlocking mode as the current unlocking mode;
and if so, determining the second unlocking mode as the current unlocking mode.
3. The method of claim 2, wherein the first unlocking mode is a face unlocking mode; the switching rule includes whether an ambient lighting intensity indicated by the usage scenario information is less than an illumination threshold;
the acquiring the usage scenario information of the terminal includes:
acquiring ambient illumination intensity information of the terminal;
and using the ambient light intensity information as the using scene information.
4. The method of claim 2, wherein the first unlock mode is a touch screen unlock mode; the switching rule comprises whether the attitude dip angle indicated by the using scene information is within a preset dip angle range or not;
the acquiring the usage scenario information of the terminal includes:
acquiring attitude dip angle information of the terminal;
and taking the attitude dip angle information as using scene information.
5. The method of claim 1, wherein displaying a prompt corresponding to the current unlocking mode to a user and unlocking in the current unlocking mode comprises:
displaying unlocking interface information corresponding to the current unlocking mode to a user;
receiving unlocking information which is input by a user and corresponds to the current unlocking mode;
if the unlocking information is matched with the template information corresponding to the current unlocking mode, unlocking;
if the unlocking information is not matched with the template information corresponding to the current unlocking mode, determining that unlocking fails;
if the unlocking failure is determined, returning to execute the unlocking information which is input by the receiving user and corresponds to the current unlocking mode until the number of continuous unlocking failures is larger than or equal to a preset switching threshold value, determining a third unlocking mode as the current unlocking mode, and returning to execute the unlocking interface information which corresponds to the current unlocking mode and is displayed to the user.
6. A terminal, comprising:
the trigger module is used for receiving unlocking trigger information input by a user;
the sensing module is used for acquiring the use scene information of the terminal;
the switching module is used for determining the current unlocking mode according to the using scene information;
the unlocking module is used for displaying prompt information corresponding to the current unlocking mode to a user and unlocking in the current unlocking mode;
the terminal further comprises an updating module, configured to:
displaying prompt information corresponding to the current unlocking mode to a user at the unlocking module, and acquiring a current unlocking result unlocked in the current unlocking mode after unlocking in the current unlocking mode, wherein the current unlocking result comprises unlocking success or unlocking failure;
determining a new historical unlocking result and corresponding historical using scene information according to the unlocking result and the corresponding using scene information;
adding the new historical unlocking result and the corresponding historical use scene information into unlocking historical information to obtain updated unlocking historical information;
determining unlocking success probability or unlocking failure probability corresponding to each historical use scene information according to the updated unlocking historical information;
and updating the switching rule according to the unlocking success probability or the unlocking failure probability corresponding to each historical use scene information.
7. The terminal of claim 6, wherein the switching module is specifically configured to:
judging whether the use scene information meets a switching rule or not;
if not, determining the first unlocking mode as the current unlocking mode;
and if so, determining the second unlocking mode as the current unlocking mode.
8. The terminal of claim 7, wherein the first unlocking mode is a face unlocking mode; the switching rule includes whether an ambient lighting intensity indicated by the usage scenario information is less than an illumination threshold;
the trigger module is specifically configured to:
acquiring ambient illumination intensity information of the terminal;
and using the ambient light intensity information as the using scene information.
9. The terminal according to claim 7, wherein the first unlocking mode is a touch screen unlocking mode; the switching rule comprises whether the attitude dip angle indicated by the using scene information is within a preset dip angle range or not;
the trigger module is specifically configured to:
acquiring attitude dip angle information of the terminal;
and taking the attitude dip angle information as using scene information.
10. A terminal, comprising: a memory, a processor and a computer program, the computer program being stored in the memory, the processor running the computer program to perform the unlocking method of any of claims 1 to 5.
CN201910003991.1A 2019-01-03 2019-01-03 Unlocking method and terminal Active CN109558719B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910003991.1A CN109558719B (en) 2019-01-03 2019-01-03 Unlocking method and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910003991.1A CN109558719B (en) 2019-01-03 2019-01-03 Unlocking method and terminal

Publications (2)

Publication Number Publication Date
CN109558719A CN109558719A (en) 2019-04-02
CN109558719B true CN109558719B (en) 2020-08-18

Family

ID=65872515

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910003991.1A Active CN109558719B (en) 2019-01-03 2019-01-03 Unlocking method and terminal

Country Status (1)

Country Link
CN (1) CN109558719B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110505345B (en) * 2019-08-23 2022-01-21 中国联合网络通信集团有限公司 Terminal unlocking mode switching management method, terminal and switching server
CN111723350B (en) * 2020-05-11 2024-02-02 口碑(上海)信息技术有限公司 Method, device and equipment for pushing recognition mode

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2015014075A1 (en) * 2013-08-01 2015-02-05 Spreadtrum Communications (Shanghai) Co., Ltd. A method and apparatus for an alarm for a mobile device
CN104933337A (en) * 2015-05-22 2015-09-23 广东欧珀移动通信有限公司 Method for realizing fingerprint unlocking and intelligent terminal
CN106055959A (en) * 2016-05-31 2016-10-26 广东欧珀移动通信有限公司 Unlocking method and mobile terminal
CN106056072A (en) * 2016-05-27 2016-10-26 广东欧珀移动通信有限公司 Fingerprint unlocking method and device

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8872618B2 (en) * 2012-04-09 2014-10-28 Nai-Chien Chang Unlocking method for electronic device
CN104392155A (en) * 2014-09-23 2015-03-04 深圳市金立通信设备有限公司 Terminal unlocking method
CN105635450A (en) * 2015-12-25 2016-06-01 努比亚技术有限公司 Mobile terminal unlocking method and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2015014075A1 (en) * 2013-08-01 2015-02-05 Spreadtrum Communications (Shanghai) Co., Ltd. A method and apparatus for an alarm for a mobile device
CN104933337A (en) * 2015-05-22 2015-09-23 广东欧珀移动通信有限公司 Method for realizing fingerprint unlocking and intelligent terminal
CN106056072A (en) * 2016-05-27 2016-10-26 广东欧珀移动通信有限公司 Fingerprint unlocking method and device
CN106055959A (en) * 2016-05-31 2016-10-26 广东欧珀移动通信有限公司 Unlocking method and mobile terminal

Also Published As

Publication number Publication date
CN109558719A (en) 2019-04-02

Similar Documents

Publication Publication Date Title
CN108701178B (en) Authentication method and electronic device using the same
US10423771B2 (en) Unlocking control method and terminal device
US9967100B2 (en) Method of controlling power supply for fingerprint sensor, fingerprint processing device, and electronic device performing the same
WO2018119599A1 (en) Method and device for searching for person and communication system
CN107831992B (en) Unlocking control method and related product
EP2919165B1 (en) Method and device for clustering
CN108804006B (en) Unlocking method, device, equipment and storage medium for wearable equipment
CN109558719B (en) Unlocking method and terminal
EP3961487A1 (en) Calibration method and related device
US10083346B2 (en) Method and apparatus for providing contact card
CN107623899B (en) Information processing method, information processing apparatus, storage medium, and electronic device
US20190057072A1 (en) Method, device and electronic equipment for switching name of desktop icon folder
KR20150051888A (en) Method for controlling power of fingerprint sensor, fingerprint processing device, and electronic device performing thereof
WO2019024641A1 (en) Data synchronization method and apparatus, storage medium and electronic device
KR102547054B1 (en) Electronic device and method for controlling activation of camera module
CN105227855A (en) A kind of image processing method and terminal
CN105825102A (en) Terminal unlocking method and apparatus based on eye-print identification
CN113342170A (en) Gesture control method, device, terminal and storage medium
CN111641751B (en) Screen unlocking method and device of terminal equipment, terminal equipment and storage medium
CN109657441B (en) Application opening method and related device
US10977350B2 (en) Contact information display method and device, and information display method and device
CN107656772B (en) Face recognition method and related product
CN105988560B (en) Application starting method and device
CN110874730B (en) Information processing method, information processing device and mobile terminal
CN107172292B (en) Terminal control method and device

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