[go: up one dir, main page]

WO2017032127A1 - Pattern unlocking method and terminal - Google Patents

Pattern unlocking method and terminal Download PDF

Info

Publication number
WO2017032127A1
WO2017032127A1 PCT/CN2016/085082 CN2016085082W WO2017032127A1 WO 2017032127 A1 WO2017032127 A1 WO 2017032127A1 CN 2016085082 W CN2016085082 W CN 2016085082W WO 2017032127 A1 WO2017032127 A1 WO 2017032127A1
Authority
WO
WIPO (PCT)
Prior art keywords
pressing
terminal
patterns
preset
pattern
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Ceased
Application number
PCT/CN2016/085082
Other languages
French (fr)
Chinese (zh)
Inventor
李建林
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Publication of WO2017032127A1 publication Critical patent/WO2017032127A1/en
Anticipated expiration legal-status Critical
Ceased legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/30Authentication, i.e. establishing the identity or authorisation of security principals
    • G06F21/31User authentication
    • G06F21/36User authentication by graphic or iconic representation

Definitions

  • Embodiments of the present invention relate to the field of electronic device technologies, and in particular, to a method and a terminal for unlocking a pattern.
  • 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 mainstream pattern decoding is often an unlock pattern in the form of a nine-square grid.
  • the nine-square grid can be divided into two forms. One is below the nine-square grid, and the user can unlock by touching the corresponding number. Another form is to display nine points, the user slides the trajectory, and the effective pattern can be unlocked. In both forms, since the password is relatively simple and the user slides, it is easy for others to peek into the password, thus easily causing The password is leaked.
  • the embodiment of the invention provides a method and a terminal for unlocking a pattern, so as to improve the security of the terminal.
  • a first aspect of the embodiments of the present invention discloses a method for unlocking a pattern, including:
  • M patterns are displayed on the touch screen of the terminal, wherein the M patterns include a N-type pattern, the N is an integer greater than 1, and the M is greater than the N Integer
  • the pressing parameter includes P pressing force values and a pressing order corresponding to the P patterns, the P patterns including at least one of each of the K-type patterns, the K being greater than 1 and less than An integer of N;
  • the terminal is unlocked.
  • the matching the pressing parameter with the preset pressing parameter comprises:
  • the P pressing force values are calculated according to a preset rule to obtain a check value, include:
  • the matching the pressing parameter with the preset pressing parameter comprises:
  • the determining, by the user, a pressing parameter of the P patterns in the K-type pattern in the N-type pattern includes:
  • P pressing force values and pressing order corresponding to the P patterns are combined into pressing parameters of the P patterns.
  • the method further includes:
  • the terminal is unlocked, and the second pattern is displayed on the screen of the unlocked terminal.
  • a second aspect of the embodiment of the present invention discloses a terminal, including:
  • a display unit configured to display M patterns on the touch screen of the terminal when the terminal is in the awake state, wherein the M patterns include a N-type pattern, the N is an integer greater than 1, and the M is An integer greater than the N;
  • a determining unit configured to determine a pressing parameter of a P pattern in the K-type pattern in the N-type pattern, the pressing parameter includes P pressing force values and a pressing order corresponding to the P patterns,
  • the P patterns include at least one of each of the K-type patterns, the K being an integer greater than 1 and less than the N;
  • a matching unit configured to match a pressing parameter determined by the determining unit with a preset pressing parameter
  • an unlocking unit configured to perform an unlocking operation on the terminal if the matching result of the matching unit is that the pressing parameter and the preset pressing parameter are successfully matched.
  • the matching unit includes:
  • a calculating unit configured to calculate, according to a preset rule, the P pressing force values determined by the determining unit to obtain a target pressing force value
  • the first determining unit is configured to determine whether the target pressing force value calculated by the calculating unit is in a preset interval and whether the pressing sequence is consistent with a preset pressing sequence.
  • the calculating unit is specifically configured to:
  • a variance of a pressing force value other than the maximum pressing force value and the minimum pressing force value among the P pressing force values is used as a check value.
  • the matching unit includes:
  • a second determining unit configured to determine whether the P pressing force values and the preset P pressing strength values match
  • the third determining unit is configured to determine, if the determination result of the second determining unit is yes, whether the pressing sequence is consistent with the preset pressing order.
  • the determining unit includes:
  • a first acquiring unit configured to acquire P velocity values of P patterns in the K-type pattern in the N-type pattern and P class identifiers corresponding to the P patterns, wherein the N-type pattern and N category identification codes are in one-to-one correspondence;
  • a processing unit configured to quantize the P velocity values acquired by the first acquiring unit according to a mapping relationship between a preset velocity value and a pressing velocity value, to obtain P pressing velocity values
  • a determining subunit configured to generate a character string according to a preset manner by the P class identifiers acquired by the first acquiring unit, and determine a pressing order corresponding to the P patterns based on the character string.
  • a combining unit configured to combine the P pressing force values obtained by the processing unit and the pressing order corresponding to the P patterns determined by the determining subunit into a pressing parameter of the P patterns.
  • the terminal further includes:
  • a display unit configured to display the first image on the touch screen of the terminal if the user detects that the user wakes up the terminal within a preset time length when the terminal enters the lock screen state again.
  • a second acquiring unit configured to acquire a first pressing parameter of the user for the first pattern
  • a fourth determining unit configured to determine whether the first pressing parameter acquired by the second acquiring unit meets a preset threshold
  • an unlocking unit configured to: if the determination result of the fourth determining unit is yes, perform an unlocking operation on the terminal, and display a second pattern on a screen of the unlocked terminal.
  • 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:
  • M patterns are displayed on the touch screen of the terminal, wherein the M patterns include a N-type pattern, the N is an integer greater than 1, and the M is greater than the N Integer
  • the pressing parameter includes P pressing force values and a pressing order corresponding to the P patterns, the P patterns including at least a pattern in each of the K-type patterns, wherein K is an integer greater than 1 and less than the N;
  • the terminal is unlocked.
  • the matching the pressing parameter with the preset pressing parameter comprises:
  • the P pressing force values are calculated according to a preset rule to obtain a check value, include:
  • the matching the pressing parameter with the preset pressing parameter comprises:
  • the determining, by the user, a pressing parameter of the P patterns in the K-type pattern in the N-type pattern includes:
  • P pressing force values and pressing order corresponding to the P patterns are combined into pressing parameters of the P patterns.
  • the method further includes:
  • the terminal is unlocked, and the second pattern is displayed on the screen of the unlocked terminal.
  • 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 first aspect or the first aspect of the embodiment of the present invention. Some or all of the steps described in any of the possible embodiments.
  • M patterns are displayed on the touch screen of the terminal, wherein the M patterns include a N-type pattern, the N is an integer greater than 1, and the M is greater than An integer of N; determining a pressing parameter of the user for the P patterns in the K-type pattern in the N-type pattern, the pressing parameter including P pressing force values and a pressing order corresponding to the P patterns, the P The pattern includes at least one of each of the K-type patterns, the K being an integer greater than 1 and less than N; matching the pressing parameter with a preset pressing parameter; at the pressing parameter and the pre- If the pressing parameter is successfully matched, the terminal is unlocked.
  • the classified pattern may be displayed on the touch screen in the terminal unlock state, and the pressing parameter corresponding to pressing the pattern is determined when the user presses the pattern, and the pressing parameter includes a pressing force value and a pressing order, and the pressing parameter is
  • the preset pressing parameters are matched to increase the difficulty of deciphering and improve the security of the terminal.
  • FIG. 1 is a schematic flowchart of a first embodiment of a method for unlocking a pattern according to an embodiment of the present invention
  • FIG. 2 is a schematic flowchart diagram of a second embodiment of a method for unlocking a pattern according to an embodiment of the present disclosure
  • FIG. 3 is a schematic flowchart diagram of a third embodiment of a method for unlocking a pattern according to an embodiment of the present disclosure
  • FIG. 4 is a schematic flowchart diagram of a fourth embodiment of a method for unlocking a pattern 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. 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, 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 merely examples, not exhaustive, and include but are not limited to the above terminals.
  • a method and a terminal for unlocking a pattern provided by an embodiment of the present invention are described in conjunction with FIG. 1 to FIG. 6 .
  • FIG. 1 is a schematic flow chart of a first embodiment of a method for unlocking a pattern according to an embodiment of the present invention.
  • the method for unlocking a pattern described in this embodiment includes the following steps:
  • M patterns when the terminal is in the awake state, M patterns may be displayed on the touch screen, wherein the M patterns may be N-type patterns, N is an integer greater than 1, and M is an integer greater than N.
  • each type of pattern in the N-type pattern includes at least one pattern, and the pattern in the i-th type includes more
  • the plurality of patterns may be partially the same or different from each other, wherein the i-th pattern is any one of the N-type patterns.
  • the M patterns are from a network picture, a picture taken by a camera of the user using the terminal, a system picture or a user-defined pattern.
  • the M patterns may be derived from K patterns, and in the state in which the terminal is awakened, M patterns of the K patterns are displayed, and K is an integer greater than M.
  • the terminal may display the M patterns in a preset order, and the preset order may be displayed in a random order, a fixed order, or a plurality of different display sequences at every preset time or at different occasions.
  • S102 Determine a pressing parameter of a P pattern in a K-type pattern in the N-type pattern, where the pressing parameter includes P pressing force values and a pressing order corresponding to the P patterns, and the P patterns At least one of each of the K-type patterns is included, the K being an integer greater than 1 and less than the N.
  • the terminal may select P patterns from the N-type patterns, the P patterns are from the K-type pattern in the N-type pattern, and the P is an integer greater than or equal to K, that is, the P patterns include at least the K-type
  • the terminal may generate a pressing parameter according to a preset manner by pressing the P pressing parameters obtained by pressing the P patterns. For example, the P pressing parameters may be averaged to obtain a check value as a pressing parameter of the P patterns.
  • the pressing parameter may include P pressing force values and a pressing order corresponding to the P patterns, wherein the P pressing force values are in one-to-one correspondence with the pressing operations of pressing the P patterns, that is, pressing the P patterns.
  • the pattern i in the middle can generate a pressing force value, and the pattern i is any one of the P patterns.
  • the terminal may determine whether the pressing parameter is in a range of the preset pressing parameter.
  • the pressing parameter is a set of pressing parameters
  • the set of pressing parameters includes a plurality of parameters, and the terminal may match each of the pressing parameters to a parameter corresponding to the preset pressing parameter.
  • the terminal when the pressing parameter and the preset pressing parameter are successfully matched, the terminal can be unlocked, so that the terminal enters a normal display interface, and the normal display interface can display a shortcut of each application in the terminal.
  • the user is prompted to perform the unlocking again; further, if the user is in the preset number of times or the preset time, the pressing parameter and the preset pressing parameter are If the match is still unsuccessful, the terminal enters the shutdown state.
  • M patterns are displayed on the touch screen of the terminal, wherein the M patterns include a N-type pattern, the N is an integer greater than 1, and the M is greater than An integer of N; determining a pressing parameter of the user for the P patterns in the K-type pattern in the N-type pattern, the pressing parameter including P pressing force values and a pressing order corresponding to the P patterns, the P The pattern includes at least one of each of the K-type patterns, the K being an integer greater than 1 and less than N; matching the pressing parameter with a preset pressing parameter; at the pressing parameter and the pre- If the pressing parameter is successfully matched, the terminal is unlocked.
  • the classified pattern may be displayed on the touch screen in the terminal unlock state, and the pressing parameter corresponding to pressing the pattern is determined when the user presses the pattern, and the pressing parameter includes a pressing force value and a pressing order, and the pressing parameter is
  • the preset pressing parameters are matched to increase the difficulty of deciphering and improve the security of the terminal.
  • FIG. 2 is a schematic flow chart of a second embodiment of a method for unlocking a pattern according to an embodiment of the present invention.
  • the method for unlocking a pattern described in this embodiment includes the following steps:
  • M patterns when the terminal is in the awake state, M patterns may be displayed on the touch screen, wherein the M patterns may be N-type patterns, N is an integer greater than 1, and M is an integer greater than N.
  • each type of pattern in the N-type pattern includes at least one pattern, and in the case where the i-th pattern includes a plurality of patterns, the plurality of patterns may be partially the same or different from each other.
  • the M patterns are from a network picture, a picture taken by a camera of the user using the terminal, a system picture or a user-defined pattern.
  • the M patterns may be derived from K patterns, and in the state in which the terminal is awakened, M patterns of the K patterns are displayed, and K is an integer greater than M.
  • the terminal may display the M patterns in a preset order, and the preset order may be a random order, a fixed order, or a plurality of different pattern display sequences respectively displayed at every preset time or at different occasions.
  • S202 Determine a pressing parameter of a P pattern in a K-type pattern in the N-type pattern, where the pressing parameter includes P pressing force values and a pressing order corresponding to the P patterns, and the P patterns At least one of each of the K-type patterns is included, the K being an integer greater than 1 and less than the N.
  • the terminal may select P patterns from the N-type patterns, the P patterns are from the K-type pattern in the N-type pattern, and the P is an integer greater than or equal to K, that is, the P patterns include at least the K-type
  • the terminal may generate a pressing parameter according to a preset manner by pressing the P pressing parameters obtained by pressing the P patterns. For example, the P pressing parameters may be averaged to obtain a check value as a pressing parameter of the P patterns.
  • the pressing parameter may include P pressing force values and a pressing order corresponding to the P patterns, wherein the P pressing force values are in one-to-one correspondence with the pressing operations of pressing the P patterns, that is, pressing the P patterns.
  • the pattern i in the middle can generate a pressing force value.
  • the terminal may perform the average operation of the P pressing force values to obtain the check value.
  • the terminal may determine a maximum pressing force value and a minimum pressing force value among the P pressing force values, and perform a variance calculation on the remaining pressing force values of the P pressing force values to obtain a check value.
  • the preset rule is not limited to the above two ways of obtaining the check value.
  • the terminal may also separately encode P pressing force values to obtain a check value.
  • the pressing force value corresponds to five codes of A1-A5, the pressing force value is greater than 0 cattle and less than 12 cattle corresponding to A1, the pressing force value is greater than or equal to 12 cattle and less than 24 cattle corresponding to A2, pressing force The value is greater than or equal to 24 cattle and less than 36 cattle corresponding to A3, the pressing force value is greater than or equal to 36 cattle and less than 48 cattle corresponding to A4, and the pressing force value is greater than or equal to 48 cattle corresponding to A5, then in the case of P being 3, 3
  • the pressing force values are: 8 cattle, 24 cattle, 48 For cattle, the check value is A1A2A5.
  • the terminal may compare the check value with the preset interval, and determine whether the check value is in the preset interval, where the preset interval is a preset interval corresponding to the P value of the pressing force value.
  • the preset interval can be a range value. For example, if the check value is 5 and the interval range is [4, 8], the check value is in the preset interval.
  • the terminal may compare the pressing sequence with the preset pressing sequence to determine whether the two are consistent, for example, the pressing order is ABCDE, and the preset pressing order is BACDE, the two are inconsistent, and the preset pressing order is In the case of ABCDE, the pressing order is the same as the preset pressing order.
  • the preset interval may be a fixed value, that is, the check value is equal to the fixed value, or the check value is to satisfy a certain relationship with the fixed value.
  • the check value may be divisible by the fixed value, or the product of the check value and the fixed value may satisfy a preset threshold.
  • the terminal when the pressing parameter and the preset pressing parameter are successfully matched, the terminal can be unlocked, so that the terminal enters a normal display interface, and the normal display interface can display a shortcut of each application in the terminal.
  • the user is prompted to perform the unlocking again; further, if the user is in the preset number of times or the preset time, the pressing parameter and the preset pressing parameter are If the match is still unsuccessful, the terminal enters the shutdown state.
  • the terminal may further perform the following steps, that is, the terminal may first determine the P pressing force values and the preset P pressing strengths. Whether the values match; if the result of the determination is yes, the terminal determines whether the pressing order is consistent with the preset pressing order. Further, the terminal may first determine whether the P pressing force values match the preset P pressing force values; if the result of the determination is no, the terminal prompts the user to perform the pressing operation again. Optionally, the terminal determines whether the pressing sequence is consistent with the preset pressing sequence. If yes, the terminal performs an unlocking operation. If not, the terminal prompts the user to perform a pressing operation again.
  • the terminal can display the classified pattern on the touch screen in the terminal unlock state, and determine the pressing parameter corresponding to pressing the pattern when the user presses the pattern, and the pressing parameter includes pressing a pressure value and a pressing sequence, and calculating the pressing force value according to a preset rule to obtain a check value, and finally, matching the check value and the pressing order with the preset check value and the preset pressing order, and further Increased the difficulty of deciphering and improved the security of the terminal.
  • FIG. 3 is a schematic flowchart diagram of a third embodiment of a method for unlocking a pattern according to an embodiment of the present invention.
  • the method for unlocking a pattern described in this embodiment includes the following steps:
  • M patterns when the terminal is in the awake state, M patterns may be displayed on the touch screen, wherein the M patterns may be N-type patterns, N is an integer greater than 1, and M is an integer greater than N.
  • each type of pattern in the N-type pattern includes at least one pattern, and in the case where the i-th pattern includes a plurality of patterns, the plurality of patterns may be partially the same or different from each other.
  • the M patterns are from a network picture, a picture taken by a camera of the user using the terminal, a system picture or a user-defined pattern.
  • the M patterns may be derived from K patterns, and in the state in which the terminal is awakened, M patterns of the K patterns are displayed, and K is an integer greater than M.
  • the terminal may display the M patterns in a preset order, and the preset order may be displayed in a random order, a fixed order, or a plurality of different display sequences at every preset time or at different occasions.
  • the terminal when detecting that the user performs a pressing operation on the touch screen, the terminal may determine the position of the pattern pressed by the user through the position detection, and use the pressure sensor under the touch screen to detect the pressing force value of the position of the pattern pressed by the user, and simultaneously acquire The category identifier corresponding to the pattern, the category identifier is used by the user to mark the class name of the pattern. Further, the terminal acquires P velocity values of P patterns and K class identifiers corresponding to P patterns in the K-type pattern in the N-type pattern, wherein the N-type pattern corresponds to the N category identification codes one-to-one .
  • the four types of patterns include a first type of pattern, a second type of pattern, a third type of pattern, and a fourth type of pattern.
  • the category identification code of the first type of pattern is X1
  • the category identification code of the second type of pattern is X2
  • the category identification code of the third type of pattern is X3
  • the category identification code of the fourth type of pattern is X4.
  • the terminal may quantize the P velocity values according to a mapping relationship between the preset velocity values and the pressing velocity values, thereby obtaining P pressing velocity values.
  • the pressing force value can be divided into 1-5 five pressing force values
  • the strength value is greater than 0 cattle and less than 12 cattle corresponding to the pressing force value 1
  • the velocity value is greater than or equal to 12 cattle and less than 24 cattle corresponding to the pressing force value 2
  • the strength The value is greater than or equal to 24 cattle and less than 36 cattle corresponding to the pressing force value of 3
  • the velocity value is greater than or equal to 36 cattle and less than 48 cattle corresponding to the pressing force value of 4
  • the velocity value is greater than or equal to 48 cattle corresponding to the pressing force value of 5
  • the velocity value is 23, the corresponding pressing force value is 2.
  • the terminal may generate a character string in the order of pressing the P class identifiers, and the string may be used as the pressing sequence corresponding to the P patterns.
  • the 4 types of patterns have 4 category identification codes
  • the 4 types of patterns include the first type of patterns, the second type of patterns, the third type of patterns, and the fourth type of patterns.
  • the category identification of the first type of pattern is coded as X1
  • the category identification code of the second type of pattern is X2
  • the category identification code of the third type of pattern is X3
  • the category identification code of the fourth type of pattern is X4.
  • the terminal may determine whether the pressing parameter is in a range of the preset pressing parameter.
  • the pressing parameter is a set of pressing parameters
  • the set of pressing parameters includes a plurality of parameters, and the terminal may match each of the pressing parameters to a parameter corresponding to the preset pressing parameter.
  • the terminal when the pressing parameter and the preset pressing parameter are successfully matched, the terminal can be unlocked, so that the terminal enters a normal display interface, and the normal display interface can display a shortcut of each application in the terminal.
  • the user is prompted to perform the unlocking again; further, if the user is in the preset number of times or the preset time, the pressing parameter and the preset pressing parameter are If the match is still unsuccessful, the terminal enters the shutdown state.
  • the terminal can display the classified pattern on the touch screen in the terminal unlock state, and determine the pressing parameter corresponding to the pressing operation when the user presses the pattern, and the pressing parameter includes the pressing force value and the pressing order, and the user
  • the force generated during the pressing process is quantized to obtain a pressing force value, and the category identification code of the pressed pattern is obtained, and the category identification code is generated according to a preset manner to obtain a pressing sequence, and finally, the pressing force value is obtained.
  • the pressing sequence is matched with the preset pressing force value and the preset pressing sequence, thereby increasing the difficulty of deciphering and improving the security of the terminal.
  • FIG. 4 is a schematic flowchart diagram of a fourth embodiment of a method for unlocking a pattern according to an embodiment of the present invention.
  • the method for unlocking a pattern described in this embodiment includes the following steps:
  • M patterns when the terminal is in the awake state, M patterns may be displayed on the touch screen, wherein the M patterns may be N-type patterns, N is an integer greater than 1, and M is an integer greater than N.
  • each type of pattern in the N-type pattern includes at least one pattern, and in the case where the i-th pattern includes a plurality of patterns, the plurality of patterns may be partially the same or different from each other.
  • the M patterns are from a network picture, a picture taken by a camera of the user using the terminal, a system picture or a user-defined pattern.
  • the M patterns may be derived from K patterns, and in the state in which the terminal is awakened, M patterns of the K patterns are displayed, and K is an integer greater than M.
  • the terminal may display the M patterns in a preset order, and the preset order may be a random order,
  • the fixed order or sets of different display sequences are displayed at regular intervals or at different occasions.
  • S402. Determine a pressing parameter of a P pattern in a K-type pattern in the N-type pattern, where the pressing parameter includes P pressing force values and a pressing order corresponding to the P patterns, the P patterns At least one of each of the K-type patterns is included, the K being an integer greater than 1 and less than the N.
  • steps S401 to S404 For a detailed description of steps S401 to S404, refer to the specific description of step S101 to step S104 in FIG.
  • the terminal enters the lock screen state again, if it is detected that the user wakes up the terminal within a preset time length, the first pattern is displayed on the touch screen of the terminal.
  • the terminal may not detect that the user enters the lock screen state under the screen of the terminal within a certain period of time, and if the user detects that the user wakes up the terminal within a preset time length,
  • the first pattern may be displayed on the display interface of the terminal, and the first pattern may be a pattern.
  • the preset length of time may include, but is not limited to, 10 seconds, 30 seconds, 1 minute, 10 minutes, and the like.
  • the M patterns are displayed on the touch screen of the terminal, wherein the first The preset time length is longer than the preset time length, and the M patterns may include a N-type pattern, and N is an integer greater than 1.
  • a first pressing parameter corresponding to the pressing operation may be acquired, and the first pressing parameter may be a pressing time or a pressing force value.
  • the terminal may determine whether the pressing time is greater than a preset pressing time; if the first pressing parameter is a pressing force value, the terminal may determine the pressing force value. Whether it is in the preset range.
  • the second pattern may be a pattern of another shape of the first pattern, for example, the first pattern is a flower bone, and the second pattern is a state when the flower bone blooms.
  • the classified pattern may be displayed on the touch screen in the unlock state of the terminal, and the pressing parameter corresponding to the pressing operation is determined when the user presses the pattern, and the pressing parameter includes a pressing force value and a pressing sequence, and the pressing parameter and the pressing parameter are The pressing parameters are matched to increase the difficulty of deciphering and improve the security of the terminal.
  • the terminal displays the first pattern when the wake-up operation is detected within the preset time in the state of the lock screen, and obtains the first pressing parameter of the user for the pattern, and the first pressing parameter setting is relatively simple, so as to avoid During the user's use of the terminal, the user can unlock the faster time within the preset time period after the lock screen.
  • 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 display unit 501, a determining unit 502, a matching unit 503, and an unlocking unit 504. ,details as follows:
  • the display unit 501 is configured to display M patterns on the touch screen of the terminal when the terminal is in the awake state, wherein the M patterns include a N-type pattern, and the N is an integer greater than 1, the M Is an integer greater than the N.
  • a determining unit 502 configured to determine a pressing parameter of a P pattern in a K-type pattern in the N-type pattern, where the pressing parameter includes P pressing force values and a pressing order corresponding to the P patterns,
  • the P patterns include at least one of each of the K-type patterns, and the K is an integer greater than 1 and less than N.
  • the matching unit 503 is configured to match the pressing parameter determined by the determining unit 502 with the preset pressing parameter.
  • the unlocking unit 504 is configured to perform an unlocking operation on the terminal if the matching result of the matching unit 503 is that the pressing parameter and the preset pressing parameter are successfully matched.
  • the matching unit 503 of the terminal described in FIG. 5a includes:
  • the calculating unit 5031 is configured to calculate the P pressing force values determined by the determining unit 502 according to a preset rule to obtain a target pressing force value.
  • the first determining unit 5032 is configured to determine whether the target pressing force value calculated by the calculating unit 5031 is in a preset interval and whether the pressing sequence is consistent with a preset pressing sequence.
  • the calculating unit 5031 is specifically configured to:
  • a variance of a pressing force value other than the maximum pressing force value and the minimum pressing force value among the P pressing force values is used as a check value.
  • the matching unit 503 of the terminal described in FIG. 5a includes:
  • the second determining unit 5033 is configured to determine whether the P pressing force values match the preset P pressing strength values
  • the third determining unit 5034 is configured to determine whether the pressing sequence is consistent with the preset pressing sequence if the determination result of the second determining unit 5033 is YES.
  • the determining unit 502 of the terminal described in FIG. 5a includes:
  • a first acquiring unit 5021 configured to acquire P velocity values of P patterns in the K-type pattern in the N-type pattern and P class identifiers corresponding to the P patterns, wherein the N-type pattern One-to-one correspondence with N category identification codes;
  • the processing unit 5022 is configured to quantize the P velocity values acquired by the first acquiring unit 5021 according to a mapping relationship between a preset velocity value and a pressing velocity value, to obtain P pressing velocity values;
  • the determining sub-unit 5023 is configured to generate a character string according to a preset manner by the P class identifiers acquired by the first acquiring unit 5021, and determine a pressing order corresponding to the P patterns based on the character string.
  • the combining unit 5024 is configured to combine the P pressing force values obtained by the processing unit and the pressing order corresponding to the P patterns determined by the determining subunit into the pressing parameters of the P patterns.
  • the terminal described in FIG. 5a may further include:
  • the display unit 505 is configured to display the first pattern on the touch screen of the terminal if the user detects that the user wakes up the terminal within a preset time length when the terminal enters the lock screen state again. ;
  • a second acquiring unit 506, configured to acquire a first pressing parameter of the user for the first pattern
  • the fourth determining unit 507 is configured to determine whether the first pressing parameter acquired by the second acquiring unit 506 meets a preset threshold
  • the unlocking unit 504 is configured to perform an unlocking operation on the terminal if the determination result of the fourth determining unit 507 is yes, and display the second pattern on the screen of the unlocked terminal.
  • the terminal described in the embodiment of the present invention may display M patterns on the touch screen of the terminal when the terminal is in the awake state, where the M patterns include a N-type pattern, and the N is an integer greater than 1.
  • the M is an integer greater than N; determining a pressing parameter of the user for the P patterns in the K-type pattern in the N-type pattern, the pressing parameter including P pressing force values and pressing corresponding to the P patterns
  • the P patterns include at least one of each of the K-type patterns, the K being an integer greater than 1 and less than N; matching the pressing parameter with a preset pressing parameter; In the case that the pressing parameter and the preset pressing parameter are successfully matched, the terminal is unlocked.
  • the classified pattern can be displayed on the touch screen in the unlock state of the terminal, and the pressing parameter of the user is obtained, and the parameter includes the pressing force value and the pressing sequence, and the pressing parameter is matched with the preset pressing parameter, thereby increasing the Deciphering the difficulty and improving 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 memory.
  • the program code stored in 4000 performs the following operations:
  • the processor 3000 is configured to:
  • M patterns are displayed on the touch screen of the terminal, wherein the M patterns include a N-type pattern, the N is an integer greater than 1, and the M is greater than the N Integer
  • the pressing parameter includes P pressing force values and a pressing order corresponding to the P patterns, the P patterns including at least a pattern in each of the K-type patterns, wherein K is an integer greater than 1 and less than the N;
  • the terminal is unlocked.
  • the processor 3000 matches the pressing parameter with a preset pressing parameter, specifically:
  • the processor 3000 calculates the P pressing force values according to a preset rule to obtain a check value, including:
  • the processor 3000 matches the pressing parameter with a preset pressing parameter, specifically:
  • the processor 3000 determines, according to a user, a pressing parameter of the P patterns in the K-type pattern in the N-type pattern, specifically:
  • P pressing force values and pressing order corresponding to the P patterns are combined into pressing parameters of the P patterns.
  • the processor 3000 is further configured to:
  • the terminal is unlocked, and the second pattern is displayed on the screen of the unlocked terminal.
  • the terminal described in the embodiment of the present invention may display M patterns on the touch screen of the terminal when the terminal is in the awake state, where the M patterns include a N-type pattern, and the N is an integer greater than 1.
  • the M is an integer greater than N; determining a pressing parameter of the user for the P patterns in the K-type pattern in the N-type pattern, the pressing parameter including P pressing force values and pressing corresponding to the P patterns
  • the P patterns include at least one of each of the K-type patterns, the K being an integer greater than 1 and less than N; matching the pressing parameter with a preset pressing parameter; In the case that the pressing parameter and the preset pressing parameter are successfully matched, the terminal is unlocked.
  • the classified pattern can be displayed on the touch screen in the unlock state of the terminal, and the pressing parameter of the user is obtained, and the parameter includes the pressing force value and the pressing sequence, and the pressing parameter is matched with the preset pressing parameter, thereby increasing the Deciphering the difficulty and improving 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 when the program is executed, the method includes any one of the pattern unlocking methods described in the foregoing method embodiments. Part or all of the steps of the law.
  • 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.
  • the components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. 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.
  • a computer device which may be a personal computer, server or network device, etc., and in particular a processor in a computer device
  • the foregoing storage medium may include: a U disk, a mobile hard disk, a magnetic disk, an optical disk, a read only memory (English: Read-Only Memory, abbreviation: ROM) or a random access memory (English: Random Access Memory, abbreviation: RAM) and other media that can store program code.

Landscapes

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

Abstract

A pattern unlocking method and a terminal, the method comprising: when a terminal is in an awakened state, displaying M patterns on a touch screen of the terminal, the M patterns comprising N pattern types, N being an integer greater than 1, M being an integer greater than N (S101); determining press parameters of a user with regard to P patterns within K pattern types within the N pattern types, the press parameters comprising P press strength values and a corresponding press sequence of the P patterns, the P patterns at least including one pattern within each type within the K pattern types, K being an integer greater than 1 and less than N (S102); matching the press parameters with preset press parameters (S103); if the matching of the press parameters with the preset press parameters is successful, performing an unlocking operation on the terminal (S104). Matching the press parameters including the press strength values and the press sequence with the preset press parameters increases the difficulty of cracking, and increases the security of the terminal.

Description

一种图案解锁的方法及终端Method and terminal for unlocking pattern

本发明要求2015年8月27日递交的发明名称为“一种图案解锁的方法及终端”的申请号201510543359.8的在先申请优先权,上述在先申请的内容以引入的方式并入本文本中。The present invention claims priority to the prior application of the application No. 201510543359.8, entitled "A Method and Terminal for Unlocking a Pattern", filed on August 27, 2015, the contents of which are incorporated herein by reference. .

技术领域Technical field

本发明实施例涉及电子设备技术领域,尤其涉及到一种图案解锁的方法及终端。Embodiments of the present invention relate to the field of electronic device technologies, and in particular, to a method and a terminal for unlocking a pattern.

背景技术Background technique

随着科技的发展,终端(如手机、平板电脑、智能穿戴设备等等)越来越普及,同时,功能也越来越强大,已从一种单纯的通信工具演变成为一种集成多功能的电子便携设备,随着终端承载的应用越来越多,其安全性问题也成为用户购买终端时候一个主要衡量指标。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.

生活中,在对终端中的文件进行解密的时候,主流的图案解码往往是九宫格形式的解锁图案,该九宫格可分为两种形式,一种九宫格下方是数字,用户触摸相应的数字便可解锁,另一种形式是展示九个点,用户滑动轨迹,滑动有效的图案便可解锁,这两种形式,由于密码较为简单且用户滑动过程中,很容易被旁人窥视到密码,因而,容易造成密码泄露。In life, when decrypting files in the terminal, the mainstream pattern decoding is often an unlock pattern in the form of a nine-square grid. The nine-square grid can be divided into two forms. One is below the nine-square grid, and the user can unlock by touching the corresponding number. Another form is to display nine points, the user slides the trajectory, and the effective pattern can be unlocked. In both forms, since the password is relatively simple and the user slides, it is easy for others to peek into the password, thus easily causing The password is leaked.

发明内容Summary of the invention

本发明实施例提供了一种图案解锁的方法及终端,以期提高终端的安全性。The embodiment of the invention provides a method and a terminal for unlocking a pattern, so as to improve the security of the terminal.

本发明实施例第一方面公开了一种图案解锁的方法,包括:A first aspect of the embodiments of the present invention discloses a method for unlocking a pattern, including:

在终端处于被唤醒状态时,在所述终端的触摸屏上展示M个图案,其中,所述M个图案包括N类图案,所述N为大于1的整数,所述M为大于所述N的整数;When the terminal is in the awake state, M patterns are displayed on the touch screen of the terminal, wherein the M patterns include a N-type pattern, the N is an integer greater than 1, and the M is greater than the N Integer

确定用户针对所述N类图案中的K类图案中的P个图案的按压参数,所 述按压参数包括P个按压力度值和所述P个图案对应的按压顺序,所述P个图案至少包含所述K类图案中每一类中的一个图案,所述K为大于1且小于所述N的整数;Determining a user's pressing parameters for P patterns in the K-type pattern in the N-type pattern, The pressing parameter includes P pressing force values and a pressing order corresponding to the P patterns, the P patterns including at least one of each of the K-type patterns, the K being greater than 1 and less than An integer of N;

将所述按压参数与预设按压参数进行匹配;Matching the pressing parameter with a preset pressing parameter;

在所述按压参数和所述预设按压参数匹配成功的情况下,对所述终端进行解锁操作。And in the case that the pressing parameter and the preset pressing parameter are successfully matched, the terminal is unlocked.

结合第一方面,在第一方面的第一种可能的实施方式中,所述将所述按压参数与预设按压参数进行匹配,包括:In conjunction with the first aspect, in a first possible implementation manner of the first aspect, the matching the pressing parameter with the preset pressing parameter comprises:

将所述P个按压力度值按照预设规则进行计算,以得到校验值;And calculating the P pressing force values according to a preset rule to obtain a check value;

判断所述校验值是否处于预设区间和所述按压顺序是否与预设按压顺序一致。Determining whether the check value is in a preset interval and whether the pressing sequence is consistent with a preset pressing sequence.

结合第一方面的第一种可能的实施方式,在第一方面的第二种可能的实施方式中,所述将所述P个按压力度值按照预设规则进行计算,以得到校验值,包括:With reference to the first possible implementation manner of the first aspect, in a second possible implementation manner of the first aspect, the P pressing force values are calculated according to a preset rule to obtain a check value, include:

将所述P个按压力度值的均值作为校验值;And using the average value of the P pressing force values as a check value;

或者,or,

将所述P个按压力度值中的最大按压力度值和最小按压力度值以外的按压力度值的方差作为校验值Using the variance of the pressing force value other than the maximum pressing force value and the minimum pressing force value among the P pressing force values as a check value

结合第一方面,在第一方面的第三种可能的实施方式中,所述将所述按压参数与所述预设按压参数进行匹配,包括:In conjunction with the first aspect, in a third possible implementation manner of the first aspect, the matching the pressing parameter with the preset pressing parameter comprises:

判断所述P个按压力度值与预设的P个按压力度值是否匹配;Determining whether the P pressing force values match the preset P pressing force values;

若是,则判断所述按压顺序是否与预设按压顺序一致。If yes, it is determined whether the pressing sequence is consistent with the preset pressing sequence.

结合第一方面,在第一方面的第四种可能的实施方式中,所述确定用户针对所述N类图案中的K类图案中的P个图案的按压参数,包括:With reference to the first aspect, in a fourth possible implementation manner of the first aspect, the determining, by the user, a pressing parameter of the P patterns in the K-type pattern in the N-type pattern includes:

获取所述N类图案中的K类图案中的P个图案的P个力度值和所述P个图案对应的P个类别识别码,其中,所述N类图案与N个类别识别码一一对应;Obtaining P velocity values of P patterns in the K-type pattern in the N-type pattern and P class identification codes corresponding to the P patterns, wherein the N-type pattern and the N category identification codes are one by one correspond;

将所述P个力度值按照预设的力度值与按压力度值之间的映射关系进行量化处理,以得到P个按压力度值; And dividing the P velocity values according to a mapping relationship between a preset velocity value and a pressing velocity value to obtain P pressing force values;

将所述P个类别识别码按照预设方式生成字符串,并基于所述字符串确定所述P个图案对应的按压顺序;Generating a character string according to a preset manner, and determining a pressing order corresponding to the P patterns based on the character string;

将所述P个图案对应的P个按压力度值和按压顺序组合成所述P个图案的按压参数。P pressing force values and pressing order corresponding to the P patterns are combined into pressing parameters of the P patterns.

结合第一方面、第一方面的第一种可能的实施方式至第一方面的第四种任一种可能的实施方式,在第一方面的第五种可能的实施方式中,在所述终端再次进入锁屏状态的情况下,所述对所述终端进行解锁操作之后,所述方法还包括:With reference to the first aspect, the first possible implementation manner of the first aspect, the fourth possible implementation manner of the first aspect, in the fifth possible implementation manner of the first aspect, After the unlocking operation is performed on the terminal, the method further includes:

若检测到所述用户在预设时间长度内对所述终端进行唤醒操作,在所述终端的触摸屏上展示第一图案;If it is detected that the user wakes up the terminal within a preset time length, displaying the first pattern on the touch screen of the terminal;

获取所述用户针对所述第一图案的第一按压参数;Obtaining a first pressing parameter of the user for the first pattern;

判断所述第一按压参数是否满足预设阈值;Determining whether the first pressing parameter meets a preset threshold;

若是,对所述终端进行解锁操作,并在解锁后的终端的屏幕上展示第二图案。If yes, the terminal is unlocked, and the second pattern is displayed on the screen of the unlocked terminal.

本发明实施例第二方面公开了一种终端,包括:A second aspect of the embodiment of the present invention discloses a terminal, including:

展示单元,用于在终端处于被唤醒状态时,在所述终端的触摸屏上展示M个图案,其中,所述M个图案包括N类图案,所述N为大于1的整数,所述M为大于所述N的整数;a display unit, configured to display M patterns on the touch screen of the terminal when the terminal is in the awake state, wherein the M patterns include a N-type pattern, the N is an integer greater than 1, and the M is An integer greater than the N;

确定单元,用于确定用户针对所述N类图案中的K类图案中的P个图案的按压参数,所述按压参数包括所述P个图案对应的P个按压力度值和按压顺序,所述P个图案至少包含所述K类图案中每一类中的一个图案,所述K为大于1且小于所述N的整数;a determining unit, configured to determine a pressing parameter of a P pattern in the K-type pattern in the N-type pattern, the pressing parameter includes P pressing force values and a pressing order corresponding to the P patterns, The P patterns include at least one of each of the K-type patterns, the K being an integer greater than 1 and less than the N;

匹配单元,用于将所述确定单元确定的按压参数与预设按压参数进行匹配;a matching unit, configured to match a pressing parameter determined by the determining unit with a preset pressing parameter;

解锁单元,用于在所述匹配单元的匹配结果为所述按压参数和所述预设按压参数匹配成功的情况下,对所述终端进行解锁操作。And an unlocking unit, configured to perform an unlocking operation on the terminal if the matching result of the matching unit is that the pressing parameter and the preset pressing parameter are successfully matched.

结合第二方面,在第二方面的第一种可能的实施方式中,所述匹配单元包括:In conjunction with the second aspect, in a first possible implementation manner of the second aspect, the matching unit includes:

计算单元,用于将所述确定单元确定的P个按压力度值按照预设规则进行计算,以得到目标按压力度值; a calculating unit, configured to calculate, according to a preset rule, the P pressing force values determined by the determining unit to obtain a target pressing force value;

第一判断单元,用于判断所述计算单元计算得到的目标按压力度值是否处于预设区间和所述按压顺序是否与预设按压顺序一致。The first determining unit is configured to determine whether the target pressing force value calculated by the calculating unit is in a preset interval and whether the pressing sequence is consistent with a preset pressing sequence.

结合第二方面的第一种可能的实施方式,在第二方面的第二种可能的实施方式中,所述计算单元具体用于:In conjunction with the first possible implementation of the second aspect, in a second possible implementation of the second aspect, the calculating unit is specifically configured to:

将所述P个按压力度值的均值作为校验值;And using the average value of the P pressing force values as a check value;

或者,or,

将所述P个按压力度值中的最大按压力度值和最小按压力度值以外的按压力度值的方差作为校验值。A variance of a pressing force value other than the maximum pressing force value and the minimum pressing force value among the P pressing force values is used as a check value.

结合第二方面,在第二方面的第三种可能的实施方式中,所述匹配单元包括:In conjunction with the second aspect, in a third possible implementation manner of the second aspect, the matching unit includes:

第二判断单元,用于判断所述P个按压力度值与预设的P个按压力度值是否匹配;a second determining unit, configured to determine whether the P pressing force values and the preset P pressing strength values match;

第三判断单元,用于若所述第二判断单元的判断结果为是,则判断所述按压顺序是否与预设按压顺序一致。The third determining unit is configured to determine, if the determination result of the second determining unit is yes, whether the pressing sequence is consistent with the preset pressing order.

结合第二方面,在第二方面的第三种可能的实施方式中,所述确定单元包括:With reference to the second aspect, in a third possible implementation manner of the second aspect, the determining unit includes:

第一获取单元,用于获取所述N类图案中的K类图案中的P个图案的P个力度值和所述P个图案对应的P个类别识别码,其中,所述N类图案与N个类别识别码一一对应;a first acquiring unit, configured to acquire P velocity values of P patterns in the K-type pattern in the N-type pattern and P class identifiers corresponding to the P patterns, wherein the N-type pattern and N category identification codes are in one-to-one correspondence;

处理单元,用于将所述第一获取单元获取到的P个力度值按照预设的力度值与按压力度值之间的映射关系进行量化处理,以得到P个按压力度值;a processing unit, configured to quantize the P velocity values acquired by the first acquiring unit according to a mapping relationship between a preset velocity value and a pressing velocity value, to obtain P pressing velocity values;

确定子单元,用于将所述第一获取单元获取到的P个类别识别码按照预设方式生成字符串,并基于所述字符串确定所述P个图案对应的按压顺序。a determining subunit, configured to generate a character string according to a preset manner by the P class identifiers acquired by the first acquiring unit, and determine a pressing order corresponding to the P patterns based on the character string.

组合单元,用于将所述处理单元处理得到的P个按压力度值和所述确定子单元确定的所述P个图案对应的按压顺序组合成所述P个图案的按压参数。a combining unit configured to combine the P pressing force values obtained by the processing unit and the pressing order corresponding to the P patterns determined by the determining subunit into a pressing parameter of the P patterns.

结合第二方面或第二方面的第一种至第四种中任一种可能的实施方式,在第二方面的第五种可能的实施方式中,所述终端还包括:With reference to the second aspect, or any one of the first to the fourth aspect of the second aspect, in the fifth possible implementation manner of the second aspect, the terminal further includes:

显示单元,用于在所述终端再次进入锁屏状态的情况下,若检测到用户在预设时间长度内对所述终端进行唤醒操作,在所述终端的触摸屏上展示第一图 案;a display unit, configured to display the first image on the touch screen of the terminal if the user detects that the user wakes up the terminal within a preset time length when the terminal enters the lock screen state again. case;

第二获取单元,用于获取用户针对所述第一图案的第一按压参数;a second acquiring unit, configured to acquire a first pressing parameter of the user for the first pattern;

第四判断单元,用于判断所述第二获取单元获取到的第一按压参数是否满足预设阈值;a fourth determining unit, configured to determine whether the first pressing parameter acquired by the second acquiring unit meets a preset threshold;

解锁单元,用于若所述第四判断单元的判断结果为是,对所述终端进行解锁操作,并在解锁后的终端的屏幕上展示第二图案。And an unlocking unit, configured to: if the determination result of the fourth determining unit is yes, perform an unlocking operation on the terminal, and display a second pattern on a screen of the unlocked terminal.

本发明实施例第三方面公开了一种终端,包括: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:

在终端处于被唤醒状态时,在所述终端的触摸屏上展示M个图案,其中,所述M个图案包括N类图案,所述N为大于1的整数,所述M为大于所述N的整数;When the terminal is in the awake state, M patterns are displayed on the touch screen of the terminal, wherein the M patterns include a N-type pattern, the N is an integer greater than 1, and the M is greater than the N Integer

确定用户针对所述N类图案中的K类图案中的P个图案的按压参数,所述按压参数包括P个按压力度值和所述P个图案对应的按压顺序,所述P个图案至少包含所述K类图案中每一类中的一个图案,所述K为大于1且小于所述N的整数;Determining, by the user, a pressing parameter of P patterns in the K-type pattern in the N-type pattern, the pressing parameter includes P pressing force values and a pressing order corresponding to the P patterns, the P patterns including at least a pattern in each of the K-type patterns, wherein K is an integer greater than 1 and less than the N;

将所述按压参数与预设按压参数进行匹配;Matching the pressing parameter with a preset pressing parameter;

在所述按压参数和所述预设按压参数匹配成功的情况下,对所述终端进行解锁操作。And in the case that the pressing parameter and the preset pressing parameter are successfully matched, the terminal is unlocked.

结合第三方面,在第三方面的第一种可能的实施方式中,所述将所述按压参数与预设按压参数进行匹配,包括:In conjunction with the third aspect, in a first possible implementation manner of the third aspect, the matching the pressing parameter with the preset pressing parameter comprises:

将所述P个按压力度值按照预设规则进行计算,以得到校验值;And calculating the P pressing force values according to a preset rule to obtain a check value;

判断所述校验值是否处于预设区间和所述按压顺序是否与预设按压顺序一致。Determining whether the check value is in a preset interval and whether the pressing sequence is consistent with a preset pressing sequence.

结合第三方面的第一种可能的实施方式,在第三方面的第二种可能的实施方式中,所述将所述P个按压力度值按照预设规则进行计算,以得到校验值,包括:With reference to the first possible implementation manner of the third aspect, in a second possible implementation manner of the third aspect, the P pressing force values are calculated according to a preset rule to obtain a check value, include:

将所述P个按压力度值的均值作为校验值;And using the average value of the P pressing force values as a check value;

或者, Or,

将所述P个按压力度值中的最大按压力度值和最小按压力度值以外的按压力度值的方差作为校验值Using the variance of the pressing force value other than the maximum pressing force value and the minimum pressing force value among the P pressing force values as a check value

结合第三方面,在第三方面的第三种可能的实施方式中,所述将所述按压参数与所述预设按压参数进行匹配,包括:In conjunction with the third aspect, in a third possible implementation manner of the third aspect, the matching the pressing parameter with the preset pressing parameter comprises:

判断所述P个按压力度值与预设的P个按压力度值是否匹配;Determining whether the P pressing force values match the preset P pressing force values;

若是,则判断所述按压顺序是否与预设按压顺序一致。If yes, it is determined whether the pressing sequence is consistent with the preset pressing sequence.

结合第三方面,在第三方面的第四种可能的实施方式中,所述确定用户针对所述N类图案中的K类图案中的P个图案的按压参数,包括:With reference to the third aspect, in a fourth possible implementation manner of the third aspect, the determining, by the user, a pressing parameter of the P patterns in the K-type pattern in the N-type pattern includes:

获取所述N类图案中的K类图案中的P个图案的P个力度值和所述P个图案对应的P个类别识别码,其中,所述N类图案与N个类别识别码一一对应;Obtaining P velocity values of P patterns in the K-type pattern in the N-type pattern and P class identification codes corresponding to the P patterns, wherein the N-type pattern and the N category identification codes are one by one correspond;

将所述P个力度值按照预设的力度值与按压力度值之间的映射关系进行量化处理,以得到P个按压力度值;And dividing the P velocity values according to a mapping relationship between a preset velocity value and a pressing velocity value to obtain P pressing force values;

将所述P个类别识别码按照预设方式生成字符串,并基于所述字符串确定所述P个图案对应的按压顺序;Generating a character string according to a preset manner, and determining a pressing order corresponding to the P patterns based on the character string;

将所述P个图案对应的P个按压力度值和按压顺序组合成所述P个图案的按压参数。P pressing force values and pressing order corresponding to the P patterns are combined into pressing parameters of the P patterns.

结合第三方面、第三方面的第一种可能的实施方式至第三方面的第四种任一种可能的实施方式,在第三方面的第五种可能的实施方式中,在所述终端再次进入锁屏状态的情况下,所述对所述终端进行解锁操作之后,所述方法还包括:With reference to the third aspect, the first possible implementation manner of the third aspect, and the fourth possible implementation manner of the third aspect, in a fifth possible implementation manner of the third aspect, at the terminal After the unlocking operation is performed on the terminal, the method further includes:

若检测到所述用户在预设时间长度内对所述终端进行唤醒操作,在所述终端的触摸屏上展示第一图案;If it is detected that the user wakes up the terminal within a preset time length, displaying the first pattern on the touch screen of the terminal;

获取所述用户针对所述第一图案的第一按压参数;Obtaining a first pressing parameter of the user for the first pattern;

判断所述第一按压参数是否满足预设阈值;Determining whether the first pressing parameter meets a preset threshold;

若是,对所述终端进行解锁操作,并在解锁后的终端的屏幕上展示第二图案。 If yes, the terminal is unlocked, and the second pattern is displayed on the screen of the unlocked terminal.

本发明实施例第四方面提供了一种计算机存储介质,所述计算机存储介质中存储有计算机可执行指令,所述计算机可执行指令用于执行如本发明实施例第一方面或第一方面的任意可能实施方式中所描述的部分或全部步骤。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 first aspect or the first aspect of the embodiment of the present invention. Some or all of the steps described in any of the possible embodiments.

实施本发明实施例,具有如下有益效果:Embodiments of the present invention have the following beneficial effects:

本发明实施例在终端处于被唤醒状态时,在所述终端的触摸屏上展示M个图案,其中,所述M个图案包括N类图案,所述N为大于1的整数,所述M为大于N的整数;确定用户针对所述N类图案中的K类图案中的P个图案的按压参数,所述按压参数包括P个按压力度值和所述P个图案对应的按压顺序,所述P个图案至少包含所述K类图案中每一类中的一个图案,所述K为大于1且小于N的整数;将所述按压参数与预设按压参数进行匹配;在所述按压参数和预设按压参数匹配成功的情况下,对所述终端进行解锁操作。本实施例中,可在终端解锁状态下触摸屏上展示已分类图案,在用户按压图案时确定与按压该图案对应的按压参数,该按压参数包含按压力度值和按压顺序,并将该按压参数与预设按压参数进行匹配,加大了破译难度,提高了终端的安全性。In the embodiment of the present invention, when the terminal is in the awake state, M patterns are displayed on the touch screen of the terminal, wherein the M patterns include a N-type pattern, the N is an integer greater than 1, and the M is greater than An integer of N; determining a pressing parameter of the user for the P patterns in the K-type pattern in the N-type pattern, the pressing parameter including P pressing force values and a pressing order corresponding to the P patterns, the P The pattern includes at least one of each of the K-type patterns, the K being an integer greater than 1 and less than N; matching the pressing parameter with a preset pressing parameter; at the pressing parameter and the pre- If the pressing parameter is successfully matched, the terminal is unlocked. In this embodiment, the classified pattern may be displayed on the touch screen in the terminal unlock state, and the pressing parameter corresponding to pressing the pattern is determined when the user presses the pattern, and the pressing parameter includes a pressing force value and a pressing order, and the pressing parameter is The preset pressing parameters are matched to increase the difficulty of deciphering and improve the security of the terminal.

附图说明DRAWINGS

为了更清楚地说明本发明实施例中的技术方案,下面将对实施例、描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明实施例的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。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为本发明实施例提供的一种图案解锁的方法的第一实施例的流程示意图;1 is a schematic flowchart of a first embodiment of a method for unlocking a pattern according to an embodiment of the present invention;

图2为本发明实施例提供的一种图案解锁的方法的第二实施例的流程示意图;FIG. 2 is a schematic flowchart diagram of a second embodiment of a method for unlocking a pattern according to an embodiment of the present disclosure;

图3为本发明实施例提供的一种图案解锁的方法的第三实施例的流程示意图;FIG. 3 is a schematic flowchart diagram of a third embodiment of a method for unlocking a pattern 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 a pattern 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;

图5e为本发明实施例提供的一种终端的第一实施例的又一结构示意图;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.

具体实施方式detailed description

下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明实施例一部分实施例,而不是全部的实施例。基于本发明实施例中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明实施例保护的范围。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, 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 merely examples, not exhaustive, and include but are not limited to the above terminals.

本发明实施例结合图1至图6对本发明实施例提供的一种图案解锁的方法及终端进行描述。A method and a terminal for unlocking a pattern provided by an embodiment of the present invention are described in conjunction with FIG. 1 to FIG. 6 .

请参阅图1,图1是本发明实施例提供的一种图案解锁的方法的第一实施例流程示意图。本实施例中所描述的图案解锁的方法,包括以下步骤:Please refer to FIG. 1. FIG. 1 is a schematic flow chart of a first embodiment of a method for unlocking a pattern according to an embodiment of the present invention. The method for unlocking a pattern described in this embodiment includes the following steps:

S101、在终端处于被唤醒状态时,在所述终端的触摸屏上展示M个图案,其中,所述M个图案包括N类图案,所述N为大于1的整数,所述M为大于所述N的整数。S101. When the terminal is in the awake state, displaying M patterns on the touch screen of the terminal, where the M patterns include a N-type pattern, the N is an integer greater than 1, and the M is greater than the An integer of N.

具体实现中,在终端处于被唤醒状态时,在触摸屏上可展示M个图案,其中,该M个图案可为N类图案,N为大于1的整数,M为大于N的整数。In a specific implementation, when the terminal is in the awake state, M patterns may be displayed on the touch screen, wherein the M patterns may be N-type patterns, N is an integer greater than 1, and M is an integer greater than N.

可选地,N类图案中每一类图案至少包括一个图案,在第i类图案包括多 个图案的情况下,该多个图案可以部分相同,或者互不相同,其中,第i类图案为该N类图案中的任一类。Optionally, each type of pattern in the N-type pattern includes at least one pattern, and the pattern in the i-th type includes more In the case of a pattern, the plurality of patterns may be partially the same or different from each other, wherein the i-th pattern is any one of the N-type patterns.

进一步可选地,该M个图案中来自于网络图片、用户使用终端的摄像头拍摄的图片、系统图片或者用户自定义的图案。Further optionally, the M patterns are from a network picture, a picture taken by a camera of the user using the terminal, a system picture or a user-defined pattern.

进一步可选地,该M个图案可来自于K个图案,在终端被唤醒的状态下,展示该K个图案中的M个图案,K为大于M的整数。Further optionally, the M patterns may be derived from K patterns, and in the state in which the terminal is awakened, M patterns of the K patterns are displayed, and K is an integer greater than M.

可选地,终端可按照预设顺序展示该M个图案,预设顺序可为随机顺序、固定顺序或者几组不同的展示顺序分别在每隔预设时间或者在不同的场合展示。Optionally, the terminal may display the M patterns in a preset order, and the preset order may be displayed in a random order, a fixed order, or a plurality of different display sequences at every preset time or at different occasions.

S102、确定用户针对所述N类图案中的K类图案中的P个图案的按压参数,所述按压参数包括所述P个图案对应的P个按压力度值和按压顺序,所述P个图案至少包含所述K类图案中每一类中的一个图案,所述K为大于1且小于所述N的整数。S102. Determine a pressing parameter of a P pattern in a K-type pattern in the N-type pattern, where the pressing parameter includes P pressing force values and a pressing order corresponding to the P patterns, and the P patterns At least one of each of the K-type patterns is included, the K being an integer greater than 1 and less than the N.

具体实现中,终端可从N类图案中选择P个图案,该P个图案来自于N类图案中的K类图案,该P为大于或等于K的整数,即P个图案中至少包含K类图案中的每一类图案中的一个图案,在用户针对该P个图案进行按压时,可确定该P个图案对应的按压参数,该按压参数可包括1个按压参数。进一步地,终端可将按压P个图案得到的P个按压参数按照预设方式生成一个按压参数。例如,可将该P个按压参数求均值,以得到一个校验值,作为该P个图案的按压参数。In a specific implementation, the terminal may select P patterns from the N-type patterns, the P patterns are from the K-type pattern in the N-type pattern, and the P is an integer greater than or equal to K, that is, the P patterns include at least the K-type One of each of the patterns in the pattern, when the user presses the P patterns, may determine a pressing parameter corresponding to the P patterns, and the pressing parameter may include one pressing parameter. Further, the terminal may generate a pressing parameter according to a preset manner by pressing the P pressing parameters obtained by pressing the P patterns. For example, the P pressing parameters may be averaged to obtain a check value as a pressing parameter of the P patterns.

可选地,该按压参数可包括P个按压力度值和该P个图案对应的按压顺序,其中,P个按压力度值与该按压P个图案的按压操作一一对应,即按压该P个图案中的图案i可生成一个按压力度值,图案i为P个图案中的任一个。Optionally, the pressing parameter may include P pressing force values and a pressing order corresponding to the P patterns, wherein the P pressing force values are in one-to-one correspondence with the pressing operations of pressing the P patterns, that is, pressing the P patterns. The pattern i in the middle can generate a pressing force value, and the pattern i is any one of the P patterns.

S103、将所述按压参数与预设按压参数进行匹配。S103. Match the pressing parameter with a preset pressing parameter.

具体实现中,终端可判断按压参数是否处于预设按压参数的区间范围。可选地,在按压参数为一组按压参数时,该一组按压参数包含多个参数,终端可将按压参数中的每一个参数分别与预设按压参数对应的参数进行匹配。In a specific implementation, the terminal may determine whether the pressing parameter is in a range of the preset pressing parameter. Optionally, when the pressing parameter is a set of pressing parameters, the set of pressing parameters includes a plurality of parameters, and the terminal may match each of the pressing parameters to a parameter corresponding to the preset pressing parameter.

S104、在所述按压参数和所述预设按压参数匹配成功的情况下,对所述终端进行解锁操作。 S104. Perform an unlocking operation on the terminal if the pressing parameter and the preset pressing parameter are successfully matched.

具体实现中,在按压参数和预设按压参数匹配成功的情况下,可对终端进行解锁,从而,终端进入正常显示界面,该正常显示界面可显示终端中各个应用的快捷方式。In a specific implementation, when the pressing parameter and the preset pressing parameter are successfully matched, the terminal can be unlocked, so that the terminal enters a normal display interface, and the normal display interface can display a shortcut of each application in the terminal.

可选地,在所述按压参数和预设按压参数匹配不成功的情况下,提示用户再次进行解锁;进一步地,倘若用户在预设次数或者预设时间内,在按压参数和预设按压参数仍匹配不成功的情况下,该终端进入关机状态。Optionally, in a case that the pressing parameter and the preset pressing parameter match are unsuccessful, the user is prompted to perform the unlocking again; further, if the user is in the preset number of times or the preset time, the pressing parameter and the preset pressing parameter are If the match is still unsuccessful, the terminal enters the shutdown state.

本发明实施例在终端处于被唤醒状态时,在所述终端的触摸屏上展示M个图案,其中,所述M个图案包括N类图案,所述N为大于1的整数,所述M为大于N的整数;确定用户针对所述N类图案中的K类图案中的P个图案的按压参数,所述按压参数包括P个按压力度值和所述P个图案对应的按压顺序,所述P个图案至少包含所述K类图案中每一类中的一个图案,所述K为大于1且小于N的整数;将所述按压参数与预设按压参数进行匹配;在所述按压参数和预设按压参数匹配成功的情况下,对所述终端进行解锁操作。本实施例中,可在终端解锁状态下触摸屏上展示已分类图案,在用户按压图案时确定与按压该图案对应的按压参数,该按压参数包含按压力度值和按压顺序,并将该按压参数与预设按压参数进行匹配,加大了破译难度,提高了终端的安全性。In the embodiment of the present invention, when the terminal is in the awake state, M patterns are displayed on the touch screen of the terminal, wherein the M patterns include a N-type pattern, the N is an integer greater than 1, and the M is greater than An integer of N; determining a pressing parameter of the user for the P patterns in the K-type pattern in the N-type pattern, the pressing parameter including P pressing force values and a pressing order corresponding to the P patterns, the P The pattern includes at least one of each of the K-type patterns, the K being an integer greater than 1 and less than N; matching the pressing parameter with a preset pressing parameter; at the pressing parameter and the pre- If the pressing parameter is successfully matched, the terminal is unlocked. In this embodiment, the classified pattern may be displayed on the touch screen in the terminal unlock state, and the pressing parameter corresponding to pressing the pattern is determined when the user presses the pattern, and the pressing parameter includes a pressing force value and a pressing order, and the pressing parameter is The preset pressing parameters are matched to increase the difficulty of deciphering and improve the security of the terminal.

请参阅图2,图2是本发明实施例提供的一种图案解锁的方法的第二实施例流程示意图。本实施例中所描述的图案解锁的方法,包括以下步骤:Referring to FIG. 2, FIG. 2 is a schematic flow chart of a second embodiment of a method for unlocking a pattern according to an embodiment of the present invention. The method for unlocking a pattern described in this embodiment includes the following steps:

S201、在终端处于被唤醒状态时,在所述终端的触摸屏上展示M个图案,其中,所述M个图案包括N类图案,所述N为大于1的整数,所述M为大于所述N的整数。S201. When the terminal is in the awake state, displaying M patterns on the touch screen of the terminal, where the M patterns include a N-type pattern, the N is an integer greater than 1, and the M is greater than the An integer of N.

具体实现中,在终端处于被唤醒状态时,在触摸屏上可展示M个图案,其中,该M个图案可为N类图案,N为大于1的整数,M为大于N的整数。In a specific implementation, when the terminal is in the awake state, M patterns may be displayed on the touch screen, wherein the M patterns may be N-type patterns, N is an integer greater than 1, and M is an integer greater than N.

可选地,N类图案中每一类图案至少包括一个图案,在第i类图案包括多个图案的情况下,该多个图案可以部分相同,或者互不相同。Optionally, each type of pattern in the N-type pattern includes at least one pattern, and in the case where the i-th pattern includes a plurality of patterns, the plurality of patterns may be partially the same or different from each other.

进一步可选地,该M个图案中来自于网络图片、用户使用终端的摄像头拍摄的图片、系统图片或者用户自定义的图案。 Further optionally, the M patterns are from a network picture, a picture taken by a camera of the user using the terminal, a system picture or a user-defined pattern.

进一步可选地,该M个图案可来自于K个图案,在终端被唤醒的状态下,展示该K个图案中的M个图案,K为大于M的整数。Further optionally, the M patterns may be derived from K patterns, and in the state in which the terminal is awakened, M patterns of the K patterns are displayed, and K is an integer greater than M.

可选地,终端可按照预设顺序展示该M个图案,预设顺序可为随机顺序、固定顺序或者几组不同的图案展示顺序分别在每隔预设时间或者在不同的场合展示。Optionally, the terminal may display the M patterns in a preset order, and the preset order may be a random order, a fixed order, or a plurality of different pattern display sequences respectively displayed at every preset time or at different occasions.

S202、确定用户针对所述N类图案中的K类图案中的P个图案的按压参数,所述按压参数包括所述P个图案对应的P个按压力度值和按压顺序,所述P个图案至少包含所述K类图案中每一类中的一个图案,所述K为大于1且小于所述N的整数。S202. Determine a pressing parameter of a P pattern in a K-type pattern in the N-type pattern, where the pressing parameter includes P pressing force values and a pressing order corresponding to the P patterns, and the P patterns At least one of each of the K-type patterns is included, the K being an integer greater than 1 and less than the N.

具体实现中,终端可从N类图案中选择P个图案,该P个图案来自于N类图案中的K类图案,该P为大于或等于K的整数,即P个图案中至少包含K类图案中的每一类图案中的一个图案,在用户针对该P个图案进行按压时,可确定该P个图案对应的按压参数,该按压参数可包括1个按压参数。进一步地,终端可将按压P个图案得到的P个按压参数按照预设方式生成一个按压参数。例如,可将该P个按压参数求均值,以得到一个校验值,作为该P个图案的按压参数。In a specific implementation, the terminal may select P patterns from the N-type patterns, the P patterns are from the K-type pattern in the N-type pattern, and the P is an integer greater than or equal to K, that is, the P patterns include at least the K-type One of each of the patterns in the pattern, when the user presses the P patterns, may determine a pressing parameter corresponding to the P patterns, and the pressing parameter may include one pressing parameter. Further, the terminal may generate a pressing parameter according to a preset manner by pressing the P pressing parameters obtained by pressing the P patterns. For example, the P pressing parameters may be averaged to obtain a check value as a pressing parameter of the P patterns.

可选地,该按压参数可包括P个按压力度值和该P个图案对应的按压顺序,其中,P个按压力度值与该按压P个图案的按压操作一一对应,即按压该P个图案中的图案i可生成一个按压力度值。Optionally, the pressing parameter may include P pressing force values and a pressing order corresponding to the P patterns, wherein the P pressing force values are in one-to-one correspondence with the pressing operations of pressing the P patterns, that is, pressing the P patterns. The pattern i in the middle can generate a pressing force value.

S203、将所述P个按压力度值按照预设规则进行计算,以得到校验值。S203. Calculate the P pressing force values according to a preset rule to obtain a check value.

具体实现中,终端可将P个按压力度值进行求均值运行,以得到校验值。或者,终端可确定P个按压力度值中的最大按压力度值和最小按压力度值,对P个按压力度值剩下的按压力度值进行求方差运算,以得到校验值。其中,预设规则不仅限于上述两种求取校验值的方式。终端还可以分别将P个按压力度值进行编码,以得到校验值。例如,以按压力度值为例,按压力度值对应A1-A5五个编码,按压力度值大于0牛且小于12牛对应A1,按压力度值大于或等于12牛且小于24牛对应A2,按压力度值大于或等于24牛且小于36牛对应A3,按压力度值大于或等于36牛且小于48牛对应A4,按压力度值大于或等于48牛对应A5,则在P为3的情况下,3个按压力度值分别为:8牛、24牛、48 牛,则校验值为A1A2A5。In a specific implementation, the terminal may perform the average operation of the P pressing force values to obtain the check value. Alternatively, the terminal may determine a maximum pressing force value and a minimum pressing force value among the P pressing force values, and perform a variance calculation on the remaining pressing force values of the P pressing force values to obtain a check value. The preset rule is not limited to the above two ways of obtaining the check value. The terminal may also separately encode P pressing force values to obtain a check value. For example, taking the pressing force value as an example, the pressing force value corresponds to five codes of A1-A5, the pressing force value is greater than 0 cattle and less than 12 cattle corresponding to A1, the pressing force value is greater than or equal to 12 cattle and less than 24 cattle corresponding to A2, pressing force The value is greater than or equal to 24 cattle and less than 36 cattle corresponding to A3, the pressing force value is greater than or equal to 36 cattle and less than 48 cattle corresponding to A4, and the pressing force value is greater than or equal to 48 cattle corresponding to A5, then in the case of P being 3, 3 The pressing force values are: 8 cattle, 24 cattle, 48 For cattle, the check value is A1A2A5.

S204、判断所述校验值是否处于预设区间和所述按压顺序是否与预设按压顺序一致。S204. Determine whether the check value is in a preset interval and whether the pressing sequence is consistent with a preset pressing sequence.

具体实现中,终端可将校验值与预设区间进行比对,确定该校验值是否处于该预设区间,该预设区间为预设的P个按压力度值对应的校验值的区间范围,该预设区间可为范围值。例如,校验值为5,而区间范围为[4,8],则该校验值处于该预设区间。进一步地,终端可将按压顺序与预设按压顺序进行比对,以确定两者是否一致,例如,按压顺序为ABCDE,而预设按压顺序为BACDE,则两者不一致,在预设按压顺序为ABCDE的情况下,按压顺序和预设按压顺序一致。In a specific implementation, the terminal may compare the check value with the preset interval, and determine whether the check value is in the preset interval, where the preset interval is a preset interval corresponding to the P value of the pressing force value. Range, the preset interval can be a range value. For example, if the check value is 5 and the interval range is [4, 8], the check value is in the preset interval. Further, the terminal may compare the pressing sequence with the preset pressing sequence to determine whether the two are consistent, for example, the pressing order is ABCDE, and the preset pressing order is BACDE, the two are inconsistent, and the preset pressing order is In the case of ABCDE, the pressing order is the same as the preset pressing order.

进一步地,预设区间可为一个固定值,即校验值要与该固定值相等,或者,校验值要与该固定值满足某一关系。例如,该校验值可被该固定值整除,或者,该校验值与该固定值之积满足预设阈值。Further, the preset interval may be a fixed value, that is, the check value is equal to the fixed value, or the check value is to satisfy a certain relationship with the fixed value. For example, the check value may be divisible by the fixed value, or the product of the check value and the fixed value may satisfy a preset threshold.

S205、在所述判断的结果为是时,对所述终端进行解锁操作。S205. When the result of the determining is YES, perform an unlocking operation on the terminal.

具体实现中,在按压参数和预设按压参数匹配成功的情况下,可对终端进行解锁,从而,终端进入正常显示界面,该正常显示界面可显示终端中各个应用的快捷方式。In a specific implementation, when the pressing parameter and the preset pressing parameter are successfully matched, the terminal can be unlocked, so that the terminal enters a normal display interface, and the normal display interface can display a shortcut of each application in the terminal.

可选地,在所述按压参数和预设按压参数匹配不成功的情况下,提示用户再次进行解锁;进一步地,倘若用户在预设次数或者预设时间内,在按压参数和预设按压参数仍匹配不成功的情况下,该终端进入关机状态。Optionally, in a case that the pressing parameter and the preset pressing parameter match are unsuccessful, the user is prompted to perform the unlocking again; further, if the user is in the preset number of times or the preset time, the pressing parameter and the preset pressing parameter are If the match is still unsuccessful, the terminal enters the shutdown state.

作为一种可能的实施方式,本实施例中,终端在执行了步骤S201-步骤S202之后,还可执行下续步骤,即:终端可先判断P个按压力度值与预设的P个按压力度值是否匹配;若判断的结果为是,终端则判断按压顺序是否与预设按压顺序一致。进一步地,终端可先判断P个按压力度值与预设的P个按压力度值是否匹配;若判断的结果为否,终端则提示用户再次进行按压操作。可选地,终端判断按压顺序是否与预设按压顺序一致,若是,则终端进行解锁操作,若否,则终端提示用户重新进行按压操作。As a possible implementation manner, in this embodiment, after performing the steps S201 to S202, the terminal may further perform the following steps, that is, the terminal may first determine the P pressing force values and the preset P pressing strengths. Whether the values match; if the result of the determination is yes, the terminal determines whether the pressing order is consistent with the preset pressing order. Further, the terminal may first determine whether the P pressing force values match the preset P pressing force values; if the result of the determination is no, the terminal prompts the user to perform the pressing operation again. Optionally, the terminal determines whether the pressing sequence is consistent with the preset pressing sequence. If yes, the terminal performs an unlocking operation. If not, the terminal prompts the user to perform a pressing operation again.

可以看出,本实施例中,终端可在终端解锁状态下触摸屏上展示已分类图案,在用户按压图案时确定与按压该图案对应的按压参数,该按压参数包含按 压力度值和按压顺序,并将该按压力度值按照预设规则进行计算以得到校验值,最后,将该校验值和按压顺序与预设校验值和预设按压顺序进行匹配,进而加大了破译难度,提高了终端的安全性。It can be seen that, in this embodiment, the terminal can display the classified pattern on the touch screen in the terminal unlock state, and determine the pressing parameter corresponding to pressing the pattern when the user presses the pattern, and the pressing parameter includes pressing a pressure value and a pressing sequence, and calculating the pressing force value according to a preset rule to obtain a check value, and finally, matching the check value and the pressing order with the preset check value and the preset pressing order, and further Increased the difficulty of deciphering and improved 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 a pattern according to an embodiment of the present invention. The method for unlocking a pattern described in this embodiment includes the following steps:

S301、在终端处于被唤醒状态时,在所述终端的触摸屏上展示M个图案,其中,所述M个图案包括N类图案,所述N为大于1的整数,所述M为大于所述N的整数。S301. When the terminal is in the awake state, displaying M patterns on the touch screen of the terminal, where the M patterns include a N-type pattern, the N is an integer greater than 1, and the M is greater than the An integer of N.

具体实现中,在终端处于被唤醒状态时,在触摸屏上可展示M个图案,其中,该M个图案可为N类图案,N为大于1的整数,M为大于N的整数。In a specific implementation, when the terminal is in the awake state, M patterns may be displayed on the touch screen, wherein the M patterns may be N-type patterns, N is an integer greater than 1, and M is an integer greater than N.

可选地,N类图案中每一类图案至少包括一个图案,在第i类图案包括多个图案的情况下,该多个图案可以部分相同,或者互不相同。Optionally, each type of pattern in the N-type pattern includes at least one pattern, and in the case where the i-th pattern includes a plurality of patterns, the plurality of patterns may be partially the same or different from each other.

进一步可选地,该M个图案中来自于网络图片、用户使用终端的摄像头拍摄的图片、系统图片或者用户自定义的图案。Further optionally, the M patterns are from a network picture, a picture taken by a camera of the user using the terminal, a system picture or a user-defined pattern.

进一步可选地,该M个图案可来自于K个图案,在终端被唤醒的状态下,展示该K个图案中的M个图案,K为大于M的整数。Further optionally, the M patterns may be derived from K patterns, and in the state in which the terminal is awakened, M patterns of the K patterns are displayed, and K is an integer greater than M.

可选地,终端可按照预设顺序展示该M个图案,预设顺序可为随机顺序、固定顺序或者几组不同的展示顺序分别在每隔预设时间或者在不同的场合展示。Optionally, the terminal may display the M patterns in a preset order, and the preset order may be displayed in a random order, a fixed order, or a plurality of different display sequences at every preset time or at different occasions.

S302、获取所述N类图案中的K类图案中的P个图案的P个力度值和所述P个图案对应的P个类别识别码,其中,所述N类图案与N个类别识别码一一对应。S302. Acquire P velocity values of P patterns in the K-type pattern in the N-type pattern and P class identifiers corresponding to the P patterns, where the N-type pattern and the N category identifiers One-to-one correspondence.

具体实现中,终端在检测到用户在触摸屏上进行按压操作时,可通过位置检测确定用户按压的图案的位置,利用触摸屏下方的压力传感器检测用户按压的图案所在位置的按压力度值,同时,获取该图案对应的类别识别码,该类别识别码用户用来标记该图案的类名。进一步地,终端在获取N类图案中的K类图案中的P个图案的P个力度值和P个图案对应的P个类别识别码,其中,N类图案与N个类别识别码一一对应。例如,在N为4的情况下,则4类图 案有4个类别识别码,4类图案包括第一类图案、第二类图案、第三类图案和第四类图案。第一类图案的类别识别码为X1,第二类图案的类别识别码为X2、第三类图案的类别识别码为X3和第四类图案的类别识别码为X4。In a specific implementation, when detecting that the user performs a pressing operation on the touch screen, the terminal may determine the position of the pattern pressed by the user through the position detection, and use the pressure sensor under the touch screen to detect the pressing force value of the position of the pattern pressed by the user, and simultaneously acquire The category identifier corresponding to the pattern, the category identifier is used by the user to mark the class name of the pattern. Further, the terminal acquires P velocity values of P patterns and K class identifiers corresponding to P patterns in the K-type pattern in the N-type pattern, wherein the N-type pattern corresponds to the N category identification codes one-to-one . For example, in the case where N is 4, then 4 types of graphs There are four category identification codes, and the four types of patterns include a first type of pattern, a second type of pattern, a third type of pattern, and a fourth type of pattern. The category identification code of the first type of pattern is X1, the category identification code of the second type of pattern is X2, the category identification code of the third type of pattern is X3, and the category identification code of the fourth type of pattern is X4.

S303、将所述P个力度值按照预设的力度值与按压力度值之间的映射关系进行量化处理,以得到P个按压力度值。S303. Quantify the P velocity values according to a mapping relationship between a preset velocity value and a pressing velocity value to obtain P pressing velocity values.

具体实现中,终端可将P个力度值按照预设的力度值与按压力度值之间的映射关系进行量化处理,从而,可得到P个按压力度值。即:按压力度值可分为1-5五个按压力度值,力度值大于0牛且小于12牛对应按压力度值1,力度值大于或等于12牛且小于24牛对应按压力度值2,力度值大于或等于24牛且小于36牛对应按压力度值3,力度值大于或等于36牛且小于48牛对应按压力度值4,力度值大于或等于48牛对应按压力度值5,则力度值为23,对应的按压力度值2。In a specific implementation, the terminal may quantize the P velocity values according to a mapping relationship between the preset velocity values and the pressing velocity values, thereby obtaining P pressing velocity values. Namely: the pressing force value can be divided into 1-5 five pressing force values, the strength value is greater than 0 cattle and less than 12 cattle corresponding to the pressing force value 1, the velocity value is greater than or equal to 12 cattle and less than 24 cattle corresponding to the pressing force value 2, the strength The value is greater than or equal to 24 cattle and less than 36 cattle corresponding to the pressing force value of 3, the velocity value is greater than or equal to 36 cattle and less than 48 cattle corresponding to the pressing force value of 4, and the velocity value is greater than or equal to 48 cattle corresponding to the pressing force value of 5, the velocity value is 23, the corresponding pressing force value is 2.

S304、将所述P个类别识别码按照预设方式生成字符串,并基于所述字符串确定所述P个图案对应的按压顺序。S304. Generate the character string according to the preset manner by using the P category identifiers, and determine a pressing sequence corresponding to the P patterns based on the character string.

具体实现中,终端可将P个类别识别码按照按压先后顺序生成字符串,该字符串可作为该P个图案对应的按压顺序。In a specific implementation, the terminal may generate a character string in the order of pressing the P class identifiers, and the string may be used as the pressing sequence corresponding to the P patterns.

例如:在N为4的情况下,则4类图案有4个类别识别码,4类图案包括第一类图案、第二类图案、第三类图案和第四类图案。第一类图案的类别识别,码为X1,第二类图案的类别识别码为X2、第三类图案的类别识别码为X3和第四类图案的类别识别码为X4。用户按压3个图案,顺序依次为第三类图案中的一个图案、第二类图案中的一个图案和第四类图案中的一个图案,则生成的字符串可为X3X2X4,该字符串即为该3个图案对应的按压顺序。For example, in the case where N is 4, the 4 types of patterns have 4 category identification codes, and the 4 types of patterns include the first type of patterns, the second type of patterns, the third type of patterns, and the fourth type of patterns. The category identification of the first type of pattern is coded as X1, the category identification code of the second type of pattern is X2, the category identification code of the third type of pattern is X3, and the category identification code of the fourth type of pattern is X4. When the user presses three patterns in sequence, one of the third type of patterns, one of the second type of patterns, and one of the fourth type of patterns, the generated character string may be X3X2X4, and the string is The pressing order of the three patterns corresponds.

S305、将所述P个图案对应的所述P个按压力度值和所述按压顺序组合成所述P个图案的按压参数。S305. Combine the P pressing force values corresponding to the P patterns and the pressing order into a pressing parameter of the P patterns.

S306、将所述按压参数与预设按压参数进行匹配。S306. Match the pressing parameter with a preset pressing parameter.

具体实现中,终端可判断按压参数是否处于预设按压参数的区间范围。可选地,在按压参数为一组按压参数时,该一组按压参数包含多个参数,终端可将按压参数中的每一个参数分别与预设按压参数对应的参数进行匹配。In a specific implementation, the terminal may determine whether the pressing parameter is in a range of the preset pressing parameter. Optionally, when the pressing parameter is a set of pressing parameters, the set of pressing parameters includes a plurality of parameters, and the terminal may match each of the pressing parameters to a parameter corresponding to the preset pressing parameter.

S307、在所述按压参数和所述预设按压参数匹配成功的情况下,对所述终 端进行解锁操作。S307. In the case that the pressing parameter and the preset pressing parameter are successfully matched, the end The terminal is unlocked.

具体实现中,在按压参数和预设按压参数匹配成功的情况下,可对终端进行解锁,从而,终端进入正常显示界面,该正常显示界面可显示终端中各个应用的快捷方式。In a specific implementation, when the pressing parameter and the preset pressing parameter are successfully matched, the terminal can be unlocked, so that the terminal enters a normal display interface, and the normal display interface can display a shortcut of each application in the terminal.

可选地,在所述按压参数和预设按压参数匹配不成功的情况下,提示用户再次进行解锁;进一步地,倘若用户在预设次数或者预设时间内,在按压参数和预设按压参数仍匹配不成功的情况下,该终端进入关机状态。Optionally, in a case that the pressing parameter and the preset pressing parameter match are unsuccessful, the user is prompted to perform the unlocking again; further, if the user is in the preset number of times or the preset time, the pressing parameter and the preset pressing parameter are If the match is still unsuccessful, the terminal enters the shutdown state.

可以看出,本实施例中,终端可在终端解锁状态下触摸屏上展示已分类图案,在用户按压图案时确定与按压操作对应的按压参数,该按压参数包含按压力度值和按压顺序,对用户按压过程中产生的力度进行量化处理以得到按压力度值,并可获取按压的图案的类别识别码,将类别识别码按照预设方式生成字符串,以得到按压顺序,最后,将该按压力度值和按压顺序与预设按压力度值和预设按压顺序进行匹配,进而加大了破译难度,提高了终端的安全性。It can be seen that, in this embodiment, the terminal can display the classified pattern on the touch screen in the terminal unlock state, and determine the pressing parameter corresponding to the pressing operation when the user presses the pattern, and the pressing parameter includes the pressing force value and the pressing order, and the user The force generated during the pressing process is quantized to obtain a pressing force value, and the category identification code of the pressed pattern is obtained, and the category identification code is generated according to a preset manner to obtain a pressing sequence, and finally, the pressing force value is obtained. The pressing sequence is matched with the preset pressing force value and the preset pressing sequence, thereby increasing the difficulty of deciphering and 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 a pattern according to an embodiment of the present invention. The method for unlocking a pattern described in this embodiment includes the following steps:

S401、在终端处于被唤醒状态时,在所述终端的触摸屏上展示M个图案,其中,所述M个图案包括N类图案,所述N为大于1的整数,所述M为大于所述N的整数。S401. When the terminal is in the awake state, displaying M patterns on the touch screen of the terminal, where the M patterns include a N-type pattern, the N is an integer greater than 1, and the M is greater than the An integer of N.

具体实现中,在终端处于被唤醒状态时,在触摸屏上可展示M个图案,其中,该M个图案可为N类图案,N为大于1的整数,M为大于N的整数。In a specific implementation, when the terminal is in the awake state, M patterns may be displayed on the touch screen, wherein the M patterns may be N-type patterns, N is an integer greater than 1, and M is an integer greater than N.

可选地,N类图案中每一类图案至少包括一个图案,在第i类图案包括多个图案的情况下,该多个图案可以部分相同,或者互不相同。Optionally, each type of pattern in the N-type pattern includes at least one pattern, and in the case where the i-th pattern includes a plurality of patterns, the plurality of patterns may be partially the same or different from each other.

进一步可选地,该M个图案中来自于网络图片、用户使用终端的摄像头拍摄的图片、系统图片或者用户自定义的图案。Further optionally, the M patterns are from a network picture, a picture taken by a camera of the user using the terminal, a system picture or a user-defined pattern.

进一步可选地,该M个图案可来自于K个图案,在终端被唤醒的状态下,展示该K个图案中的M个图案,K为大于M的整数。Further optionally, the M patterns may be derived from K patterns, and in the state in which the terminal is awakened, M patterns of the K patterns are displayed, and K is an integer greater than M.

可选地,终端可按照预设顺序展示该M个图案,预设顺序可为随机顺序、 固定顺序或者几组不同的展示顺序分别在每隔预设时间或者在不同的场合展示。Optionally, the terminal may display the M patterns in a preset order, and the preset order may be a random order, The fixed order or sets of different display sequences are displayed at regular intervals or at different occasions.

S402、确定用户针对所述N类图案中的K类图案中的P个图案的按压参数,所述按压参数包括P个按压力度值和所述P个图案对应的按压顺序,所述P个图案至少包含所述K类图案中每一类中的一个图案,所述K为大于1且小于所述N的整数。S402. Determine a pressing parameter of a P pattern in a K-type pattern in the N-type pattern, where the pressing parameter includes P pressing force values and a pressing order corresponding to the P patterns, the P patterns At least one of each of the K-type patterns is included, the K being an integer greater than 1 and less than the N.

S403、将所述按压参数与预设按压参数进行匹配。S403. Match the pressing parameter with a preset pressing parameter.

S404、在所述按压参数和所述预设按压参数匹配成功的情况下,对所述终端进行解锁操作。S404: Perform an unlocking operation on the terminal if the pressing parameter and the preset pressing parameter are successfully matched.

其中,步骤S401-步骤S404的具体描述,请参照图1中步骤S101-步骤S104的具体描述。For a detailed description of steps S401 to S404, refer to the specific description of step S101 to step S104 in FIG.

S405、在所述终端再次进入锁屏状态的情况下,若检测到用户在预设时间长度内对所述终端进行唤醒操作,在所述终端的触摸屏上展示第一图案。S405. If the terminal enters the lock screen state again, if it is detected that the user wakes up the terminal within a preset time length, the first pattern is displayed on the touch screen of the terminal.

具体实现中,在终端被解锁之后,则终端可在一定时间内未检测到用户使用该终端的屏幕下进入锁屏状态下,若检测到用户在预设时间长度内对该终端进行唤醒操作,可在终端的显示界面上展示第一图案,该第一图案可为一个图案。该预设时间长度可包括但不仅限于:10秒、30秒、1分钟、10分钟等等。In a specific implementation, after the terminal is unlocked, the terminal may not detect that the user enters the lock screen state under the screen of the terminal within a certain period of time, and if the user detects that the user wakes up the terminal within a preset time length, The first pattern may be displayed on the display interface of the terminal, and the first pattern may be a pattern. The preset length of time may include, but is not limited to, 10 seconds, 30 seconds, 1 minute, 10 minutes, and the like.

进一步地,在终端再次进入锁屏状态的情况下,若检测到用户在第一预设时间长度后再次对该终端进行唤醒操作,在终端的触摸屏上展示上述M个图案,其中,该第一预设时间长度长于预设时间长度,M个图案可包括N类图案,N为大于1的整数。Further, in the case that the terminal enters the lock screen state again, if it is detected that the user wakes up the terminal again after the first preset time length, the M patterns are displayed on the touch screen of the terminal, wherein the first The preset time length is longer than the preset time length, and the M patterns may include a N-type pattern, and N is an integer greater than 1.

S406、获取所述用户针对所述第一图案的第一按压参数。S406. Acquire a first pressing parameter of the user for the first pattern.

具体实现中,在检测到用户对第一图案进行按压操作的情况下,可获取与该按压操作对应的第一按压参数,该第一按压参数可为按压时间或者按压力度值。In a specific implementation, when detecting that the user performs a pressing operation on the first pattern, a first pressing parameter corresponding to the pressing operation may be acquired, and the first pressing parameter may be a pressing time or a pressing force value.

S407、判断所述第一按压参数是否满足预设阈值。S407. Determine whether the first pressing parameter meets a preset threshold.

具体实现中,在第一按压参数为按压时间的情况下,终端可判断该按压时间是否大于预设按压时间;在该第一按压参数为按压力度值的情况下,终端可判断该按压力度值是否处于预设区间。 In a specific implementation, in a case where the first pressing parameter is a pressing time, the terminal may determine whether the pressing time is greater than a preset pressing time; if the first pressing parameter is a pressing force value, the terminal may determine the pressing force value. Whether it is in the preset range.

S408、若是,对所述终端进行解锁操作,并在解锁后的终端的屏幕上展示第二图案。S408. If yes, perform an unlocking operation on the terminal, and display a second pattern on the screen of the unlocked terminal.

具体实现中,第二图案可为第一图案的另一种形状的图案,例如,第一图案为一个花骨朵,第二图案为该花骨朵绽放时候的状态。In a specific implementation, the second pattern may be a pattern of another shape of the first pattern, for example, the first pattern is a flower bone, and the second pattern is a state when the flower bone blooms.

本实施例中,可在终端解锁状态下触摸屏上展示已分类图案,在用户按压图案时确定与按压操作对应的按压参数,该按压参数包含按压力度值和按压顺序,并将该按压参数与预设按压参数进行匹配,加大了破译难度,提高了终端的安全性。另外,在解锁成功内,终端在锁屏的状态下,预设时间内检测到唤醒操作时,展示第一图案,获取用户针对该图案的第一按压参数,第一按压参数设置较为简单,以免用户使用终端过程中,锁屏之后的预设时间长度内较快解锁。In this embodiment, the classified pattern may be displayed on the touch screen in the unlock state of the terminal, and the pressing parameter corresponding to the pressing operation is determined when the user presses the pattern, and the pressing parameter includes a pressing force value and a pressing sequence, and the pressing parameter and the pressing parameter are The pressing parameters are matched to increase the difficulty of deciphering and improve the security of the terminal. In addition, after the unlocking is successful, the terminal displays the first pattern when the wake-up operation is detected within the preset time in the state of the lock screen, and obtains the first pressing parameter of the user for the pattern, and the first pressing parameter setting is relatively simple, so as to avoid During the user's use of the terminal, the user can unlock the faster time within the preset time period after the lock screen.

请参见图5a,图5a为本发明实施例提供的一种终端的第一实施例的结构示意图,图5a所描述的终端可包括:展示单元501、确定单元502、匹配单元503和解锁单元504,具体如下: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 display unit 501, a determining unit 502, a matching unit 503, and an unlocking unit 504. ,details as follows:

展示单元501,用于在终端处于被唤醒状态时,在所述终端的触摸屏上展示M个图案,其中,所述M个图案包括N类图案,所述N为大于1的整数,所述M为大于所述N的整数。The display unit 501 is configured to display M patterns on the touch screen of the terminal when the terminal is in the awake state, wherein the M patterns include a N-type pattern, and the N is an integer greater than 1, the M Is an integer greater than the N.

确定单元502,用于确定用户针对所述N类图案中的K类图案中的P个图案的按压参数,所述按压参数包括所述P个图案对应的P个按压力度值和按压顺序,所述P个图案至少包含所述K类图案中每一类中的一个图案,所述K为大于1且小于N的整数。a determining unit 502, configured to determine a pressing parameter of a P pattern in a K-type pattern in the N-type pattern, where the pressing parameter includes P pressing force values and a pressing order corresponding to the P patterns, The P patterns include at least one of each of the K-type patterns, and the K is an integer greater than 1 and less than N.

匹配单元503,用于将所述确定单元502确定的按压参数与预设按压参数进行匹配。The matching unit 503 is configured to match the pressing parameter determined by the determining unit 502 with the preset pressing parameter.

解锁单元504,用于在所述匹配单元503的匹配结果为所述按压参数和预设按压参数匹配成功的情况下,对所述终端进行解锁操作。The unlocking unit 504 is configured to perform an unlocking operation on the terminal if the matching result of the matching unit 503 is that the pressing parameter and the preset pressing parameter are successfully matched.

作为一种可能的实施方式,如图5b所示,图5a所描述的终端的匹配单元503包括: As a possible implementation manner, as shown in FIG. 5b, the matching unit 503 of the terminal described in FIG. 5a includes:

计算单元5031,用于将所述确定单元502确定的P个按压力度值按照预设规则进行计算,以得到目标按压力度值。The calculating unit 5031 is configured to calculate the P pressing force values determined by the determining unit 502 according to a preset rule to obtain a target pressing force value.

第一判断单元5032,用于判断所述计算单元5031计算得到的目标按压力度值是否处于预设区间和所述按压顺序是否与预设按压顺序一致。The first determining unit 5032 is configured to determine whether the target pressing force value calculated by the calculating unit 5031 is in a preset interval and whether the pressing sequence is consistent with a preset pressing sequence.

可选地,所述计算单元5031具体用于:Optionally, the calculating unit 5031 is specifically configured to:

将所述P个按压力度值的均值作为校验值;And using the average value of the P pressing force values as a check value;

或者,or,

将所述P个按压力度值中的最大按压力度值和最小按压力度值以外的按压力度值的方差作为校验值。A variance of a pressing force value other than the maximum pressing force value and the minimum pressing force value among the P pressing force values is used as a check value.

作为一种可能的实施方式,如图5c所示,图5a所描述的终端的匹配单元503包括:As a possible implementation manner, as shown in FIG. 5c, the matching unit 503 of the terminal described in FIG. 5a includes:

第二判断单元5033,用于判断所述P个按压力度值与预设的P个按压力度值是否匹配;The second determining unit 5033 is configured to determine whether the P pressing force values match the preset P pressing strength values;

第三判断单元5034,用于若所述第二判断单元5033的判断结果为是,则判断所述按压顺序是否与预设按压顺序一致。The third determining unit 5034 is configured to determine whether the pressing sequence is consistent with the preset pressing sequence if the determination result of the second determining unit 5033 is YES.

作为一种可能的实施方式,如图5d所示,图5a所描述的终端的确定单元502包括:As a possible implementation manner, as shown in FIG. 5d, the determining unit 502 of the terminal described in FIG. 5a includes:

第一获取单元5021,用于获取所述N类图案中的K类图案中的P个图案的P个力度值和所述P个图案对应的P个类别识别码,其中,所述N类图案与N个类别识别码一一对应;a first acquiring unit 5021, configured to acquire P velocity values of P patterns in the K-type pattern in the N-type pattern and P class identifiers corresponding to the P patterns, wherein the N-type pattern One-to-one correspondence with N category identification codes;

处理单元5022,用于将所述第一获取单元5021获取到的P个力度值按照预设的力度值与按压力度值之间的映射关系进行量化处理,以得到P个按压力度值;The processing unit 5022 is configured to quantize the P velocity values acquired by the first acquiring unit 5021 according to a mapping relationship between a preset velocity value and a pressing velocity value, to obtain P pressing velocity values;

确定子单元5023,用于将所述第一获取单元5021获取到的P个类别识别码按照预设方式生成字符串,并基于所述字符串确定所述P个图案对应的按压顺序。The determining sub-unit 5023 is configured to generate a character string according to a preset manner by the P class identifiers acquired by the first acquiring unit 5021, and determine a pressing order corresponding to the P patterns based on the character string.

组合单元5024,用于将所述处理单元处理得到的P个按压力度值和所述确定子单元确定的所述P个图案对应的按压顺序组合成所述P个图案的按压参数。 The combining unit 5024 is configured to combine the P pressing force values obtained by the processing unit and the pressing order corresponding to the P patterns determined by the determining subunit into the pressing parameters of the P patterns.

作为一种可能的实施方式,如图5e所示,图5a所描述的终端还可包括:As a possible implementation manner, as shown in FIG. 5e, the terminal described in FIG. 5a may further include:

显示单元505,用于在所述终端再次进入锁屏状态的情况下,若检测到所述用户在预设时间长度内对所述终端进行唤醒操作,在所述终端的触摸屏上展示第一图案;The display unit 505 is configured to display the first pattern on the touch screen of the terminal if the user detects that the user wakes up the terminal within a preset time length when the terminal enters the lock screen state again. ;

第二获取单元506,用于获取所述用户针对所述第一图案的第一按压参数;a second acquiring unit 506, configured to acquire a first pressing parameter of the user for the first pattern;

第四判断单元507,用于判断所述第二获取单元506获取到的第一按压参数是否满足预设阈值;The fourth determining unit 507 is configured to determine whether the first pressing parameter acquired by the second acquiring unit 506 meets a preset threshold;

解锁单元504,用于若所述第四判断单元507的判断结果为是,对所述终端进行解锁操作,并在解锁后的终端的屏幕上展示第二图案。The unlocking unit 504 is configured to perform an unlocking operation on the terminal if the determination result of the fourth determining unit 507 is yes, and display the second pattern on the screen of the unlocked terminal.

本发明实施例所描述的终端可在终端处于被唤醒状态时,在所述终端的触摸屏上展示M个图案,其中,所述M个图案包括N类图案,所述N为大于1的整数,所述M为大于N的整数;确定用户针对所述N类图案中的K类图案中的P个图案的按压参数,所述按压参数包括P个按压力度值和所述P个图案对应的按压顺序,所述P个图案至少包含所述K类图案中每一类中的一个图案,所述K为大于1且小于N的整数;将所述按压参数与预设按压参数进行匹配;在所述按压参数和预设按压参数匹配成功的情况下,对所述终端进行解锁操作。本实施例中,可对终端解锁状态下触摸屏上展示已分类图案,并获取用户的按压参数,该参数包含按压力度值和按压顺序,将该按压参数与预设按压参数进行匹配,加大了破译难度,提高了终端的安全性。The terminal described in the embodiment of the present invention may display M patterns on the touch screen of the terminal when the terminal is in the awake state, where the M patterns include a N-type pattern, and the N is an integer greater than 1. The M is an integer greater than N; determining a pressing parameter of the user for the P patterns in the K-type pattern in the N-type pattern, the pressing parameter including P pressing force values and pressing corresponding to the P patterns In order, the P patterns include at least one of each of the K-type patterns, the K being an integer greater than 1 and less than N; matching the pressing parameter with a preset pressing parameter; In the case that the pressing parameter and the preset pressing parameter are successfully matched, the terminal is unlocked. In this embodiment, the classified pattern can be displayed on the touch screen in the unlock state of the terminal, and the pressing parameter of the user is obtained, and the parameter includes the pressing force value and the pressing sequence, and the pressing parameter is matched with the preset pressing parameter, thereby increasing the Deciphering the difficulty and improving 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 memory. The program code stored in 4000 performs the following operations:

上述处理器3000,用于:The processor 3000 is configured to:

在终端处于被唤醒状态时,在所述终端的触摸屏上展示M个图案,其中,所述M个图案包括N类图案,所述N为大于1的整数,所述M为大于所述N的整数;When the terminal is in the awake state, M patterns are displayed on the touch screen of the terminal, wherein the M patterns include a N-type pattern, the N is an integer greater than 1, and the M is greater than the N Integer

确定用户针对所述N类图案中的K类图案中的P个图案的按压参数,所述按压参数包括P个按压力度值和所述P个图案对应的按压顺序,所述P个图案至少包含所述K类图案中每一类中的一个图案,所述K为大于1且小于所述N的整数;Determining, by the user, a pressing parameter of P patterns in the K-type pattern in the N-type pattern, the pressing parameter includes P pressing force values and a pressing order corresponding to the P patterns, the P patterns including at least a pattern in each of the K-type patterns, wherein K is an integer greater than 1 and less than the N;

将所述按压参数与预设按压参数进行匹配;Matching the pressing parameter with a preset pressing parameter;

在所述按压参数和所述预设按压参数匹配成功的情况下,对所述终端进行解锁操作。And in the case that the pressing parameter and the preset pressing parameter are successfully matched, the terminal is unlocked.

作为一种可能的实施方式,上述处理器3000将所述按压参数与预设按压参数进行匹配,具体为:As a possible implementation manner, the processor 3000 matches the pressing parameter with a preset pressing parameter, specifically:

将所述P个按压力度值按照预设规则进行计算,以得到校验值;And calculating the P pressing force values according to a preset rule to obtain a check value;

判断所述校验值是否处于预设区间和所述按压顺序是否与预设按压顺序一致。Determining whether the check value is in a preset interval and whether the pressing sequence is consistent with a preset pressing sequence.

进一步地,上述处理器3000将所述P个按压力度值按照预设规则进行计算,以得到校验值,包括:Further, the processor 3000 calculates the P pressing force values according to a preset rule to obtain a check value, including:

将所述P个按压力度值的均值作为校验值;And using the average value of the P pressing force values as a check value;

或者,or,

将所述P个按压力度值中的最大按压力度值和最小按压力度值以外的按压力度值的方差作为校验值Using the variance of the pressing force value other than the maximum pressing force value and the minimum pressing force value among the P pressing force values as a check value

作为一种可能的实施方式,上述处理器3000将所述按压参数与预设按压参数进行匹配,具体为:As a possible implementation manner, the processor 3000 matches the pressing parameter with a preset pressing parameter, specifically:

判断所述P个按压力度值与预设的P个按压力度值是否匹配;Determining whether the P pressing force values match the preset P pressing force values;

若是,则判断所述按压顺序是否与预设按压顺序一致。If yes, it is determined whether the pressing sequence is consistent with the preset pressing sequence.

作为一种可能的实施方式,上述处理器3000确定用户针对所述N类图案中的K类图案中的P个图案的按压参数,具体为: As a possible implementation manner, the processor 3000 determines, according to a user, a pressing parameter of the P patterns in the K-type pattern in the N-type pattern, specifically:

获取所述N类图案中的K类图案中的P个图案的P个力度值和所述P个图案对应的P个类别识别码,其中,所述N类图案与N个类别识别码一一对应;Obtaining P velocity values of P patterns in the K-type pattern in the N-type pattern and P class identification codes corresponding to the P patterns, wherein the N-type pattern and the N category identification codes are one by one correspond;

将所述P个力度值按照预设的力度值与按压力度值之间的映射关系进行量化处理,以得到P个按压力度值;And dividing the P velocity values according to a mapping relationship between a preset velocity value and a pressing velocity value to obtain P pressing force values;

将所述P个类别识别码按照预设方式生成字符串,并基于所述字符串确定所述P个图案对应的按压顺序;Generating a character string according to a preset manner, and determining a pressing order corresponding to the P patterns based on the character string;

将所述P个图案对应的P个按压力度值和按压顺序组合成所述P个图案的按压参数。P pressing force values and pressing order corresponding to the P patterns are combined into pressing parameters of the P patterns.

作为一种可能的实施方式,上述处理器3000,在所述终端再次进入锁屏状态的情况下,所述对所述终端进行解锁操作之后,还具体用于:As a possible implementation manner, in the case that the terminal enters the lock screen state again, the processor 3000 is further configured to:

若检测到所述用户在预设时间长度内对所述终端进行唤醒操作,在所述终端的触摸屏上展示第一图案;If it is detected that the user wakes up the terminal within a preset time length, displaying the first pattern on the touch screen of the terminal;

获取所述用户针对所述第一图案的第一按压参数;Obtaining a first pressing parameter of the user for the first pattern;

判断所述第一按压参数是否满足预设阈值;Determining whether the first pressing parameter meets a preset threshold;

若是,对所述终端进行解锁操作,并在解锁后的终端的屏幕上展示第二图案。If yes, the terminal is unlocked, and the second pattern is displayed on the screen of the unlocked terminal.

本发明实施例所描述的终端可在终端处于被唤醒状态时,在所述终端的触摸屏上展示M个图案,其中,所述M个图案包括N类图案,所述N为大于1的整数,所述M为大于N的整数;确定用户针对所述N类图案中的K类图案中的P个图案的按压参数,所述按压参数包括P个按压力度值和所述P个图案对应的按压顺序,所述P个图案至少包含所述K类图案中每一类中的一个图案,所述K为大于1且小于N的整数;将所述按压参数与预设按压参数进行匹配;在所述按压参数和预设按压参数匹配成功的情况下,对所述终端进行解锁操作。本实施例中,可对终端解锁状态下触摸屏上展示已分类图案,并获取用户的按压参数,该参数包含按压力度值和按压顺序,将该按压参数与预设按压参数进行匹配,加大了破译难度,提高了终端的安全性。The terminal described in the embodiment of the present invention may display M patterns on the touch screen of the terminal when the terminal is in the awake state, where the M patterns include a N-type pattern, and the N is an integer greater than 1. The M is an integer greater than N; determining a pressing parameter of the user for the P patterns in the K-type pattern in the N-type pattern, the pressing parameter including P pressing force values and pressing corresponding to the P patterns In order, the P patterns include at least one of each of the K-type patterns, the K being an integer greater than 1 and less than N; matching the pressing parameter with a preset pressing parameter; In the case that the pressing parameter and the preset pressing parameter are successfully matched, the terminal is unlocked. In this embodiment, the classified pattern can be displayed on the touch screen in the unlock state of the terminal, and the pressing parameter of the user is obtained, and the parameter includes the pressing force value and the pressing sequence, and the pressing parameter is matched with the preset pressing parameter, thereby increasing the Deciphering the difficulty and improving 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 when the program is executed, the method includes any one of the pattern unlocking methods described in the foregoing method embodiments. Part or all of the steps of the law.

在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述的部分,可以参见其他实施例的相关描述。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. The components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. 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. Including a number 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 various embodiments of the present invention All or part of the steps of the above method. 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 a pattern, the method comprising: 在终端处于被唤醒状态时,在所述终端的触摸屏上展示M个图案,其中,所述M个图案包括N类图案,所述N为大于1的整数,所述M为大于所述N的整数;When the terminal is in the awake state, M patterns are displayed on the touch screen of the terminal, wherein the M patterns include a N-type pattern, the N is an integer greater than 1, and the M is greater than the N Integer 确定用户针对所述N类图案中的K类图案中的P个图案的按压参数,所述按压参数包括P个按压力度值和所述P个图案对应的按压顺序,所述P个图案至少包含所述K类图案中每一类中的一个图案,所述K为大于1且小于所述N的整数;Determining, by the user, a pressing parameter of P patterns in the K-type pattern in the N-type pattern, the pressing parameter includes P pressing force values and a pressing order corresponding to the P patterns, the P patterns including at least a pattern in each of the K-type patterns, wherein K is an integer greater than 1 and less than the N; 将所述按压参数与预设按压参数进行匹配;Matching the pressing parameter with a preset pressing parameter; 在所述按压参数和所述预设按压参数匹配成功的情况下,对所述终端进行解锁操作。And in the case that the pressing parameter and the preset pressing parameter are successfully matched, the terminal is unlocked. 如权利要求1所述的方法,其特征在于,所述将所述按压参数与所述预设按压参数进行匹配,包括:The method of claim 1, wherein the matching the pressing parameter with the preset pressing parameter comprises: 将所述P个按压力度值按照预设规则进行计算,以得到校验值;And calculating the P pressing force values according to a preset rule to obtain a check value; 判断所述校验值是否处于预设区间和所述按压顺序是否与预设按压顺序一致。Determining whether the check value is in a preset interval and whether the pressing sequence is consistent with a preset pressing sequence. 如权利要求2所述的方法,其特征在于,所述将所述P个按压力度值按照预设规则进行计算,以得到校验值,包括:The method according to claim 2, wherein the calculating the P pressing force values according to a preset rule to obtain a check value comprises: 将所述P个按压力度值的均值作为校验值;And using the average value of the P pressing force values as a check value; 或者,or, 将所述P个按压力度值中的最大按压力度值和最小按压力度值以外的按压力度值的方差作为校验值。A variance of a pressing force value other than the maximum pressing force value and the minimum pressing force value among the P pressing force values is used as a check value. 如权利要求1所述的方法,其特征在于,所述将所述按压参数与所述 预设按压参数进行匹配,包括:The method of claim 1 wherein said pressing parameter is said The preset compression parameters are matched, including: 判断所述P个按压力度值与预设的P个按压力度值是否匹配;Determining whether the P pressing force values match the preset P pressing force values; 若是,则判断所述按压顺序是否与预设按压顺序一致。If yes, it is determined whether the pressing sequence is consistent with the preset pressing sequence. 如权利要求1所述的方法,其特征在于,所述确定用户针对所述N类图案中的K类图案中的P个图案的按压参数,包括:The method of claim 1, wherein the determining a user's pressing parameters for the P patterns in the K-type pattern in the N-type pattern comprises: 获取所述N类图案中的K类图案中的P个图案的P个力度值和所述P个图案对应的P个类别识别码,其中,所述N类图案与N个类别识别码一一对应;Obtaining P velocity values of P patterns in the K-type pattern in the N-type pattern and P class identification codes corresponding to the P patterns, wherein the N-type pattern and the N category identification codes are one by one correspond; 将所述P个力度值按照预设的力度值与按压力度值之间的映射关系进行量化处理,以得到所述P个按压力度值;And dividing the P velocity values according to a mapping relationship between the preset velocity value and the pressing velocity value to obtain the P pressing force values; 将所述P个类别识别码按照预设方式生成字符串,并基于所述字符串确定所述P个图案对应的按压顺序;Generating a character string according to a preset manner, and determining a pressing order corresponding to the P patterns based on the character string; 将所述P个图案对应的所述P个按压力度值和所述按压顺序组合成所述P个图案的按压参数。And combining the P pressing force values corresponding to the P patterns and the pressing order into pressing parameters of the P patterns. 如权利要求1至5任一项所述的方法,其特征在于,在所述终端再次进入锁屏状态的情况下,所述对所述终端进行解锁操作之后,所述方法还包括:The method according to any one of claims 1 to 5, wherein, after the terminal is in the lock screen state again, after the unlocking operation is performed on the terminal, the method further includes: 若检测到所述用户在预设时间长度内对所述终端进行唤醒操作,在所述终端的触摸屏上展示第一图案;If it is detected that the user wakes up the terminal within a preset time length, displaying the first pattern on the touch screen of the terminal; 获取所述用户针对所述第一图案的第一按压参数;Obtaining a first pressing parameter of the user for the first pattern; 判断所述第一按压参数是否满足预设阈值;Determining whether the first pressing parameter meets a preset threshold; 若是,对所述终端进行解锁操作,并在解锁后的终端的屏幕上展示第二图案。If yes, the terminal is unlocked, and the second pattern is displayed on the screen of the unlocked terminal. 一种终端,其特征在于,所述终端包括:A terminal, wherein the terminal comprises: 展示单元,用于在终端处于被唤醒状态时,在所述终端的触摸屏上展示M个图案,其中,所述M个图案包括N类图案,所述N为大于1的整数,所述 M为大于所述N的整数;a display unit, configured to display M patterns on a touch screen of the terminal when the terminal is in an awake state, wherein the M patterns include a N-type pattern, and the N is an integer greater than 1, M is an integer greater than the N; 确定单元,用于确定用户针对所述N类图案中的K类图案中的P个图案的按压参数,所述按压参数包括所述P个图案对应的P个按压力度值和按压顺序,所述P个图案至少包含所述K类图案中每一类中的一个图案,所述K为大于1且小于所述N的整数;a determining unit, configured to determine a pressing parameter of a P pattern in the K-type pattern in the N-type pattern, the pressing parameter includes P pressing force values and a pressing order corresponding to the P patterns, The P patterns include at least one of each of the K-type patterns, the K being an integer greater than 1 and less than the N; 匹配单元,用于将所述确定单元确定的按压参数与预设按压参数进行匹配;a matching unit, configured to match a pressing parameter determined by the determining unit with a preset pressing parameter; 解锁单元,用于在所述匹配单元的匹配结果为所述按压参数和所述预设按压参数匹配成功的情况下,对所述终端进行解锁操作。And an unlocking unit, configured to perform an unlocking operation on the terminal if the matching result of the matching unit is that the pressing parameter and the preset pressing parameter are successfully matched. 如权利要求7所述的终端,其特征在于,所述匹配单元包括:The terminal according to claim 7, wherein the matching unit comprises: 计算单元,用于将所述确定单元确定的P个按压力度值按照预设规则进行计算,以得到目标按压力度值;a calculating unit, configured to calculate, according to a preset rule, the P pressing force values determined by the determining unit to obtain a target pressing force value; 第一判断单元,用于判断所述计算单元计算得到的目标按压力度值是否处于预设区间和所述按压顺序是否与预设按压顺序一致。The first determining unit is configured to determine whether the target pressing force value calculated by the calculating unit is in a preset interval and whether the pressing sequence is consistent with a preset pressing sequence. 如权利要求8所述的终端,其特征在于,所述计算单元具体用于:The terminal according to claim 8, wherein the calculating unit is specifically configured to: 将所述P个按压力度值的均值作为校验值;And using the average value of the P pressing force values as a check value; 或者,or, 将所述P个按压力度值中的最大按压力度值和最小按压力度值以外的按压力度值的方差作为校验值。A variance of a pressing force value other than the maximum pressing force value and the minimum pressing force value among the P pressing force values is used as a check value. 如权利要求7所述的终端,其特征在于,所述匹配单元包括:The terminal according to claim 7, wherein the matching unit comprises: 第二判断单元,用于判断所述P个按压力度值与预设的P个按压力度值是否匹配;a second determining unit, configured to determine whether the P pressing force values and the preset P pressing strength values match; 第三判断单元,用于若所述第二判断单元的判断结果为是,则判断所述按压顺序是否与预设按压顺序一致。The third determining unit is configured to determine, if the determination result of the second determining unit is yes, whether the pressing sequence is consistent with the preset pressing order. 如权利要求7所述的终端,其特征在于,所述确定单元包括: The terminal according to claim 7, wherein the determining unit comprises: 第一获取单元,用于获取所述N类图案中的K类图案中的P个图案的P个力度值和所述P个图案对应的P个类别识别码,其中,所述N类图案与N个类别识别码一一对应;a first acquiring unit, configured to acquire P velocity values of P patterns in the K-type pattern in the N-type pattern and P class identifiers corresponding to the P patterns, wherein the N-type pattern and N category identification codes are in one-to-one correspondence; 处理单元,用于将所述第一获取单元获取到的P个力度值按照预设的力度值与按压力度值之间的映射关系进行量化处理,以得到P个按压力度值;a processing unit, configured to quantize the P velocity values acquired by the first acquiring unit according to a mapping relationship between a preset velocity value and a pressing velocity value, to obtain P pressing velocity values; 确定子单元,用于将所述第一获取单元获取到的P个类别识别码按照预设方式生成字符串,并基于所述字符串确定所述P个图案对应的按压顺序。a determining subunit, configured to generate a character string according to a preset manner by the P class identifiers acquired by the first acquiring unit, and determine a pressing order corresponding to the P patterns based on the character string. 组合单元,用于将所述处理单元处理得到的P个按压力度值和所述确定子单元确定的所述P个图案对应的按压顺序组合成所述P个图案的按压参数。a combining unit configured to combine the P pressing force values obtained by the processing unit and the pressing order corresponding to the P patterns determined by the determining subunit into a pressing parameter of the P patterns. 如权利要求7至11任一项所述的终端,其特征在于,所述终端还包括:The terminal according to any one of claims 7 to 11, wherein the terminal further comprises: 显示单元,用于在所述终端再次进入锁屏状态的情况下,若检测到所述用户在预设时间长度内对所述终端进行唤醒操作,在所述终端的触摸屏上展示第一图案;a display unit, configured to display a first pattern on a touch screen of the terminal if the user detects that the user wakes up the terminal within a preset time length when the terminal enters the lock screen state again; 第二获取单元,用于获取所述用户针对所述第一图案的第一按压参数;a second acquiring unit, configured to acquire a first pressing parameter of the user for the first pattern; 第四判断单元,用于判断所述第二获取单元获取到的第一按压参数是否满足预设阈值;a fourth determining unit, configured to determine whether the first pressing parameter acquired by the second acquiring unit meets a preset threshold; 解锁单元,用于若所述第四判断单元的判断结果为是,对所述终端进行解锁操作,并在解锁后的终端的屏幕上展示第二图案。And an unlocking unit, configured to: if the determination result of the fourth determining unit is yes, perform an unlocking operation on the terminal, and display a second pattern on a screen of the unlocked terminal. 一种终端,其特征在于,包括:A terminal, comprising: 处理器和存储器;其中,所述处理器通过调用所述存储器中的代码或指令以执行如下步骤:a processor and a memory; wherein the processor performs the following steps by calling code or instructions in the memory: 在终端处于被唤醒状态时,在所述终端的触摸屏上展示M个图案,其中,所述M个图案包括N类图案,所述N为大于1的整数,所述M为大于所述N的整数;When the terminal is in the awake state, M patterns are displayed on the touch screen of the terminal, wherein the M patterns include a N-type pattern, the N is an integer greater than 1, and the M is greater than the N Integer 确定用户针对所述N类图案中的K类图案中的P个图案的按压参数,所 述按压参数包括P个按压力度值和所述P个图案对应的按压顺序,所述P个图案至少包含所述K类图案中每一类中的一个图案,所述K为大于1且小于所述N的整数;Determining a user's pressing parameters for P patterns in the K-type pattern in the N-type pattern, The pressing parameter includes P pressing force values and a pressing order corresponding to the P patterns, the P patterns including at least one of each of the K-type patterns, the K being greater than 1 and less than An integer of N; 将所述按压参数与预设按压参数进行匹配;Matching the pressing parameter with a preset pressing parameter; 在所述按压参数和所述预设按压参数匹配成功的情况下,对所述终端进行解锁操作。And in the case that the pressing parameter and the preset pressing parameter are successfully matched, the terminal is unlocked. 如权利要求13所述的终端,其特征在于,所述将所述按压参数与所述预设按压参数进行匹配,包括:The terminal according to claim 13, wherein the matching the pressing parameter with the preset pressing parameter comprises: 将所述P个按压力度值按照预设规则进行计算,以得到校验值;And calculating the P pressing force values according to a preset rule to obtain a check value; 判断所述校验值是否处于预设区间和所述按压顺序是否与预设按压顺序一致。Determining whether the check value is in a preset interval and whether the pressing sequence is consistent with a preset pressing sequence. 如权利要求14所述的终端,其特征在于,所述将所述P个按压力度值按照预设规则进行计算,以得到校验值,包括:The terminal according to claim 14, wherein the calculating the P pressing force values according to a preset rule to obtain a check value comprises: 将所述P个按压力度值的均值作为校验值;And using the average value of the P pressing force values as a check value; 或者,or, 将所述P个按压力度值中的最大按压力度值和最小按压力度值以外的按压力度值的方差作为校验值。A variance of a pressing force value other than the maximum pressing force value and the minimum pressing force value among the P pressing force values is used as a check value. 如权利要求13所述的终端,其特征在于,所述将所述按压参数与所述预设按压参数进行匹配,包括:The terminal according to claim 13, wherein the matching the pressing parameter with the preset pressing parameter comprises: 判断所述P个按压力度值与预设的P个按压力度值是否匹配;Determining whether the P pressing force values match the preset P pressing force values; 若是,则判断所述按压顺序是否与预设按压顺序一致。If yes, it is determined whether the pressing sequence is consistent with the preset pressing sequence. 如权利要求13所述的终端,其特征在于,所述确定用户针对所述N类图案中的K类图案中的P个图案的按压参数,包括:The terminal according to claim 13, wherein the determining, by the user, the pressing parameters of the P patterns in the K-type pattern in the N-type pattern comprises: 获取所述N类图案中的K类图案中的P个图案的P个力度值和所述P个 图案对应的P个类别识别码,其中,所述N类图案与N个类别识别码一一对应;Obtaining P velocity values of the P patterns in the K-type pattern in the N-type pattern and the P a P class identification code corresponding to the pattern, wherein the N-type pattern is in one-to-one correspondence with the N category identification codes; 将所述P个力度值按照预设的力度值与按压力度值之间的映射关系进行量化处理,以得到所述P个按压力度值;And dividing the P velocity values according to a mapping relationship between the preset velocity value and the pressing velocity value to obtain the P pressing force values; 将所述P个类别识别码按照预设方式生成字符串,并基于所述字符串确定所述P个图案对应的按压顺序;Generating a character string according to a preset manner, and determining a pressing order corresponding to the P patterns based on the character string; 将所述P个图案对应的所述P个按压力度值和所述按压顺序组合成所述P个图案的按压参数。And combining the P pressing force values corresponding to the P patterns and the pressing order into pressing parameters of the P patterns. 如权利要求13至17任一项所述的终端,其特征在于,在所述终端再次进入锁屏状态的情况下,所述对所述终端进行解锁操作之后,所述处理器还具体用于:The terminal according to any one of claims 13 to 17, wherein, in the case that the terminal enters the lock screen state again, after the unlocking operation is performed on the terminal, the processor is further specifically used for : 若检测到所述用户在预设时间长度内对所述终端进行唤醒操作,在所述终端的触摸屏上展示第一图案;If it is detected that the user wakes up the terminal within a preset time length, displaying the first pattern on the touch screen of the terminal; 获取所述用户针对所述第一图案的第一按压参数;Obtaining a first pressing parameter of the user for the first pattern; 判断所述第一按压参数是否满足预设阈值;Determining whether the first pressing parameter meets a preset threshold; 若是,对所述终端进行解锁操作,并在解锁后的终端的屏幕上展示第二图案。If yes, the terminal is unlocked, and the second pattern is displayed on the screen of the unlocked terminal. 一种计算机存储介质,其特征在于,所述计算机存储介质中存储有计算机可执行指令,所述计算机可执行指令用于执行如权利要求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.
PCT/CN2016/085082 2015-08-27 2016-06-07 Pattern unlocking method and terminal Ceased WO2017032127A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510543359.8 2015-08-27
CN201510543359.8A CN105095735B (en) 2015-08-27 2015-08-27 A kind of method and terminal of pattern unblock

Publications (1)

Publication Number Publication Date
WO2017032127A1 true WO2017032127A1 (en) 2017-03-02

Family

ID=54576147

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/085082 Ceased WO2017032127A1 (en) 2015-08-27 2016-06-07 Pattern unlocking method and terminal

Country Status (2)

Country Link
CN (1) CN105095735B (en)
WO (1) WO2017032127A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108959896A (en) * 2018-06-12 2018-12-07 平安科技(深圳)有限公司 unlocking method and device and computer readable storage medium

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105095735B (en) * 2015-08-27 2017-11-24 广东欧珀移动通信有限公司 A kind of method and terminal of pattern unblock
CN105868619A (en) * 2016-03-28 2016-08-17 惠州Tcl移动通信有限公司 Touch screen unlocking method and system based on mobile terminal and mobile terminal
CN105930698A (en) * 2016-04-11 2016-09-07 珠海市魅族科技有限公司 Control method for starting fingerprint recognition, and electronic terminal
CN106407847B (en) * 2016-09-05 2019-03-15 Oppo广东移动通信有限公司 Method and device for unlocking
CN107274174A (en) * 2017-05-18 2017-10-20 青岛海信移动通信技术股份有限公司 The auth method and mobile terminal of a kind of mobile payment

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100180336A1 (en) * 2009-01-13 2010-07-15 Nolan Jones System and Method for Authenticating a User Using a Graphical Password
CN102067150A (en) * 2008-06-16 2011-05-18 高通股份有限公司 Method and system for graphical passcode security
CN102637117A (en) * 2012-04-24 2012-08-15 华为终端有限公司 Unlocking method of touch screen terminal, and touch screen terminal
CN102760042A (en) * 2012-06-18 2012-10-31 惠州Tcl移动通信有限公司 Method and system for carrying out unlocking based on picture face identification, and electronic device
CN103034798A (en) * 2012-12-14 2013-04-10 广东欧珀移动通信有限公司 Random password generation method and device
CN104134032A (en) * 2014-07-30 2014-11-05 黄伟强 Anti-peeping coded lock system based on visional confusion and anti-peeing unlocking method based on visional confusion
CN104166816A (en) * 2014-08-12 2014-11-26 广东欧珀移动通信有限公司 Lock screen unlocking method and system based on application icons
US20150033328A1 (en) * 2012-03-16 2015-01-29 Ntt Docomo, Inc. Information terminal and execution control method
CN104598147A (en) * 2013-10-31 2015-05-06 英业达科技有限公司 Screen unlocking system and method
CN105095735A (en) * 2015-08-27 2015-11-25 广东欧珀移动通信有限公司 Pattern unlocking method and terminal

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103440109A (en) * 2013-09-16 2013-12-11 王恩惠 Touch screen unlocking method and system
CN104035688A (en) * 2014-06-20 2014-09-10 江苏物联网研究发展中心 Single-point touch pressure sensing safety unlocking method and device for mobile terminal
CN104168360B (en) * 2014-08-20 2018-01-23 广东欧珀移动通信有限公司 The unlocking method and device of a kind of mobile terminal

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102067150A (en) * 2008-06-16 2011-05-18 高通股份有限公司 Method and system for graphical passcode security
US20100180336A1 (en) * 2009-01-13 2010-07-15 Nolan Jones System and Method for Authenticating a User Using a Graphical Password
US20150033328A1 (en) * 2012-03-16 2015-01-29 Ntt Docomo, Inc. Information terminal and execution control method
CN102637117A (en) * 2012-04-24 2012-08-15 华为终端有限公司 Unlocking method of touch screen terminal, and touch screen terminal
CN102760042A (en) * 2012-06-18 2012-10-31 惠州Tcl移动通信有限公司 Method and system for carrying out unlocking based on picture face identification, and electronic device
CN103034798A (en) * 2012-12-14 2013-04-10 广东欧珀移动通信有限公司 Random password generation method and device
CN104598147A (en) * 2013-10-31 2015-05-06 英业达科技有限公司 Screen unlocking system and method
CN104134032A (en) * 2014-07-30 2014-11-05 黄伟强 Anti-peeping coded lock system based on visional confusion and anti-peeing unlocking method based on visional confusion
CN104166816A (en) * 2014-08-12 2014-11-26 广东欧珀移动通信有限公司 Lock screen unlocking method and system based on application icons
CN105095735A (en) * 2015-08-27 2015-11-25 广东欧珀移动通信有限公司 Pattern unlocking method and terminal

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108959896A (en) * 2018-06-12 2018-12-07 平安科技(深圳)有限公司 unlocking method and device and computer readable storage medium
CN108959896B (en) * 2018-06-12 2023-04-07 平安科技(深圳)有限公司 Unlocking method and device and computer readable storage medium

Also Published As

Publication number Publication date
CN105095735A (en) 2015-11-25
CN105095735B (en) 2017-11-24

Similar Documents

Publication Publication Date Title
WO2017032127A1 (en) Pattern unlocking method and terminal
CN105117663B (en) The encrypted object display methods and device of a kind of application
EP2919430A1 (en) Apparatus and method for authenticating a user using a wearable electronic device
CN105069347B (en) The method and terminal of a kind of unblock
CN106022079B (en) A fingerprint unlocking method and terminal
CN107742075A (en) Mobile computing device and wearable computing device with automatic access mode control
CN106468971A (en) The method of pressure and the electronic installation being suitable to the method are sensed by touch sensor
CN105117632B (en) The method and terminal of a kind of terminal unlocking
US9576411B2 (en) Apparatus and method for providing security keypad through shift of keypad
CN105184126A (en) A password setting method, verification method and terminal
CN106203034B (en) A kind of unlocked by fingerprint method and terminal
CN104951684A (en) Fingerprint encryption and decryption method and terminal
CN104992086A (en) Method for unlocking key function by defining keystroke rhythm by user and intelligent terminal
CN105159589A (en) Pattern unlocking method and terminal
CN105159557B (en) A method for generating an unlock password and a mobile terminal
CN104391586A (en) Detection method and detection system for keyboard input based on mobile terminal
CN105050061A (en) A message sending method and device based on user voiceprint information
WO2015120676A1 (en) Device pairing method and apparatus based on touch screen, and computer storage medium
WO2016000323A1 (en) Method for operating soft keyboard, terminal and computer readable storage medium
CN108370420A (en) Server, electronic equipment and the method for handling image by electronic equipment
CN106096345A (en) Method of password authentication based on keyboard and the device realizing the method
CN105260104A (en) Mobile terminal unlocking method and mobile terminal
CN103065075A (en) A kind of unlocking method of touch screen mobile terminal
CN104378202B (en) Information processing method, electronic terminal and server
WO2017000343A1 (en) Fingerprint unlocking method 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: 16838387

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: 16838387

Country of ref document: EP

Kind code of ref document: A1