WO2017032129A1 - 一种解锁的方法及终端 - Google Patents

一种解锁的方法及终端 Download PDF

Info

Publication number
WO2017032129A1
WO2017032129A1 PCT/CN2016/085084 CN2016085084W WO2017032129A1 WO 2017032129 A1 WO2017032129 A1 WO 2017032129A1 CN 2016085084 W CN2016085084 W CN 2016085084W WO 2017032129 A1 WO2017032129 A1 WO 2017032129A1
Authority
WO
WIPO (PCT)
Prior art keywords
touch
preset
parameters
sets
touch parameters
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.)
Ceased
Application number
PCT/CN2016/085084
Other languages
English (en)
French (fr)
Inventor
李建林
李家达
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Publication of WO2017032129A1 publication Critical patent/WO2017032129A1/zh
Anticipated expiration legal-status Critical
Ceased legal-status Critical Current

Links

Images

Classifications

    • 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/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • 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/36User authentication by graphic or iconic representation
    • 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/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • G06F3/04883Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures for inputting data by handwriting, e.g. gesture or text

Definitions

  • the embodiments of the present invention relate to the field of electronic devices, and in particular, to a method and a terminal for unlocking.
  • terminals such as mobile phones, tablets, smart wearable devices, etc.
  • functions are becoming more and more powerful, and have evolved from a simple communication tool to an integrated multi-function.
  • the embodiment of the invention provides a method and a terminal for unlocking, in order to improve the security of the terminal.
  • a first aspect of the embodiments of the present invention discloses a method for unlocking, including:
  • N N sets of touch parameters for the user to perform N touch operations on the touch screen of the terminal, wherein the N is a positive integer
  • the terminal is unlocked.
  • the touch parameter comprises a touch Touching the trajectory parameters of the trajectory formed by the operation and/or the touch operation strength
  • the trajectory parameter is at least one of a track direction, a track length, a track pattern, and a track width.
  • the N sets of touch parameters are 2 sets of touch parameters
  • the 2 sets of touch parameters include a first set of touch parameters and a second set of touch parameters
  • the first set of touch parameters includes a track direction of rightward and a first track length being a first length
  • the second set of touch parameters includes a second track direction of The upward and second tracks are of a second length
  • the matching the N sets of touch parameters with the N sets of preset touch parameters includes:
  • the N is 1
  • the N sets of touch parameters are 1 set.
  • Touching parameters the set of touch parameters is: touch operation strength is K1, track width is K2, and track pattern is K3.
  • the matching the N sets of touch parameters with the N sets of preset touch parameters includes:
  • the method further includes:
  • the fifth aspect in the first aspect includes:
  • M group touch parameter of the N sets of touch parameters does not match the M group preset touch parameters of the N sets of preset touch parameters, the user is prompted to perform M touch operations, wherein, M An integer greater than 1 and less than N;
  • the terminal is unlocked.
  • a second aspect of the embodiment of the present invention discloses a terminal, including:
  • a determining unit configured to determine N sets of touch parameters that the user performs N touch operations on the touch screen of the terminal, where the N is a positive integer;
  • a matching unit configured to match the N sets of touch parameters determined by the determining unit with the N sets of preset touch parameters
  • an unlocking unit configured to perform an unlocking operation on the terminal if the matching unit matches that the N sets of touch parameters and the N sets of preset touch parameters are successfully matched.
  • the touch parameter includes a trajectory parameter of the trajectory formed by the touch operation and/or a touch operation strength
  • the trajectory parameter is at least one of a track direction, a track length, a track pattern, and a track width.
  • the N sets of touch parameters are 2 sets of touch parameters
  • the 2 sets of touch parameters include a first set of touch parameters and a second set of touch parameters
  • the first set of touch parameters includes a track direction of rightward and a first track length being a first length
  • the second set of touch parameters includes a second track direction of The upward and second tracks are of a second length
  • the matching unit includes:
  • a first determining unit configured to determine whether a first trajectory direction of the first group of touch parameters is consistent with a first preset trajectory direction of the first group of preset touch parameters, and determine a first of the first group of touch parameters Whether the track length is smaller than the first preset track length of the first group of preset touch parameters;
  • a second determining unit configured to determine, if the result of the first determining unit is YES, determining whether the second trajectory direction of the second group of touch parameters and the second preset trajectory direction of the second group of preset touch parameters Consistently and whether the second track length of the second set of touch parameters is greater than the second preset track length of the second set of preset touch parameters.
  • the N in a third possible implementation manner of the first aspect, in the case that the N is 1, the N sets of touch parameters are 1 set. Touching parameters, the set of touch parameters is: touch operation strength is K1, track width is K2, and track pattern is K3.
  • the matching unit includes:
  • a third determining unit configured to determine whether the K1 is greater than a preset touch operation strength of the preset touch parameter
  • a fourth determining unit configured to determine, if the determination result of the third determining unit is yes, whether the K2 is located in a range of a preset trajectory width of the preset touch parameter
  • the fifth determining unit is configured to determine, if the determination result of the fourth determining unit is YES, whether the similarity between the K3 and the preset trajectory pattern of the preset touch parameter is greater than a preset threshold.
  • the terminal further includes:
  • the first prompting unit is configured to prompt the user to perform the touch operation again when the matching result of the matching unit is that the at least one set of the touch parameters of the N sets of touch parameters is unsuccessful to the N sets of touch parameters.
  • the terminal further includes:
  • a second prompting unit configured to prompt the user to perform M if the M group touch parameter of the N sets of touch parameters does not match the M group preset touch parameters of the N sets of preset touch parameters Sub-touch operation, wherein M is an integer greater than 1 and less than N;
  • An acquiring unit configured to acquire M group touch parameters for performing M touch operations on a touch screen of the terminal within a preset time
  • the matching unit is further configured to match the M group touch parameters acquired by the acquiring unit with the M group preset touch parameters;
  • the unlocking unit is further configured to perform an unlocking operation on the terminal if the matching unit matches that the M group touch parameter and the M group preset touch parameter are successfully matched.
  • a third aspect of the embodiment of the present invention discloses a terminal, including:
  • processor performs the following steps by calling code or instructions in the memory:
  • N N sets of touch parameters for the user to perform N touch operations on the touch screen of the terminal, wherein the N is a positive integer
  • the terminal is unlocked.
  • the touch parameter includes a trajectory parameter of the trajectory formed by the touch operation and/or a touch operation strength
  • the trajectory parameter is at least one of a track direction, a track length, a track pattern, and a track width.
  • the N sets of touch parameters are 2 groups. Touching parameters, the two sets of touch parameters include a first set of touch parameters and a second set of touch parameters, wherein the first set of touch parameters includes a track direction of rightward and a first track length of a first length, the first The two sets of touch parameters include a second track direction being upward and a second track length being a second length,
  • the matching the N sets of touch parameters with the N sets of preset touch parameters includes:
  • the N sets of touch parameters are 1 set.
  • Touching parameters the set of touch parameters is: touch operation strength is K1, track width is K2, and track pattern is K3.
  • the matching the N sets of touch parameters with the N sets of preset touch parameters includes:
  • the processor is further configured to:
  • the processor is further specifically configured to:
  • M group touch parameter of the N sets of touch parameters does not match the M group preset touch parameters of the N sets of preset touch parameters, the user is prompted to perform M touch operations, wherein, M An integer greater than 1 and less than N;
  • the terminal is unlocked.
  • a fourth aspect of the embodiments of the present invention provides a computer storage medium, where the computer storage medium stores computer executable instructions for performing the method according to any one of the first aspects of the embodiments of the present invention. Some or all of the steps described.
  • the embodiment of the present invention determines N sets of touch parameters for the N touch operation performed by the user on the touch screen of the terminal, wherein the N is a positive integer; and the N sets of touch parameters are matched with the N sets of preset touch parameters; If the N sets of touch parameters are successfully matched with the N sets of preset touch parameters, the terminal is unlocked. N sets of touch parameters and N sets of preset touch parameters can be adopted in the embodiment of the present invention The matching is performed. If the matching is successful, the terminal is unlocked. Since multiple sets of touch parameters are adopted, a single input of digital unlocking is avoided, thereby improving the security of the terminal.
  • FIG. 1 is a schematic flowchart diagram of a first embodiment of a method for unlocking according to an embodiment of the present disclosure
  • FIG. 2 is a schematic flowchart of a second embodiment of a method for unlocking according to an embodiment of the present invention
  • FIG. 3 is a schematic flowchart diagram of a third embodiment of a method for unlocking according to an embodiment of the present disclosure
  • FIG. 4 is a schematic flowchart diagram of a fourth embodiment of a method for unlocking according to an embodiment of the present disclosure
  • FIG. 5 is a schematic structural diagram of a first embodiment of a terminal according to an embodiment of the present disclosure
  • FIG. 5b is still another schematic structural diagram of a first embodiment of a terminal according to an embodiment of the present disclosure.
  • FIG. 5 is a schematic structural diagram of still another embodiment of a terminal according to an embodiment of the present disclosure.
  • FIG. 5 is a schematic structural diagram of still another embodiment of a terminal according to an embodiment of the present disclosure.
  • FIG. 6 is a schematic structural diagram of a second embodiment of a terminal according to an embodiment of the present invention.
  • the terminal may include, but is not limited to, a notebook computer, a mobile phone, a tablet computer, a smart wearable device, and the like.
  • the system of the terminal refers to the operating system of the device, which may include, but is not limited to, an Android system, a Symbian system, a Windows system, an IOS (a mobile operating system developed by Apple), and the like.
  • the Android terminal refers to the terminal of the Android system
  • the Saipan terminal refers to the terminal of the Saipan system, and the like.
  • the above terminals are only examples, not exhaustive, including but not limited to At the above terminal.
  • FIG. 1 is a schematic flowchart diagram of a first embodiment of a method for unlocking according to an embodiment of the present invention.
  • the method for unlocking described in this embodiment includes the following steps:
  • S101 Determine N sets of touch parameters that the user performs N touch operations on the touch screen of the terminal, where the N is a positive integer.
  • the touch screen of the terminal needs to be unlocked by the user, so that the application in the terminal can be started.
  • the user can perform a touch operation on the touch screen of the terminal, and the terminal can determine N touch operations performed by the user on the touch screen of the terminal to obtain N sets of touch parameters, where N is a positive integer.
  • the touch operation performed by the user on the touch screen of the terminal may be a pressing operation or a sliding operation, and each touch operation generates a set of touch parameters.
  • a set of touch parameters can include one parameter or multiple parameters.
  • the touch parameter may be a trajectory parameter of the trajectory formed by the touch operation, or the touch parameter may be a touch operation strength, or the touch parameter may be a trajectory parameter of the trajectory formed by the touch operation and a touch operation strength.
  • the trajectory parameters of the trajectory formed by the touch operation may include, but are not limited to, the trajectory length, the trajectory pattern and the trajectory width, the total contact area of the trajectory, the starting point of the trajectory, and the positional relationship of the end points of the trajectory.
  • the track width may include, but is not limited to: an average width of the track, a maximum width of the track, a minimum width of the track, an average width of the track in the specified segment, a maximum width of the track in the specified segment, and a minimum width of the track in the specified segment;
  • the total contact area is the total contact area of the touch screen contacting the terminal when the user slides the detected track;
  • the positional relationship between the start point of the track and the end point of the track may be an overlapping relationship or the distance between the start point of the track and the end point of the track satisfies the pre- Set the threshold.
  • the terminal can match the N sets of touch parameters with the N sets of preset touch parameters.
  • the terminal needs to configure N sets of preset touch parameters before the user unlocks.
  • the first set of preset touch parameters may be: the track direction is rightward and the track length is 4 cm; the second set of preset touch parameters may be: the total contact area of the track is 20 square centimeters.
  • the third set of preset touch parameters can be: the maximum width of the track is 0.8 cm.
  • the terminal may perform an unlocking operation on the terminal if the N sets of touch parameters and the N sets of preset touch parameters are successfully matched. If the matching is unsuccessful, the user is prompted to perform the touch operation again. Optionally, if at least one of the N sets of touch parameters fails to match, the user is prompted to perform the touch operation again. For example, if the matching of the first set of touch parameters is unsuccessful, the user is prompted to perform the touch operation again, or if the third set of touch parameters fails to match, the user is prompted to perform the touch operation again, or If the matching of the two sets of touch parameters is unsuccessful, the user is prompted to perform the touch operation again.
  • the embodiment of the present invention determines N sets of touch parameters for the N touch operation performed by the user on the touch screen of the terminal, wherein the N is a positive integer; and the N sets of touch parameters are matched with the N sets of preset touch parameters; If the N sets of touch parameters are successfully matched with the N sets of preset touch parameters, the terminal is unlocked.
  • the N sets of touch parameters can be matched with the N sets of preset touch parameters according to the embodiment of the present invention. If the matching is successful, the terminal is unlocked, and multiple sets of touch parameters are used to avoid a single input of digital unlocking, thereby Can improve the security of the terminal.
  • FIG. 2 is a schematic flowchart diagram of a second embodiment of a method for unlocking according to an embodiment of the present invention.
  • the method for unlocking described in this embodiment includes the following steps:
  • S201 Determine N sets of touch parameters that the user performs N touch operations on the touch screen of the terminal, where the N is a positive integer.
  • the touch screen of the terminal needs to be unlocked by the user, so that the application in the terminal can be started.
  • the user can perform a touch operation on the touch screen of the terminal, and the terminal can determine N touch operations performed by the user on the touch screen of the terminal to obtain N sets of touch parameters, where N is a positive integer.
  • the touch operation of the user on the touch screen of the terminal may be a pressing operation or a sliding operation, and each touch operation generates a set of touch parameters.
  • a set of touch parameters can include one parameter or multiple parameters.
  • the touch parameter may be a trajectory parameter of the trajectory formed by the touch operation, or the touch parameter may be a touch operation strength, or the touch parameter may be a trajectory parameter of the trajectory formed by the touch operation and a touch operation strength.
  • the trajectory parameters of the trajectory formed by the touch operation may include, but are not limited to, the trajectory length, the trajectory pattern and the trajectory width, the total contact area of the trajectory, the starting point of the trajectory, and the positional relationship of the end points of the trajectory.
  • the track width may include, but is not limited to: an average width of the track, a maximum width of the track, a minimum width of the track, an average width of the track in the specified segment, a maximum width of the track in the specified segment, and a minimum width of the track in the specified segment;
  • the total contact area is the total contact area of the touch screen contacting the terminal when the user slides the detected track;
  • the positional relationship between the start point of the track and the end point of the track may be an overlapping relationship or the distance between the start point of the track and the end point of the track satisfies the pre- Set the threshold.
  • the N sets of touch parameters are 2 sets of touch parameters
  • the 2 sets of touch parameters include a first set of touch parameters and a second set of touch parameters
  • the first set The touch parameter includes a track direction of being rightward and a first track length being a first length
  • the second set of touch parameters includes a second track direction being an upward direction and a second track length being a second length, determining the first set of touch parameters Whether the first track direction is consistent with the first preset track direction of the first group of preset touch parameters and determining whether the first track length of the first group of touch parameters is smaller than the first preset of the first group of preset touch parameters Track length.
  • the terminal determines that the user performs two touch operations on the touch screen of the terminal, and obtains two sets of touch parameters, where the two sets of touch parameters include the first set of touch parameters and the second group.
  • a touch parameter wherein the first set of touch parameters obtained by the first touch operation may be that the track direction is rightward and the first track length is a first length, and the second touch operation is a second
  • the group touch parameter may be that the second track direction is upward and the second track length is second length.
  • the two sets of preset touch parameters include a first set of preset touch parameters and a second set of preset touch parameters, the first set of preset touch parameters including a first preset track direction and a first preset track length;
  • the touch parameters include a second preset track direction and a second preset track length.
  • the terminal may determine whether the first track direction of the first group of touch parameters is consistent with the first preset track direction of the first group of preset touch parameters, and determine whether the first track length of the first group of touch parameters is smaller than the first group of preset touches.
  • the first preset track length of the parameter may determine whether the first track direction of the first group of touch parameters is consistent with the first preset track direction of the first group of preset touch parameters, and determine whether the first track length of the first group of touch parameters is smaller than the first group of preset touches.
  • first track direction of the first group of touch parameters is inconsistent with the first preset track direction of the first group of preset touch parameters, or that the first track length of the first group of touch parameters is greater than or A first preset track length equal to the first set of preset touch parameters prompts the user to perform the touch operation again.
  • the terminal determines that the first track direction of the first group of touch parameters is consistent with the first preset track direction of the first group of preset touch parameters, and the first track length of the first group of touch parameters is smaller than the first group Determining, by the first preset track length of the touch parameter, determining whether the second track direction of the second set of touch parameters is consistent with the second preset track direction of the second set of preset touch parameters and determining the second set of touch parameters Whether the length of the two tracks is greater than the length of the second preset track of the second set of preset touch parameters.
  • the terminal determines that the second track direction of the second set of touch parameters is consistent with the second preset track direction of the second set of preset touch parameters, and the second track length of the second set of touch parameters is greater than the second set of The second preset track length of the touch parameter is set to unlock the terminal.
  • the two sets of preset touch parameters are: the first set of preset touch parameters is: the track direction is rightward, the track length is K1; and the second set of preset touch parameters is: the track direction is upward, and the track length is K2.
  • the second touch parameters input by the user are: the first set of touch parameters is the track direction to the right, the track length is K3, and K3 is less than K1; the second set of touch parameters is the track direction up, the track length is K4, and K4 is greater than K2
  • the terminal matches the two sets of touch parameters with the two sets of preset touch parameters, and if the matching result is successful, the terminal is unlocked.
  • the terminal determines that the second track direction of the second group of touch parameters is inconsistent with the second preset track direction of the second group of preset touch parameters, or the second track length of the second group of touch parameters is less than or equal to
  • the second preset track length of the two sets of preset touch parameters prompts the user to perform the touch operation again within the preset time.
  • the terminal can be
  • the step of matching the set of touch parameters with the preset touch parameters may be: the terminal may determine whether the K1 is greater than the preset touch operation strength of the preset touch parameter; if yes, determine whether the K2 is located in the preset track of the preset touch parameter.
  • the range of the width interval if not, sends a prompt message to the user to prompt the user to perform the touch operation again; if K2 is in the range of the preset track width of the preset touch parameter, it is determined whether the similarity between K3 and the preset track pattern is Greater than the preset threshold.
  • the N sets of touch parameters can be matched with the N sets of preset touch parameters. If the matching is successful, the terminal is unlocked, and the touch parameters can be one or more, and the digital unlocking is also avoided.
  • the single input thus, can improve the security of the terminal.
  • FIG. 3 is a schematic flowchart diagram of a third embodiment of a method for unlocking according to an embodiment of the present invention.
  • the method for unlocking described in this embodiment includes the following steps:
  • S301 Determine N sets of touch parameters that the user performs N touch operations on the touch screen of the terminal, where the N is a positive integer.
  • the touch screen of the terminal needs to be unlocked by the user, so that the application in the terminal can be started.
  • the user can perform a touch operation on the touch screen of the terminal, and the terminal can determine N touch operations performed by the user on the touch screen of the terminal to obtain N sets of touch parameters, where N is a positive integer.
  • the touch operation performed by the user on the touch screen of the terminal may be a pressing operation or a sliding operation, and each touch operation generates a set of touch parameters.
  • a set of touch parameters can include one parameter or multiple parameters.
  • the touch parameter may be a trajectory parameter of the trajectory formed by the touch operation, or the touch parameter may be a touch operation strength, or the touch parameter may be a trajectory parameter of the trajectory formed by the touch operation and a touch operation strength.
  • the trajectory parameters of the trajectory formed by the touch operation may include, but are not limited to, the trajectory length, the trajectory pattern and the trajectory width, the total contact area of the trajectory, the starting point of the trajectory, and the positional relationship of the end points of the trajectory.
  • the track width may include, but is not limited to: an average width of the track, a maximum width of the track, a minimum width of the track, an average width of the track in the specified segment, a maximum width of the track in the specified segment, and a minimum width of the track in the specified segment;
  • the total contact area is the total contact area of the touch screen contacting the terminal when the user slides the detected track;
  • the positional relationship between the start point of the track and the end point of the track may be an overlapping relationship or the distance between the start point of the track and the end point of the track satisfies the pre- Set the threshold.
  • the terminal can match the N sets of touch parameters with the N sets of preset touch parameters.
  • the terminal can configure N sets of preset touch parameters before the user unlocks.
  • the first set of preset touch parameters may be: the track direction is rightward and the track length is 4 cm; the second set of preset touch parameters may be: the total contact area of the track is 20 square centimeters.
  • the third set of preset touch parameters can be: rail The maximum width of the trace is 0.8 cm.
  • M is an integer greater than 1 and less than N.
  • the M group touch parameters may not match, and in the case where N is large, for example, N is 30, If multiple inputs are made, it is easy to make mistakes repeatedly. Therefore, the M group touch parameters can be input.
  • the terminal can prompt the user to perform M touch operations. Further, the terminal can indicate that the user M touch operations respectively Which touch operation occurs at the time, or the terminal can indicate the cause of the error of the K touch operations in the M touch operations.
  • M is an integer greater than 1
  • K is an integer greater than or equal to 1 and less than M.
  • the M group touch parameter matching fails in the N group touch parameters, that is, if the NM group touch parameter is successfully matched, then the user is prompted to input the M group touch parameter, obtain the M group touch parameter, and the M is The group touch parameter is matched with the M group preset touch parameters. If the matching is successful, the terminal is unlocked.
  • the N sets of touch parameters can be matched with the N sets of preset touch parameters, and if the M sets of touch parameters are not successfully matched, the M sets of touch parameters input by the user are acquired again within a preset time.
  • the terminal is unlocked, and the touch parameters may be one or more, and the single input of the digital unlocking is also avoided, thereby improving the security of the terminal.
  • FIG. 4 is a schematic flowchart diagram of a fourth embodiment of a method for unlocking according to an embodiment of the present invention.
  • the method for unlocking described in this embodiment includes the following steps:
  • S401 Determine three sets of touch parameters that the user performs three touch operations on the touch screen of the terminal, where the three sets of touch parameters include: a first set of touch parameters, a second set of touch parameters, and a third set of touch parameters, respectively
  • the first group of touch parameters includes a track direction of first to the left and a right and a track length of K1, a second set of touch parameters including a track pattern of a triangle, a track width of K2, and a third set of touch parameters including a touch operation force of K3.
  • K1, K2 and K3 are both greater than zero.
  • S403. Determine whether a track direction of the first group of touch parameters is consistent with a preset track direction of the first group of preset touch parameters, and determine whether the K1 is located in a preset interval.
  • the terminal can prompt the user to unlock the failure.
  • the terminal can prompt the user to unlock the failure.
  • the terminal can prompt the user to unlock the failure.
  • the terminal can prompt the user to unlock the failure.
  • the N sets of touch parameters can be matched with the N sets of preset touch parameters. If the matching is successful, the terminal can be unlocked, and the touch parameters can be one or more. The single input of digital unlocking is also avoided, thereby improving the security of the terminal.
  • FIG. 5a is a schematic structural diagram of a first embodiment of a terminal according to an embodiment of the present invention.
  • the terminal described in FIG. 5a may include: a determining unit 501, a matching unit 502, and an unlocking unit 503, as follows:
  • the determining unit 501 is configured to determine N sets of touch parameters for the user to perform N touch operations on the touch screen of the terminal, wherein the N is a positive integer.
  • the touch screen of the terminal needs to be unlocked by the user to start the application in the terminal.
  • the user can perform a touch operation on the touch screen of the terminal, and the determining unit 501 can determine N touch operations performed by the user on the touch screen of the terminal to obtain N sets of touch parameters. Number, where N is a positive integer.
  • the touch operation performed by the user on the touch screen of the terminal may be a pressing operation or a sliding operation, and each touch operation generates a set of touch parameters.
  • a set of touch parameters can include one parameter or multiple parameters.
  • the touch parameter may be a trajectory parameter of the trajectory formed by the touch operation, or the touch parameter may be a touch operation strength, or the touch parameter may be a trajectory parameter of the trajectory formed by the touch operation and a touch operation strength.
  • the trajectory parameters of the trajectory formed by the touch operation may include, but are not limited to, the trajectory length, the trajectory pattern and the trajectory width, the total contact area of the trajectory, the starting point of the trajectory, and the positional relationship of the end points of the trajectory.
  • the track width may include, but is not limited to: an average width of the track, a maximum width of the track, a minimum width of the track, an average width of the track in the specified segment, a maximum width of the track in the specified segment, and a minimum width of the track in the specified segment;
  • the total contact area is the total contact area of the touch screen contacting the terminal when the user slides the detected track;
  • the positional relationship between the start point of the track and the end point of the track may be an overlapping relationship or the distance between the start point of the track and the end point of the track satisfies the pre- Set the threshold.
  • the matching unit 502 is configured to match the N sets of touch parameters determined by the determining unit 501 with the N sets of preset touch parameters.
  • the matching unit 502 can match the N sets of touch parameters with the N sets of preset touch parameters.
  • the terminal can configure N sets of preset touch parameters before the user unlocks.
  • the first set of preset touch parameters may be: the track direction is rightward and the track length is 4 cm; the second set of preset touch parameters may be: the total contact area of the track is 20 square centimeters.
  • the third set of preset touch parameters can be: the maximum width of the track is 0.8 cm.
  • the unlocking unit 503 is configured to perform an unlocking operation on the terminal if the matching unit 502 matches that the N sets of touch parameters and the N sets of preset touch parameters are successfully matched.
  • the unlocking unit 503 can perform an unlocking operation on the terminal if the N sets of touch parameters and the N sets of preset touch parameters are successfully matched.
  • the matching unit 502 of the terminal described in FIG. 5a may include: a first determining unit 5021 and a second determining unit 5022, as follows:
  • the first determining unit 5021 is configured to: when the N is 2, the N sets of touch parameters are 2 sets of touch parameters, where the 2 sets of touch parameters include a first set of touch parameters and a second set of touch parameters, where The first set of touch parameters includes a track direction being rightward and a first track length being a first length, the first The two sets of touch parameters include the second track direction being the upward direction and the second track length being the second length, determining whether the first track direction of the first set of touch parameters and the first preset track direction of the first set of preset touch parameters Consistently determining whether the first track length of the first set of touch parameters is less than the first preset track length of the first set of preset touch parameters.
  • the second determining unit 5022 is configured to determine, if the determination result of the first determining unit 5021 is YES, whether the second track direction of the second group of touch parameters is the second preset of the second group of preset touch parameters.
  • the track direction is consistent and the second track length of the second set of touch parameters is greater than the second preset track length of the second set of preset touch parameters.
  • the matching unit 502 of the terminal described in FIG. 5a may include: a third determining unit 504, a fourth determining unit 505, and a fifth determining unit 506, as follows:
  • the third determining unit 504 is configured to: when the N is 1, the N sets of touch parameters are a set of touch parameters, and the set of touch parameters is: a touch operation strength is K1, a track width is K2, and The track pattern is K3, and it is determined whether the K1 is greater than a preset touch operation strength of the preset touch parameter.
  • the fourth determining unit 505 determines, if the determination result of the third determining unit 504 is YES, whether the K2 is located in a range of a preset trajectory width of the preset touch parameter;
  • the fifth determining unit 506 is configured to determine, if the determination result of the fourth determining unit 505 is YES, whether the similarity between the K3 and the preset trajectory pattern of the preset touch parameter is greater than a preset threshold, Whether the similarity between the K3 and the preset trajectory pattern of the preset touch parameter is greater than a preset threshold.
  • the terminal described in FIG. 5a may further include: a prompting unit 507 and an obtaining unit 508, as follows:
  • the second prompting unit 507 is configured to prompt the user to perform the matching if the M group touch parameters of the N sets of touch parameters do not match the M group preset touch parameters of the N sets of preset touch parameters.
  • M touch operations where M is an integer greater than 1 and less than N;
  • the obtaining unit 508 is configured to acquire M group touch parameters for performing M touch operations on the touch screen of the terminal within a preset time of the user;
  • the matching unit 502 is configured to match the M group touch parameters acquired by the acquiring unit 508 with the M group preset touch parameters.
  • An unlocking unit 503, configured to match the M group touch parameter and the location at the matching unit 502 In the case that the M group preset touch parameters are successfully matched, the terminal is unlocked.
  • the terminal may further include: a first prompting unit (not shown), where the matching result at the matching unit 502 is the first group of the touch parameters and the N of the N sets of touch parameters If the group touch parameter matching is unsuccessful, the user is prompted to perform the touch operation again.
  • a first prompting unit (not shown)
  • the matching result at the matching unit 502 is the first group of the touch parameters and the N of the N sets of touch parameters If the group touch parameter matching is unsuccessful, the user is prompted to perform the touch operation again.
  • the terminal described in the embodiment of the present invention may determine N sets of touch parameters of the N touch operation performed by the user on the touch screen of the terminal, where the N is a positive integer; and the N sets of touch parameters and the N sets of preset touches The parameter is matched; if the N sets of touch parameters are successfully matched with the N sets of preset touch parameters, the terminal is unlocked.
  • the N sets of touch parameters can be matched with the N sets of preset touch parameters according to the embodiment of the present invention. If the matching is successful, the terminal is unlocked, and multiple sets of touch parameters are used to avoid a single input of digital unlocking, thereby Can improve the security of the terminal.
  • FIG. 6 is a schematic structural diagram of a second embodiment of a terminal according to an embodiment of the present invention.
  • the terminal described in this embodiment includes: at least one input device 1000; at least one output device 2000; at least one processor 3000, such as a CPU; and a memory 4000, the input device 1000, the output device 2000, the processor 3000, and the memory 4000 Connected via bus 5000.
  • the input device 1000 can be a touch panel, a general PC, a liquid crystal screen, a touch screen, a touch button, and the like.
  • the above memory 4000 may be a high speed RAM memory or a non-volatile memory such as a disk memory.
  • the above memory 4000 is used to store a set of program codes, and the input device 1000, the output device 2000, and the processor 3000 are used to call the program code stored in the memory 4000, and perform the following operations:
  • the processor 3000 is configured to:
  • N N sets of touch parameters for the user to perform N touch operations on the touch screen of the terminal, wherein the N is a positive integer
  • the terminal is unlocked.
  • the touch parameter includes a trajectory parameter of the trajectory formed by the touch operation and/or a touch operation strength
  • the trajectory parameters may include, but are not limited to, a track direction, a track length, a track pattern, and a track width.
  • the N sets of touch parameters are 2 sets of touch parameters
  • the 2 sets of touch parameters include a first set of touch parameters and a second set of touch parameters
  • the first set of touch parameters includes a track direction of being rightward and a first track length being a first length
  • the second set of touch parameters includes a second track direction being an upward direction and a second track length being a second length
  • the device 3000 matches the N sets of touch parameters with the N sets of preset touch parameters, specifically:
  • the N sets of touch parameters are 1 set of touch parameters, and the 1 set of touch parameters are: a touch operation strength is K1, a track width is K2, and a track is The pattern is K3, and the processor 3000 matches the N sets of touch parameters with the N sets of preset touch parameters, specifically:
  • the processor 3000 is further configured to:
  • M group touch parameter of the N sets of touch parameters does not match the M group preset touch parameters of the N sets of preset touch parameters, the user is prompted to perform M touch operations, wherein, M An integer greater than 1 and less than N;
  • the terminal is unlocked.
  • the terminal described in the embodiment of the present invention may determine N sets of touch parameters of the N touch operation performed by the user on the touch screen of the terminal, where the N is a positive integer; and the N sets of touch parameters and the N sets of preset touches The parameter is matched; if the N sets of touch parameters are successfully matched with the N sets of preset touch parameters, the terminal is unlocked.
  • the N sets of touch parameters can be matched with the N sets of preset touch parameters according to the embodiment of the present invention. If the matching is successful, the terminal is unlocked, and multiple sets of touch parameters are used to avoid a single input of digital unlocking, thereby Can improve the security of the terminal.
  • the embodiment of the present invention further provides a computer storage medium, wherein the computer storage medium can store a program, and the program includes some or all of the steps of the unlocking method described in the foregoing method embodiments.
  • the disclosed apparatus may be implemented in other ways.
  • the device embodiments described above are merely illustrative.
  • the division of the above units is only a logical function division. In actual implementation, there may be another division manner. For example, multiple units or components may be combined or integrated. Go to another system, or some features can be ignored or not executed.
  • the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, and may be electrical or otherwise.
  • the units described above as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, ie may be located in one place, or It can also be distributed to multiple network elements. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
  • each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
  • the above integrated unit can be implemented in the form of hardware or in the form of a software functional unit.
  • the above-described integrated unit if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium.
  • the technical solution of the present invention which is essential or contributes to the prior art, or all or part of the technical solution, may be embodied in the form of a software product stored in a storage medium.
  • the instructions include a plurality of instructions for causing a computer device (which may be a personal computer, server or network device, etc., and in particular a processor in a computer device) to perform all or part of the steps of the above-described methods of various embodiments of the present invention.
  • the foregoing storage medium may include: a U disk, a mobile hard disk, a magnetic disk, an optical disk, a read only memory (English: Read-Only Memory, abbreviation: ROM) or a random access memory (English: Random Access Memory, abbreviation: RAM) and other media that can store program code.

Landscapes

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

Abstract

实施例公开了一种解锁的方法,包括:确定用户在终端的触摸屏上进行N次触摸操作的N组触摸参数,其中,所述N为正整数;将所述N组触摸参数与N组预设触摸参数进行匹配;在所述N组触摸参数与所述N组预设触摸参数匹配成功的情况下,对所述终端进行解锁操作。实施例还公开了一种终端。采用实施例可将N组触摸参数与N组预设触摸参数进行匹配,在匹配成功的情况下,对该终端进行解锁,因采用多组触摸参数,避免了数字解锁的单一输入,从而,可提高终端的安全性。

Description

一种解锁的方法及终端
本发明要求2015年8月27日递交的发明名称为“一种解锁的方法及终端”的申请号201510535645.X的在先申请优先权,上述在先申请的内容以引入的方式并入本文本中。
技术领域
本发明实施例涉及电子设备技术领域,尤其涉及到一种解锁的方法及终端。
背景技术
随着科技的发展,终端(如手机、平板电脑、智能穿戴设备等等)越来越普及,同时,功能也越来越强大,已从一种单纯的通信工具演变成为一种集成多功能的电子便携设备,随着终端承载的应用越来越多,其安全性问题也成为用户购买终端时候一个主要衡量指标。
生活中,在对终端进行解锁时候,主流采用不同的数字进行解密,例如,苹果手机,往往采用4位密码,因而,会出现下述情况,用户在输入密码的时候,需要找到正确的数字,然后一个一个输入,这种方式很容易被他人窥视到密码,尤其,在终端的屏幕较大的时候,因此,容易造成密码泄露。
发明内容
本发明实施例提供了一种解锁的方法及终端,以期提高终端的安全性。
本发明实施例第一方面公开了一种解锁的方法,包括:
确定用户在终端的触摸屏上进行N次触摸操作的N组触摸参数,其中,所述N为正整数;
将所述N组触摸参数与N组预设触摸参数进行匹配;
在所述N组触摸参数与所述N组预设触摸参数匹配成功的情况下,对所述终端进行解锁操作。
结合第一方面,在第一方面的第一种可能的实施方式中,触摸参数包括触 摸操作所形成的轨迹的轨迹参数和/或触摸操作力度;
其中,所述轨迹参数为轨迹方向、轨迹长度、轨迹图案和轨迹宽度中的至少一种。
结合第一方面或第一方面的第一种可能的实施方式,在第一方面的第二种可能的实施方式中,所述N组触摸参数为2组触摸参数,所述2组触摸参数包括第一组触摸参数和第二组触摸参数,其中,所述第一组触摸参数包括轨迹方向为向右和第一轨迹长度为第一长度,所述第二组触摸参数包括第二轨迹方向为向上和第二轨迹长度为第二长度,
所述将所述N组触摸参数与N组预设触摸参数进行匹配,包括:
判断所述第一组触摸参数的第一轨迹方向是否与第一组预设触摸参数的第一预设轨迹方向一致和判断所述第一组触摸参数的第一轨迹长度是否小于第一组预设触摸参数的第一预设轨迹长度;
若是,则判断所述第二组触摸参数的第二轨迹方向是否与第二组预设触摸参数的第二预设轨迹方向一致和所述第二组触摸参数的第二轨迹长度是否大于所述第二组预设触摸参数的第二预设轨迹长度。
结合第一方面或第一方面的第一种可能的实施方式,在第一方面的第三种可能的实施方式中,在所述N为1的情况下,所述N组触摸参数为1组触摸参数,所述1组触摸参数为:触摸操作力度为K1、轨迹宽度为K2和轨迹图案为K3,
所述将所述N组触摸参数与N组预设触摸参数进行匹配,包括:
判断所述K1是否大于所述预设触摸参数的预设触摸操作力度;
若是,则判断所述K2是否位于所述预设触摸参数的预设轨迹宽度的区间范围;
若是,则判断所述K3与所述预设触摸参数的预设轨迹图案的相似度是否大于预设阈值。
结合第一方面或第一方面的第一种可能的实施方式,在第一方面的第四种可能的实施方式中,所述方法还包括:
在所述N组触摸参数中的至少一组触摸参数与所述N组触摸参数匹配不成功时,则提示用户再次进行触摸操作。
结合第一方面或第一方面的第一种可能的实施方式,在第一方面的第五种 可能的实施方式中,所述将所述N组触摸参数与N组预设触摸参数进行匹配之后,所述方法包括:
若匹配出所述N组触摸参数中有M组触摸参数与所述N组预设触摸参数中的M组预设触摸参数不匹配的情况下,则提示用户进行M次触摸操作,其中,M为大于1且小于N的整数;
获取用户预设时间内在所述终端的触摸屏上进行M次触摸操作的M组触摸参数;
将所述M组触摸参数与所述M组预设触摸参数进行匹配;
在所述M组触摸参数与所述M组预设触摸参数匹配成功的情况下,对所述终端进行解锁操作。
本发明实施例第二方面公开了一种终端,包括:
确定单元,用于确定用户在终端的触摸屏上进行N次触摸操作的N组触摸参数,其中,所述N为正整数;
匹配单元,用于将所述确定单元确定的N组触摸参数与N组预设触摸参数进行匹配;
解锁单元,用于在所述匹配单元匹配出所述N组触摸参数与所述N组预设触摸参数匹配成功的情况下,对所述终端进行解锁操作。
结合第二方面,在第二方面的第一种可能的实施方式中,所述触摸参数包括触摸操作所形成的轨迹的轨迹参数和/或触摸操作力度;
其中,所述轨迹参数为轨迹方向、轨迹长度、轨迹图案和轨迹宽度中的至少一种。
结合第二方面或第二方面的第一种可能的实施方式,在第二方面的第二种可能的实施方式中,所述N组触摸参数为2组触摸参数,所述2组触摸参数包括第一组触摸参数和第二组触摸参数,其中,所述第一组触摸参数包括轨迹方向为向右和第一轨迹长度为第一长度,所述第二组触摸参数包括第二轨迹方向为向上和第二轨迹长度为第二长度,
所述匹配单元包括:
第一判断单元,用于判断所述第一组触摸参数的第一轨迹方向是否与第一组预设触摸参数的第一预设轨迹方向一致和判断所述第一组触摸参数的第一 轨迹长度是否小于第一组预设触摸参数的第一预设轨迹长度;
第二判断单元,用于若所述第一判断单元判断的结果为是,则判断所述第二组触摸参数的第二轨迹方向是否与第二组预设触摸参数的第二预设轨迹方向一致和所述第二组触摸参数的第二轨迹长度是否大于所述第二组预设触摸参数的第二预设轨迹长度。
结合第二方面或第二方面的第一种可能的实施方式,在第一方面的第三种可能的实施方式中,在所述N为1的情况下,所述N组触摸参数为1组触摸参数,所述1组触摸参数为:触摸操作力度为K1、轨迹宽度为K2和轨迹图案为K3,
所述匹配单元包括:
第三判断单元,用于判断所述K1是否大于所述预设触摸参数的预设触摸操作力度;
第四判断单元,用于若所述第三判断单元的判断结果为是,则判断所述K2是否位于所述预设触摸参数的预设轨迹宽度的区间范围;
第五判断单元,用于若所述第四判断单元的判断结果为是,则判断所述K3与所述预设触摸参数的预设轨迹图案的相似度是否大于预设阈值。
结合第二方面或第二方面的第一种可能的实施方式,在第二方面的第四种可能的实施方式中,所述终端还包括:
第一提示单元,用于在所述匹配单元的匹配结果为所述N组触摸参数中的至少一组触摸参数与所述N组触摸参数匹配不成功时,则提示用户再次进行触摸操作。
结合第二方面或第二方面的第一种可能的实施方式,在第二方面的第五种可能的实施方式中,所述终端还包括:
第二提示单元,用于若匹配出所述N组触摸参数中有M组触摸参数与所述N组预设触摸参数中的M组预设触摸参数不匹配的情况下,则提示用户进行M次触摸操作,其中,M为大于1且小于N的整数;
获取单元,用于获取用户预设时间内在所述终端的触摸屏上进行M次触摸操作的M组触摸参数;
匹配单元还具体用于将所述获取单元获取到的M组触摸参数与所述M组预设触摸参数进行匹配;
解锁单元还具体用于,在所述匹配单元匹配出所述M组触摸参数与所述M组预设触摸参数匹配成功的情况下,对所述终端进行解锁操作。
本发明实施例第三方面公开了一种终端,包括:
处理器和存储器;其中,所述处理器通过调用所述存储器中的代码或指令以执行如下步骤:
确定用户在终端的触摸屏上进行N次触摸操作的N组触摸参数,其中,所述N为正整数;
将所述N组触摸参数与N组预设触摸参数进行匹配;
在所述N组触摸参数与所述N组预设触摸参数匹配成功的情况下,对所述终端进行解锁操作。
结合第三方面,在第三方面的第一种可能的实施方式中,所述触摸参数包括触摸操作所形成的轨迹的轨迹参数和/或触摸操作力度;
其中,所述轨迹参数为轨迹方向、轨迹长度、轨迹图案和轨迹宽度中的至少一种。
结合第三方面或第三方面的第一种可能的实施方式,在第三方面的第二种可能的实施方式中,在所述N为2的情况下,所述N组触摸参数为2组触摸参数,所述2组触摸参数包括第一组触摸参数和第二组触摸参数,其中,所述第一组触摸参数包括轨迹方向为向右和第一轨迹长度为第一长度,所述第二组触摸参数包括第二轨迹方向为向上和第二轨迹长度为第二长度,
所述将所述N组触摸参数与N组预设触摸参数进行匹配,包括:
判断所述第一组触摸参数的第一轨迹方向是否与第一组预设触摸参数的第一预设轨迹方向一致和判断所述第一组触摸参数的第一轨迹长度是否小于第一组预设触摸参数的第一预设轨迹长度;
若是,则判断所述第二组触摸参数的第二轨迹方向是否与第二组预设触摸参数的第二预设轨迹方向一致和所述第二组触摸参数的第二轨迹长度是否大于所述第二组预设触摸参数的第二预设轨迹长度。
结合第三方面或第三方面的第一种可能的实施方式,在第三方面的第三种可能的实施方式中,在所述N为1的情况下,所述N组触摸参数为1组触摸参数,所述1组触摸参数为:触摸操作力度为K1、轨迹宽度为K2和轨迹图案为K3,
所述将所述N组触摸参数与N组预设触摸参数进行匹配,包括:
判断所述K1是否大于所述预设触摸参数的预设触摸操作力度;
若是,则判断所述K2是否位于所述预设触摸参数的预设轨迹宽度的区间范围;
若是,则判断所述K3与所述预设触摸参数的预设轨迹图案的相似度是否大于预设阈值。
结合第三方面或第三方面的第一种可能的实施方式,在第三方面的第四种可能的实施方式中,所述处理器还具体用于:
在所述N组触摸参数中的至少一组触摸参数与所述N组触摸参数匹配不成功,则提示用户再次进行触摸操作。
结合第三方面或第三方面的第一种可能的实施方式,在第三方面的第五种可能的实施方式中,所述将所述N组触摸参数与N组预设触摸参数进行匹配之后,所述处理器还具体用于:
若匹配出所述N组触摸参数中有M组触摸参数与所述N组预设触摸参数中的M组预设触摸参数不匹配的情况下,则提示用户进行M次触摸操作,其中,M为大于1且小于N的整数;
获取用户预设时间内在所述终端的触摸屏上进行M次触摸操作的M组触摸参数;
将所述M组触摸参数与所述M组预设触摸参数进行匹配;
在所述M组触摸参数与所述M组预设触摸参数匹配成功的情况下,对所述终端进行解锁操作。
本发明实施例第四方面提供了一种计算机存储介质,所述计算机存储介质中存储有计算机可执行指令,所述计算机可执行指令用于执行如本发明实施例第一方面任一方法中所描述的部分或全部步骤。
实施本发明实施例,具有如下有益效果:
本发明实施例确定用户在终端的触摸屏上进行N次触摸操作的N组触摸参数,其中,所述N为正整数;将所述N组触摸参数与N组预设触摸参数进行匹配;在所述N组触摸参数与所述N组预设触摸参数匹配成功的情况下,对所述终端进行解锁操作。采用本发明实施例可将N组触摸参数与N组预设触摸参数 进行匹配,在匹配成功的情况下,对该终端进行解锁,因采用多组触摸参数,避免了数字解锁的单一输入,从而,可提高终端的安全性。
附图说明
为了更清楚地说明本发明实施例中的技术方案,下面将对实施例、描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明实施例的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。
图1为本发明实施例提供的一种解锁的方法的第一实施例的流程示意图;
图2为本发明实施例提供的一种解锁的方法的第二实施例的流程示意图;
图3为本发明实施例提供的一种解锁的方法的第三实施例的流程示意图;
图4为本发明实施例提供的一种解锁的方法的第四实施例的流程示意图;
图5a为本发明实施例提供的一种终端的第一实施例的结构示意图;
图5b为本发明实施例提供的一种终端的第一实施例的又一结构示意图;
图5c为本发明实施例提供的一种终端的第一实施例的又一结构示意图;
图5d为本发明实施例提供的一种终端的第一实施例的又一结构示意图;
图6为本发明实施例提供的一种终端的第二实施例的结构示意图。
具体实施方式
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明实施例一部分实施例,而不是全部的实施例。基于本发明实施例中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明实施例保护的范围。
实现中,本发明实施例中,终端可以包括但不限于:笔记本电脑、手机、平板电脑、智能可穿戴设备等等。终端的系统指设备的操作系统,可以包括但不限于:Android系统、塞班系统、Windows系统、IOS(苹果公司开发的移动操作系统)等等。需要说明的是,Android终端指Android系统的终端,塞班终端指塞班系统的终端,等等。上述终端仅是举例,而非穷举,包含但不限 于上述终端。
本发明实施例结合图1至图6对本发明实施例提供的一种解锁的方法及终端进行描述。
请参阅图1,图1是本发明实施例提供的一种解锁的方法的第一实施例流程示意图。本实施例中所描述的解锁的方法,包括以下步骤:
S101、确定用户在终端的触摸屏上进行N次触摸操作的N组触摸参数,其中,所述N为正整数。
具体实现中,在终端处于被唤醒状态时,终端的触摸屏需用户进行解锁,才可启动终端中的应用。用户可在终端的触摸屏上进行触摸操作,终端可确定用户在终端的触摸屏上进行的N次触摸操作,以得到N组触摸参数,其中,N为正整数。其中,用户在终端的触摸屏进行的触摸操作可为按压操作或者滑动操作,每一次触摸操作产生一组触摸参数。一组触摸参数可包括一个参数或者多个参数。
进一步地,触摸参数可为触摸操作所形成的轨迹的轨迹参数,或者,触摸参数可为触摸操作力度,或者,触摸参数可为触摸操作所形成的轨迹的轨迹参数和触摸操作力度。
进一步地,触摸操作所形成的轨迹的轨迹参数可包括但不仅限于:轨迹长度、轨迹图案和轨迹宽度、轨迹的总接触面积、轨迹的起点和轨迹的终点的位置关系。其中,轨迹宽度可包括但不仅限于:轨迹的平均宽度、轨迹的最大宽度、轨迹的最小宽度、轨迹在指定段的平均宽度、轨迹在指定段的最大宽度和轨迹在指定段的最小宽度;轨迹的总接触面积为终端检测到的用户滑动轨迹时候接触终端的触摸屏的总接触面积;轨迹的起点和轨迹的终点的位置关系可为重叠关系或者轨迹的起点和轨迹的终点之间的距离满足预设阈值。
S102、将所述N组触摸参数与N组预设触摸参数进行匹配。
具体实现中,终端可将N组触摸参数与N组预设触摸参数进行匹配。其中,终端需在用户进行解锁之前,可配置N组预设触摸参数。例如,在N为3的情况下,第一组预设触摸参数可为:轨迹方向向右、轨迹长度为4厘米;第二组预设触摸参数可为:轨迹的总接触面积为20平方厘米;第三组预设触摸参数可为:轨迹的最大宽度为0.8厘米。
S103、在所述N组触摸参数与所述N组预设触摸参数匹配成功的情况下,对所述终端进行解锁操作。
具体实现中,终端可在N组触摸参数与N组预设触摸参数匹配成功的情况下,对终端进行解锁操作,若匹配不成功,提示用户再次进行触摸操作。可选地,若N组触摸参数中至少一组触摸参数出现匹配不成功,则提示用户再次进行触摸操作。例如,若第一组触摸参数出现匹配不成功,则提示用户再次进行触摸操作,或者,若3组触摸参数,第三组触摸参数出现匹配不成功,则提示用户再次进行触摸操作,或者,其中的二组触摸参数出现匹配不成功,则提示用户再次进行触摸操作。
本发明实施例确定用户在终端的触摸屏上进行N次触摸操作的N组触摸参数,其中,所述N为正整数;将所述N组触摸参数与N组预设触摸参数进行匹配;在所述N组触摸参数与所述N组预设触摸参数匹配成功的情况下,对所述终端进行解锁操作。采用本发明实施例可将N组触摸参数与N组预设触摸参数进行匹配,在匹配成功的情况下,对该终端进行解锁,因采用多组触摸参数,避免了数字解锁的单一输入,从而,可提高终端的安全性。
请参阅图2,图2是本发明实施例提供的一种解锁的方法的第二实施例流程示意图。本实施例中所描述的解锁的方法,包括以下步骤:
S201、确定用户在终端的触摸屏上进行N次触摸操作的N组触摸参数,其中,所述N为正整数。
具体实现中,在终端处于被唤醒状态时,终端的触摸屏需用户进行解锁,才可启动终端中的应用。用户可在终端的触摸屏上进行触摸操作,终端可确定用户在终端的触摸屏上进行的N次触摸操作,以得到N组触摸参数,其中,N为正整数。其中,用户在终端的触摸屏的触摸操作可为按压操作或者滑动操作,每一次触摸操作产生一组触摸参数。一组触摸参数可包括一个参数或者多个参数。
进一步地,触摸参数可为触摸操作所形成的轨迹的轨迹参数,或者,触摸参数可为触摸操作力度,或者,触摸参数可为触摸操作所形成的轨迹的轨迹参数和触摸操作力度。
进一步地,触摸操作所形成的轨迹的轨迹参数可包括但不仅限于:轨迹长度、轨迹图案和轨迹宽度、轨迹的总接触面积、轨迹的起点和轨迹的终点的位置关系。其中,轨迹宽度可包括但不仅限于:轨迹的平均宽度、轨迹的最大宽度、轨迹的最小宽度、轨迹在指定段的平均宽度、轨迹在指定段的最大宽度和轨迹在指定段的最小宽度;轨迹的总接触面积为终端检测到的用户滑动轨迹时候接触终端的触摸屏的总接触面积;轨迹的起点和轨迹的终点的位置关系可为重叠关系或者轨迹的起点和轨迹的终点之间的距离满足预设阈值。
S202、在所述N为2的情况下,所述N组触摸参数为2组触摸参数,所述2组触摸参数包括第一组触摸参数和第二组触摸参数,其中,所述第一组触摸参数包括轨迹方向为向右和第一轨迹长度为第一长度,所述第二组触摸参数包括第二轨迹方向为向上和第二轨迹长度为第二长度,判断所述第一组触摸参数的第一轨迹方向是否与第一组预设触摸参数的第一预设轨迹方向一致和判断所述第一组触摸参数的第一轨迹长度是否小于第一组预设触摸参数的第一预设轨迹长度。
具体实现中,在N为2的情况下,即终端确定了用户在终端的触摸屏上进行了2次触摸操作,得到2组触摸参数,该2组触摸参数包括第一组触摸参数和第二组触摸参数,其中,第一次触摸操作得到的第一组触摸参数,该第一组触摸参数可为轨迹方向为向右和第一轨迹长度为第一长度,第二次触摸操作得到的第二组触摸参数,该第二组触摸参数可为第二轨迹方向为向上和第二轨迹长度为第二长度。2组预设触摸参数包括第一组预设触摸参数和第二组预设触摸参数,第一组预设触摸参数包括第一预设轨迹方向和第一预设轨迹长度;第二组预设触摸参数包括第二预设轨迹方向和第二预设轨迹长度。终端可判断第一组触摸参数的第一轨迹方向是否与第一组预设触摸参数的第一预设轨迹方向一致和判断第一组触摸参数的第一轨迹长度是否小于第一组预设触摸参数的第一预设轨迹长度。
可选地,若判断出第一组触摸参数的第一轨迹方向与第一组预设触摸参数的第一预设轨迹方向不一致,或者,判断出第一组触摸参数的第一轨迹长度大于或等于第一组预设触摸参数的第一预设轨迹长度,则提示用户再次进行触摸操作。
S203、若是,则判断所述第二组触摸参数的第二轨迹方向是否与第二组预设触摸参数的第二预设轨迹方向一致和判断所述第二组触摸参数的第二轨迹长度是否大于所述第二组预设触摸参数的第二预设轨迹长度。
具体实现中,若终端判断出第一组触摸参数的第一轨迹方向与第一组预设触摸参数的第一预设轨迹方向一致,且第一组触摸参数的第一轨迹长度小于第一组预设触摸参数的第一预设轨迹长度,则判断第二组触摸参数的第二轨迹方向是否与第二组预设触摸参数的第二预设轨迹方向一致和判断第二组触摸参数的第二轨迹长度是否大于第二组预设触摸参数的第二预设轨迹长度。
S204、若是,对所述终端进行解锁操作。
具体实现中,若终端判断出第二组触摸参数的第二轨迹方向与第二组预设触摸参数的第二预设轨迹方向一致和第二组触摸参数的第二轨迹长度大于第二组预设触摸参数的第二预设轨迹长度,对终端进行解锁操作。
例如,2组预设触摸参数为:第一组预设触摸参数为:轨迹方向向右、轨迹长度为K1;第二组预设触摸参数为:轨迹方向向上、轨迹长度为K2。而用户输入的2次触摸参数为:第一组触摸参数为轨迹方向向右、轨迹长度为K3,且K3小于K1;第二组触摸参数为轨迹方向向上、轨迹长度为K4,且K4大于K2,则终端将2组触摸参数与2组预设触摸参数进行匹配,则匹配的结果为成功,则对终端进行解锁操作。
可选地,若终端判断出第二组触摸参数的第二轨迹方向与第二组预设触摸参数的第二预设轨迹方向不一致,或者第二组触摸参数的第二轨迹长度小于或等于第二组预设触摸参数的第二预设轨迹长度,提示用户在预设时间内再次进行触摸操作。
作为一种可行的实施方式,在N为1的情况下,N组触摸参数为1组触摸参数,1组触摸参数为:触摸操作力度为K1、轨迹宽度为K2和轨迹图案为K3,终端可将该一组触摸参数与预设触摸参数进行匹配的步骤可为:终端可判断K1是否大于预设触摸参数的预设触摸操作力度;若是,则判断K2是否位于预设触摸参数的预设轨迹宽度的区间范围,若否,则向用户发送提示信息,提示用户重新进行触摸操作;在K2位于预设触摸参数的预设轨迹宽度的区间范围,则判断K3与预设轨迹图案的相似度是否大于预设阈值。
基于上述本发明实施例,可将N组触摸参数与N组预设触摸参数进行匹配,在匹配成功的情况下,对该终端进行解锁,触摸参数可为一个或者多个,也避免了数字解锁的单一输入,从而,可提高终端的安全性。
请参阅图3,图3是本发明实施例提供的一种解锁的方法的第三实施例流程示意图。本实施例中所描述的解锁的方法,包括以下步骤:
S301、确定用户在终端的触摸屏上进行N次触摸操作的N组触摸参数,其中,所述N为正整数。
具体实现中,在终端处于被唤醒状态时,终端的触摸屏需用户进行解锁,才可启动终端中的应用。用户可在终端的触摸屏上进行触摸操作,终端可确定用户在终端的触摸屏上进行的N次触摸操作,以得到N组触摸参数,其中,N为正整数。其中,用户在终端的触摸屏进行的触摸操作可为按压操作或者滑动操作,每一次触摸操作产生一组触摸参数。一组触摸参数可包括一个参数或者多个参数。
进一步地,触摸参数可为触摸操作所形成的轨迹的轨迹参数,或者,触摸参数可为触摸操作力度,或者,触摸参数可为触摸操作所形成的轨迹的轨迹参数和触摸操作力度。
进一步地,触摸操作所形成的轨迹的轨迹参数可包括但不仅限于:轨迹长度、轨迹图案和轨迹宽度、轨迹的总接触面积、轨迹的起点和轨迹的终点的位置关系。其中,轨迹宽度可包括但不仅限于:轨迹的平均宽度、轨迹的最大宽度、轨迹的最小宽度、轨迹在指定段的平均宽度、轨迹在指定段的最大宽度和轨迹在指定段的最小宽度;轨迹的总接触面积为终端检测到的用户滑动轨迹时候接触终端的触摸屏的总接触面积;轨迹的起点和轨迹的终点的位置关系可为重叠关系或者轨迹的起点和轨迹的终点之间的距离满足预设阈值。
S302、将所述N组触摸参数与N组预设触摸参数进行匹配。
具体实现中,终端可将N组触摸参数与N组预设触摸参数进行匹配。其中,终端在用户进行解锁之前,可配置N组预设触摸参数。例如,在N为3的情况下,第一组预设触摸参数可为:轨迹方向向右、轨迹长度为4厘米;第二组预设触摸参数可为:轨迹的总接触面积为20平方厘米;第三组预设触摸参数可为:轨 迹的最大宽度为0.8厘米。
S303、若匹配出所述N组触摸参数中有M组触摸参数与所述N组预设触摸参数中的M组预设触摸参数不匹配的情况下,则提示用户进行M次触摸操作,其中,M为大于1且小于N的整数。
具体实现中,终端在将N组触摸参数和N组预设触摸参数进行匹配的过程中,可能会出现M组触摸参数不能匹配,那么在N较大的情况下,例如,N为30,则进行多次输入的话,反反复复容易出错,因而,可针对M组触摸参数进行输入,在此过程中,终端可提示用户进行M次触摸操作,进一步地,终端可指出用户M次触摸操作分别出现在哪一次触摸操作,或者,终端可指出M次触摸操作中的K次触摸操作出现错误的原因。其中,M为大于1的整数,K为大于或等于1且小于M的整数。
S304、获取用户预设时间内在所述终端的触摸屏上进行M次触摸操作的M组触摸参数。
S305、将所述M组触摸参数与所述M组预设触摸参数进行匹配。
S306、在所述M组触摸参数与所述M组预设触摸参数匹配成功的情况下,对所述终端进行解锁操作。
具体实现中,在N组触摸参数中有M组触摸参数匹配失败的情况下,即有N-M组触摸参数匹配成功,那么,提示用户输入M组触摸参数,获取M组触摸参数,并将该M组触摸参数和M组预设触摸参数进行匹配,匹配成功的情况下,对终端进行解锁操作。
基于上述本发明实施例,可将N组触摸参数与N组预设触摸参数进行匹配,在M组触摸参数匹配不成功的情况下,再次在预设时间内获取用户输入的M组触摸参数,在该M组触摸参数匹配成功的情况下,对该终端进行解锁,触摸参数可为一个或者多个,也避免了数字解锁的单一输入,从而,可提高终端的安全性。
请参阅图4,图4是本发明实施例提供的一种解锁的方法的第四实施例流程示意图。本实施例中所描述的解锁的方法,包括以下步骤:
S401、确定用户在终端的触摸屏上进行3次触摸操作的3组触摸参数,其中,所述3组触摸参数包括:第一组触摸参数、第二组触摸参数和第三组触摸参数,分别为:第一组触摸参数包括轨迹方向为先向左后向右和轨迹长度为K1,第二组触摸参数包括轨迹图案为三角形、轨迹宽度为K2,第三组触摸参数包括触摸操作力度为K3,其中,所述K1、K2和K3均大于0。
S402、将所述3组触摸参数与3组预设触摸参数进行匹配。
S403、判断所述第一组触摸参数中的轨迹方向是否与第一组预设触摸参数中的预设轨迹方向一致和判断所述K1是否位于预设区间。
若否,终端可提示用户解锁失败。
S404、若是,判断所述第二组触摸参数中的轨迹图案是与第二组预设触摸参数中的预设轨迹图案的相似度大于第一预设阈值和判断所述K2是否大于第二预设阈值。
若否,终端可提示用户解锁失败。
S404、若是,判断所述K3是否小于第三预设阈值。
若否,终端可提示用户解锁失败。
S405、若是,对所述终端进行解锁操作。
若否,终端可提示用户解锁失败。
以此类堆,基于上述本发明实施例,可将N组触摸参数与N组预设触摸参数进行匹配,在匹配成功的情况下,对该终端进行解锁,触摸参数可为一个或者多个,也避免了数字解锁的单一输入,从而,可提高终端的安全性。
请参见图5a,图5a为本发明实施例提供的一种终端的第一实施例的结构示意图,图5a所描述的终端可包括:确定单元501、匹配单元502和解锁单元503,具体如下:
确定单元501,用于确定用户在终端的触摸屏上进行N次触摸操作的N组触摸参数,其中,所述N为正整数。
具体实现中,在终端处于被唤醒状态时。其中,终端的触摸屏需用户进行解锁,才可启动终端中的应用。用户可在终端的触摸屏上进行触摸操作,确定单元501可确定用户在终端的触摸屏上进行的N次触摸操作,以得到N组触摸参 数,其中,N为正整数。其中,用户在终端的触摸屏进行的触摸操作可为按压操作或者滑动操作,每一次触摸操作产生一组触摸参数。一组触摸参数可包括一个参数或者多个参数。
进一步地,触摸参数可为触摸操作所形成的轨迹的轨迹参数,或者,触摸参数可为触摸操作力度,或者,触摸参数可为触摸操作所形成的轨迹的轨迹参数和触摸操作力度。
进一步地,触摸操作所形成的轨迹的轨迹参数可包括但不仅限于:轨迹长度、轨迹图案和轨迹宽度、轨迹的总接触面积、轨迹的起点和轨迹的终点的位置关系。其中,轨迹宽度可包括但不仅限于:轨迹的平均宽度、轨迹的最大宽度、轨迹的最小宽度、轨迹在指定段的平均宽度、轨迹在指定段的最大宽度和轨迹在指定段的最小宽度;轨迹的总接触面积为终端检测到的用户滑动轨迹时候接触终端的触摸屏的总接触面积;轨迹的起点和轨迹的终点的位置关系可为重叠关系或者轨迹的起点和轨迹的终点之间的距离满足预设阈值。
匹配单元502,用于将所述确定单元501确定的N组触摸参数与N组预设触摸参数进行匹配。
具体实现中,匹配单元502可将N组触摸参数与N组预设触摸参数进行匹配。终端在用户进行解锁之前,可配置N组预设触摸参数。例如,在N为3的情况下,第一组预设触摸参数可为:轨迹方向向右、轨迹长度为4厘米;第二组预设触摸参数可为:轨迹的总接触面积为20平方厘米;第三组预设触摸参数可为:轨迹的最大宽度为0.8厘米。
解锁单元503,用于在所述匹配单元502匹配出所述N组触摸参数与所述N组预设触摸参数匹配成功的情况下,对所述终端进行解锁操作。
具体实现中,解锁单元503可在N组触摸参数与N组预设触摸参数匹配成功的情况下,对终端进行解锁操作。
作为一种可能的实施方式,如图5b所示,图5a中所描述的终端的匹配单元502可包括:第一判断单元5021和第二判断单元5022,具体如下:
第一判断单元5021,用于在所述N为2的情况下,所述N组触摸参数为2组触摸参数,所述2组触摸参数包括第一组触摸参数和第二组触摸参数,其中,所述第一组触摸参数包括轨迹方向为向右和第一轨迹长度为第一长度,所述第 二组触摸参数包括第二轨迹方向为向上和第二轨迹长度为第二长度,判断所述第一组触摸参数的第一轨迹方向是否与第一组预设触摸参数的第一预设轨迹方向一致和判断所述第一组触摸参数的第一轨迹长度是否小于所述第一组预设触摸参数的第一预设轨迹长度。
第二判断单元5022,用于若所述第一判断单元5021的判断结果为是,则判断所述第二组触摸参数的第二轨迹方向是否与第二组预设触摸参数的第二预设轨迹方向一致和所述第二组触摸参数的第二轨迹长度是否大于所述第二组预设触摸参数的第二预设轨迹长度。
作为一种可能的实施方式,如图5c所示,图5a中所描述的终端的匹配单元502可包括:第三判断单元504、第四判断单元505和第五判断单元506,具体如下:
第三判断单元504,用于,在所述N为1的情况下,所述N组触摸参数为1组触摸参数,所述1组触摸参数为:触摸操作力度为K1、轨迹宽度为K2和轨迹图案为K3,判断所述K1是否大于所述预设触摸参数的预设触摸操作力度。
第四判断单元505,若所述第三判断单元504的判断结果为是,则判断所述K2是否位于所述预设触摸参数的预设轨迹宽度的区间范围;
第五判断单元506,用于若所述第四判断单元505的判断结果为是,则判断所述K3与所述预设触摸参数的预设轨迹图案的相似度是否大于预设阈值,则判断所述K3与所述预设触摸参数的预设轨迹图案的相似度是否大于预设阈值。
作为一种可能的实施方式,如图5d所示,图5a中所描述的终端还可包括:提示单元507和获取单元508,具体如下:
第二提示单元507,用于若匹配出所述N组触摸参数中有M组触摸参数与所述N组预设触摸参数中的M组预设触摸参数不匹配的情况下,则提示用户进行M次触摸操作,其中,M为大于1且小于N的整数;
获取单元508,用于获取用户预设时间内在所述终端的触摸屏上进行M次触摸操作的M组触摸参数;
匹配单元502,用于将所述获取单元508获取到的M组触摸参数与所述M组预设触摸参数进行匹配;
解锁单元503,用于在所述匹配单元502匹配出所述M组触摸参数与所 述M组预设触摸参数匹配成功的情况下,对所述终端进行解锁操作。
可选地,终端还可包括:第一提示单元(图中未标出),用于在所述匹配单元502的匹配结果为所述N组触摸参数中的第一组触摸参数与所述N组触摸参数匹配不成功,则提示用户再次进行触摸操作。
本发明实施例所描述的终端可通过确定用户在终端的触摸屏上进行N次触摸操作的N组触摸参数,其中,所述N为正整数;将所述N组触摸参数与N组预设触摸参数进行匹配;在所述N组触摸参数与所述N组预设触摸参数匹配成功的情况下,对所述终端进行解锁操作。采用本发明实施例可将N组触摸参数与N组预设触摸参数进行匹配,在匹配成功的情况下,对该终端进行解锁,因采用多组触摸参数,避免了数字解锁的单一输入,从而,可提高终端的安全性。
请参阅图6,图6为本发明实施例提供的一种终端的第二实施例的结构示意图。本实施例中所描述的终端包括:至少一个输入设备1000;至少一个输出设备2000;至少一个处理器3000,例如CPU;和存储器4000,上述输入设备1000、输出设备2000、处理器3000和存储器4000通过总线5000连接。
其中,上述输入设备1000可为触控面板、普通PC、液晶屏、触控屏、触控按钮等。
上述存储器4000可以是高速RAM存储器,也可为非不稳定的存储器(non-volatile memory),例如磁盘存储器。上述存储器4000用于存储一组程序代码,上述输入设备1000、输出设备2000和处理器3000用于调用存储器4000中存储的程序代码,执行如下操作:
上述处理器3000,用于:
确定用户在终端的触摸屏上进行N次触摸操作的N组触摸参数,其中,所述N为正整数;
将所述N组触摸参数与N组预设触摸参数进行匹配;
在所述N组触摸参数与所述N组预设触摸参数匹配成功的情况下,对所述终端进行解锁操作。
作为一种可能的实施方式,上述触摸参数包括触摸操作所形成的轨迹的轨迹参数和/或触摸操作力度;
其中,所述轨迹参数可包括但不仅限于:轨迹方向、轨迹长度、轨迹图案和轨迹宽度。
作为一种可能的实施方式,在所述N为2的情况下,所述N组触摸参数为2组触摸参数,所述2组触摸参数包括第一组触摸参数和第二组触摸参数,其中,所述第一组触摸参数包括轨迹方向为向右和第一轨迹长度为第一长度,所述第二组触摸参数包括第二轨迹方向为向上和第二轨迹长度为第二长度,上述处理器3000将所述N组触摸参数与N组预设触摸参数进行匹配,具体为:
判断所述第一组触摸参数的第一轨迹方向是否与第一组预设触摸参数的第一预设轨迹方向一致和判断所述第一组触摸参数的第一轨迹长度是否小于第一组预设触摸参数的第一预设轨迹长度;
若是,则判断所述第二组触摸参数的第二轨迹方向是否与第二组预设触摸参数的第二预设轨迹方向一致和所述第二组触摸参数的第二轨迹长度是否大于所述第二组预设触摸参数的第二预设轨迹长度。
作为一种可能的实施方式,在所述N为1的情况下,所述N组触摸参数为1组触摸参数,所述1组触摸参数为:触摸操作力度为K1、轨迹宽度为K2和轨迹图案为K3,上述处理器3000将所述N组触摸参数与N组预设触摸参数进行匹配,具体为:
判断所述K1是否大于所述预设触摸参数的预设触摸操作力度;
若是,则判断所述K2是否位于所述预设触摸参数的预设轨迹宽度的区间范围;
若是,则判断所述K3与所述预设触摸参数的预设轨迹图案的相似度是否大于预设阈值。
作为一种可能的实施方式,上述处理器3000将所述N组触摸参数与N组预设触摸参数进行匹配之后,还具体用于:
若匹配出所述N组触摸参数中有M组触摸参数与所述N组预设触摸参数中的M组预设触摸参数不匹配的情况下,则提示用户进行M次触摸操作,其中,M为大于1且小于N的整数;
获取用户预设时间内在所述终端的触摸屏上进行M次触摸操作的M组触摸参数;
将所述M组触摸参数与M组预设触摸参数进行匹配;
在所述M组触摸参数与所述M组预设触摸参数匹配成功的情况下,对所述终端进行解锁操作。
本发明实施例所描述的终端可通过确定用户在终端的触摸屏上进行N次触摸操作的N组触摸参数,其中,所述N为正整数;将所述N组触摸参数与N组预设触摸参数进行匹配;在所述N组触摸参数与所述N组预设触摸参数匹配成功的情况下,对所述终端进行解锁操作。采用本发明实施例可将N组触摸参数与N组预设触摸参数进行匹配,在匹配成功的情况下,对该终端进行解锁,因采用多组触摸参数,避免了数字解锁的单一输入,从而,可提高终端的安全性。
本发明实施例还提供一种计算机存储介质,其中,该计算机存储介质可存储有程序,该程序执行时包括上述方法实施例中记载的任意一种解锁的方法的部分或全部步骤。
在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述的部分,可以参见其他实施例的相关描述。
需要说明的是,对于前述的各方法实施例,为了简单描述,故将其都表述为一系列的动作组合,但是本领域技术人员应该知悉,本发明并不受所描述的动作顺序的限制,因为依据本发明,某些步骤可能可以采用其他顺序或者同时进行。其次,本领域技术人员也应该知悉,说明书中所描述的实施例均属于优选实施例,所涉及的动作和模块并不一定是本发明所必须的。
在本申请所提供的几个实施例中,应该理解到,所揭露的装置,可通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如上述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性或其它的形式。
上述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者 也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。
另外,在本发明各实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。
上述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以为个人计算机、服务器或者网络设备等,具体可以是计算机设备中的处理器)执行本发明各个实施例上述方法的全部或部分步骤。其中,而前述的存储介质可包括:U盘、移动硬盘、磁碟、光盘、只读存储器(英文:Read-Only Memory,缩写:ROM)或者随机存取存储器(英文:Random Access Memory,缩写:RAM)等各种可以存储程序代码的介质。
以上所述,以上实施例仅用以说明本发明的技术方案,而非对其限制;尽管参照前述实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明各实施例技术方案的精神和范围。

Claims (19)

  1. 一种解锁的方法,其特征在于,所述方法包括:
    确定用户在终端的触摸屏上进行N次触摸操作的N组触摸参数,其中,所述N为正整数;
    将所述N组触摸参数与N组预设触摸参数进行匹配;
    在所述N组触摸参数与所述N组预设触摸参数匹配成功的情况下,对所述终端进行解锁操作。
  2. 如权利要求1所述的方法,其特征在于,所述触摸参数包括触摸操作所形成的轨迹的轨迹参数和/或触摸操作力度;
    其中,所述轨迹参数为轨迹方向、轨迹长度、轨迹图案和轨迹宽度中的至少一种。
  3. 如权利1或2任一项所述的方法,其特征在于,在所述N为2的情况下,所述N组触摸参数为2组触摸参数,所述2组触摸参数包括第一组触摸参数和第二组触摸参数,其中,所述第一组触摸参数包括轨迹方向为向右和第一轨迹长度为第一长度,所述第二组触摸参数包括第二轨迹方向为向上和第二轨迹长度为第二长度,
    所述将所述N组触摸参数与N组预设触摸参数进行匹配,包括:
    判断所述第一组触摸参数的第一轨迹方向是否与第一组预设触摸参数的第一预设轨迹方向一致和判断所述第一组触摸参数的第一轨迹长度是否小于第一组预设触摸参数的第一预设轨迹长度;
    若是,则判断所述第二组触摸参数的第二轨迹方向是否与第二组预设触摸参数的第二预设轨迹方向一致和所述第二组触摸参数的第二轨迹长度是否大于所述第二组预设触摸参数的第二预设轨迹长度。
  4. 如权利1或2任一项所述的方法,其特征在于,在所述N为1的情况下,所述N组触摸参数为1组触摸参数,所述1组触摸参数为:触摸操作力度为K1、 轨迹宽度为K2和轨迹图案为K3,
    所述将所述N组触摸参数与N组预设触摸参数进行匹配,包括:
    判断所述K1是否大于所述预设触摸参数的预设触摸操作力度;
    若是,则判断所述K2是否位于所述预设触摸参数的预设轨迹宽度的区间范围;
    若是,则判断所述K3与所述预设触摸参数的预设轨迹图案的相似度是否大于预设阈值。
  5. 如权利1或2任一项所述的方法,其特征在于,所述方法还包括:
    在所述N组触摸参数中的至少一组触摸参数与所述N组触摸参数匹配不成功,则提示用户再次进行触摸操作。
  6. 如权利要求1或2任一项所述的方法,其特征在于,所述将所述N组触摸参数与N组预设触摸参数进行匹配之后,所述方法还包括:
    若匹配出所述N组触摸参数中有M组触摸参数与所述N组预设触摸参数中的M组预设触摸参数不匹配的情况下,则提示用户进行M次触摸操作,其中,M为大于1且小于N的整数;
    获取用户预设时间内在所述终端的触摸屏上进行M次触摸操作的M组触摸参数;
    将所述M组触摸参数与所述M组预设触摸参数进行匹配;
    在所述M组触摸参数与所述M组预设触摸参数匹配成功的情况下,对所述终端进行解锁操作。
  7. 一种终端,其特征在于,所述终端包括:
    确定单元,用于确定用户在终端的触摸屏上进行N次触摸操作的N组触摸参数,其中,所述N为正整数;
    匹配单元,用于将所述确定单元确定的N组触摸参数与N组预设触摸参数进行匹配;
    解锁单元,用于在所述匹配单元匹配出所述N组触摸参数与所述N组预设 触摸参数匹配成功的情况下,对所述终端进行解锁操作。
  8. 如权利要求7所述的终端,其特征在于,所述触摸参数包括触摸操作所形成的轨迹的轨迹参数和/或触摸操作力度;
    其中,所述轨迹参数为轨迹方向、轨迹长度、轨迹图案和轨迹宽度中的至少一种。
  9. 如权利7或8任一项所述的终端,其特征在于,在所述N为2的情况下,所述N组触摸参数为2组触摸参数,所述2组触摸参数包括第一组触摸参数和第二组触摸参数,其中,所述第一组触摸参数包括轨迹方向为向右和第一轨迹长度为第一长度,所述第二组触摸参数包括第二轨迹方向为向上和第二轨迹长度为第二长度,
    所述匹配单元包括:
    第一判断单元,用于判断所述第一组触摸参数的第一轨迹方向是否与第一组预设触摸参数的第一预设轨迹方向一致和判断所述第一组触摸参数的第一轨迹长度是否小于第一组预设触摸参数的第一预设轨迹长度;
    第二判断单元,用于若所述第一判断单元判断的结果为是,则判断所述第二组触摸参数的第二轨迹方向是否与第二组预设触摸参数的第二预设轨迹方向一致和所述第二组触摸参数的第二轨迹长度是否大于所述第二组预设触摸参数的第二预设轨迹长度。
  10. 如权利7或8任一项所述的终端,其特征在于,在所述N为1的情况下,所述N组触摸参数为1组触摸参数,所述1组触摸参数为:触摸操作力度为K1、轨迹宽度为K2和轨迹图案为K3,
    所述匹配单元包括:
    第三判断单元,用于判断所述K1是否大于所述预设触摸参数的预设触摸操作力度;
    第四判断单元,用于若所述第三判断单元的判断结果为是,则判断所述K2是否位于所述预设触摸参数的预设轨迹宽度的区间范围;
    第五判断单元,用于若所述第四判断单元的判断结果为是,则判断所述K3与所述预设触摸参数的预设轨迹图案的相似度是否大于预设阈值。
  11. 如权利7或8任一项所述的终端,其特征在于,所述终端还包括:
    第一提示单元,用于在所述匹配单元的匹配结果为所述N组触摸参数中的至少一组触摸参数与所述N组触摸参数匹配不成功,则提示用户再次进行触摸操作。
  12. 如权利要求7或8任一项所述的终端,其特征在于,所述终端还包括:
    第二提示单元,用于若匹配出所述N组触摸参数中有M组触摸参数与所述N组预设触摸参数中的M组预设触摸参数不匹配的情况下,则提示用户进行M次触摸操作,其中,M为大于1且小于N的整数;
    获取单元,用于获取用户预设时间内在所述终端的触摸屏上进行M次触摸操作的M组触摸参数;
    所述匹配单元还具体用于将所述获取单元获取到的M组触摸参数与所述M组预设触摸参数进行匹配;
    解锁单元还具体用于,在所述匹配单元匹配出所述M组触摸参数与所述M组预设触摸参数匹配成功的情况下,对所述终端进行解锁操作。
  13. 一种终端,其特征在于,包括:
    处理器和存储器;其中,所述处理器通过调用所述存储器中的代码或指令以执行如下步骤:
    确定用户在终端的触摸屏上进行N次触摸操作的N组触摸参数,其中,所述N为正整数;
    将所述N组触摸参数与N组预设触摸参数进行匹配;
    在所述N组触摸参数与所述N组预设触摸参数匹配成功的情况下,对所述终端进行解锁操作。
  14. 如权利要求13所述的终端,其特征在于,所述触摸参数包括触摸操作 所形成的轨迹的轨迹参数和/或触摸操作力度;
    其中,所述轨迹参数为轨迹方向、轨迹长度、轨迹图案和轨迹宽度中的至少一种。
  15. 如权利要求13或14任一项所述的终端,其特征在于,在所述N为2的情况下,所述N组触摸参数为2组触摸参数,所述2组触摸参数包括第一组触摸参数和第二组触摸参数,其中,所述第一组触摸参数包括轨迹方向为向右和第一轨迹长度为第一长度,所述第二组触摸参数包括第二轨迹方向为向上和第二轨迹长度为第二长度,
    所述将所述N组触摸参数与N组预设触摸参数进行匹配,包括:
    判断所述第一组触摸参数的第一轨迹方向是否与第一组预设触摸参数的第一预设轨迹方向一致和判断所述第一组触摸参数的第一轨迹长度是否小于第一组预设触摸参数的第一预设轨迹长度;
    若是,则判断所述第二组触摸参数的第二轨迹方向是否与第二组预设触摸参数的第二预设轨迹方向一致和所述第二组触摸参数的第二轨迹长度是否大于所述第二组预设触摸参数的第二预设轨迹长度。
  16. 如权利要求13或14任一项所述的终端,其特征在于,在所述N为1的情况下,所述N组触摸参数为1组触摸参数,所述1组触摸参数为:触摸操作力度为K1、轨迹宽度为K2和轨迹图案为K3,
    所述将所述N组触摸参数与N组预设触摸参数进行匹配,包括:
    判断所述K1是否大于所述预设触摸参数的预设触摸操作力度;
    若是,则判断所述K2是否位于所述预设触摸参数的预设轨迹宽度的区间范围;
    若是,则判断所述K3与所述预设触摸参数的预设轨迹图案的相似度是否大于预设阈值。
  17. 如权利要求13或14任一项所述的终端,其特征在于,所述处理器还具体用于:
    在所述N组触摸参数中的至少一组触摸参数与所述N组触摸参数匹配不成功,则提示用户再次进行触摸操作。
  18. 如权利要求13或14任一项所述的终端,其特征在于,所述将所述N组触摸参数与N组预设触摸参数进行匹配之后,所述处理器还具体用于:
    若匹配出所述N组触摸参数中有M组触摸参数与所述N组预设触摸参数中的M组预设触摸参数不匹配的情况下,则提示用户进行M次触摸操作,其中,M为大于1且小于N的整数;
    获取用户预设时间内在所述终端的触摸屏上进行M次触摸操作的M组触摸参数;
    将所述M组触摸参数与所述M组预设触摸参数进行匹配;
    在所述M组触摸参数与所述M组预设触摸参数匹配成功的情况下,对所述终端进行解锁操作。
  19. 一种计算机存储介质,其特征在于,所述计算机存储介质中存储有计算机可执行指令,所述计算机可执行指令用于执行如权利要求1至6任一项所述的方法。
PCT/CN2016/085084 2015-08-27 2016-06-07 一种解锁的方法及终端 Ceased WO2017032129A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510535645.XA CN105069347B (zh) 2015-08-27 2015-08-27 一种解锁的方法及终端
CN201510535645.X 2015-08-27

Publications (1)

Publication Number Publication Date
WO2017032129A1 true WO2017032129A1 (zh) 2017-03-02

Family

ID=54498710

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/085084 Ceased WO2017032129A1 (zh) 2015-08-27 2016-06-07 一种解锁的方法及终端

Country Status (2)

Country Link
CN (1) CN105069347B (zh)
WO (1) WO2017032129A1 (zh)

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105069347B (zh) * 2015-08-27 2017-11-24 广东欧珀移动通信有限公司 一种解锁的方法及终端
CN105447358A (zh) * 2015-12-04 2016-03-30 小米科技有限责任公司 设置密码的方法及装置
CN105516983A (zh) * 2016-01-28 2016-04-20 宇龙计算机通信科技(深圳)有限公司 一种鉴权方法及鉴权装置
CN106503536A (zh) * 2016-10-21 2017-03-15 薛年 一种智能设备屏幕的自由手势矢量解锁方法
CN107092823B (zh) * 2017-04-17 2022-01-11 惠州Tcl移动通信有限公司 一种基于移动终端的全触屏解锁方法及移动终端
CN108681665B (zh) * 2018-04-08 2020-03-10 维沃移动通信有限公司 一种操作执行方法、装置及移动终端
CN112559989B (zh) * 2020-12-14 2024-11-08 深圳市爱都科技有限公司 一种穿戴设备的解锁方法、装置及穿戴设备
CN112764576B (zh) * 2021-01-08 2024-11-05 深圳市爱都科技有限公司 多媒体播放控制方法、装置、智能穿戴设备及存储介质
CN112817479A (zh) * 2021-01-25 2021-05-18 惠州Tcl移动通信有限公司 一种移动终端触摸控制方法、装置、智能终端及存储介质

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CA2757871A1 (en) * 2010-11-29 2012-05-29 Research In Motion Limited Multiple-input device lock and unlock
CN102830905A (zh) * 2012-07-02 2012-12-19 人民搜索网络股份公司 基于点击力度的触摸屏设备解锁装置及方法
CN102929536A (zh) * 2012-10-11 2013-02-13 百度在线网络技术(北京)有限公司 移动终端的解锁及验证方法与解锁及验证装置
CN103544426A (zh) * 2012-07-13 2014-01-29 深圳市腾讯计算机系统有限公司 一种触摸屏认证方法、装置及设备
CN104571839A (zh) * 2013-10-17 2015-04-29 中兴通讯股份有限公司 一种终端及其处理方法、装置
CN105069347A (zh) * 2015-08-27 2015-11-18 广东欧珀移动通信有限公司 一种解锁的方法及终端

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103246460A (zh) * 2012-02-10 2013-08-14 中兴通讯股份有限公司 触摸屏的解锁方法及装置
CN104035698B (zh) * 2013-03-04 2018-03-27 联想(北京)有限公司 终端设备及其状态切换方法
CN104122984A (zh) * 2013-04-28 2014-10-29 青岛海信移动通信技术股份有限公司 一种便携式终端的解锁装置及方法
CN104182165B (zh) * 2013-05-27 2019-12-06 百度在线网络技术(北京)有限公司 移动终端的解锁方法和装置

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CA2757871A1 (en) * 2010-11-29 2012-05-29 Research In Motion Limited Multiple-input device lock and unlock
CN102830905A (zh) * 2012-07-02 2012-12-19 人民搜索网络股份公司 基于点击力度的触摸屏设备解锁装置及方法
CN103544426A (zh) * 2012-07-13 2014-01-29 深圳市腾讯计算机系统有限公司 一种触摸屏认证方法、装置及设备
CN102929536A (zh) * 2012-10-11 2013-02-13 百度在线网络技术(北京)有限公司 移动终端的解锁及验证方法与解锁及验证装置
CN104571839A (zh) * 2013-10-17 2015-04-29 中兴通讯股份有限公司 一种终端及其处理方法、装置
CN105069347A (zh) * 2015-08-27 2015-11-18 广东欧珀移动通信有限公司 一种解锁的方法及终端

Also Published As

Publication number Publication date
CN105069347A (zh) 2015-11-18
CN105069347B (zh) 2017-11-24

Similar Documents

Publication Publication Date Title
WO2017032129A1 (zh) 一种解锁的方法及终端
WO2017032128A1 (zh) 一种终端解锁的方法及终端
EP2879028A1 (en) Electronic device unlocking method and device thereof
WO2017000350A1 (zh) 一种基于触摸屏终端的解锁方法、装置和触摸屏终端
CN105446636B (zh) 动态解锁方法及电子装置
CN102812427A (zh) 终端设备的解锁方法及终端设备
CN103412723B (zh) 一种移动终端解锁方法及系统
CN106468971A (zh) 通过触摸传感器感测压力的方法及适于该方法的电子装置
CN106375465B (zh) 一种数据迁移方法及服务器
CN104318186B (zh) 一种密码切换方法、设备和终端
CN111949192A (zh) 密码输入提示方法、装置和电子设备
CN103873455A (zh) 一种信息校验的方法及装置
CN105184126A (zh) 一种密码设置方法、验证方法和终端
US20160294835A1 (en) Initiating a Secure Action Via Physical Manipulation
CN107608700A (zh) 一种fpga固件的更新方法、装置及介质
CN105095735B (zh) 一种图案解锁的方法及终端
CN107832595A (zh) 一种锁定方法及相关设备
CN104951684A (zh) 一种指纹加密、解密的方法及终端
CN104463036A (zh) 密码输入的方法、移动终端及系统
CN106714162A (zh) 一种共享热点方法及移动终端
CN105159589A (zh) 一种图案解锁的方法及终端
WO2017028277A1 (zh) 指纹识别方法及移动终端
CN105204755A (zh) 一种运行软键盘的方法及终端
CN106909272B (zh) 一种显示控制方法及移动终端
CN105224848A (zh) 一种设备认证方法、装置及系统

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 16838389

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 16838389

Country of ref document: EP

Kind code of ref document: A1