WO2017032129A1 - Unlocking method and terminal - Google Patents
Unlocking method and terminal Download PDFInfo
- 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
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0487—Interaction 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/0488—Interaction 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
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F21/00—Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F21/30—Authentication, i.e. establishing the identity or authorisation of security principals
- G06F21/31—User authentication
- G06F21/36—User authentication by graphic or iconic representation
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0487—Interaction 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/0488—Interaction 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/04883—Interaction 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)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Computer Security & Cryptography (AREA)
- Human Computer Interaction (AREA)
- Computer Hardware Design (AREA)
- Software Systems (AREA)
- Telephone Function (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
Disclosed is an unlocking method, comprising: determining N sets of touch parameters of a user performing N touch operations on a touch screen of a terminal, N being a positive integer; matching the N sets of touch parameters with N sets of preset touch parameters; in the case that the matching of the N sets of touch parameters with the N sets of preset touch parameters is successful, performing an unlocking operation on the terminal. Also disclosed is a terminal. The N sets of touch parameters are matched with the N sets of preset touch parameters, and in the case that the matching is successful, unlocking is performed on the terminal. Multiple sets of touch parameters are used, thus avoiding a single input for digital unlocking, and thereby increasing the security of the terminal.
Description
本发明要求2015年8月27日递交的发明名称为“一种解锁的方法及终端”的申请号201510535645.X的在先申请优先权,上述在先申请的内容以引入的方式并入本文本中。The present invention claims the priority of the prior application of the application No. 201510535645.X, entitled "A Method and Terminal for Unlocking", filed on August 27, 2015, the content of which is incorporated herein by reference. in.
本发明实施例涉及电子设备技术领域,尤其涉及到一种解锁的方法及终端。The embodiments of the present invention relate to the field of electronic devices, and in particular, to a method and a terminal for unlocking.
随着科技的发展,终端(如手机、平板电脑、智能穿戴设备等等)越来越普及,同时,功能也越来越强大,已从一种单纯的通信工具演变成为一种集成多功能的电子便携设备,随着终端承载的应用越来越多,其安全性问题也成为用户购买终端时候一个主要衡量指标。With the development of technology, terminals (such as mobile phones, tablets, smart wearable devices, etc.) are becoming more and more popular, and at the same time, functions are becoming more and more powerful, and have evolved from a simple communication tool to an integrated multi-function. Electronic portable devices, as more and more applications are carried by terminals, their security issues have become a major measure when users purchase terminals.
生活中,在对终端进行解锁时候,主流采用不同的数字进行解密,例如,苹果手机,往往采用4位密码,因而,会出现下述情况,用户在输入密码的时候,需要找到正确的数字,然后一个一个输入,这种方式很容易被他人窥视到密码,尤其,在终端的屏幕较大的时候,因此,容易造成密码泄露。In life, when unlocking the terminal, the mainstream uses different numbers for decryption. For example, an Apple mobile phone often uses a 4-digit password. Therefore, the following situation occurs, and the user needs to find the correct number when entering the password. Then one by one, this way is easy for others to peep into the password, especially when the screen of the terminal is large, so it is easy to cause password leakage.
发明内容Summary of the invention
本发明实施例提供了一种解锁的方法及终端,以期提高终端的安全性。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组触摸参数,其中,所述N为正整数;Determining 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;
将所述N组触摸参数与N组预设触摸参数进行匹配;Matching the N sets of touch parameters with N sets of preset touch parameters;
在所述N组触摸参数与所述N组预设触摸参数匹配成功的情况下,对所述终端进行解锁操作。When the N sets of touch parameters are successfully matched with the N sets of preset touch parameters, the terminal is unlocked.
结合第一方面,在第一方面的第一种可能的实施方式中,触摸参数包括触
摸操作所形成的轨迹的轨迹参数和/或触摸操作力度;In conjunction with the first aspect, in a first possible implementation of the first aspect, 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.
结合第一方面或第一方面的第一种可能的实施方式,在第一方面的第二种可能的实施方式中,所述N组触摸参数为2组触摸参数,所述2组触摸参数包括第一组触摸参数和第二组触摸参数,其中,所述第一组触摸参数包括轨迹方向为向右和第一轨迹长度为第一长度,所述第二组触摸参数包括第二轨迹方向为向上和第二轨迹长度为第二长度,With reference to the first aspect, or the first possible implementation manner of the first aspect, in the second possible implementation manner of the first aspect, the N sets of touch parameters are 2 sets of touch parameters, and the 2 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 being a first length, and the second set of touch parameters includes a second track direction of The upward and second tracks are of a second length,
所述将所述N组触摸参数与N组预设触摸参数进行匹配,包括:The matching the N sets of touch parameters with the N sets of preset touch parameters includes:
判断所述第一组触摸参数的第一轨迹方向是否与第一组预设触摸参数的第一预设轨迹方向一致和判断所述第一组触摸参数的第一轨迹长度是否小于第一组预设触摸参数的第一预设轨迹长度;Determining whether the first track direction of the first set of touch parameters is consistent with the first preset track direction of the first set of preset touch parameters and determining whether the first track length of the first set of touch parameters is smaller than the first set of pre-previews Setting a first preset track length of the touch parameter;
若是,则判断所述第二组触摸参数的第二轨迹方向是否与第二组预设触摸参数的第二预设轨迹方向一致和所述第二组触摸参数的第二轨迹长度是否大于所述第二组预设触摸参数的第二预设轨迹长度。If yes, 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 whether the second track length of the second set of touch parameters is greater than the The second preset track length of the second set of preset touch parameters.
结合第一方面或第一方面的第一种可能的实施方式,在第一方面的第三种可能的实施方式中,在所述N为1的情况下,所述N组触摸参数为1组触摸参数,所述1组触摸参数为:触摸操作力度为K1、轨迹宽度为K2和轨迹图案为K3,With reference to the first aspect or the first possible implementation manner of the first aspect, 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.
所述将所述N组触摸参数与N组预设触摸参数进行匹配,包括:The matching the N sets of touch parameters with the N sets of preset touch parameters includes:
判断所述K1是否大于所述预设触摸参数的预设触摸操作力度;Determining whether the K1 is greater than a preset touch operation strength of the preset touch parameter;
若是,则判断所述K2是否位于所述预设触摸参数的预设轨迹宽度的区间范围;If yes, determining whether the K2 is located in a range of a preset trajectory width of the preset touch parameter;
若是,则判断所述K3与所述预设触摸参数的预设轨迹图案的相似度是否大于预设阈值。If yes, determine whether the similarity between the K3 and the preset trajectory pattern of the preset touch parameter is greater than a preset threshold.
结合第一方面或第一方面的第一种可能的实施方式,在第一方面的第四种可能的实施方式中,所述方法还包括:In conjunction with the first aspect or the first possible implementation of the first aspect, in a fourth possible implementation manner of the first aspect, the method further includes:
在所述N组触摸参数中的至少一组触摸参数与所述N组触摸参数匹配不成功时,则提示用户再次进行触摸操作。When at least one of the N sets of touch parameters and the N sets of touch parameters are unsuccessful, the user is prompted to perform the touch operation again.
结合第一方面或第一方面的第一种可能的实施方式,在第一方面的第五种
可能的实施方式中,所述将所述N组触摸参数与N组预设触摸参数进行匹配之后,所述方法包括:In combination with the first aspect or the first possible implementation of the first aspect, the fifth aspect in the first aspect
In a possible implementation manner, after the matching the N sets of touch parameters with the N sets of preset touch parameters, the method includes:
若匹配出所述N组触摸参数中有M组触摸参数与所述N组预设触摸参数中的M组预设触摸参数不匹配的情况下,则提示用户进行M次触摸操作,其中,M为大于1且小于N的整数;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, the user is prompted to perform M touch operations, wherein, M An integer greater than 1 and less than N;
获取用户预设时间内在所述终端的触摸屏上进行M次触摸操作的M组触摸参数;Obtaining M group touch parameters for performing M touch operations on the touch screen of the terminal within a preset time of the user;
将所述M组触摸参数与所述M组预设触摸参数进行匹配;Matching the M sets of touch parameters with the M sets of preset touch parameters;
在所述M组触摸参数与所述M组预设触摸参数匹配成功的情况下,对所述终端进行解锁操作。And in the case that the M group touch parameter is successfully matched with the M group preset touch parameter, the terminal is unlocked.
本发明实施例第二方面公开了一种终端,包括:A second aspect of the embodiment of the present invention discloses a terminal, including:
确定单元,用于确定用户在终端的触摸屏上进行N次触摸操作的N组触摸参数,其中,所述N为正整数;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;
匹配单元,用于将所述确定单元确定的N组触摸参数与N组预设触摸参数进行匹配;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;
解锁单元,用于在所述匹配单元匹配出所述N组触摸参数与所述N组预设触摸参数匹配成功的情况下,对所述终端进行解锁操作。And 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.
结合第二方面,在第二方面的第一种可能的实施方式中,所述触摸参数包括触摸操作所形成的轨迹的轨迹参数和/或触摸操作力度;With reference to the second aspect, in a first possible implementation manner of the second aspect, 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.
结合第二方面或第二方面的第一种可能的实施方式,在第二方面的第二种可能的实施方式中,所述N组触摸参数为2组触摸参数,所述2组触摸参数包括第一组触摸参数和第二组触摸参数,其中,所述第一组触摸参数包括轨迹方向为向右和第一轨迹长度为第一长度,所述第二组触摸参数包括第二轨迹方向为向上和第二轨迹长度为第二长度,With reference to the second aspect, or the first possible implementation manner of the second aspect, in the second possible implementation manner of the second aspect, the N sets of touch parameters are 2 sets of touch parameters, and the 2 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 being a first length, and 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.
结合第二方面或第二方面的第一种可能的实施方式,在第一方面的第三种可能的实施方式中,在所述N为1的情况下,所述N组触摸参数为1组触摸参数,所述1组触摸参数为:触摸操作力度为K1、轨迹宽度为K2和轨迹图案为K3,With reference to the second aspect or the first possible implementation manner of the second aspect, 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:
第三判断单元,用于判断所述K1是否大于所述预设触摸参数的预设触摸操作力度;a third determining unit, configured to determine whether the K1 is greater than a preset touch operation strength of the preset touch parameter;
第四判断单元,用于若所述第三判断单元的判断结果为是,则判断所述K2是否位于所述预设触摸参数的预设轨迹宽度的区间范围;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;
第五判断单元,用于若所述第四判断单元的判断结果为是,则判断所述K3与所述预设触摸参数的预设轨迹图案的相似度是否大于预设阈值。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.
结合第二方面或第二方面的第一种可能的实施方式,在第二方面的第四种可能的实施方式中,所述终端还包括:With reference to the second aspect, or the first possible implementation manner of the second aspect, in the fourth possible implementation manner of the second aspect, the terminal further includes:
第一提示单元,用于在所述匹配单元的匹配结果为所述N组触摸参数中的至少一组触摸参数与所述N组触摸参数匹配不成功时,则提示用户再次进行触摸操作。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.
结合第二方面或第二方面的第一种可能的实施方式,在第二方面的第五种可能的实施方式中,所述终端还包括:With reference to the second aspect, or the first possible implementation manner of the second aspect, in the fifth possible implementation manner of the second aspect, the terminal further includes:
第二提示单元,用于若匹配出所述N组触摸参数中有M组触摸参数与所述N组预设触摸参数中的M组预设触摸参数不匹配的情况下,则提示用户进行M次触摸操作,其中,M为大于1且小于N的整数;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;
获取单元,用于获取用户预设时间内在所述终端的触摸屏上进行M次触摸操作的M组触摸参数;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;
匹配单元还具体用于将所述获取单元获取到的M组触摸参数与所述M组预设触摸参数进行匹配;
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;
解锁单元还具体用于,在所述匹配单元匹配出所述M组触摸参数与所述M组预设触摸参数匹配成功的情况下,对所述终端进行解锁操作。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:
处理器和存储器;其中,所述处理器通过调用所述存储器中的代码或指令以执行如下步骤:a processor and a memory; wherein the processor performs the following steps by calling code or instructions in the memory:
确定用户在终端的触摸屏上进行N次触摸操作的N组触摸参数,其中,所述N为正整数;Determining 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;
将所述N组触摸参数与N组预设触摸参数进行匹配;Matching the N sets of touch parameters with N sets of preset touch parameters;
在所述N组触摸参数与所述N组预设触摸参数匹配成功的情况下,对所述终端进行解锁操作。When the N sets of touch parameters are successfully matched with the N sets of preset touch parameters, the terminal is unlocked.
结合第三方面,在第三方面的第一种可能的实施方式中,所述触摸参数包括触摸操作所形成的轨迹的轨迹参数和/或触摸操作力度;With reference to the third aspect, in a first possible implementation manner of the third aspect, 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.
结合第三方面或第三方面的第一种可能的实施方式,在第三方面的第二种可能的实施方式中,在所述N为2的情况下,所述N组触摸参数为2组触摸参数,所述2组触摸参数包括第一组触摸参数和第二组触摸参数,其中,所述第一组触摸参数包括轨迹方向为向右和第一轨迹长度为第一长度,所述第二组触摸参数包括第二轨迹方向为向上和第二轨迹长度为第二长度,With reference to the third aspect or the first possible implementation manner of the third aspect, in a second possible implementation manner of the third aspect, in the case that the N is 2, 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,
所述将所述N组触摸参数与N组预设触摸参数进行匹配,包括:The matching the N sets of touch parameters with the N sets of preset touch parameters includes:
判断所述第一组触摸参数的第一轨迹方向是否与第一组预设触摸参数的第一预设轨迹方向一致和判断所述第一组触摸参数的第一轨迹长度是否小于第一组预设触摸参数的第一预设轨迹长度;Determining whether the first track direction of the first set of touch parameters is consistent with the first preset track direction of the first set of preset touch parameters and determining whether the first track length of the first set of touch parameters is smaller than the first set of pre-previews Setting a first preset track length of the touch parameter;
若是,则判断所述第二组触摸参数的第二轨迹方向是否与第二组预设触摸参数的第二预设轨迹方向一致和所述第二组触摸参数的第二轨迹长度是否大于所述第二组预设触摸参数的第二预设轨迹长度。If yes, 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 whether the second track length of the second set of touch parameters is greater than the The second preset track length of the second set of preset touch parameters.
结合第三方面或第三方面的第一种可能的实施方式,在第三方面的第三种可能的实施方式中,在所述N为1的情况下,所述N组触摸参数为1组触摸参数,所述1组触摸参数为:触摸操作力度为K1、轨迹宽度为K2和轨迹图案为K3,
With reference to the third aspect or the first possible implementation manner of the third aspect, in a third possible implementation manner of the third 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.
所述将所述N组触摸参数与N组预设触摸参数进行匹配,包括:The matching the N sets of touch parameters with the N sets of preset touch parameters includes:
判断所述K1是否大于所述预设触摸参数的预设触摸操作力度;Determining whether the K1 is greater than a preset touch operation strength of the preset touch parameter;
若是,则判断所述K2是否位于所述预设触摸参数的预设轨迹宽度的区间范围;If yes, determining whether the K2 is located in a range of a preset trajectory width of the preset touch parameter;
若是,则判断所述K3与所述预设触摸参数的预设轨迹图案的相似度是否大于预设阈值。If yes, determine whether the similarity between the K3 and the preset trajectory pattern of the preset touch parameter is greater than a preset threshold.
结合第三方面或第三方面的第一种可能的实施方式,在第三方面的第四种可能的实施方式中,所述处理器还具体用于:In conjunction with the third aspect or the first possible implementation manner of the third aspect, in a fourth possible implementation manner of the third aspect, the processor is further configured to:
在所述N组触摸参数中的至少一组触摸参数与所述N组触摸参数匹配不成功,则提示用户再次进行触摸操作。If at least one set of the touch parameters of the N sets of touch parameters is unsuccessful to match the N sets of touch parameters, the user is prompted to perform the touch operation again.
结合第三方面或第三方面的第一种可能的实施方式,在第三方面的第五种可能的实施方式中,所述将所述N组触摸参数与N组预设触摸参数进行匹配之后,所述处理器还具体用于:With the third aspect or the first possible implementation manner of the third aspect, in the fifth possible implementation manner of the third aspect, after the matching the N sets of touch parameters with the N sets of preset touch parameters The processor is further specifically configured to:
若匹配出所述N组触摸参数中有M组触摸参数与所述N组预设触摸参数中的M组预设触摸参数不匹配的情况下,则提示用户进行M次触摸操作,其中,M为大于1且小于N的整数;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, the user is prompted to perform M touch operations, wherein, M An integer greater than 1 and less than N;
获取用户预设时间内在所述终端的触摸屏上进行M次触摸操作的M组触摸参数;Obtaining M group touch parameters for performing M touch operations on the touch screen of the terminal within a preset time of the user;
将所述M组触摸参数与所述M组预设触摸参数进行匹配;Matching the M sets of touch parameters with the M sets of preset touch parameters;
在所述M组触摸参数与所述M组预设触摸参数匹配成功的情况下,对所述终端进行解锁操作。And in the case that the M group touch parameter is successfully matched with the M group preset touch parameter, 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.
实施本发明实施例,具有如下有益效果:Embodiments of the present invention have the following beneficial effects:
本发明实施例确定用户在终端的触摸屏上进行N次触摸操作的N组触摸参数,其中,所述N为正整数;将所述N组触摸参数与N组预设触摸参数进行匹配;在所述N组触摸参数与所述N组预设触摸参数匹配成功的情况下,对所述终端进行解锁操作。采用本发明实施例可将N组触摸参数与N组预设触摸参数
进行匹配,在匹配成功的情况下,对该终端进行解锁,因采用多组触摸参数,避免了数字解锁的单一输入,从而,可提高终端的安全性。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.
为了更清楚地说明本发明实施例中的技术方案,下面将对实施例、描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明实施例的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings used in the embodiments and the description will be briefly described below. It is obvious that the drawings in the following description are only some of the embodiments of the present invention. For the embodiments, those skilled in the art can obtain other drawings according to the drawings without any creative work.
图1为本发明实施例提供的一种解锁的方法的第一实施例的流程示意图;FIG. 1 is a schematic flowchart diagram of a first embodiment of a method for unlocking according to an embodiment of the present disclosure;
图2为本发明实施例提供的一种解锁的方法的第二实施例的流程示意图;2 is a schematic flowchart of a second embodiment of a method for unlocking according to an embodiment of the present invention;
图3为本发明实施例提供的一种解锁的方法的第三实施例的流程示意图;FIG. 3 is a schematic flowchart diagram of a third embodiment of a method for unlocking according to an embodiment of the present disclosure;
图4为本发明实施例提供的一种解锁的方法的第四实施例的流程示意图;FIG. 4 is a schematic flowchart diagram of a fourth embodiment of a method for unlocking according to an embodiment of the present disclosure;
图5a为本发明实施例提供的一种终端的第一实施例的结构示意图;FIG. 5 is a schematic structural diagram of a first embodiment of a terminal according to an embodiment of the present disclosure;
图5b为本发明实施例提供的一种终端的第一实施例的又一结构示意图;FIG. 5b is still another schematic structural diagram of a first embodiment of a terminal according to an embodiment of the present disclosure;
图5c为本发明实施例提供的一种终端的第一实施例的又一结构示意图;FIG. 5 is a schematic structural diagram of still another embodiment of a terminal according to an embodiment of the present disclosure;
图5d为本发明实施例提供的一种终端的第一实施例的又一结构示意图;FIG. 5 is a schematic structural diagram of still another embodiment of a terminal according to an embodiment of the present disclosure;
图6为本发明实施例提供的一种终端的第二实施例的结构示意图。FIG. 6 is a schematic structural diagram of a second embodiment of a terminal according to an embodiment of the present invention.
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明实施例一部分实施例,而不是全部的实施例。基于本发明实施例中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明实施例保护的范围。The technical solutions in the embodiments of the present invention are clearly and completely described in the following with reference to the accompanying drawings in the embodiments of the present invention. It is obvious that the described embodiments are only a part of the embodiments of the present invention, but not all embodiments. . All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without departing from the inventive scope are the scope of the embodiments of the present invention.
实现中,本发明实施例中,终端可以包括但不限于:笔记本电脑、手机、平板电脑、智能可穿戴设备等等。终端的系统指设备的操作系统,可以包括但不限于:Android系统、塞班系统、Windows系统、IOS(苹果公司开发的移动操作系统)等等。需要说明的是,Android终端指Android系统的终端,塞班终端指塞班系统的终端,等等。上述终端仅是举例,而非穷举,包含但不限
于上述终端。In an implementation, in the 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. It should be noted that 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.
本发明实施例结合图1至图6对本发明实施例提供的一种解锁的方法及终端进行描述。An embodiment of the present invention is described in conjunction with FIG. 1 to FIG.
请参阅图1,图1是本发明实施例提供的一种解锁的方法的第一实施例流程示意图。本实施例中所描述的解锁的方法,包括以下步骤:Referring to FIG. 1 , 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、确定用户在终端的触摸屏上进行N次触摸操作的N组触摸参数,其中,所述N为正整数。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.
具体实现中,在终端处于被唤醒状态时,终端的触摸屏需用户进行解锁,才可启动终端中的应用。用户可在终端的触摸屏上进行触摸操作,终端可确定用户在终端的触摸屏上进行的N次触摸操作,以得到N组触摸参数,其中,N为正整数。其中,用户在终端的触摸屏进行的触摸操作可为按压操作或者滑动操作,每一次触摸操作产生一组触摸参数。一组触摸参数可包括一个参数或者多个参数。In a specific implementation, when the terminal is in the awake state, 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.
进一步地,触摸参数可为触摸操作所形成的轨迹的轨迹参数,或者,触摸参数可为触摸操作力度,或者,触摸参数可为触摸操作所形成的轨迹的轨迹参数和触摸操作力度。Further, 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.
进一步地,触摸操作所形成的轨迹的轨迹参数可包括但不仅限于:轨迹长度、轨迹图案和轨迹宽度、轨迹的总接触面积、轨迹的起点和轨迹的终点的位置关系。其中,轨迹宽度可包括但不仅限于:轨迹的平均宽度、轨迹的最大宽度、轨迹的最小宽度、轨迹在指定段的平均宽度、轨迹在指定段的最大宽度和轨迹在指定段的最小宽度;轨迹的总接触面积为终端检测到的用户滑动轨迹时候接触终端的触摸屏的总接触面积;轨迹的起点和轨迹的终点的位置关系可为重叠关系或者轨迹的起点和轨迹的终点之间的距离满足预设阈值。Further, 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. Wherein, 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.
S102、将所述N组触摸参数与N组预设触摸参数进行匹配。S102. Match the N sets of touch parameters with N sets of preset touch parameters.
具体实现中,终端可将N组触摸参数与N组预设触摸参数进行匹配。其中,终端需在用户进行解锁之前,可配置N组预设触摸参数。例如,在N为3的情况下,第一组预设触摸参数可为:轨迹方向向右、轨迹长度为4厘米;第二组预设触摸参数可为:轨迹的总接触面积为20平方厘米;第三组预设触摸参数可为:轨迹的最大宽度为0.8厘米。
In a specific implementation, 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. For example, in the case where N is 3, 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.
S103、在所述N组触摸参数与所述N组预设触摸参数匹配成功的情况下,对所述终端进行解锁操作。S103. Perform an unlocking operation on the terminal if the N sets of touch parameters are successfully matched with the N sets of preset touch parameters.
具体实现中,终端可在N组触摸参数与N组预设触摸参数匹配成功的情况下,对终端进行解锁操作,若匹配不成功,提示用户再次进行触摸操作。可选地,若N组触摸参数中至少一组触摸参数出现匹配不成功,则提示用户再次进行触摸操作。例如,若第一组触摸参数出现匹配不成功,则提示用户再次进行触摸操作,或者,若3组触摸参数,第三组触摸参数出现匹配不成功,则提示用户再次进行触摸操作,或者,其中的二组触摸参数出现匹配不成功,则提示用户再次进行触摸操作。In a specific implementation, 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.
本发明实施例确定用户在终端的触摸屏上进行N次触摸操作的N组触摸参数,其中,所述N为正整数;将所述N组触摸参数与N组预设触摸参数进行匹配;在所述N组触摸参数与所述N组预设触摸参数匹配成功的情况下,对所述终端进行解锁操作。采用本发明实施例可将N组触摸参数与N组预设触摸参数进行匹配,在匹配成功的情况下,对该终端进行解锁,因采用多组触摸参数,避免了数字解锁的单一输入,从而,可提高终端的安全性。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.
请参阅图2,图2是本发明实施例提供的一种解锁的方法的第二实施例流程示意图。本实施例中所描述的解锁的方法,包括以下步骤:Referring to FIG. 2, 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、确定用户在终端的触摸屏上进行N次触摸操作的N组触摸参数,其中,所述N为正整数。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.
具体实现中,在终端处于被唤醒状态时,终端的触摸屏需用户进行解锁,才可启动终端中的应用。用户可在终端的触摸屏上进行触摸操作,终端可确定用户在终端的触摸屏上进行的N次触摸操作,以得到N组触摸参数,其中,N为正整数。其中,用户在终端的触摸屏的触摸操作可为按压操作或者滑动操作,每一次触摸操作产生一组触摸参数。一组触摸参数可包括一个参数或者多个参数。In a specific implementation, when the terminal is in the awake state, 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.
进一步地,触摸参数可为触摸操作所形成的轨迹的轨迹参数,或者,触摸参数可为触摸操作力度,或者,触摸参数可为触摸操作所形成的轨迹的轨迹参数和触摸操作力度。
Further, 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.
进一步地,触摸操作所形成的轨迹的轨迹参数可包括但不仅限于:轨迹长度、轨迹图案和轨迹宽度、轨迹的总接触面积、轨迹的起点和轨迹的终点的位置关系。其中,轨迹宽度可包括但不仅限于:轨迹的平均宽度、轨迹的最大宽度、轨迹的最小宽度、轨迹在指定段的平均宽度、轨迹在指定段的最大宽度和轨迹在指定段的最小宽度;轨迹的总接触面积为终端检测到的用户滑动轨迹时候接触终端的触摸屏的总接触面积;轨迹的起点和轨迹的终点的位置关系可为重叠关系或者轨迹的起点和轨迹的终点之间的距离满足预设阈值。Further, 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. Wherein, 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.
S202、在所述N为2的情况下,所述N组触摸参数为2组触摸参数,所述2组触摸参数包括第一组触摸参数和第二组触摸参数,其中,所述第一组触摸参数包括轨迹方向为向右和第一轨迹长度为第一长度,所述第二组触摸参数包括第二轨迹方向为向上和第二轨迹长度为第二长度,判断所述第一组触摸参数的第一轨迹方向是否与第一组预设触摸参数的第一预设轨迹方向一致和判断所述第一组触摸参数的第一轨迹长度是否小于第一组预设触摸参数的第一预设轨迹长度。S202, where the N is 2, the N sets of touch parameters are 2 sets of touch parameters, and the 2 sets of touch parameters include a first set of touch parameters and a second set of touch parameters, wherein the first set The touch parameter includes a track direction of being rightward and a first track length being a first length, and 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.
具体实现中,在N为2的情况下,即终端确定了用户在终端的触摸屏上进行了2次触摸操作,得到2组触摸参数,该2组触摸参数包括第一组触摸参数和第二组触摸参数,其中,第一次触摸操作得到的第一组触摸参数,该第一组触摸参数可为轨迹方向为向右和第一轨迹长度为第一长度,第二次触摸操作得到的第二组触摸参数,该第二组触摸参数可为第二轨迹方向为向上和第二轨迹长度为第二长度。2组预设触摸参数包括第一组预设触摸参数和第二组预设触摸参数,第一组预设触摸参数包括第一预设轨迹方向和第一预设轨迹长度;第二组预设触摸参数包括第二预设轨迹方向和第二预设轨迹长度。终端可判断第一组触摸参数的第一轨迹方向是否与第一组预设触摸参数的第一预设轨迹方向一致和判断第一组触摸参数的第一轨迹长度是否小于第一组预设触摸参数的第一预设轨迹长度。In a specific implementation, when N is 2, 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.
可选地,若判断出第一组触摸参数的第一轨迹方向与第一组预设触摸参数的第一预设轨迹方向不一致,或者,判断出第一组触摸参数的第一轨迹长度大于或等于第一组预设触摸参数的第一预设轨迹长度,则提示用户再次进行触摸操作。
Optionally, if it is determined that the 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.
S203、若是,则判断所述第二组触摸参数的第二轨迹方向是否与第二组预设触摸参数的第二预设轨迹方向一致和判断所述第二组触摸参数的第二轨迹长度是否大于所述第二组预设触摸参数的第二预设轨迹长度。S203. If yes, determining whether the second track direction of the second group of touch parameters is consistent with the second preset track direction of the second group of preset touch parameters, and determining whether the second track length of the second group of touch parameters is a second preset track length that is greater than the second set of preset touch parameters.
具体实现中,若终端判断出第一组触摸参数的第一轨迹方向与第一组预设触摸参数的第一预设轨迹方向一致,且第一组触摸参数的第一轨迹长度小于第一组预设触摸参数的第一预设轨迹长度,则判断第二组触摸参数的第二轨迹方向是否与第二组预设触摸参数的第二预设轨迹方向一致和判断第二组触摸参数的第二轨迹长度是否大于第二组预设触摸参数的第二预设轨迹长度。In a specific implementation, if 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.
S204、若是,对所述终端进行解锁操作。S204. If yes, perform an unlocking operation on the terminal.
具体实现中,若终端判断出第二组触摸参数的第二轨迹方向与第二组预设触摸参数的第二预设轨迹方向一致和第二组触摸参数的第二轨迹长度大于第二组预设触摸参数的第二预设轨迹长度,对终端进行解锁操作。In a specific implementation, if 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.
例如,2组预设触摸参数为:第一组预设触摸参数为:轨迹方向向右、轨迹长度为K1;第二组预设触摸参数为:轨迹方向向上、轨迹长度为K2。而用户输入的2次触摸参数为:第一组触摸参数为轨迹方向向右、轨迹长度为K3,且K3小于K1;第二组触摸参数为轨迹方向向上、轨迹长度为K4,且K4大于K2,则终端将2组触摸参数与2组预设触摸参数进行匹配,则匹配的结果为成功,则对终端进行解锁操作。For example, 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 Then, 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.
可选地,若终端判断出第二组触摸参数的第二轨迹方向与第二组预设触摸参数的第二预设轨迹方向不一致,或者第二组触摸参数的第二轨迹长度小于或等于第二组预设触摸参数的第二预设轨迹长度,提示用户在预设时间内再次进行触摸操作。Optionally, if 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.
作为一种可行的实施方式,在N为1的情况下,N组触摸参数为1组触摸参数,1组触摸参数为:触摸操作力度为K1、轨迹宽度为K2和轨迹图案为K3,终端可将该一组触摸参数与预设触摸参数进行匹配的步骤可为:终端可判断K1是否大于预设触摸参数的预设触摸操作力度;若是,则判断K2是否位于预设触摸参数的预设轨迹宽度的区间范围,若否,则向用户发送提示信息,提示用户重新进行触摸操作;在K2位于预设触摸参数的预设轨迹宽度的区间范围,则判断K3与预设轨迹图案的相似度是否大于预设阈值。
As a feasible implementation manner, in the case that N is 1, the N sets of touch parameters are 1 set of touch parameters, and the 1 set of touch parameters are: touch operation strength is K1, track width is K2, and track pattern is K3, and 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.
基于上述本发明实施例,可将N组触摸参数与N组预设触摸参数进行匹配,在匹配成功的情况下,对该终端进行解锁,触摸参数可为一个或者多个,也避免了数字解锁的单一输入,从而,可提高终端的安全性。Based on the foregoing embodiment of the present invention, 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.
请参阅图3,图3是本发明实施例提供的一种解锁的方法的第三实施例流程示意图。本实施例中所描述的解锁的方法,包括以下步骤:Referring to FIG. 3, 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、确定用户在终端的触摸屏上进行N次触摸操作的N组触摸参数,其中,所述N为正整数。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.
具体实现中,在终端处于被唤醒状态时,终端的触摸屏需用户进行解锁,才可启动终端中的应用。用户可在终端的触摸屏上进行触摸操作,终端可确定用户在终端的触摸屏上进行的N次触摸操作,以得到N组触摸参数,其中,N为正整数。其中,用户在终端的触摸屏进行的触摸操作可为按压操作或者滑动操作,每一次触摸操作产生一组触摸参数。一组触摸参数可包括一个参数或者多个参数。In a specific implementation, when the terminal is in the awake state, 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.
进一步地,触摸参数可为触摸操作所形成的轨迹的轨迹参数,或者,触摸参数可为触摸操作力度,或者,触摸参数可为触摸操作所形成的轨迹的轨迹参数和触摸操作力度。Further, 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.
进一步地,触摸操作所形成的轨迹的轨迹参数可包括但不仅限于:轨迹长度、轨迹图案和轨迹宽度、轨迹的总接触面积、轨迹的起点和轨迹的终点的位置关系。其中,轨迹宽度可包括但不仅限于:轨迹的平均宽度、轨迹的最大宽度、轨迹的最小宽度、轨迹在指定段的平均宽度、轨迹在指定段的最大宽度和轨迹在指定段的最小宽度;轨迹的总接触面积为终端检测到的用户滑动轨迹时候接触终端的触摸屏的总接触面积;轨迹的起点和轨迹的终点的位置关系可为重叠关系或者轨迹的起点和轨迹的终点之间的距离满足预设阈值。Further, 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. Wherein, 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.
S302、将所述N组触摸参数与N组预设触摸参数进行匹配。S302. Match the N sets of touch parameters with N sets of preset touch parameters.
具体实现中,终端可将N组触摸参数与N组预设触摸参数进行匹配。其中,终端在用户进行解锁之前,可配置N组预设触摸参数。例如,在N为3的情况下,第一组预设触摸参数可为:轨迹方向向右、轨迹长度为4厘米;第二组预设触摸参数可为:轨迹的总接触面积为20平方厘米;第三组预设触摸参数可为:轨
迹的最大宽度为0.8厘米。In a specific implementation, 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. For example, in the case where N is 3, 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.
S303、若匹配出所述N组触摸参数中有M组触摸参数与所述N组预设触摸参数中的M组预设触摸参数不匹配的情况下,则提示用户进行M次触摸操作,其中,M为大于1且小于N的整数。S303. 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, the user is prompted to perform M touch operations, where M is an integer greater than 1 and less than N.
具体实现中,终端在将N组触摸参数和N组预设触摸参数进行匹配的过程中,可能会出现M组触摸参数不能匹配,那么在N较大的情况下,例如,N为30,则进行多次输入的话,反反复复容易出错,因而,可针对M组触摸参数进行输入,在此过程中,终端可提示用户进行M次触摸操作,进一步地,终端可指出用户M次触摸操作分别出现在哪一次触摸操作,或者,终端可指出M次触摸操作中的K次触摸操作出现错误的原因。其中,M为大于1的整数,K为大于或等于1且小于M的整数。In a specific implementation, when the terminal matches the N sets of touch parameters and the N sets of preset touch parameters, 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. In this process, 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. Wherein M is an integer greater than 1, and K is an integer greater than or equal to 1 and less than M.
S304、获取用户预设时间内在所述终端的触摸屏上进行M次触摸操作的M组触摸参数。S304. Acquire an M group touch parameter that performs M touch operations on the touch screen of the terminal within a preset time of the user.
S305、将所述M组触摸参数与所述M组预设触摸参数进行匹配。S305. Match the M group touch parameters with the M group preset touch parameters.
S306、在所述M组触摸参数与所述M组预设触摸参数匹配成功的情况下,对所述终端进行解锁操作。S306. Perform an unlocking operation on the terminal if the M group touch parameter and the M group preset touch parameter are successfully matched.
具体实现中,在N组触摸参数中有M组触摸参数匹配失败的情况下,即有N-M组触摸参数匹配成功,那么,提示用户输入M组触摸参数,获取M组触摸参数,并将该M组触摸参数和M组预设触摸参数进行匹配,匹配成功的情况下,对终端进行解锁操作。In the specific implementation, if 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.
基于上述本发明实施例,可将N组触摸参数与N组预设触摸参数进行匹配,在M组触摸参数匹配不成功的情况下,再次在预设时间内获取用户输入的M组触摸参数,在该M组触摸参数匹配成功的情况下,对该终端进行解锁,触摸参数可为一个或者多个,也避免了数字解锁的单一输入,从而,可提高终端的安全性。Based on the foregoing embodiment of the present invention, 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. In the case that the M group touch parameters are successfully matched, 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.
请参阅图4,图4是本发明实施例提供的一种解锁的方法的第四实施例流程示意图。本实施例中所描述的解锁的方法,包括以下步骤:
Referring to FIG. 4, 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、确定用户在终端的触摸屏上进行3次触摸操作的3组触摸参数,其中,所述3组触摸参数包括:第一组触摸参数、第二组触摸参数和第三组触摸参数,分别为:第一组触摸参数包括轨迹方向为先向左后向右和轨迹长度为K1,第二组触摸参数包括轨迹图案为三角形、轨迹宽度为K2,第三组触摸参数包括触摸操作力度为K3,其中,所述K1、K2和K3均大于0。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. Wherein, K1, K2 and K3 are both greater than zero.
S402、将所述3组触摸参数与3组预设触摸参数进行匹配。S402. Match the three sets of touch parameters with three sets of preset touch parameters.
S403、判断所述第一组触摸参数中的轨迹方向是否与第一组预设触摸参数中的预设轨迹方向一致和判断所述K1是否位于预设区间。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.
若否,终端可提示用户解锁失败。If not, the terminal can prompt the user to unlock the failure.
S404、若是,判断所述第二组触摸参数中的轨迹图案是与第二组预设触摸参数中的预设轨迹图案的相似度大于第一预设阈值和判断所述K2是否大于第二预设阈值。S404. If yes, determining whether the track pattern in the second group of touch parameters is greater than a first preset threshold value and determining whether the K2 is greater than the second pre-predetermined value in the second set of preset touch parameters. Set the threshold.
若否,终端可提示用户解锁失败。If not, the terminal can prompt the user to unlock the failure.
S404、若是,判断所述K3是否小于第三预设阈值。S404. If yes, determine whether the K3 is less than a third preset threshold.
若否,终端可提示用户解锁失败。If not, the terminal can prompt the user to unlock the failure.
S405、若是,对所述终端进行解锁操作。S405. If yes, perform an unlocking operation on the terminal.
若否,终端可提示用户解锁失败。If not, the terminal can prompt the user to unlock the failure.
以此类堆,基于上述本发明实施例,可将N组触摸参数与N组预设触摸参数进行匹配,在匹配成功的情况下,对该终端进行解锁,触摸参数可为一个或者多个,也避免了数字解锁的单一输入,从而,可提高终端的安全性。With the above-mentioned embodiment of the present invention, 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.
请参见图5a,图5a为本发明实施例提供的一种终端的第一实施例的结构示意图,图5a所描述的终端可包括:确定单元501、匹配单元502和解锁单元503,具体如下:Referring to FIG. 5a, 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:
确定单元501,用于确定用户在终端的触摸屏上进行N次触摸操作的N组触摸参数,其中,所述N为正整数。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.
具体实现中,在终端处于被唤醒状态时。其中,终端的触摸屏需用户进行解锁,才可启动终端中的应用。用户可在终端的触摸屏上进行触摸操作,确定单元501可确定用户在终端的触摸屏上进行的N次触摸操作,以得到N组触摸参
数,其中,N为正整数。其中,用户在终端的触摸屏进行的触摸操作可为按压操作或者滑动操作,每一次触摸操作产生一组触摸参数。一组触摸参数可包括一个参数或者多个参数。In a specific implementation, when the terminal is in the awake state. 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.
进一步地,触摸参数可为触摸操作所形成的轨迹的轨迹参数,或者,触摸参数可为触摸操作力度,或者,触摸参数可为触摸操作所形成的轨迹的轨迹参数和触摸操作力度。Further, 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.
进一步地,触摸操作所形成的轨迹的轨迹参数可包括但不仅限于:轨迹长度、轨迹图案和轨迹宽度、轨迹的总接触面积、轨迹的起点和轨迹的终点的位置关系。其中,轨迹宽度可包括但不仅限于:轨迹的平均宽度、轨迹的最大宽度、轨迹的最小宽度、轨迹在指定段的平均宽度、轨迹在指定段的最大宽度和轨迹在指定段的最小宽度;轨迹的总接触面积为终端检测到的用户滑动轨迹时候接触终端的触摸屏的总接触面积;轨迹的起点和轨迹的终点的位置关系可为重叠关系或者轨迹的起点和轨迹的终点之间的距离满足预设阈值。Further, 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. Wherein, 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.
匹配单元502,用于将所述确定单元501确定的N组触摸参数与N组预设触摸参数进行匹配。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.
具体实现中,匹配单元502可将N组触摸参数与N组预设触摸参数进行匹配。终端在用户进行解锁之前,可配置N组预设触摸参数。例如,在N为3的情况下,第一组预设触摸参数可为:轨迹方向向右、轨迹长度为4厘米;第二组预设触摸参数可为:轨迹的总接触面积为20平方厘米;第三组预设触摸参数可为:轨迹的最大宽度为0.8厘米。In a specific implementation, 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. For example, in the case where N is 3, 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.
解锁单元503,用于在所述匹配单元502匹配出所述N组触摸参数与所述N组预设触摸参数匹配成功的情况下,对所述终端进行解锁操作。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.
具体实现中,解锁单元503可在N组触摸参数与N组预设触摸参数匹配成功的情况下,对终端进行解锁操作。In a specific implementation, 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.
作为一种可能的实施方式,如图5b所示,图5a中所描述的终端的匹配单元502可包括:第一判断单元5021和第二判断单元5022,具体如下:As a possible implementation manner, as shown in FIG. 5b, 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:
第一判断单元5021,用于在所述N为2的情况下,所述N组触摸参数为2组触摸参数,所述2组触摸参数包括第一组触摸参数和第二组触摸参数,其中,所述第一组触摸参数包括轨迹方向为向右和第一轨迹长度为第一长度,所述第
二组触摸参数包括第二轨迹方向为向上和第二轨迹长度为第二长度,判断所述第一组触摸参数的第一轨迹方向是否与第一组预设触摸参数的第一预设轨迹方向一致和判断所述第一组触摸参数的第一轨迹长度是否小于所述第一组预设触摸参数的第一预设轨迹长度。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.
第二判断单元5022,用于若所述第一判断单元5021的判断结果为是,则判断所述第二组触摸参数的第二轨迹方向是否与第二组预设触摸参数的第二预设轨迹方向一致和所述第二组触摸参数的第二轨迹长度是否大于所述第二组预设触摸参数的第二预设轨迹长度。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.
作为一种可能的实施方式,如图5c所示,图5a中所描述的终端的匹配单元502可包括:第三判断单元504、第四判断单元505和第五判断单元506,具体如下:As a possible implementation manner, as shown in FIG. 5c, 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:
第三判断单元504,用于,在所述N为1的情况下,所述N组触摸参数为1组触摸参数,所述1组触摸参数为:触摸操作力度为K1、轨迹宽度为K2和轨迹图案为K3,判断所述K1是否大于所述预设触摸参数的预设触摸操作力度。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.
第四判断单元505,若所述第三判断单元504的判断结果为是,则判断所述K2是否位于所述预设触摸参数的预设轨迹宽度的区间范围;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;
第五判断单元506,用于若所述第四判断单元505的判断结果为是,则判断所述K3与所述预设触摸参数的预设轨迹图案的相似度是否大于预设阈值,则判断所述K3与所述预设触摸参数的预设轨迹图案的相似度是否大于预设阈值。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.
作为一种可能的实施方式,如图5d所示,图5a中所描述的终端还可包括:提示单元507和获取单元508,具体如下:As a possible implementation manner, as shown in FIG. 5d, the terminal described in FIG. 5a may further include: a prompting unit 507 and an obtaining unit 508, as follows:
第二提示单元507,用于若匹配出所述N组触摸参数中有M组触摸参数与所述N组预设触摸参数中的M组预设触摸参数不匹配的情况下,则提示用户进行M次触摸操作,其中,M为大于1且小于N的整数;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;
获取单元508,用于获取用户预设时间内在所述终端的触摸屏上进行M次触摸操作的M组触摸参数;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;
匹配单元502,用于将所述获取单元508获取到的M组触摸参数与所述M组预设触摸参数进行匹配;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.
解锁单元503,用于在所述匹配单元502匹配出所述M组触摸参数与所
述M组预设触摸参数匹配成功的情况下,对所述终端进行解锁操作。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.
可选地,终端还可包括:第一提示单元(图中未标出),用于在所述匹配单元502的匹配结果为所述N组触摸参数中的第一组触摸参数与所述N组触摸参数匹配不成功,则提示用户再次进行触摸操作。Optionally, 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.
本发明实施例所描述的终端可通过确定用户在终端的触摸屏上进行N次触摸操作的N组触摸参数,其中,所述N为正整数;将所述N组触摸参数与N组预设触摸参数进行匹配;在所述N组触摸参数与所述N组预设触摸参数匹配成功的情况下,对所述终端进行解锁操作。采用本发明实施例可将N组触摸参数与N组预设触摸参数进行匹配,在匹配成功的情况下,对该终端进行解锁,因采用多组触摸参数,避免了数字解锁的单一输入,从而,可提高终端的安全性。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.
请参阅图6,图6为本发明实施例提供的一种终端的第二实施例的结构示意图。本实施例中所描述的终端包括:至少一个输入设备1000;至少一个输出设备2000;至少一个处理器3000,例如CPU;和存储器4000,上述输入设备1000、输出设备2000、处理器3000和存储器4000通过总线5000连接。Referring to FIG. 6, FIG. 6 is a schematic structural diagram of a second embodiment of a 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.
其中,上述输入设备1000可为触控面板、普通PC、液晶屏、触控屏、触控按钮等。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.
上述存储器4000可以是高速RAM存储器,也可为非不稳定的存储器(non-volatile memory),例如磁盘存储器。上述存储器4000用于存储一组程序代码,上述输入设备1000、输出设备2000和处理器3000用于调用存储器4000中存储的程序代码,执行如下操作: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:
上述处理器3000,用于:The processor 3000 is configured to:
确定用户在终端的触摸屏上进行N次触摸操作的N组触摸参数,其中,所述N为正整数;Determining 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;
将所述N组触摸参数与N组预设触摸参数进行匹配;Matching the N sets of touch parameters with N sets of preset touch parameters;
在所述N组触摸参数与所述N组预设触摸参数匹配成功的情况下,对所述终端进行解锁操作。When the N sets of touch parameters are successfully matched with the N sets of preset touch parameters, the terminal is unlocked.
作为一种可能的实施方式,上述触摸参数包括触摸操作所形成的轨迹的轨迹参数和/或触摸操作力度;
As a possible implementation manner, 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.
作为一种可能的实施方式,在所述N为2的情况下,所述N组触摸参数为2组触摸参数,所述2组触摸参数包括第一组触摸参数和第二组触摸参数,其中,所述第一组触摸参数包括轨迹方向为向右和第一轨迹长度为第一长度,所述第二组触摸参数包括第二轨迹方向为向上和第二轨迹长度为第二长度,上述处理器3000将所述N组触摸参数与N组预设触摸参数进行匹配,具体为:As a possible implementation manner, in a case where the N is 2, the N sets of touch parameters are 2 sets of touch parameters, and the 2 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 being rightward and a first track length being a first length, and 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 foregoing processing The device 3000 matches the N sets of touch parameters with the N sets of preset touch parameters, specifically:
判断所述第一组触摸参数的第一轨迹方向是否与第一组预设触摸参数的第一预设轨迹方向一致和判断所述第一组触摸参数的第一轨迹长度是否小于第一组预设触摸参数的第一预设轨迹长度;Determining whether the first track direction of the first set of touch parameters is consistent with the first preset track direction of the first set of preset touch parameters and determining whether the first track length of the first set of touch parameters is smaller than the first set of pre-previews Setting a first preset track length of the touch parameter;
若是,则判断所述第二组触摸参数的第二轨迹方向是否与第二组预设触摸参数的第二预设轨迹方向一致和所述第二组触摸参数的第二轨迹长度是否大于所述第二组预设触摸参数的第二预设轨迹长度。If yes, 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 whether the second track length of the second set of touch parameters is greater than the The second preset track length of the second set of preset touch parameters.
作为一种可能的实施方式,在所述N为1的情况下,所述N组触摸参数为1组触摸参数,所述1组触摸参数为:触摸操作力度为K1、轨迹宽度为K2和轨迹图案为K3,上述处理器3000将所述N组触摸参数与N组预设触摸参数进行匹配,具体为:As a possible implementation manner, in a case where the N is 1, 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:
判断所述K1是否大于所述预设触摸参数的预设触摸操作力度;Determining whether the K1 is greater than a preset touch operation strength of the preset touch parameter;
若是,则判断所述K2是否位于所述预设触摸参数的预设轨迹宽度的区间范围;If yes, determining whether the K2 is located in a range of a preset trajectory width of the preset touch parameter;
若是,则判断所述K3与所述预设触摸参数的预设轨迹图案的相似度是否大于预设阈值。If yes, determine whether the similarity between the K3 and the preset trajectory pattern of the preset touch parameter is greater than a preset threshold.
作为一种可能的实施方式,上述处理器3000将所述N组触摸参数与N组预设触摸参数进行匹配之后,还具体用于:As a possible implementation manner, after the processor 3000 matches the N sets of touch parameters with the N sets of preset touch parameters, the processor 3000 is further configured to:
若匹配出所述N组触摸参数中有M组触摸参数与所述N组预设触摸参数中的M组预设触摸参数不匹配的情况下,则提示用户进行M次触摸操作,其中,M为大于1且小于N的整数;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, the user is prompted to perform M touch operations, wherein, M An integer greater than 1 and less than N;
获取用户预设时间内在所述终端的触摸屏上进行M次触摸操作的M组触摸参数;
Obtaining M group touch parameters for performing M touch operations on the touch screen of the terminal within a preset time of the user;
将所述M组触摸参数与M组预设触摸参数进行匹配;Matching the M group touch parameters with the M group preset touch parameters;
在所述M组触摸参数与所述M组预设触摸参数匹配成功的情况下,对所述终端进行解锁操作。And in the case that the M group touch parameter is successfully matched with the M group preset touch parameter, the terminal is unlocked.
本发明实施例所描述的终端可通过确定用户在终端的触摸屏上进行N次触摸操作的N组触摸参数,其中,所述N为正整数;将所述N组触摸参数与N组预设触摸参数进行匹配;在所述N组触摸参数与所述N组预设触摸参数匹配成功的情况下,对所述终端进行解锁操作。采用本发明实施例可将N组触摸参数与N组预设触摸参数进行匹配,在匹配成功的情况下,对该终端进行解锁,因采用多组触摸参数,避免了数字解锁的单一输入,从而,可提高终端的安全性。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.
在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述的部分,可以参见其他实施例的相关描述。In the above embodiments, the descriptions of the various embodiments are different, and the details that are not detailed in a certain embodiment can be referred to the related descriptions of other embodiments.
需要说明的是,对于前述的各方法实施例,为了简单描述,故将其都表述为一系列的动作组合,但是本领域技术人员应该知悉,本发明并不受所描述的动作顺序的限制,因为依据本发明,某些步骤可能可以采用其他顺序或者同时进行。其次,本领域技术人员也应该知悉,说明书中所描述的实施例均属于优选实施例,所涉及的动作和模块并不一定是本发明所必须的。It should be noted that, for the foregoing method embodiments, for the sake of simple description, they are all expressed as a series of action combinations, but those skilled in the art should understand that the present invention is not limited by the described action sequence. Because certain steps may be performed in other sequences or concurrently in accordance with the present invention. In addition, those skilled in the art should also understand that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present invention.
在本申请所提供的几个实施例中,应该理解到,所揭露的装置,可通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如上述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性或其它的形式。In the several embodiments provided herein, it should be understood that the disclosed apparatus may be implemented in other ways. For example, the device embodiments described above are merely illustrative. For example, 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. In addition, 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.
另外,在本发明各实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, 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.
上述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以为个人计算机、服务器或者网络设备等,具体可以是计算机设备中的处理器)执行本发明各个实施例上述方法的全部或部分步骤。其中,而前述的存储介质可包括:U盘、移动硬盘、磁碟、光盘、只读存储器(英文:Read-Only Memory,缩写:ROM)或者随机存取存储器(英文:Random Access Memory,缩写:RAM)等各种可以存储程序代码的介质。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. Based on such understanding, 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.
以上所述,以上实施例仅用以说明本发明的技术方案,而非对其限制;尽管参照前述实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明各实施例技术方案的精神和范围。
The above embodiments are only used to illustrate the technical solutions of the present invention, and are not intended to be limiting; although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art will understand that The technical solutions described in the embodiments are modified, or the equivalents of the technical features are replaced by the equivalents of the technical solutions of the embodiments of the present invention.
Claims (19)
- 一种解锁的方法,其特征在于,所述方法包括:A method for unlocking, characterized in that the method comprises:确定用户在终端的触摸屏上进行N次触摸操作的N组触摸参数,其中,所述N为正整数;Determining 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;将所述N组触摸参数与N组预设触摸参数进行匹配;Matching the N sets of touch parameters with N sets of preset touch parameters;在所述N组触摸参数与所述N组预设触摸参数匹配成功的情况下,对所述终端进行解锁操作。When the N sets of touch parameters are successfully matched with the N sets of preset touch parameters, the terminal is unlocked.
- 如权利要求1所述的方法,其特征在于,所述触摸参数包括触摸操作所形成的轨迹的轨迹参数和/或触摸操作力度;The method according to claim 1, wherein the touch parameter comprises a trajectory parameter of a trajectory formed by a 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.
- 如权利1或2任一项所述的方法,其特征在于,在所述N为2的情况下,所述N组触摸参数为2组触摸参数,所述2组触摸参数包括第一组触摸参数和第二组触摸参数,其中,所述第一组触摸参数包括轨迹方向为向右和第一轨迹长度为第一长度,所述第二组触摸参数包括第二轨迹方向为向上和第二轨迹长度为第二长度,The method according to any one of claims 1 to 2, wherein, in the case that N is 2, the N sets of touch parameters are 2 sets of touch parameters, and the 2 sets of touch parameters include the first set of touches a parameter 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 being a first length, and the second set of touch parameters includes a second track direction of up and second The track length is the second length.所述将所述N组触摸参数与N组预设触摸参数进行匹配,包括:The matching the N sets of touch parameters with the N sets of preset touch parameters includes:判断所述第一组触摸参数的第一轨迹方向是否与第一组预设触摸参数的第一预设轨迹方向一致和判断所述第一组触摸参数的第一轨迹长度是否小于第一组预设触摸参数的第一预设轨迹长度;Determining whether the first track direction of the first set of touch parameters is consistent with the first preset track direction of the first set of preset touch parameters and determining whether the first track length of the first set of touch parameters is smaller than the first set of pre-previews Setting a first preset track length of the touch parameter;若是,则判断所述第二组触摸参数的第二轨迹方向是否与第二组预设触摸参数的第二预设轨迹方向一致和所述第二组触摸参数的第二轨迹长度是否大于所述第二组预设触摸参数的第二预设轨迹长度。If yes, 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 whether the second track length of the second set of touch parameters is greater than the The second preset track length of the second set of preset touch parameters.
- 如权利1或2任一项所述的方法,其特征在于,在所述N为1的情况下,所述N组触摸参数为1组触摸参数,所述1组触摸参数为:触摸操作力度为K1、 轨迹宽度为K2和轨迹图案为K3,The method according to any one of claims 1 to 2, wherein, in the case that the N is 1, the N sets of touch parameters are 1 set of touch parameters, and the 1 set of touch parameters are: touch operation strength Is K1 The track width is K2 and the track pattern is K3.所述将所述N组触摸参数与N组预设触摸参数进行匹配,包括:The matching the N sets of touch parameters with the N sets of preset touch parameters includes:判断所述K1是否大于所述预设触摸参数的预设触摸操作力度;Determining whether the K1 is greater than a preset touch operation strength of the preset touch parameter;若是,则判断所述K2是否位于所述预设触摸参数的预设轨迹宽度的区间范围;If yes, determining whether the K2 is located in a range of a preset trajectory width of the preset touch parameter;若是,则判断所述K3与所述预设触摸参数的预设轨迹图案的相似度是否大于预设阈值。If yes, determine whether the similarity between the K3 and the preset trajectory pattern of the preset touch parameter is greater than a preset threshold.
- 如权利1或2任一项所述的方法,其特征在于,所述方法还包括:The method of any of claims 1 or 2, wherein the method further comprises:在所述N组触摸参数中的至少一组触摸参数与所述N组触摸参数匹配不成功,则提示用户再次进行触摸操作。If at least one set of the touch parameters of the N sets of touch parameters is unsuccessful to match the N sets of touch parameters, the user is prompted to perform the touch operation again.
- 如权利要求1或2任一项所述的方法,其特征在于,所述将所述N组触摸参数与N组预设触摸参数进行匹配之后,所述方法还包括:The method according to any one of claims 1 to 2, wherein after the matching the N sets of touch parameters with the N sets of preset touch parameters, the method further comprises:若匹配出所述N组触摸参数中有M组触摸参数与所述N组预设触摸参数中的M组预设触摸参数不匹配的情况下,则提示用户进行M次触摸操作,其中,M为大于1且小于N的整数;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, the user is prompted to perform M touch operations, wherein, M An integer greater than 1 and less than N;获取用户预设时间内在所述终端的触摸屏上进行M次触摸操作的M组触摸参数;Obtaining M group touch parameters for performing M touch operations on the touch screen of the terminal within a preset time of the user;将所述M组触摸参数与所述M组预设触摸参数进行匹配;Matching the M sets of touch parameters with the M sets of preset touch parameters;在所述M组触摸参数与所述M组预设触摸参数匹配成功的情况下,对所述终端进行解锁操作。And in the case that the M group touch parameter is successfully matched with the M group preset touch parameter, the terminal is unlocked.
- 一种终端,其特征在于,所述终端包括:A terminal, wherein the terminal comprises:确定单元,用于确定用户在终端的触摸屏上进行N次触摸操作的N组触摸参数,其中,所述N为正整数;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;匹配单元,用于将所述确定单元确定的N组触摸参数与N组预设触摸参数进行匹配;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;解锁单元,用于在所述匹配单元匹配出所述N组触摸参数与所述N组预设 触摸参数匹配成功的情况下,对所述终端进行解锁操作。An unlocking unit, configured to match the N sets of touch parameters and the N sets of presets in the matching unit In the case that the touch parameter matching is successful, the terminal is unlocked.
- 如权利要求7所述的终端,其特征在于,所述触摸参数包括触摸操作所形成的轨迹的轨迹参数和/或触摸操作力度;The terminal according to claim 7, wherein the touch parameter comprises a trajectory parameter of a trajectory formed by a 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.
- 如权利7或8任一项所述的终端,其特征在于,在所述N为2的情况下,所述N组触摸参数为2组触摸参数,所述2组触摸参数包括第一组触摸参数和第二组触摸参数,其中,所述第一组触摸参数包括轨迹方向为向右和第一轨迹长度为第一长度,所述第二组触摸参数包括第二轨迹方向为向上和第二轨迹长度为第二长度,The terminal according to any one of claims 7 or 8, wherein, in the case that the N is 2, the N sets of touch parameters are 2 sets of touch parameters, and the 2 sets of touch parameters include the first set of touches. a parameter 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 being a first length, and the second set of touch parameters includes a second track direction of up and second The track length is the second length.所述匹配单元包括:The matching unit includes:第一判断单元,用于判断所述第一组触摸参数的第一轨迹方向是否与第一组预设触摸参数的第一预设轨迹方向一致和判断所述第一组触摸参数的第一轨迹长度是否小于第一组预设触摸参数的第一预设轨迹长度;a first determining unit, configured to determine whether a first track direction of the first group of touch parameters is consistent with a first preset track direction of the first group of preset touch parameters, and determine a first track of the first group of touch parameters Whether the 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.
- 如权利7或8任一项所述的终端,其特征在于,在所述N为1的情况下,所述N组触摸参数为1组触摸参数,所述1组触摸参数为:触摸操作力度为K1、轨迹宽度为K2和轨迹图案为K3,The terminal according to any one of claims 7 or 8, wherein, in the case that the N is 1, the N sets of touch parameters are 1 set of touch parameters, and the 1 set of touch parameters are: touch operation strength K1, the track width is K2, and the track pattern is K3.所述匹配单元包括:The matching unit includes:第三判断单元,用于判断所述K1是否大于所述预设触摸参数的预设触摸操作力度;a third determining unit, configured to determine whether the K1 is greater than a preset touch operation strength of the preset touch parameter;第四判断单元,用于若所述第三判断单元的判断结果为是,则判断所述K2是否位于所述预设触摸参数的预设轨迹宽度的区间范围; 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;第五判断单元,用于若所述第四判断单元的判断结果为是,则判断所述K3与所述预设触摸参数的预设轨迹图案的相似度是否大于预设阈值。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.
- 如权利7或8任一项所述的终端,其特征在于,所述终端还包括:The terminal according to any one of claims 7 or 8, wherein the terminal further comprises:第一提示单元,用于在所述匹配单元的匹配结果为所述N组触摸参数中的至少一组触摸参数与所述N组触摸参数匹配不成功,则提示用户再次进行触摸操作。The first prompting unit is configured to prompt the user to perform the touch operation again if 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.
- 如权利要求7或8任一项所述的终端,其特征在于,所述终端还包括:The terminal according to any one of claims 7 or 8, wherein the terminal further comprises:第二提示单元,用于若匹配出所述N组触摸参数中有M组触摸参数与所述N组预设触摸参数中的M组预设触摸参数不匹配的情况下,则提示用户进行M次触摸操作,其中,M为大于1且小于N的整数;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;获取单元,用于获取用户预设时间内在所述终端的触摸屏上进行M次触摸操作的M组触摸参数;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;所述匹配单元还具体用于将所述获取单元获取到的M组触摸参数与所述M组预设触摸参数进行匹配;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;解锁单元还具体用于,在所述匹配单元匹配出所述M组触摸参数与所述M组预设触摸参数匹配成功的情况下,对所述终端进行解锁操作。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 terminal, comprising:处理器和存储器;其中,所述处理器通过调用所述存储器中的代码或指令以执行如下步骤:a processor and a memory; wherein the processor performs the following steps by calling code or instructions in the memory:确定用户在终端的触摸屏上进行N次触摸操作的N组触摸参数,其中,所述N为正整数;Determining 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;将所述N组触摸参数与N组预设触摸参数进行匹配;Matching the N sets of touch parameters with N sets of preset touch parameters;在所述N组触摸参数与所述N组预设触摸参数匹配成功的情况下,对所述终端进行解锁操作。When the N sets of touch parameters are successfully matched with the N sets of preset touch parameters, the terminal is unlocked.
- 如权利要求13所述的终端,其特征在于,所述触摸参数包括触摸操作 所形成的轨迹的轨迹参数和/或触摸操作力度;The terminal of claim 13, wherein the touch parameter comprises a touch operation The trajectory parameters of the formed trajectory 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.
- 如权利要求13或14任一项所述的终端,其特征在于,在所述N为2的情况下,所述N组触摸参数为2组触摸参数,所述2组触摸参数包括第一组触摸参数和第二组触摸参数,其中,所述第一组触摸参数包括轨迹方向为向右和第一轨迹长度为第一长度,所述第二组触摸参数包括第二轨迹方向为向上和第二轨迹长度为第二长度,The terminal according to any one of claims 13 or 14, wherein, in the case that N is 2, the N sets of touch parameters are 2 sets of touch parameters, and the 2 sets of touch parameters include the first set. a touch parameter and a second set of touch parameters, wherein the first set of touch parameters includes a track direction being rightward and a first track length being a first length, and the second set of touch parameters including a second track direction being upward and The length of the second track is the second length.所述将所述N组触摸参数与N组预设触摸参数进行匹配,包括:The matching the N sets of touch parameters with the N sets of preset touch parameters includes:判断所述第一组触摸参数的第一轨迹方向是否与第一组预设触摸参数的第一预设轨迹方向一致和判断所述第一组触摸参数的第一轨迹长度是否小于第一组预设触摸参数的第一预设轨迹长度;Determining whether the first track direction of the first set of touch parameters is consistent with the first preset track direction of the first set of preset touch parameters and determining whether the first track length of the first set of touch parameters is smaller than the first set of pre-previews Setting a first preset track length of the touch parameter;若是,则判断所述第二组触摸参数的第二轨迹方向是否与第二组预设触摸参数的第二预设轨迹方向一致和所述第二组触摸参数的第二轨迹长度是否大于所述第二组预设触摸参数的第二预设轨迹长度。If yes, 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 whether the second track length of the second set of touch parameters is greater than the The second preset track length of the second set of preset touch parameters.
- 如权利要求13或14任一项所述的终端,其特征在于,在所述N为1的情况下,所述N组触摸参数为1组触摸参数,所述1组触摸参数为:触摸操作力度为K1、轨迹宽度为K2和轨迹图案为K3,The terminal according to any one of claims 13 or 14, wherein, in the case that the N is 1, the N sets of touch parameters are 1 set of touch parameters, and the 1 set of touch parameters are: touch operation The velocity is K1, the track width is K2, and the track pattern is K3.所述将所述N组触摸参数与N组预设触摸参数进行匹配,包括:The matching the N sets of touch parameters with the N sets of preset touch parameters includes:判断所述K1是否大于所述预设触摸参数的预设触摸操作力度;Determining whether the K1 is greater than a preset touch operation strength of the preset touch parameter;若是,则判断所述K2是否位于所述预设触摸参数的预设轨迹宽度的区间范围;If yes, determining whether the K2 is located in a range of a preset trajectory width of the preset touch parameter;若是,则判断所述K3与所述预设触摸参数的预设轨迹图案的相似度是否大于预设阈值。If yes, determine whether the similarity between the K3 and the preset trajectory pattern of the preset touch parameter is greater than a preset threshold.
- 如权利要求13或14任一项所述的终端,其特征在于,所述处理器还具体用于: The terminal according to any one of claims 13 or 14, wherein the processor is further configured to:在所述N组触摸参数中的至少一组触摸参数与所述N组触摸参数匹配不成功,则提示用户再次进行触摸操作。If at least one set of the touch parameters of the N sets of touch parameters is unsuccessful to match the N sets of touch parameters, the user is prompted to perform the touch operation again.
- 如权利要求13或14任一项所述的终端,其特征在于,所述将所述N组触摸参数与N组预设触摸参数进行匹配之后,所述处理器还具体用于:The terminal according to any one of claims 13 or 14, wherein after the matching the N sets of touch parameters with the N sets of preset touch parameters, the processor is further configured to:若匹配出所述N组触摸参数中有M组触摸参数与所述N组预设触摸参数中的M组预设触摸参数不匹配的情况下,则提示用户进行M次触摸操作,其中,M为大于1且小于N的整数;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, the user is prompted to perform M touch operations, wherein, M An integer greater than 1 and less than N;获取用户预设时间内在所述终端的触摸屏上进行M次触摸操作的M组触摸参数;Obtaining M group touch parameters for performing M touch operations on the touch screen of the terminal within a preset time of the user;将所述M组触摸参数与所述M组预设触摸参数进行匹配;Matching the M sets of touch parameters with the M sets of preset touch parameters;在所述M组触摸参数与所述M组预设触摸参数匹配成功的情况下,对所述终端进行解锁操作。And in the case that the M group touch parameter is successfully matched with the M group preset touch parameter, the terminal is unlocked.
- 一种计算机存储介质,其特征在于,所述计算机存储介质中存储有计算机可执行指令,所述计算机可执行指令用于执行如权利要求1至6任一项所述的方法。 A computer storage medium, characterized in that the computer storage medium stores computer executable instructions for performing the method of any one of claims 1 to 6.
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510535645.X | 2015-08-27 | ||
CN201510535645.XA CN105069347B (en) | 2015-08-27 | 2015-08-27 | The method and terminal of a kind of unblock |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2017032129A1 true WO2017032129A1 (en) | 2017-03-02 |
Family
ID=54498710
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2016/085084 WO2017032129A1 (en) | 2015-08-27 | 2016-06-07 | Unlocking method and terminal |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN105069347B (en) |
WO (1) | WO2017032129A1 (en) |
Families Citing this family (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105069347B (en) * | 2015-08-27 | 2017-11-24 | 广东欧珀移动通信有限公司 | The method and terminal of a kind of unblock |
CN105447358A (en) * | 2015-12-04 | 2016-03-30 | 小米科技有限责任公司 | Password setting method and apparatus |
CN105516983A (en) * | 2016-01-28 | 2016-04-20 | 宇龙计算机通信科技(深圳)有限公司 | Authentication method and authentication device |
CN106503536A (en) * | 2016-10-21 | 2017-03-15 | 薛年 | A kind of free gesture vector unlocking method of screen of intelligent device |
CN107092823B (en) * | 2017-04-17 | 2022-01-11 | 惠州Tcl移动通信有限公司 | Full-touch-screen unlocking method based on mobile terminal and mobile terminal |
CN108681665B (en) * | 2018-04-08 | 2020-03-10 | 维沃移动通信有限公司 | Operation execution method and device and mobile terminal |
CN112559989A (en) * | 2020-12-14 | 2021-03-26 | 深圳市爱都科技有限公司 | Unlocking method and device of wearable device and wearable device |
CN112764576A (en) * | 2021-01-08 | 2021-05-07 | 深圳市爱都科技有限公司 | Multimedia playing control method and device, intelligent wearable device and storage medium |
CN112817479A (en) * | 2021-01-25 | 2021-05-18 | 惠州Tcl移动通信有限公司 | Mobile terminal touch control method and device, intelligent terminal and storage medium |
Citations (6)
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 (en) * | 2012-07-02 | 2012-12-19 | 人民搜索网络股份公司 | Device and method for unlocking touch screen equipment based on clicking force |
CN102929536A (en) * | 2012-10-11 | 2013-02-13 | 百度在线网络技术(北京)有限公司 | Unlocking and verifying method for mobile terminal as well as unlocking and verifying device |
CN103544426A (en) * | 2012-07-13 | 2014-01-29 | 深圳市腾讯计算机系统有限公司 | Method and device for authentication of touch screen and equipment |
CN104571839A (en) * | 2013-10-17 | 2015-04-29 | 中兴通讯股份有限公司 | Terminal and processing method and device thereof |
CN105069347A (en) * | 2015-08-27 | 2015-11-18 | 广东欧珀移动通信有限公司 | Unlocking method and terminal |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103246460A (en) * | 2012-02-10 | 2013-08-14 | 中兴通讯股份有限公司 | Unlocking method and device for touch screen |
CN104035698B (en) * | 2013-03-04 | 2018-03-27 | 联想(北京)有限公司 | Terminal device and its state switching method |
CN104122984A (en) * | 2013-04-28 | 2014-10-29 | 青岛海信移动通信技术股份有限公司 | Unlocking device and method for portable terminal |
CN104182165B (en) * | 2013-05-27 | 2019-12-06 | 百度在线网络技术(北京)有限公司 | Unlocking method and device of mobile terminal |
-
2015
- 2015-08-27 CN CN201510535645.XA patent/CN105069347B/en not_active Expired - Fee Related
-
2016
- 2016-06-07 WO PCT/CN2016/085084 patent/WO2017032129A1/en active Application Filing
Patent Citations (6)
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 (en) * | 2012-07-02 | 2012-12-19 | 人民搜索网络股份公司 | Device and method for unlocking touch screen equipment based on clicking force |
CN103544426A (en) * | 2012-07-13 | 2014-01-29 | 深圳市腾讯计算机系统有限公司 | Method and device for authentication of touch screen and equipment |
CN102929536A (en) * | 2012-10-11 | 2013-02-13 | 百度在线网络技术(北京)有限公司 | Unlocking and verifying method for mobile terminal as well as unlocking and verifying device |
CN104571839A (en) * | 2013-10-17 | 2015-04-29 | 中兴通讯股份有限公司 | Terminal and processing method and device thereof |
CN105069347A (en) * | 2015-08-27 | 2015-11-18 | 广东欧珀移动通信有限公司 | Unlocking method and terminal |
Also Published As
Publication number | Publication date |
---|---|
CN105069347A (en) | 2015-11-18 |
CN105069347B (en) | 2017-11-24 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2017032129A1 (en) | Unlocking method and terminal | |
WO2017032128A1 (en) | Terminal unlocking method and terminal | |
US10506068B2 (en) | Cloud-based cross-device digital pen pairing | |
EP3206110B1 (en) | Method of providing handwriting style correction function and electronic device adapted thereto | |
US9626815B2 (en) | Method for unlocking electronic device, and apparatus therefor | |
CN109075820B (en) | Bluetooth pairing method, terminal device and readable storage medium | |
WO2017000350A1 (en) | Touchscreen terminal-based unlock method and device and touchscreen terminal | |
US9513790B2 (en) | Electronic device and method for unlocking screen of electronic device | |
EP2838007B1 (en) | Electronic equipment and unlocking method of screen thereof | |
CN105160227A (en) | Remote fingerprint verification method, user terminal and fingerprint verification system | |
WO2017032127A1 (en) | Pattern unlocking method and terminal | |
CN105446636B (en) | Dynamic unlocking method and electronic device | |
TWI598804B (en) | An electronic device and a screen unlocking method thereof | |
CN104951685A (en) | Method and mobile terminal for running application programs | |
WO2016078504A1 (en) | Identity authentication method and device | |
WO2018107396A1 (en) | Fingerprint recognition method and terminal device | |
US20160294835A1 (en) | Initiating a Secure Action Via Physical Manipulation | |
EP2927834A1 (en) | Information processing apparatus, information processing method, and recording medium | |
WO2015003648A1 (en) | Terminal device and locking/unlocking method therefor | |
WO2017028277A1 (en) | Fingerprint recognition method and mobile terminal | |
CN104318186A (en) | Code switching method, equipment and terminal | |
CN105159589A (en) | Pattern unlocking method and terminal | |
WO2016000323A1 (en) | Method for operating soft keyboard, terminal and computer readable storage medium | |
CN105183140A (en) | Method and device for unlocking screen of mobile terminal in movement, and mobile terminal | |
US10402083B2 (en) | Fingerprint event processing method, apparatus, and terminal |
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 |