CN112380521B - Touch screen unlocking method and device, storage medium and terminal - Google Patents

Touch screen unlocking method and device, storage medium and terminal Download PDF

Info

Publication number
CN112380521B
CN112380521B CN202011327046.6A CN202011327046A CN112380521B CN 112380521 B CN112380521 B CN 112380521B CN 202011327046 A CN202011327046 A CN 202011327046A CN 112380521 B CN112380521 B CN 112380521B
Authority
CN
China
Prior art keywords
touch
sliding
unlocking
determining
target
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202011327046.6A
Other languages
Chinese (zh)
Other versions
CN112380521A (en
Inventor
俞斌
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Lishunhe Technology Co ltd
Original Assignee
Shenzhen Lishunhe Technology Co ltd
Filing date
Publication date
Application filed by Shenzhen Lishunhe Technology Co ltd filed Critical Shenzhen Lishunhe Technology Co ltd
Priority to CN202011327046.6A priority Critical patent/CN112380521B/en
Publication of CN112380521A publication Critical patent/CN112380521A/en
Application granted granted Critical
Publication of CN112380521B publication Critical patent/CN112380521B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The embodiment of the application discloses a touch screen unlocking method and device, a storage medium and a terminal. The touch screen unlocking method comprises the following steps: when the sliding operation of the terminal touch screen in the screen locking state is detected, a sliding track corresponding to the sliding operation is determined, the sliding track comprises a plurality of touch points, a target touch point is determined from the plurality of touch points based on the position information of each touch point, the touch time corresponding to each target touch point in the sliding process is determined, and the sliding speed of the sliding operation among different target touch points is calculated according to the position information of each target touch point and the corresponding touch time, so that a sliding speed set is obtained; and determining unlocking information based on the sliding speed set, and executing unlocking operation according to the unlocking information. According to the embodiment of the application, the sliding speed of the sliding operation on the touch screen of the terminal in the screen locking state is obtained, the unlocking information is generated according to the sliding speed, and the unlocking operation is executed based on the unlocking information, so that the security of unlocking the touch screen of the terminal can be improved.

Description

Touch screen unlocking method and device, storage medium and terminal
Technical Field
The application relates to the field of terminal application, in particular to a touch screen unlocking method, a touch screen unlocking device, a storage medium and a terminal.
Background
The touch screen is used as the latest electronic product input equipment, and is the simplest, convenient and natural man-machine interaction mode at present. With the rapid development of touch screen technology, touch screens are widely used in terminals. Fewer and more input functions of the terminal are completed through the touch screen. For example, most terminals currently unlock through touch screen operation.
In the related art, when unlocking is performed through a touch screen, an unlocking password or an unlocking pattern is preset, and then unlocking is performed according to the unlocking password or the unlocking pattern input by a user on the touch screen. But when unlocking is performed through the password or the pattern, unlocking information is easily stolen by other people, so that the security is lower when the touch screen is unlocked.
Disclosure of Invention
The embodiment of the application provides a touch screen unlocking method and device, a storage medium and a terminal, which can improve the security of unlocking the touch screen of the terminal.
The embodiment of the application provides a touch screen unlocking method, which comprises the following steps:
When the sliding operation of the terminal touch screen in the screen locking state is detected, determining a sliding track corresponding to the sliding operation, wherein the sliding track comprises a plurality of touch points;
determining a target touch point from the plurality of touch points based on the position information of each touch point;
determining the touch time corresponding to each target touch point in the sliding process;
According to the position information of each target touch point and the corresponding touch time, calculating the sliding speed of the sliding operation between different target touch points to obtain a sliding speed set;
and determining unlocking information based on the sliding speed set, and executing unlocking operation according to the unlocking information.
Correspondingly, the embodiment of the application also provides a touch screen unlocking device, which comprises the following components:
The detection unit is used for determining a sliding track corresponding to the sliding operation when the sliding operation of the terminal touch screen is detected in the screen locking state, wherein the sliding track comprises a plurality of touch points;
a first determining unit configured to determine a target touch point from the plurality of touch points based on the position information of each touch point;
the second determining unit is used for determining the touch time corresponding to each target touch point in the sliding process;
The first calculation unit is used for calculating the sliding speed of the sliding operation between different target touch points according to the position information of each target touch point and the corresponding touch time to obtain a sliding speed set;
And the execution unit is used for determining unlocking information based on the sliding speed set and executing unlocking operation according to the unlocking information.
Correspondingly, the embodiment of the application also provides a storage medium, wherein the storage medium stores a plurality of instructions, and the instructions are suitable for being loaded by a processor to execute the touch screen unlocking method.
Correspondingly, the embodiment of the application also provides a terminal, which comprises a processor and a memory, wherein the memory stores a plurality of instructions, and the processor loads the instructions to execute the touch screen unlocking method.
According to the embodiment of the application, the detection track is arranged on the terminal touch screen in advance, the sliding track of the sliding operation on the terminal touch screen in the screen locking state is obtained, the intersection point of the sliding track and the detection track is determined according to the position of the sliding track and the position of the detection track, then the sliding speed is calculated according to the position of each intersection point and the corresponding touch time, the unlocking information is obtained according to the sliding speed, and the unlocking operation is executed based on the unlocking information, so that the unlocking safety of the touch screen of the terminal can be improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are needed in the description of the embodiments will be briefly described below, it being obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a schematic flow chart of a touch screen unlocking method according to an embodiment of the present application.
Fig. 2 is a schematic coordinate axis diagram of a terminal touch screen according to an embodiment of the present application.
Fig. 3 is a schematic diagram of a positional relationship between a sliding track and a detection track according to an embodiment of the present application.
Fig. 4 is a schematic diagram of touch area division of a terminal touch screen according to an embodiment of the present application.
Fig. 5 is a flowchart of another method for unlocking a touch screen according to an embodiment of the present application.
Fig. 6 is a schematic diagram of a sliding track according to an embodiment of the present application.
Fig. 7 is a schematic diagram of intersection of a sliding track and a preset detection track according to an embodiment of the present application.
Fig. 8 is a block diagram of a touch screen unlocking device according to an embodiment of the present application.
Fig. 9 is a schematic structural diagram of a terminal according to an embodiment of the present application.
Detailed Description
The following description of the embodiments of the present application will be made clearly and fully with reference to the accompanying drawings, in which it is evident that the embodiments described are only some, but not all embodiments of the application. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to fall within the scope of the application.
Based on the above problems, the embodiment of the application provides a touch screen unlocking method, a device, a storage medium and a terminal, which can improve the security of unlocking the touch screen of the terminal. The following will describe in detail. The following description of the embodiments is not intended to limit the preferred embodiments.
Referring to fig. 1, fig. 1 is a flowchart of a touch screen unlocking method according to an embodiment of the present application. The touch screen unlocking method can be applied to mobile terminals such as mobile phones, tablet computers, notebook computers, palm computers, portable media players (Portable MEDIA PLAYER, PMP) and fixed terminals such as desktop computers. The specific flow of the touch screen unlocking method can be as follows:
101. When the sliding operation of the terminal touch screen in the screen locking state is detected, determining a sliding track corresponding to the sliding operation.
In the embodiment of the application, the terminal can comprise a touch screen, which is also called a touch screen or a touch panel, and is an induction type liquid crystal display device capable of receiving input signals such as a contact, when a graphic button on the screen is touched, a touch feedback system on the screen can drive various connecting devices according to a preprogrammed program, and can be used for replacing a mechanical button panel and producing vivid video and audio effects by virtue of a liquid crystal display picture.
The terminal touch screen may include various states, such as a bright screen state, a dead screen state, and the like, according to the lighting condition thereof. The bright screen state means that the terminal touch screen is lightened to start working, and various contents can be displayed; the off-screen state refers to the state that the terminal touch screen is not lightened, namely, no content is displayed, and the off-screen state also refers to the state that the terminal touch screen is locked, namely, the operation is stopped.
The sliding operation refers to continuous and uninterrupted sliding on the terminal touch screen for a certain distance, and the sliding operation can be performed by a user.
For example, the user may continuously and uninterruptedly slide a certain distance on the terminal touch screen by a finger, that is, perform a sliding operation.
The sliding track refers to a pattern generated by sliding operation on the terminal touch screen, and the pattern can comprise a plurality of types. For example, the shape may include: straight lines, curved lines, circles, polygons, and the like.
For example, in a screen locking state of the terminal touch screen, a user can execute a sliding operation on the terminal touch screen by using a finger, and if a curve is detected as a pattern corresponding to the sliding operation, the curve can be determined as a sliding track corresponding to the current sliding operation of the user.
The sliding track is a pattern generated by sliding operation on the terminal touch screen, and the sliding track can also be composed of a plurality of touch points, wherein the touch points refer to positions when the touch points contact the terminal touch screen at different moments in the sliding operation process. The number of touch points may be determined in various ways, for example, the touch points may be acquired by detecting a sliding force during a sliding operation, or by setting a preset time interval during the sliding operation, or the like.
In some embodiments, in order to avoid that the sliding operation always carries out the force detection, which leads to an increase of the power consumption of the terminal, a time interval may be preset. For example, the time interval may be 0.5 seconds, 1 second, etc. Then, during the sliding operation, the touch point may be determined from the sliding trajectory at set time intervals.
For example, the time interval may be 0.5 seconds, one touch point may be determined every 0.5 seconds when the start of the sliding operation is detected, and a plurality of touch points may be determined when the sliding operation is ended. Therefore, the power consumption of the terminal can be saved, and a plurality of touch points can be uniformly extracted from the sliding track.
In some embodiments, to improve unlocking accuracy, the method may further include the following steps:
detecting the average sliding speed of the sliding operation in a preset time period every other preset time period in the sliding operation process;
Determining a target vibration frequency according to the average sliding speed;
triggering the vibration device to vibrate based on the target vibration frequency.
Wherein the preset time period is a time period set for detecting an average sliding speed during a sliding operation.
For example, the preset time period may be 1 second, 2 seconds, or the like. The smaller the preset time period is, the higher the sliding speed detection frequency in the sliding operation process is, and the more accurate the obtained real-time sliding speed is; the larger the preset time period is, the lower the detection frequency of the sliding speed in the sliding operation process is, and the inaccuracy condition may exist in the obtained real-time sliding speed.
The average sliding speed refers to a sliding speed of a sliding operation between a current time and a historical time, and the historical time refers to a time when a time difference between the current time and the historical time is a preset time period.
For example, when the current time is 8 hours and 12 minutes and 2 seconds, the preset time period may be 2 seconds, and the historical time may be determined to be 8 hours and 12 minutes and 0 seconds.
After the current time and the historical time are determined, the current sliding distance from the position of the historical time to the position of the current time of the touch operation can be obtained, and then the current sliding speed can be calculated according to the preset time period and the current sliding distance.
For example, the current sliding distance may be 2cm, the preset time period may be 2 seconds, and the current sliding speed may be 1 cm/second.
The target vibration frequency refers to a vibration frequency corresponding to the average sliding speed, and for example, the vibration frequency may be 1 time per second, 2 times per second, or the like.
Specifically, a correspondence relationship between the sample speed and the sample vibration frequency may be preset.
For example, the sample speed may include: sample vibration frequencies may include 1 cm per second, 2 cm per second, and 3 cm per second: 1, 2, and 3 times per second, wherein the correspondence of sample velocity to sample vibration frequency may be: 1 cm corresponds to 1 time per second, 2 cm corresponds to 2 times per second, and 3 cm corresponds to 3 times per second.
After calculating the average sliding speed, the sample vibration frequency corresponding to the average speed can be found out according to the corresponding relation between the sample speed and the sample vibration frequency, and the target vibration frequency is obtained. For example, the average sliding speed may be 1cm per second, and the sample vibration frequency corresponding to the average sliding speed is 1 time per second, that is, the target vibration frequency is 1 time per second.
The vibration device refers to a device for vibrating inside the terminal and can be used for tactile feedback. Tactile feedback refers to the ability to reproduce a tactile sensation as a user through a series of movements such as force, vibration, etc. For example, the vibration device may be a vibrator.
After the target vibration frequency is determined, the vibrator can be triggered to vibrate at the target vibration frequency, and the user can sense the sliding speed corresponding to the sliding operation in real time by triggering the vibrator to vibrate at the target vibration frequency, so that the user can properly adjust the sliding speed.
In some embodiments, to ensure the accuracy of the user sliding operation, the method may further include the following steps: detecting the current sliding speed of the sliding operation in a preset time period every preset time period in the sliding operation process;
calculating a speed difference value between the current sliding speed and a preset sliding speed;
If the speed difference is larger than the preset difference, triggering touch feedback, wherein the touch feedback is used for prompting the user that the current sliding speed does not meet the preset sliding speed.
The preset sliding speed refers to a proper sliding speed in the sliding operation process of the user, the preset sliding speed can be set as the preset sliding speed according to a plurality of sliding speeds obtained by the sliding operation in the historical time period of the user, and the sliding speed with the highest occurrence frequency is set as the preset sliding speed according to the sliding behavior habit of the user, so that the unlocking accuracy is improved.
After determining the current sliding speed, the current sliding speed may be compared with a preset sliding speed. And if the current sliding speed is greater than or less than the preset sliding speed, acquiring a speed difference value between the current sliding speed and the preset sliding speed.
For example, the current sliding speed may be 1 cm/sec, the preset sliding speed may be 2 cm/sec, and it may be determined that the current sliding speed is smaller than the preset sliding speed, and a speed difference between the current sliding speed and the preset sliding speed is calculated to be 1.
For another example, the current sliding speed may be 1 cm/s, the preset sliding speed may be 0.5 cm/s, and it may be determined that the current sliding speed is less than the preset sliding speed, and a speed difference between the current sliding speed and the preset sliding speed is calculated to be 0.5.
Further, if the current sliding speed does not meet the preset sliding speed, the user may be prompted that the current sliding speed does not meet the preset sliding speed, so that the user accelerates the sliding operation or slows down the sliding operation. The prompting mode may include various modes, for example, the terminal may prompt the user through a touch screen in a mode of tactile feedback.
Then, when the current sliding speed does not satisfy the preset sliding speed, in order for the user to accurately change the sliding speed, the user may be prompted by different tactile feedback in different cases. For example, when the current speed is less than the preset speed and the speed difference between the current speed and the preset speed is greater than the preset difference, the haptic feedback may be set as single vibration; when the current speed is greater than the preset speed and the speed difference between the current speed and the preset speed is greater than the preset difference, the tactile feedback may be set to continuous vibration, or the like.
102. A target touch point is determined from the plurality of touch points based on the position information of each touch point.
The position information refers to the position of the touch point on the touch screen of the terminal, and the position can be represented by coordinates.
Referring to fig. 2, fig. 2 is a schematic coordinate axis diagram of a terminal touch screen according to an embodiment of the present application. In fig. 2, a coordinate system may be constructed based on one long side and one short side of the terminal touch screen, where the short side may be set as an X axis and the long side may be set as a Y axis, and the touch point a in fig. 2 may be (X, Y) at the position of the terminal touch screen.
In some embodiments, in order to quickly determine the target touch point, the step of "determining the target touch point from a plurality of touch points based on the position information of each touch point" may include the following operations:
matching the position information of each touch point with the position information of a plurality of detection tracks;
If the position information of the touch point is successfully matched with the position information of the detection track, determining candidate touch points based on the touch points of which the position information is successfully matched with the position information of the detection track;
And determining a target detection track corresponding to each candidate touch point, and determining the target touch point from the candidate touch points according to the target detection track corresponding to each candidate touch point and the corresponding touch time.
The detection track refers to a pattern preset on the terminal touch screen, and is used for determining a target touch point from the sliding track so as to facilitate the subsequent calculation of the sliding speed of the sliding operation. For example, the detection track may be a straight line or the like.
The position information of each touch point, namely the coordinates of each touch point on the terminal touch screen coordinate axis; since the detection track may be a straight line, the detection track is composed of a plurality of points at this time, and the position information of the detection track may refer to a coordinate set formed by the detection track on the terminal touch screen coordinate axis.
After determining the position information of each touch point, the position information of the touch point and the position information of the detection track may be matched, that is, whether the coordinate set corresponding to the detection track has the same coordinate as the coordinate of the touch point is determined, and if the coordinate of the touch point has the same coordinate as the coordinate set of the detection track, the touch point may be determined to be a candidate touch point.
Referring to fig. 3, fig. 3 is a schematic diagram illustrating a positional relationship between a sliding track and a detection track according to an embodiment of the present application. In fig. 3, the sliding track may be a curve, and the detection track may be a straight line. The sliding track may include a plurality of touch points, which may be sequentially from left to right: touch point a, touch point B, touch point C, touch point D, touch point E, touch point F, touch point G, and touch point H. According to the position information of each touch point and the position information of the detection track, the touch points with the position information conforming to the position information of the detection track can be determined from a plurality of touch points of the sliding track, and the touch points are as follows: touch point A, touch point C, touch point E, and touch point H, and candidate touch points are obtained.
The target detection track refers to a detection track where the position information is successfully matched with the position information of the touch point, namely the detection track where the touch point is located, among the plurality of detection tracks.
For example, the detection tracks may include a first detection track and a second detection track, and the candidate touch points may include: touch points a, C, E and H, where the touch points in the candidate touch points that the position information matches with the position information of the first detection track successfully may include touch point a, touch point C and touch point H; the touch points in which the position information of the candidate touch points is successfully matched with the position information of the second detection track may include a touch point E, and then it may be determined that the target detection tracks corresponding to the touch point a, the touch point C and the touch point H are the first detection tracks and the target detection track corresponding to the touch point E is the second detection track.
The touch time refers to a time when the sliding operation slides to the touch point, for example, the time may be 14 hours 46 minutes 13 seconds when sliding to the touch point a during the sliding operation.
After determining the target detection track and the sliding time corresponding to each candidate touch point, the target touch point can be determined from the plurality of candidate touch points according to the target detection track and the sliding time.
In some embodiments, in order to determine an effective target touch point, the step of determining a target touch point from the candidate touch points according to the target detection track corresponding to each candidate touch point and the corresponding touch time may include the following procedures:
Sorting the plurality of candidate touch points based on the touch time corresponding to each candidate touch point to obtain a candidate touch point sequence;
and if the target detection tracks corresponding to the continuous multiple candidate touch points exist in the candidate touch point sequence, determining the candidate touch point with the touch time closest to the current time from the continuous multiple candidate touch points, and obtaining the target touch point.
The candidate touch point sequence refers to a plurality of candidate touch points that are sequentially arranged, for example, the candidate touch point sequence may be: touch point a, touch point C, touch point E, touch point H, and so on. The candidate touch points can be arranged in different arrangement modes to obtain different candidate touch point sequences.
In the embodiment of the application, the plurality of candidate touch points may be ranked according to the touch time of each candidate touch point, for example, the plurality of candidate touch points may be ranked based on the touch time of each candidate touch point according to the time sequence.
For example, the touch time of the touch point a may be 14 hours 50 minutes 1 second, the touch time of the touch point C may be 14 hours 50 minutes 5 seconds, the touch time of the touch point E may be 14 hours 50 minutes 7 seconds, and the touch time of the touch point H may be 14 hours 50 minutes 11 seconds, and then the candidate touch points are ordered according to the chronological order, so that a candidate touch point sequence may be obtained: touch point a, touch point C, touch point E, and touch point H. The candidate touch points are sequenced according to the sequence of the touch time of the candidate touch points to determine the candidate touch point sequence, so that the sliding speed of the sliding operation can be detected in real time, and the accurate sliding speed can be ensured.
After determining the candidate touch point sequence, it may be determined whether the target detection tracks corresponding to the continuous candidate touch points in the candidate touch point sequence are the same, that is, whether adjacent candidate touch points in the candidate touch point sequence are in the same target detection track.
For example, the candidate touch point sequence is: the touch point A corresponds to a first detection track, the touch point C corresponds to a second detection track, the touch point E corresponds to a second detection track and the touch point H corresponds to a first detection track, and then the touch point C and the touch point E are adjacent touch points in the candidate touch point sequence, the touch point C and the touch point E correspond to the second detection tracks, and then the touch point E with the back touch time can be determined to be a target touch point. Then, since the above condition "adjacent and in the same target detection track" is not satisfied for the touch points a and H, the touch points a and H are also target touch points.
In some embodiments, if the target detection tracks corresponding to adjacent touch points do not exist in the candidate touch point sequence, all the candidate touch points may be determined to be target touch points.
In some embodiments, when the user sliding operation is unlocked, in order to facilitate the user single-hand operation, before the step of matching the position information of each touch point with the position information of the plurality of detection tracks, the method may further include the steps of:
determining contact position information with the terminal according to a sliding operation;
and determining a sample track with the position information conforming to the contact position information from the plurality of sample tracks to obtain a detection track.
The contact position information refers to a contact position detected by the terminal when the user contacts the terminal, and may be a contact position detected by the user and a touch screen of the terminal, or a contact position detected by the user and a rear case of the terminal.
In some embodiments, in order to determine an accurate detection track, if the user contacts the terminal touch screen and the terminal rear shell at the same time, the contact position of the user and the terminal touch screen may be detected, so as to obtain contact position information.
The plurality of sample tracks refer to a plurality of sample tracks preset according to a terminal touch screen, so that corresponding sample tracks can be acquired according to contact position information and used as detection tracks.
Referring to fig. 4, fig. 4 is a schematic view of touch area division of a terminal touch screen according to an embodiment of the present application, and in fig. 4, the terminal touch screen may be divided into: a first region, a second region, a third region, and a fourth region, wherein a sample track a may be provided in the first region, a sample track B may be provided in the second region, a sample track C may be provided in the third region, and a sample track D may be provided in the fourth region.
For example, when the user starts to perform the sliding operation, the contact position information of the user and the terminal is detected, if the contact position is detected to be located in the first area, the sample track a can be determined to be the detection track corresponding to the current sliding operation, so that the detection line is determined according to the contact position of the hand of the user and the terminal, and the user can conveniently unlock the mobile phone by one hand.
In some embodiments, in order to facilitate the user to view the positional relationship between the current sliding operation and the detection track, after determining the detection track, the detection track may be displayed on the terminal display screen, so that the user may clearly view the detection track to continue the sliding operation.
103. And determining the touch time corresponding to each target touch point in the sliding process.
The definition of the touch time can be referred to step 102, and is described in step 102, which is not repeated here.
Since the target touch point is extracted from the candidate touch points, the touch time corresponding to the target touch point, that is, the touch time of the candidate touch point corresponding to the target touch point.
104. And calculating the sliding speed of the sliding operation between different target touch points according to the position information of each target touch point and the corresponding touch time, and obtaining a sliding speed set.
The location information refers to coordinates of the target touch point, for example, the coordinates of the target touch point may be (x, y).
In the embodiment of the present application, the sliding speed of the sliding operation between different target touch points may include a sliding speed between every two target touch points, preferably, the two target touch points may be two adjacent target touch points with touch time approaching, and of course, the two target touch points may also be two target touch points determined according to other rules, which is not limited herein.
In some embodiments, in order to quickly calculate the set of sliding speeds, the step of calculating the sliding speed of the sliding operation between different target touch points according to the position information of each target touch point and the corresponding touch time may include the following operations:
Determining a plurality of touch point sets from the target touch points according to the touch time of the target touch points;
calculating the difference value of the touch time of the two target touch points in each touch point set to obtain the touch time difference of the two target touch points;
Determining the touch distance of two target touch points according to the touch positions of the two target touch points in each touch point set;
and calculating the ratio of the touch distance to the touch time difference to obtain the sliding speed of the touch operation between the two target touch points in each touch point set.
The touch point set comprises two target touch points with adjacent touch time, namely a target touch point pair.
For example, the target touch point may include: the sequence of the target touch points obtained by detoxifying the plurality of target touch points according to the touch time of each target touch point may be: touch point a, touch point B, touch point C, touch point D, then it may be determined that the touch point pair includes: and the touch points A and B, the touch points B and C and the touch points C and D are respectively used for obtaining three target touch point sets.
After the touch point sets are determined, a difference between the touch times of the two target touch points in each touch point set can be calculated, so as to obtain a touch time difference of the two target touch points.
For example, the touch point set includes a touch point a and a touch point B, where the touch time corresponding to the touch point a may be 15 hours 6 minutes 0 seconds, and the touch time corresponding to the touch point B may be 15 hours 6 minutes 3 seconds. The touch time difference of the touch time of the touch point a and the touch point B can be calculated to be 3 seconds.
The touch distance refers to a length value between two target touch points in the same touch point set, and can be calculated by coordinates of the two target touch points.
Specifically, the coordinates of the touch point a are (x 1, y 1), the coordinates of the touch point B are (x 2, y 2), and the touch distance AB between the touch point a and the touch point B can be calculated according to a calculation formula of the two-point calculation distance. The following are provided:
For example, the coordinates of the touch point a are (1, 1), the coordinates of the touch point B are (2, 2), and then the two-point coordinates are taken into the calculation formula for calculating the calculated distance, so that the touch distance AB between the touch point a and the touch point B is 1.4 cm.
After determining the touch time difference and the touch distance of the two target touch points, the speed calculation formula can be: v=s/T, where V represents speed, S represents distance, and T represents time.
For example, the touch time difference T of the two target touch points may be 3 seconds, the touch distance S may be 1.4 cm, and then according to the velocity calculation formula: v=s/T the velocity V can be calculated to be 0.47 cm per second. And in turn, respectively calculating the sliding speeds between the two target touch points in each touch point set, and obtaining a plurality of sliding speeds, namely a sliding speed set.
105. And determining unlocking information based on the sliding speed set, and executing unlocking operation according to the unlocking information.
The unlocking information refers to an unlocking password composed of a plurality of identifiers, the identifiers refer to numbers, letters or symbols, and the like, and for example, the identifiers can be: 1,2, a, etc. Then, the unlock code may be: 12Aa, etc.
In some embodiments, to improve the unlocking efficiency, the step of "determining unlocking information based on the set of sliding speeds" may include the following operations:
determining the number of sliding speeds in the sliding speed set;
if the number is greater than or equal to the preset number, determining the time corresponding to each sliding speed of the sliding speed set;
extracting the preset number of sliding speeds from the sliding speed set according to the time corresponding to each sliding speed;
determining a sample identifier corresponding to each sliding speed from a preset identifier set to obtain a plurality of unlocking identifiers;
Unlock information is determined based on the plurality of unlock identifiers.
Wherein the number of sliding speeds is the number of sliding speeds in the sliding set.
For example, the sliding speed set may include: the number of sliding speeds in the sliding speed set may be determined to be 3 if the first sliding speed, the second sliding speed, and the third sliding speed.
The preset number may refer to the number of identifiers in the successful unlocking information set by the user, for example, the successful unlocking information set by the user may be: 12Aa, the preset number may be determined to be 4.
The time corresponding to the sliding speed refers to the touch time of the first target touch point or the second target touch point in the two target touch points for calculating the sliding speed.
When the user starts the sliding operation process, there may be an erroneous operation, which may be to lightly slide the touch screen, and the sliding speed corresponding to the sliding operation at this time may be an invalid sliding speed. Then, the plurality of sliding speeds in the sliding speed set may be sorted based on the time corresponding to each sliding speed, resulting in a sliding speed sorting sequence.
Further, a preset number of sliding speeds may be sequentially obtained from the sliding speed sequencing sequence to ensure that an effective sliding speed is extracted,
After determining the sliding speed sequence, the sliding speeds may be sequentially extracted from the sliding speed sequence until the number of extracted sliding speeds satisfies a preset number. The effective sliding speed can be obtained from the set of sliding speeds.
For example, the preset number may be 4, and the sliding speed sequence is: the second sliding speed, the fifth sliding speed, the fourth sliding speed, the first sliding speed and the third sliding speed are sequentially extracted from the sliding speed sequence to obtain the preset number of sliding speeds: the second sliding speed, the fifth sliding speed, the fourth sliding speed and the first sliding speed.
The preset identifier set comprises a plurality of sample identifiers and sample speed intervals corresponding to the sample identifiers.
For example, the plurality of sample identifiers included in the preset identifier set are: 1.2, A, B, etc., wherein the sample speed interval corresponding to sample identification 1 may be 0-1 cm/s, the sample speed interval corresponding to sample identification 2 may be 1.1-2 cm/s, the sample speed interval corresponding to sample identification a may be 2.1-3 cm/s, and the sample speed interval corresponding to sample identification B may be 3.1-4 cm/s.
The unlocking identifier is a sample identifier corresponding to the sliding speed. For example, the sliding speed may be 1 cm/s, the sample identifier corresponding to the sliding speed may be searched from the preset identifier set, and may be 1, and the unlocking identifier of the sliding speed is 1. Therefore, a plurality of unlocking identifications can be obtained according to the sample identifications corresponding to each sliding speed, and thus an unlocking password is obtained.
In some embodiments, after the step of "determining the number of sliding speeds in the sliding speed set", the following steps may be further included:
If the number does not meet the preset number, generating prompt information, wherein the prompt information is used for prompting the user that the current sliding operation does not meet the unlocking condition and requesting to operate again.
When the number of the sliding speeds in the sliding speed set does not meet the preset number, namely, does not meet the condition of successful unlocking, at this time, the terminal can generate prompt information, the prompt content of the prompt information can be that the current operation does not meet the unlocking condition, please re-operate, and the like, and the prompt information is displayed on a display screen, so that a user can timely see the prompt information, the next sliding unlocking can be quickly executed, and the user time is saved.
After the unlocking information is obtained according to the sliding speed, the unlocking information can be compared with the successful unlocking information, and if the unlocking information is the same as the successful unlocking information, the unlocking is successful.
For example, the unlocking information may be 123B, and the successful unlocking information may be 123B, and it may be determined that the unlocking information is the same as the successful unlocking information, and the unlocking is successfully completed. The user can use the terminal to complete the corresponding task.
The embodiment of the application discloses a touch screen unlocking method, which comprises the following steps: when the sliding operation of the terminal touch screen in the screen locking state is detected, a sliding track corresponding to the sliding operation is determined, the sliding track comprises a plurality of touch points, a target touch point is determined from the plurality of touch points based on the position information of each touch point, the touch time corresponding to each target touch point in the sliding process is determined, and the sliding speed of the sliding operation among different target touch points is calculated according to the position information of each target touch point and the corresponding touch time, so that a sliding speed set is obtained; and determining unlocking information based on the sliding speed set, and executing unlocking operation according to the unlocking information. According to the embodiment of the application, the detection track is arranged on the terminal touch screen in advance, the sliding track of the sliding operation on the terminal touch screen in the screen locking state is obtained, the intersection point of the sliding track and the detection track is determined according to the position of the sliding track and the position of the detection track, then the sliding speed is calculated according to the position of each intersection point and the corresponding touch time, the unlocking information is obtained according to the sliding speed, and the unlocking operation is executed based on the unlocking information, so that the unlocking safety of the touch screen of the terminal can be improved.
Referring to fig. 5, fig. 5 is a flowchart of another method for unlocking a touch screen according to an embodiment of the present application. The specific scene application of the touch screen unlocking method can be as follows:
201. when the terminal detects the sliding operation of the user on the terminal touch screen in the screen locking state, a sliding track corresponding to the sliding operation is obtained.
In the embodiment of the application, the application scene can be that the user performs the unlocking operation on the terminal touch screen, and then the terminal touch screen can be in a screen locking state before the user performs the sliding operation.
When the terminal is in a screen locking state, if the sliding operation of the user on the touch screen is detected, the terminal can default to the unlocking operation required by the user, and the unlocking module of the touch screen of the terminal can be started to start working.
The sliding track refers to a pattern corresponding to the sliding operation of the user, namely a track pattern formed on the terminal touch screen during the sliding operation of the user.
Fig. 6 is a schematic diagram of a sliding track according to an embodiment of the present application. In fig. 6, a terminal touch screen is shown, and a sliding trace on the terminal touch screen may be a sliding trace formed according to a user sliding operation.
202. The terminal acquires a plurality of intersection points where the sliding track intersects with a preset detection track.
The preset detection track refers to a track pattern preset on the terminal touch screen, for example, the preset detection track may be two straight lines or the like.
The intersection point refers to an intersection point of the sliding track and a preset detection track.
Referring to fig. 7, fig. 7 is a schematic diagram illustrating an intersection between a sliding track and a preset detection track according to an embodiment of the present application. Fig. 7 illustrates that a sliding track of a user sliding operation intersects a preset detection track of a terminal touch screen, and a plurality of intersection points may be determined based on an intersection portion of the sliding track and the preset detection track, for example, 10 intersection points may be included.
For example, in fig. 7, the following steps may be performed in order from left to right: intersection 1, intersection 2, intersection 3, intersection 4, intersection 5, and intersection 6.
203. The terminal determines the position information of each intersection point and the corresponding intersection time.
The position information refers to the position of the intersection point on the terminal touch screen, and may be represented by a coordinate axis manner, specifically, refer to the above embodiment, and will not be described in detail in the embodiment of the present application.
For example, in fig. 7, the position of intersection 1 may be (2, 2.5), the position of intersection 2 may be (2,2.3), the position of intersection 3 may be (3,2.4), the position of intersection 4 may be (3,2.2), the position of intersection 5 may be (8, 2), and the position of intersection 6 may be (8,1.8).
The intersection time refers to the time when the user slides to intersect with the preset detection track in the sliding operation process to obtain the intersection point of the sliding track and the preset detection track.
For example, in fig. 7, the user sliding operation may be to sequentially slide the touch screen from the left, so as to obtain an intersection point of the sliding track and the preset detection track: intersection 1, intersection 2, intersection 3, intersection 4, intersection 5, and intersection 6, wherein the intersection time corresponding to intersection 1 may be 18 hours 1 minute 1 second, the intersection time corresponding to intersection 2 may be 18 hours 1 minute 2 seconds, the intersection time corresponding to intersection 3 may be 18 hours 1 minute 4 seconds, the intersection time corresponding to intersection 4 may be 18 hours 1 minute 5 seconds, the intersection time corresponding to intersection 5 may be 18 hours 1 minute 6 seconds, and the intersection time corresponding to intersection 6 may be 18 hours 1 minute 7 seconds.
204. And the terminal calculates the sliding speed of the sliding operation between every two intersection points according to the position information of each intersection point and the corresponding intersection time, so as to obtain a plurality of sliding speeds.
Wherein calculating the sliding speed of the sliding operation between every two intersection points may mean calculating the sliding speed of the sliding operation between every two adjacent intersection points.
For example, the intersection points are ordered according to time sequence, and the obtained ordering sequence may be: if the intersections 1,2,3, 4, 5, and 6 are calculated, the sliding speeds between the intersections 1 and 2,2 and 3, 3 and 4,4 and 5, and 5 and 6 are required.
Specifically, the sliding speed between two intersection points may be calculated according to a plurality of calculation formulas in the above embodiment: the calculation formula of the first calculation distance:
A calculation formula of the second calculation speed: v=s/T. By substituting the position of each intersection point and the corresponding intersection time into the above formula for calculation, a plurality of sliding speeds can be obtained as follows: 0.2 cm per second, 0.5 cm per second, 0.2 cm per second, 202 cm per second, 0.2 cm per second.
205. And the terminal determines the unlocking code corresponding to each sliding speed from a preset unlocking code set to obtain a plurality of unlocking codes.
The unlocking code can be a sign, namely a number, a letter or a character. For example, the identification may be 1, a, etc.
The preset unlocking code set refers to the corresponding relation between the speed stored in the terminal in advance and the unlocking code.
For example, the speed may be divided into different ranges, each corresponding to an unlock code, as follows:
When V < d1 is more than or equal to 0, the unlocking code is 2;
when d1 is less than or equal to V < d2, the unlocking code is 'e';
When d2 is less than or equal to V < d3, the unlocking code is '6';
when d3 is less than or equal to V, the unlocking code is "A", wherein V represents the speed, d1, d2 and d3 are different speed values, and the unlocking code can be set according to actual conditions.
For example, the plurality of sliding speeds may include: the first sliding speed, the second sliding speed and the third sliding speed, wherein the first sliding speed is in the interval of 0-d 1, and the unlocking code corresponding to the first sliding speed can be determined to be 2; the second sliding speed is within the interval of 0-d 1, the unlocking code corresponding to the first sliding speed can be determined to be 2, the third sliding speed is within the interval of d 1-d 2, the unlocking code corresponding to the first sliding speed can be determined to be e, and a plurality of unlocking codes can be obtained as follows: "2", "e".
206. The terminal sorts the unlocking codes to obtain unlocking code sequences, and matches the unlocking code sequences with preset unlocking code sequences.
The terminal sequences the unlocking codes by the time of the sliding speed corresponding to each unlocking code. The time of the sliding speed corresponding to each unlocking code also calculates the intersection time corresponding to any intersection point of two intersection points of the sliding speed. And sequencing the unlocking codes according to the sequence of the time corresponding to the sliding speed, so as to obtain an unlocking code sequence.
For example, the unlock code set includes: the time corresponding to each unlocking code can be respectively 18 hours 1 minute 2 seconds, 18 hours 1 minute 5 seconds and 18 hours 1 minute 6 seconds, the unlocking codes can be ordered according to the time sequence, and the obtained unlocking code sequence is as follows: 22e.
207. And if the unlocking code is successfully matched with the preset unlocking code, executing successful unlocking operation.
Since the terminal user presets the successful unlocking code sequence, after determining the unlocking code sequence corresponding to the current sliding operation, the unlocking code sequence can be matched with the preset unlocking code sequence, if the matching is successful, the unlocking is successful, if the matching is failed, the unlocking operation is failed, prompt information can be generated, the content of the prompt information can be 'password error, please input again', and the like, so as to prompt the user to perform the re-operation.
The embodiment of the application discloses a touch screen unlocking method, which comprises the following steps: when the terminal detects the sliding operation of a user on the terminal touch screen in a screen locking state, a sliding track corresponding to the sliding operation is obtained, a plurality of intersection points where the sliding track intersects with a preset detection track are obtained, position information and corresponding intersection time of each intersection point are determined, sliding speed of the sliding operation between every two intersection points is calculated according to the position information and the corresponding intersection time of each intersection point to obtain a plurality of sliding speeds, unlocking codes corresponding to each sliding speed are determined from a preset unlocking code set to obtain a plurality of unlocking codes, the terminal sorts the unlocking codes to obtain an unlocking code sequence, and if the unlocking code is successfully matched with the preset unlocking code, successful unlocking operation is executed. Through the mode, unlocking safety can be better improved, and meanwhile, diversified experience is brought to unlocking operation of a user.
In order to facilitate better implementation of the touch screen unlocking method provided by the embodiment of the application, the embodiment of the application also provides a device based on the touch screen unlocking method. The meaning of the noun is the same as that in the touch screen unlocking method, and specific implementation details can be referred to the description in the method embodiment.
Referring to fig. 8, fig. 8 is a block diagram of a touch screen unlocking device according to an embodiment of the present application, where the touch screen unlocking device can be applied to mobile terminals such as mobile phones, tablet computers, notebook computers, palm computers, portable media players (Portable MEDIA PLAYER, PMP) and fixed terminals such as desktop computers, and the device includes:
A detection unit 301, configured to determine a sliding track corresponding to a sliding operation when the sliding operation on a terminal touch screen in a screen locking state is detected, where the sliding track includes a plurality of touch points;
a first determining unit 302, configured to determine a target touch point from the plurality of touch points based on the position information of each touch point;
a second determining unit 303, configured to determine a touch time corresponding to each target touch point in the sliding process;
A first calculating unit 304, configured to calculate a sliding speed of the sliding operation between different target touch points according to the position information of each target touch point and the corresponding touch time, so as to obtain a sliding speed set;
And an execution unit 305, configured to determine unlocking information based on the sliding speed set, and execute an unlocking operation according to the unlocking information.
In some embodiments, the first determining unit 302 may include:
a matching subunit, configured to match the position information of each touch point with the position information of the plurality of detection tracks;
A first determining subunit, configured to determine, if there is a successful match between the position information of the touch point and the position information of the detection track, a candidate touch point based on the touch point where the position information is successfully matched with the position information of the detection track;
And the second determining subunit is used for determining a target detection track corresponding to each candidate touch point and determining the target touch point from the candidate touch points according to the target detection track corresponding to each candidate touch point and the corresponding touch time.
In some embodiments, the second determining subunit may be specifically configured to:
Sorting the plurality of candidate touch points based on the touch time corresponding to each candidate touch point to obtain a candidate touch point sequence;
And if the target detection tracks corresponding to the continuous multiple candidate touch points exist in the candidate touch point sequence, determining the candidate touch point with the touch time closest to the current time from the continuous multiple candidate touch points, and obtaining the target touch point.
In some embodiments, the first determining unit 302 may further include:
a third determination subunit configured to determine contact position information with the terminal according to the sliding operation;
and the fourth determination subunit is used for determining a sample track with the position information conforming to the contact position information from a plurality of sample tracks to obtain the detection track.
In some embodiments, execution unit 305 may include:
A fifth determining subunit configured to determine a number of sliding speeds in the sliding speed set;
a sixth determining subunit, configured to determine a time corresponding to each sliding speed of the sliding speed set if the number is greater than or equal to a preset number;
An extraction subunit for extracting the preset number of sliding speeds from the sliding speed set according to the time corresponding to each sliding speed
A seventh determining subunit, configured to determine a sample identifier corresponding to each sliding speed from a preset identifier set, to obtain a plurality of unlocking identifiers, where the preset identifier set includes a plurality of sample identifiers and a sample speed interval corresponding to each sample identifier;
and an eighth determination subunit, configured to determine the unlocking information based on the plurality of unlocking identifiers.
In some embodiments, the first computing unit 304 may include:
a ninth determining subunit, configured to determine, according to a touch time of the target touch points, a plurality of touch point sets from the target touch points, where the touch point sets include two target touch points with adjacent touch times;
The first calculating subunit is used for calculating the difference value of the touch time of the two target touch points in each touch point set to obtain the touch time difference of the two target touch points;
A tenth determination subunit, configured to determine a touch distance between two target touch points according to touch positions of the two target touch points in each touch point set;
And the second calculating subunit is used for calculating the ratio of the touch distance to the touch time difference to obtain the sliding speed of the touch operation between two target touch points in each touch point set.
In some embodiments, the apparatus may further comprise:
An operation unit configured to detect an average sliding speed of the sliding operation within a preset time period every preset time period during the sliding operation;
A third determining unit configured to determine a target vibration frequency according to the average sliding speed;
and the triggering unit is used for triggering the vibration device to vibrate based on the target vibration frequency.
The embodiment of the application discloses a touch screen unlocking device, which comprises: when detecting a sliding operation on a terminal touch screen in a screen locking state, the detecting unit 301 determines a sliding track corresponding to the sliding operation, the first determining unit 302 determines a target touch point from a plurality of touch points based on position information of each touch point, the second determining unit 303 determines a touch time corresponding to each target touch point in the sliding process, the first calculating unit 304 calculates a sliding speed of the sliding operation between different target touch points according to the position information of each target touch point and the corresponding touch time, a sliding speed set is obtained, the executing unit 305 determines unlocking information based on the sliding speed set, and performs unlocking operation according to the unlocking information, so that the security of unlocking the touch screen of the terminal can be improved.
The embodiment of the application also provides a terminal. As shown in fig. 9, the terminal may include Radio Frequency (RF) circuitry 601, memory 602 including one or more storage media, input unit 603, display unit 604, sensor 605, audio circuit 606, wireless fidelity (WiFi, wireless Fidelity) module 607, processor 608 including one or more processing cores, and power supply 609. It will be appreciated by those skilled in the art that the terminal structure shown in fig. 9 is not limiting of the terminal and may include more or fewer components than shown, or may combine certain components, or a different arrangement of components. Wherein:
The RF circuit 601 may be used for receiving and transmitting signals during the process of receiving and transmitting information, in particular, after receiving downlink information of a base station, the downlink information is processed by one or more processors 608; in addition, data relating to uplink is transmitted to the base station. Typically, RF circuitry 601 includes, but is not limited to, an antenna, at least one amplifier, a tuner, one or more oscillators, a subscriber identity module (SIM, subscriber Identity Module) card, a transceiver, a coupler, a low noise amplifier (LNA, low Noise Amplifier), a duplexer, and the like. In addition, the RF circuitry 601 may also communicate with networks and other devices through wireless communications.
The memory 602 may be used to store software programs and modules that the processor 608 performs various functional applications and touch screen unlocking by executing the software programs and modules stored in the memory 602. The memory 602 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, application programs required for at least one function (such as a sound playing function, an image playing function, etc.), and the like. In addition, the memory 602 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage device. Accordingly, the memory 602 may also include a memory controller to provide access to the memory 602 by the processor 608 and the input unit 603.
The input unit 603 may be used to receive input numeric or character information and to generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control. In particular, in one particular embodiment, the input unit 603 may include a touch-sensitive surface, as well as other input devices. The touch-sensitive surface, also referred to as a touch display screen or a touch pad, may collect touch operations thereon or thereabout by a user (e.g., operations thereon or thereabout by a user using any suitable object or accessory such as a finger, stylus, etc.), and actuate the corresponding connection means according to a predetermined program. The input unit 603 may comprise other input devices in addition to a touch sensitive surface. In particular, other input devices may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, mouse, joystick, etc.
The display unit 604 may be used to display information input by a user or information provided to the user and various graphical user interfaces of the server, which may be composed of graphics, text, icons, video and any combination thereof. The display unit 604 may include a display panel, which may optionally be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like. Further, the touch-sensitive surface may overlay a display panel, and upon detection of a touch operation thereon or thereabout, the touch-sensitive surface is passed to the processor 608 to determine the type of touch event, and the processor 608 then provides a corresponding visual output on the display panel based on the type of touch event. Although in fig. 9 the touch sensitive surface and the display panel are implemented as two separate components for input and output functions, in some embodiments the touch sensitive surface may be integrated with the display panel to implement the input and output functions.
The terminal may also include at least one sensor 605, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor that may adjust the brightness of the display panel according to the brightness of ambient light, and a proximity sensor that may turn off the display panel and the backlight when the server moves to the ear.
Audio circuitry 606, speakers, and a microphone may provide an audio interface between the user and the server. The audio circuit 606 may transmit the received electrical signal after audio data conversion to a speaker, where the electrical signal is converted to a sound signal for output; on the other hand, the microphone converts the collected sound signals into electrical signals, which are received by the audio circuit 606 and converted into audio data, which are processed by the audio data output processor 608 for transmission to, for example, a terminal via the RF circuit 601, or which are output to the memory 602 for further processing. The audio circuit 606 may also include an ear bud jack to provide communication between the peripheral ear bud and the server.
The WiFi belongs to a short-distance wireless transmission technology, and the terminal can help the user to send and receive e-mail, browse web pages, access streaming media and the like through the WiFi module 607, so that wireless broadband internet access is provided for the user. Although fig. 9 shows a WiFi module 607, it is understood that it does not belong to the essential constitution of the terminal, and can be omitted entirely as required within a range that does not change the essence of the application.
The processor 608 is a control center of the terminal, and connects various parts of the entire mobile phone using various interfaces and lines, and performs various functions of the server and processes data by running or executing software programs and modules stored in the memory 602 and calling data stored in the memory 602, thereby performing overall monitoring of the mobile phone. Optionally, the processor 608 may include one or more processing cores; preferably, the processor 608 may integrate an application processor that primarily handles operating systems, user interfaces, applications, etc., with a modem processor that primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 608.
The terminal also includes a power supply 609 (e.g., a battery) for powering the various components, which may be logically connected to the processor 608 via a power management system so as to provide for managing charging, discharging, and power consumption by the power management system. The power supply 609 may also include one or more of any components, such as a direct current or alternating current power supply, a recharging system, a power failure detection circuit, a power converter or inverter, a power status indicator, and the like.
Specifically, in this embodiment, the processor 608 in the terminal loads executable files corresponding to the processes of one or more application programs into the memory 602 according to the following instructions, and the processor 608 executes the application programs stored in the memory 602, so as to implement various functions:
when the sliding operation of the terminal touch screen in the screen locking state is detected, determining a sliding track corresponding to the sliding operation, wherein the sliding track comprises a plurality of touch points;
Determining a target touch point from a plurality of touch points based on the position information of each touch point;
determining the touch time corresponding to each target touch point in the sliding process;
according to the position information of each target touch point and the corresponding touch time, calculating the sliding speed of the sliding operation between different target touch points to obtain a sliding speed set;
And determining unlocking information based on the sliding speed set, and executing unlocking operation according to the unlocking information.
The embodiment of the application discloses a touch screen unlocking method and device, a storage medium and a terminal. The touch screen unlocking method comprises the following steps: when the sliding operation of the terminal touch screen in the screen locking state is detected, a sliding track corresponding to the sliding operation is determined, the sliding track comprises a plurality of touch points, a target touch point is determined from the plurality of touch points based on the position information of each touch point, the touch time corresponding to each target touch point in the sliding process is determined, and the sliding speed of the sliding operation among different target touch points is calculated according to the position information of each target touch point and the corresponding touch time, so that a sliding speed set is obtained; and determining unlocking information based on the sliding speed set, and executing unlocking operation according to the unlocking information. According to the embodiment of the application, the sliding speed of the sliding operation on the touch screen of the terminal in the screen locking state is obtained, the unlocking information is generated according to the sliding speed, and the unlocking operation is executed based on the unlocking information, so that the security of unlocking the touch screen of the terminal can be improved.
Those of ordinary skill in the art will appreciate that all or a portion of the steps in the various methods of the above embodiments may be performed by instructions, or by controlling associated hardware by instructions, which may be stored in a storage medium and loaded and executed by a processor.
To this end, an embodiment of the present application provides a storage medium storing a plurality of instructions that can be loaded by a processor to perform steps in any one of the touch screen unlocking methods provided in the embodiment of the present application. For example, the instructions may perform the steps of:
When the sliding operation of the terminal touch screen in the screen locking state is detected, a sliding track corresponding to the sliding operation is determined, the sliding track comprises a plurality of touch points, a target touch point is determined from the plurality of touch points based on the position information of each touch point, the touch time corresponding to each target touch point in the sliding process is determined, and the sliding speed of the sliding operation among different target touch points is calculated according to the position information of each target touch point and the corresponding touch time, so that a sliding speed set is obtained; and determining unlocking information based on the sliding speed set, and executing unlocking operation according to the unlocking information.
The specific implementation of each operation above may be referred to the previous embodiments, and will not be described herein.
Wherein the storage medium may include: read Only Memory (ROM), random access Memory (RAM, random Access Memory), magnetic or optical disk, and the like.
The steps in any one of the touch screen unlocking methods provided by the embodiments of the present application can be executed due to the instructions stored in the storage medium, so that the beneficial effects that any one of the touch screen unlocking methods provided by the embodiments of the present application can be achieved, and detailed descriptions of the previous embodiments are omitted.
The method, the device, the storage medium and the terminal for unlocking the touch screen provided by the embodiment of the application are described in detail, and specific examples are applied to the explanation of the principle and the implementation mode of the application, and the explanation of the above embodiments is only used for helping to understand the method and the core idea of the application; meanwhile, as those skilled in the art will have variations in the specific embodiments and application scope in light of the ideas of the present application, the present description should not be construed as limiting the present application.

Claims (9)

1. The touch screen unlocking method is applied to a terminal and is characterized by comprising the following steps:
When the sliding operation of the terminal touch screen in the screen locking state is detected, determining a sliding track corresponding to the sliding operation, wherein the sliding track comprises a plurality of touch points;
determining a target touch point from the plurality of touch points based on the position information of each touch point;
determining the touch time corresponding to each target touch point in the sliding process;
According to the position information of each target touch point and the corresponding touch time, calculating the sliding speed of the sliding operation between different target touch points to obtain a sliding speed set;
determining unlocking information based on the sliding speed set, and executing unlocking operation according to the unlocking information;
the determining unlocking information based on the sliding speed set includes:
Determining a number of sliding speeds in the set of sliding speeds;
If the number is greater than or equal to the preset number, determining the time corresponding to each sliding speed of the sliding speed set;
Extracting the preset number of sliding speeds from the sliding speed set according to the time corresponding to each sliding speed;
Determining a sample identifier corresponding to each sliding speed from a preset identifier set to obtain a plurality of unlocking identifiers, wherein the preset identifier set comprises a plurality of sample identifiers and a sample speed interval corresponding to each sample identifier;
And determining the unlocking information based on the unlocking identifications.
2. The method of claim 1, wherein the determining a target touch point from the plurality of touch points based on the location information of each touch point comprises:
matching the position information of each touch point with the position information of a plurality of detection tracks;
If the position information of the touch point is successfully matched with the position information of the detection track, determining candidate touch points based on the touch points of which the position information is successfully matched with the position information of the detection track;
And determining a target detection track corresponding to each candidate touch point, and determining the target touch point from the candidate touch points according to the target detection track corresponding to each candidate touch point and the corresponding touch time.
3. The method of claim 2, wherein determining the target touch point from the candidate touch points according to the target detection track corresponding to each candidate touch point and the corresponding touch time comprises:
Sorting the plurality of candidate touch points based on the touch time corresponding to each candidate touch point to obtain a candidate touch point sequence;
And if the target detection tracks corresponding to the continuous multiple candidate touch points exist in the candidate touch point sequence, determining the candidate touch point with the touch time closest to the current time from the continuous multiple candidate touch points, and obtaining the target touch point.
4. The method of claim 2, further comprising, prior to matching the position information of each touch point with the position information of the plurality of detection tracks:
determining contact position information with the terminal according to the sliding operation;
and determining a sample track with position information conforming to the contact position information from a plurality of sample tracks to obtain the detection track.
5. The method according to claim 1, wherein calculating the sliding speed of the sliding operation between different target touch points according to the position information of each target touch point and the corresponding touch time to obtain a sliding speed set includes:
Determining a plurality of touch point sets from the target touch points according to the touch time of the target touch points, wherein the touch point sets comprise two target touch points with adjacent touch time;
calculating the difference value of the touch time of the two target touch points in each touch point set to obtain the touch time difference of the two target touch points;
Determining the touch distance of two target touch points according to the touch positions of the two target touch points in each touch point set;
and calculating the ratio of the touch distance to the touch time difference to obtain the sliding speed of the touch operation between the two target touch points in each touch point set.
6. The method according to any one of claims 1 to 5, further comprising:
detecting the average sliding speed of the sliding operation in a preset time period every other preset time period in the sliding operation process;
Determining a target vibration frequency according to the average sliding speed;
triggering the vibration device to vibrate based on the target vibration frequency.
7. A touch screen unlocking device, comprising:
The detection unit is used for determining a sliding track corresponding to the sliding operation when the sliding operation of the terminal touch screen is detected in the screen locking state, wherein the sliding track comprises a plurality of touch points;
a first determining unit configured to determine a target touch point from the plurality of touch points based on the position information of each touch point;
the second determining unit is used for determining the touch time corresponding to each target touch point in the sliding process;
The first calculation unit is used for calculating the sliding speed of the sliding operation between different target touch points according to the position information of each target touch point and the corresponding touch time to obtain a sliding speed set;
the execution unit is used for determining unlocking information based on the sliding speed set and executing unlocking operation according to the unlocking information;
The execution unit is used for determining the number of sliding speeds in the sliding speed set; if the number is greater than or equal to the preset number, determining the time corresponding to each sliding speed of the sliding speed set; extracting the preset number of sliding speeds from the sliding speed set according to the time corresponding to each sliding speed; determining a sample identifier corresponding to each sliding speed from a preset identifier set to obtain a plurality of unlocking identifiers, wherein the preset identifier set comprises a plurality of sample identifiers and a sample speed interval corresponding to each sample identifier; and determining the unlocking information based on the unlocking identifications.
8. A storage medium storing a plurality of instructions adapted to be loaded by a processor to perform the steps of the touch screen unlocking method of any one of claims 1 to 6.
9. A terminal comprising a processor and a memory, the memory storing a plurality of instructions, the processor loading the instructions to perform the steps of the touch screen unlocking method of any one of claims 1 to 6.
CN202011327046.6A 2020-11-24 Touch screen unlocking method and device, storage medium and terminal Active CN112380521B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011327046.6A CN112380521B (en) 2020-11-24 Touch screen unlocking method and device, storage medium and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011327046.6A CN112380521B (en) 2020-11-24 Touch screen unlocking method and device, storage medium and terminal

Publications (2)

Publication Number Publication Date
CN112380521A CN112380521A (en) 2021-02-19
CN112380521B true CN112380521B (en) 2024-07-09

Family

ID=

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107403087A (en) * 2016-05-19 2017-11-28 华为终端(东莞)有限公司 Touch feedback method, device and terminal
CN109284052A (en) * 2018-08-27 2019-01-29 Tcl移动通信科技(宁波)有限公司 A kind of the quick release method, apparatus and computer equipment of mobile terminal touch screen

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107403087A (en) * 2016-05-19 2017-11-28 华为终端(东莞)有限公司 Touch feedback method, device and terminal
CN109284052A (en) * 2018-08-27 2019-01-29 Tcl移动通信科技(宁波)有限公司 A kind of the quick release method, apparatus and computer equipment of mobile terminal touch screen

Similar Documents

Publication Publication Date Title
CN109062467B (en) Split screen application switching method and device, storage medium and electronic equipment
RU2632153C2 (en) Method, device and terminal for displaying virtual keyboard
US10372320B2 (en) Device and method for operating on touch screen, and storage medium
US11227042B2 (en) Screen unlocking method and apparatus, and storage medium
CN108958606B (en) Split screen display method and device, storage medium and electronic equipment
WO2014206101A1 (en) Gesture-based conversation processing method, apparatus, and terminal device
CN108647505A (en) Unlocked by fingerprint method and Related product
WO2015067045A1 (en) Method, device and computer system for performing operations on objects in object list
CN109062464B (en) Touch operation method and device, storage medium and electronic equipment
CN110673770B (en) Message display method and terminal equipment
CN110531915B (en) Screen operation method and terminal equipment
CN108958629B (en) Split screen quitting method and device, storage medium and electronic equipment
US20150128095A1 (en) Method, device and computer system for performing operations on objects in an object list
WO2015010570A1 (en) A method, device, and terminal for hiding or un-hiding content
CN111290794A (en) Screen awakening method and device, storage medium and mobile terminal
CN105630376A (en) Terminal control method and device
CN108815844B (en) Mobile terminal, game control method thereof, electronic device and storage medium
CN108604161A (en) A kind of method, apparatus and terminal device of locking list object
CN106057213B (en) A kind of method and apparatus of display voice pitch data
CN105320858B (en) Method and device for rapidly displaying application icons
CN110719361B (en) Information transmission method, mobile terminal and storage medium
CN112380521B (en) Touch screen unlocking method and device, storage medium and terminal
WO2016191968A1 (en) Left and right hand mode determination method and apparatus, and terminal device
CN109831770B (en) Pairing method and device of mobile terminal, storage medium and mobile terminal
CN109618234A (en) Video playing control method, device, mobile terminal and storage medium

Legal Events

Date Code Title Description
PB01 Publication
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right

Effective date of registration: 20240612

Address after: 518000, Room 1204, Block C, Wanxia Center, Phase II, Haijie Jiayuan, No. 27, Zhaoshang East Road, Dongjiaotou Community, Shekou Street, Nanshan District, Shenzhen, Guangdong Province

Applicant after: Shenzhen Lishunhe Technology Co.,Ltd.

Country or region after: China

Address before: 516006 Zhongkai hi tech Zone, Huizhou, Guangdong, 86 Chang seven Road West

Applicant before: HUIZHOU TCL MOBILE COMMUNICATION Co.,Ltd.

Country or region before: China

GR01 Patent grant