CN108664204B - A kind of unlocking method, device and mobile terminal - Google Patents
A kind of unlocking method, device and mobile terminal Download PDFInfo
- Publication number
- CN108664204B CN108664204B CN201810305039.2A CN201810305039A CN108664204B CN 108664204 B CN108664204 B CN 108664204B CN 201810305039 A CN201810305039 A CN 201810305039A CN 108664204 B CN108664204 B CN 108664204B
- Authority
- CN
- China
- Prior art keywords
- included angle
- user interface
- sliding track
- mobile terminal
- pixel
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 59
- 238000004590 computer program Methods 0.000 claims description 11
- 238000013507 mapping Methods 0.000 claims description 11
- 230000009471 action Effects 0.000 claims description 3
- 238000005516 engineering process Methods 0.000 abstract description 2
- 238000010586 diagram Methods 0.000 description 20
- 230000008569 process Effects 0.000 description 15
- 230000006870 function Effects 0.000 description 13
- 238000004422 calculation algorithm Methods 0.000 description 4
- 230000001960 triggered effect Effects 0.000 description 4
- 238000004364 calculation method Methods 0.000 description 3
- 238000004891 communication Methods 0.000 description 3
- 238000012545 processing Methods 0.000 description 3
- 238000001514 detection method Methods 0.000 description 2
- 230000000694 effects Effects 0.000 description 2
- 230000006872 improvement Effects 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 230000001133 acceleration Effects 0.000 description 1
- 238000004458 analytical method Methods 0.000 description 1
- 230000005540 biological transmission Effects 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 238000007599 discharging Methods 0.000 description 1
- 238000007667 floating Methods 0.000 description 1
- 230000005484 gravity Effects 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 238000010295 mobile communication Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012544 monitoring process Methods 0.000 description 1
- 238000005192 partition Methods 0.000 description 1
- 238000010079 rubber tapping Methods 0.000 description 1
- 239000007787 solid Substances 0.000 description 1
- 230000005236 sound signal Effects 0.000 description 1
- 238000010897 surface acoustic wave method Methods 0.000 description 1
- 230000000007 visual effect Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0487—Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
- G06F3/0488—Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
- G06F3/04883—Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures for inputting data by handwriting, e.g. gesture or text
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F21/00—Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F21/30—Authentication, i.e. establishing the identity or authorisation of security principals
- G06F21/31—User authentication
- G06F21/36—User authentication by graphic or iconic representation
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/66—Substation equipment, e.g. for use by subscribers with means for preventing unauthorised or fraudulent calling
- H04M1/667—Preventing unauthorised calls from a telephone set
- H04M1/67—Preventing unauthorised calls from a telephone set by electronic means
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/72—Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
- H04M1/724—User interfaces specially adapted for cordless or mobile telephones
- H04M1/72448—User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
- H04M1/72463—User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions to restrict the functionality of the device
Landscapes
- Engineering & Computer Science (AREA)
- Computer Security & Cryptography (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Signal Processing (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Human Computer Interaction (AREA)
- Software Systems (AREA)
- Computer Hardware Design (AREA)
- Computer Networks & Wireless Communication (AREA)
- User Interface Of Digital Computer (AREA)
- Telephone Function (AREA)
Abstract
The invention discloses a kind of unlocking methods, of the existing technology not convenient and fast to solve, so as to cause the lower problem of unlock efficiency.Method includes:, if detecting touch control operation, to judge whether the specific characteristic of the angle of the corresponding sliding trace of the touch control operation matches with preset angle specific characteristic when electronic equipment is in user interface lock state;If so, releasing the user interface lock state of the electronic equipment.This method, there is no very strict restriction, thus greatly reduces the Password Input zone location precision requirement for user, facilitates operation, guarantee higher unlock efficiency, improve user experience to the shape and input area of sliding trace.Invention additionally discloses a kind of tripper and mobile terminals.
Description
Technical Field
The present invention relates to the field of communications/terminals, and in particular, to an unlocking method and apparatus, and a mobile terminal.
Background
With the development of mobile terminals, it is a common basic function to lock a user interface of a mobile terminal, so as to avoid user information leakage and misoperation.
Currently, the user interface of the mobile terminal is locked, generally, a user presses a physical key to trigger, or the mobile terminal actively triggers according to idle time; for example, the user interface of the mobile terminal is unlocked by manually inputting a digital password, unlocking by a squared figure, and unlocking by fingerprint recognition.
The common points of the unlocking modes are as follows: the password input area is required to be accurately positioned on the interface of the mobile terminal by a user, and the convenience and the rapidness are not enough.
In the prior art, a more convenient and faster unlocking method is needed to improve the unlocking efficiency.
Disclosure of Invention
The embodiment of the invention provides an unlocking method, which aims to solve the problem that the unlocking efficiency is low due to the fact that the mode for unlocking a mobile terminal provided by the prior art is not convenient and quick enough.
The embodiment of the invention also provides an unlocking device and a mobile terminal.
In order to solve the technical problem, the invention is realized as follows:
in a first aspect, an unlocking method is provided, and the method includes: when the electronic equipment is in a user interface locking state, if touch operation is detected, judging whether the specified characteristic of the included angle of the sliding track corresponding to the touch operation is matched with a preset specified characteristic of the included angle; and if so, releasing the user interface locking state of the electronic equipment.
In a second aspect, there is provided an unlocking device, comprising: the electronic equipment comprises a judging unit and a judging unit, wherein the judging unit is used for judging whether the specified characteristic of the included angle of the sliding track corresponding to the touch operation is matched with the preset specified characteristic of the included angle if the touch operation is detected when the electronic equipment is in a user interface locking state; and the unlocking unit is used for releasing the user interface locking state of the electronic equipment when the judgment result obtained by the judgment unit is yes.
In a third aspect, a mobile terminal is provided, the terminal device comprising a processor, a memory and a computer program stored on the memory and being executable on the processor, the computer program, when executed by the processor, implementing the steps of the method according to the first aspect.
In a fourth aspect, a computer-readable storage medium is provided, on which a computer program is stored, which computer program, when being executed by a processor, carries out the steps of the method according to the first aspect.
In the embodiment of the invention, whether the user interface locking state is released or not is judged according to the specified characteristics of the included angle included in the sliding track corresponding to the touch operation, and the shape and the input area of the sliding track are not strictly limited, so that the requirement on the positioning accuracy of the password input area of the user is greatly reduced, the operation of the user is more convenient, the higher unlocking efficiency can be ensured, and the user experience is improved.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this specification, illustrate embodiments of the invention and together with the description serve to explain the invention and not to limit the invention. In the drawings:
fig. 1a is a schematic specific flowchart of an unlocking method according to an embodiment of the present invention;
FIG. 1b is a schematic diagram of a sliding track corresponding to a touch operation of a user according to an embodiment of the present invention;
FIG. 1c is a schematic diagram of a position of a partial sliding track corresponding to a touch operation in a coordinate system X0Y according to an embodiment of the present invention;
FIG. 1d is a schematic diagram of a pixel through which a sliding track passes in one embodiment of the present invention;
FIG. 1e is a schematic diagram of a pixel through which a sliding track passes in another embodiment of the present invention;
FIG. 1f is a schematic view of a user interface displayed by the mobile terminal in one embodiment of the present invention;
fig. 1g is a schematic interface diagram of the mobile terminal after entering the unlock password setting mode in an embodiment of the present invention;
FIG. 1h is a diagram of a sliding track entered by a user in an unlock password setting mode, in accordance with an embodiment of the present invention;
FIG. 1i is a diagram illustrating an interface presented by a mobile terminal before entering a user interface lock state, in an embodiment of the present invention;
FIG. 1j is a schematic diagram of an interface displayed when the mobile terminal releases the user interface lock state according to an embodiment of the present invention;
FIG. 1k is a schematic illustration of different display sub-regions in one embodiment of the invention;
FIG. 1l is a schematic diagram of a sliding track generated by a user performing a touch operation on a touch-sensitive display in a locked state of a user interface according to an embodiment of the present invention;
FIG. 1m is a diagram illustrating the display of content after a partial display sub-area has been unlocked in accordance with an embodiment of the present invention;
FIG. 2 is a schematic diagram of the overall procedure provided in example 2;
FIG. 3 is a schematic diagram of the entire flow provided in example 3;
fig. 4 is a specific structural schematic diagram of an unlocking device provided in embodiment 4;
fig. 5 is a schematic structural diagram of a mobile terminal provided in embodiment 5.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Example 1
In order to solve the problem that the unlocking efficiency is low due to the fact that the mode for unlocking the mobile terminal provided by the prior art is not convenient and quick enough, embodiment 1 of the invention provides an unlocking method. The execution main body of the unlocking method may be an electronic device of a mobile terminal type, such as a mobile phone, a personal computer or a tablet computer with a touch-sensitive display, a smart wearable device with a touch screen, and the like, or the execution main body of the unlocking method may also be an Application (APP) installed on the electronic device, or the execution main body of the unlocking method may also be an "external" electronic device capable of performing information transmission with the electronic device and the like.
For convenience of describing embodiment 1 of the present invention, the method will be described below by taking the implementation subject of the scheme as an example of a mobile terminal.
Referring to fig. 1a in the specification, a specific flow diagram of the unlocking method provided in embodiment 1 of the present invention is shown, where the flow specifically includes the following steps:
step 11: detecting touch operation on a touch-sensitive display of the mobile terminal when the mobile terminal is in a user interface locking state;
generally, a mobile terminal may have different user interface states. The user interface lock state referred to herein is one of the user interface states. In the user interface lock state, the mobile terminal may be operated, but the mobile terminal in this state does not substantially respond according to the operation except for displaying the lock screen interface. Of course, according to the current technology, some mobile terminals may run applications such as video and weather forecast in the user interface lock state.
In the embodiment of the invention, when the mobile terminal is in the user interface locking state, the touch operation of the touch-sensitive display of the mobile terminal can be detected. Touch sensitive displays, as used herein, are also referred to as "touch screens" or "touch screens". Touch screens are used in many electronic devices to display graphics and text, as well as to provide a user interface through which a user may interact with the electronic device.
The touch operation described in the embodiment of the present invention may be, for example, a touch operation triggered by a finger of a user. The touch operation may be a click operation or a gesture operation, wherein the click operation may include a single click and a double click, and the gesture operation may include a slide, a zoom, a drag, a long press, and the like.
Step 12: if the touch operation on the touch sensitive display of the mobile terminal is detected, the mobile terminal judges whether the specified feature of the included angle of the sliding track corresponding to the touch operation is matched with the preset specified feature of the included angle, if so, the step 13 is executed, and if the included angle does not exist in the sliding track, or the specified feature of the included angle of the sliding track is judged not to be matched with the preset specified feature of the included angle, the process can be ended, or the step 14 is executed;
as described above, the touch operation triggered by the user's finger may be a click operation or a gesture operation. In the embodiment of the invention, after the mobile terminal detects the touch operation on the touch-sensitive display, the specific type of the detected touch operation can be further judged. If the type of the touch operation is determined to be a sliding operation, the mobile terminal can further determine whether an included angle exists in the sliding track because the sliding operation can generate the sliding track.
Referring to fig. 1b of the specification, it can be assumed that the touch operation of the user corresponds to a sliding track 1, where the sliding track 1 is a sliding track having included angles (the number 10 in fig. 1b is used to indicate one of the included angles existing in the sliding track 1). Referring to fig. 1c of the specification, it can be assumed that the touch operation of the user corresponds to a sliding track 2, and the sliding track 2 is a sliding track without an included angle.
In embodiment 1 of the present invention, how the mobile terminal determines whether the sliding track has an included angle is described in detail below.
Please refer to fig. 1c of the specification, which is a schematic diagram of a position of a partial sliding track corresponding to a touch operation of a user in a coordinate system X0Y. Each square in the figure represents a pixel in the display interface of the touch sensitive display. White squares, representing pixels that the sliding trajectory has not passed; and the black squares represent the pixels passed by the sliding rail. For example, a0, a1, and a2 represent pixels through which the sliding trajectory passes.
Based on fig. 1c, a method for determining whether an included angle exists in a sliding track provided in the embodiment of the present invention specifically includes: calculating a 'left derivative' and a 'right derivative' of a pixel through which the sliding track passes; pixels for which the "left derivative" and the "right derivative" are not equal are determined as "corners". If the corner points exist in the pixels passed by the sliding track, judging that the sliding track has included angles; and if no angular point exists in the pixels passed by the sliding track, judging that the sliding track does not have an included angle.
The corner point in the embodiment of the invention refers to a point with a maximum curvature value on a curve. In the embodiment of the invention, the concept of the corner point is introduced, the corner point is considered as an important characteristic of the sliding track, and the shape characteristic of the sliding track can be reflected.
The manner in which the "left derivative" and the "right derivative" are calculated is described below.
Assuming that pixel N0 is present, the left derivative of N0 can be calculated by the following equation [1 ]:
wherein D isLN0Represents the left derivative of pixel N0; XN0 and YN0 represent coordinate values of pixel N0 on the X-axis and Y-axis, respectively, of a specified image coordinate system (e.g., the X0Y coordinate system); XN1 and YN1 are coordinate values on the X and Y axes of a pixel adjacent to N0 and located to the left of N0 among pixels through which the slide locus passes in the designated image coordinate system.
Similarly, the right derivative of N0 can be calculated by the following equation [2 ]:
wherein D isRN0Represents the right derivative of pixel N0; XN0 and YN0 represent coordinate values of pixel N0 on the X-axis and Y-axis, respectively, of a specified image coordinate system (e.g., the X0Y coordinate system); XN2 and YN2 are coordinate values on the X and Y axes of pixels adjacent to N0 and located to the right of N0 among pixels passed by the slide locus in the designated image coordinate system.
Taking the pixel A0 in FIG. 1d as an example, assuming that the coordinates of A0 in the coordinate system XOY are (X0, Y0), the formula [1] is shown]As can be seen, the "left derivative" D of A0LA0The calculation method of (C) is specifically as follows [3 ]]Shown in the figure:
wherein, X1 and Y1 are coordinate values of a pixel a1 adjacent to a0 and located at the left side of a0 on the X and Y axes among pixels through which the sliding trajectory passes in the coordinate system XOY.
"Right derivative" D of A0RA0The calculation method of (C) is specifically as shown in the following formula [4]Shown in the figure:
wherein, X2 and Y2 are coordinate values of pixels a2 adjacent to a0 and located at the right side of a0 in the X and Y axes among the pixels through which the sliding trajectory passes in the coordinate system XOY.
Assuming that the coordinate values of A0, A1 and A2 are (5, 5), (4, 4), (6, 4), respectively, then the above formula [1] is followed]And [2]]Can calculate DLA0=1,DRA0Is-1. Due to DLA0≠DRA0Thus, a0 can be judged as a corner point.
It should be noted that, for the pixel A3 in fig. 1d, since the pixels where the sliding track passes through the coordinate system X0Y do not exist in the pixels adjacent to A3 and on the right side of A3, the mobile terminal can directly determine that A3 is not the corner point. Alternatively, the mobile terminal may determine the right derivative of A3 directly as the same value as the left derivative, thereby determining that A3 is not a corner point. Similarly, since the pixels where the sliding trajectory passes in X0Y do not exist in the pixels adjacent to a4 and on the left side of a4, the mobile terminal may also determine that a4 is not a corner point.
It should be noted that, for the pixel B0 in fig. 1d, the mobile terminal determines the adjacent pixels located around B0 as a1 and a2 from the pixels passed by the sliding track in the coordinate system X0Y, so that the left and right derivatives are calculated based on the coordinate values of the pixels a1 and a2 "directly adjacent to the pixels a1 and B2 instead of the coordinate values of the pixels B1 and B2.
In the embodiment of the invention, if the corner point exists in the pixel through which the sliding track passes, the sliding track is determined to contain the included angle. Thereby further, a specified characteristic of the included angle of the sliding trajectory can be determined.
Of course, in practical applications, other manners may also be adopted to determine whether the sliding track includes an included angle, which is not limited in the embodiment of the present invention.
In the embodiment of the present invention, the specified feature may be at least one of the following features:
the number of included angles, the opening orientation of the included angles, the angle values of the included angles, the appearance sequence of the included angles with different angle values in the sliding track, and the appearance sequence of the included angles with different opening orientations in the sliding track.
The following describes the determination of the above features in order:
1. the number of included angles, which is equal to the number of angular points, can be obtained by counting the number of angular points by the mobile terminal.
2. The opening orientation of the included angle can be determined by the mobile terminal by adopting a certain algorithm. In one embodiment of the present invention, the following method may be used to determine the angled opening orientation:
taking the coordinate system X0Y as an example as shown in fig. 1d, the opening orientation of the included angle can be determined according to the signs of the left and right derivatives of the corner points. For example, taking a certain corner point as an example, when the left derivative of the corner point is less than 0 and the right derivative of the corner point is greater than 0, it is determined that the opening orientation of the included angle is "upward"; conversely, when the left derivative of the corner point is greater than 0 and the right derivative of the corner point is less than 0, the opening orientation of the included angle is determined to be downward.
Still taking A0 as shown in FIG. 1D as an example, the left and right derivatives are DLA0=1,DRA0Is-1. Due to DLA0And DRA0Satisfies the following conditions: dLA0>0,DRA0<0, therefore, the opening orientation of the angle with a0 as the apex can be judged as "downward".
Taking C0 as shown in FIG. 1e as an example, the left and right derivatives are DLC0=-1,DRC01. Due to DLC0And DRC0Satisfies the following conditions: dLC0<0,DRC0>0, therefore, the opening orientation of the angle with a0 as the apex can be judged to be "upward".
It should be noted that, when the left and right derivatives of a corner point have the same sign, or there is a case where the derivative is 0 or infinite in the left and right derivatives of a corner point, the opening orientation of an included angle with the corner point as a vertex is determined to be horizontal. The horizontal direction may be specifically classified as left or right.
The angle value of the included angle can be determined by the mobile terminal by adopting a certain algorithm. In one embodiment of the present invention, the following method may be used to determine the angle value of the included angle:
assuming that pixel N0 is present, the angle value for "left angle" can be calculated by the following equation [5 ]:
wherein,representing the value of the angle of the left angle for pixel N0. Formula [5]The meanings of the other parameters are given in the above paragraphs, and are not repeated herein.
Similarly, the value of the angle of "right angle" can be calculated by the following equation [6 ]:
wherein,representing the right angle value of pixel N0. Formula [6]The meanings of the other parameters are given in the above paragraphs, and are not repeated herein.
After the angle value of the left and right included angles of the pixel N0 is calculated, the angle value of the included angle corresponding to the pixel N0 can be further calculated according to the following formula [7 ]:
wherein,indicating the angle value of the included angle corresponding to pixel N0. Formula [7]For the meanings of the other parameters, please refer to the above, and the description is omitted here.
In the embodiment of the present invention, the angle value of the included angle included in the trajectory in the embodiment of the present invention is the angle value of the included angle corresponding to the pixel.
3. The appearance sequence of the included angles of different angle values in the sliding track can also be determined by the mobile terminal by adopting an algorithm.
For example, the mobile terminal may obtain a time when the sliding track corresponding to the touch operation sequentially passes through each pixel (including an angular point); according to the obtained time, the mobile terminal may determine an appearance order of each included angle included in the sliding track — for example, suppose that the time when the sliding track passes through the pixels D0, D1, and D2 is sequentially t0, t0+0.01ms, and t0+0.02ms, and suppose that D0, D1, and D2 are 3 corner points included and only included in the sliding track, and the angle values of the included angles corresponding to the corner points are 90 °, 45 °, and 90 °. Then, the mobile terminal may determine, according to the time when the sliding track passes through the pixels D0, D1, and D2, and the angle values of the included angles corresponding to the pixels D0, D1, and D2, that the specified characteristic of the included angle included in the sliding track is: the 90 included angle occurs first, then the 45 included angle occurs, and finally the 90 included angle occurs.
4. The sequence of the angles of different opening orientations in the sliding track can also be determined by the mobile terminal by using an algorithm.
For example, the mobile terminal may obtain a time when the sliding track corresponding to the touch operation sequentially passes through each pixel (including an angular point); according to the obtained time, the mobile terminal may determine an appearance order of each included angle included in the sliding track — for example, suppose that the time when the sliding track passes through the pixels E0, E1, and E2 is t0, t0+0.01ms, and t0+0.02ms in sequence, and suppose that E0, E1, and E2 are 3 corner points included and only included in the sliding track, and the opening orientations of the included angles corresponding to the corner points are upward, downward, and upward in sequence. Then, the mobile terminal may determine, according to the time when the sliding track passes through the pixels E0, E1, and E2, and the orientations of the included angles corresponding to the pixels E0, E1, and E2, that the specified characteristics of the included angles included in the sliding track are: the first is the upward angle, then the downward angle, and finally the upward angle.
The above is a description of the manner of determining the specified feature of the included angle described in the embodiment of the present invention. The preset included angle specifying feature described in the embodiment of the present invention is further described below.
In an embodiment of the present invention, an included angle specifying feature input by a user may be pre-stored in the mobile terminal, and used as a "reference unlocking password" for releasing the user interface locking state of the mobile terminal.
For example, the user may perform a touch operation on a touch-sensitive display of the mobile terminal in an "unlock password setting mode". According to the content of the reference unlocking password which is specifically input by the user, the sliding track corresponding to the touch operation can be flexible.
For example, if the user wishes to use "the number of included angles is 3" as the reference unlocking password, the mobile terminal may be triggered to enter the unlocking password setting mode. In the mode, the mobile terminal detects the touch operation executed by the touch display; after the touch operation is detected, acquiring the specified characteristic of the included angle of the sliding track corresponding to the touch operation; and then, after receiving an instruction of confirming to store the specified feature of the included angle by the user, the mobile terminal stores the obtained specified feature of the included angle as a reference unlocking password.
This process is described in detail below with reference to the accompanying drawings:
the user triggers the mobile terminal to display the user interface shown in fig. 1f by clicking the touch ID and the password under the setting option;
if the user clicks the 'set track password' in the user interface shown in fig. 1f, the mobile terminal is triggered to display the user interface shown in fig. 1g, at this time, the mobile terminal enters an unlocking password setting mode, the mobile terminal displays prompt information of 'please input track password' below the interface, the prompt information can be displayed for only 1 second, and then the prompt information is hidden and displayed;
in the unlocking password setting mode, a user can input a sliding track as shown in fig. 1h to the mobile terminal by performing touch operation on a touch display of the mobile terminal;
the mobile terminal can recognize that the track contains 3 included angles through the identification mode of the included angles;
the mobile terminal can store the '3' as the specified characteristics of the included angle, namely, as the reference unlocking password.
The reference unlocking password stored by the mobile terminal is the preset included angle designated characteristic.
After the mobile terminal stores the reference unlocking password, subsequently, when the mobile terminal is in a user interface locking state, if a touch operation on a touch-sensitive display of the mobile terminal is detected, the mobile terminal determines whether a specified feature (for convenience of description, referred to as a first specified feature) of an included angle of a sliding track corresponding to the detected touch operation is matched with a preset specified feature of the included angle (namely, the reference unlocking password).
In the embodiment of the invention, the first characteristic is matched with the reference unlocking password, and the first characteristic can be matched with the reference unlocking password accurately or not.
The accurate matching means that the first characteristic is completely consistent with the reference unlocking password, and the first characteristic is judged to be matched with the reference unlocking password; and the non-exact match means that the first characteristic and the reference unlocking code are not completely consistent, but the difference between the first characteristic and the reference unlocking code is within a preset deviation range.
Generally, when the reference unlocking password is the number of the included angles, the first feature is matched with the reference unlocking password, which means the precise matching. For example, if the reference unlocking password is "3", the first feature is the number of the included angles, and when the number of the included angles is 3, the first feature is matched with the reference unlocking password; otherwise, the first characteristic does not match the reference unlock code.
Similarly, when the reference unlocking password is the orientation of the opening with the included angle, or the appearance sequence of the included angles with different angle values in the sliding track, or the appearance sequence of the included angles with different opening orientations in the sliding track, the first feature is matched with the reference unlocking password, which generally refers to an exact match.
When the reference unlocking password comprises an included angle value, the first feature is matched with the reference unlocking password, and the first feature can be matched accurately or not. For example, assume that the reference unlock password is: the angle value of the included angle is 90 °, and therefore, considering that it is difficult for a user to draw an included angle of an accurate degree when drawing a trajectory, there may be a certain "tolerance" to the floating of the angle value of the included angle included in the first feature. For example, if the mobile terminal determines that the first characteristic is: if the angle value of the included angle is 85 °, it can be determined whether the following equation holds:
a preset deviation range of between 85 and 90 degrees and less
If so, determining that the first characteristic is matched with the reference unlocking password; if not, it may be determined that the first characteristic does not match the reference unlock code.
In practical applications, assuming that the preset deviation range is [ -10 °, 10 ° ], it can be determined that the first characteristic "angle value of the included angle is 85 °" matches the angle value of the reference unlocking code "is 90 °".
In the embodiment of the invention, the method adopting the non-precise matching mode has the advantages that a user is not required to have higher drawing capacity, and the method provided by the embodiment of the invention can be easily and conveniently used.
And step 13, the mobile terminal releases the user interface locking state.
How to release the user interface lock state of the mobile terminal can be implemented by referring to a relatively mature means in the related art, and details are not repeated here.
In the embodiment of the invention, in view of further improving the information security of the mobile terminal, for step 13, some improvement schemes are provided.
In a modified solution, a specific implementation manner of the "mobile terminal releases the user interface lock state" in step 13 may include:
and displaying the display content on the touch-sensitive display according to a display mode of displaying the first display content and hiding and displaying the second display content.
Wherein the first display content includes: before the mobile terminal enters the user interface lock state, the display content in the display sub-area (for convenience of description, referred to as a first display sub-area) acted by the touch operation described in step 12 is located.
The second display content includes: display content in at least one other display sub-region than the first display sub-region prior to entering the user interface lock state.
For example, assume that the interface shown in fig. 1i is the interface displayed before the mobile terminal enters the user interface lock state. Then, when the mobile terminal enters the user interface lock state and then releases the user interface lock state, an interface as shown in fig. 1j may be displayed. From fig. 1j, the top half of the user interface is visible (this partial area may be the default visible part after unlocking, i.e. the first display sub-area numbered 110 in fig. 1 j), and the bottom half (this partial area may be the default invisible part after unlocking, i.e. the second display sub-area numbered 111 in fig. 1 j) is not visible. This can ensure the information security of the user to a certain extent.
In an embodiment of the invention, the first display sub-area is associated with a touch position of the touch operation. The specific association manner may include: the first display sub-area is a display sub-area including all touch positions of the touch operation.
Please refer to fig. 1k, which is a diagram illustrating different display sub-regions according to an embodiment of the present invention. In the figure, the display area of the whole touch sensitive display is divided into 4 parts, each part being a display sub-area. In fig. 1k, the position of one of the display sub-regions in the upper right corner is marked with a black bold line for the reader's understanding.
Referring to fig. 1l, it is a schematic diagram of a sliding track 120 generated by a user performing a touch operation on a touch-sensitive display in a user interface lock state after the mobile terminal is switched from the state shown in fig. 1k to the user interface lock state according to an embodiment of the present invention. As can be seen from the figure, the touch positions corresponding to the sliding tracks 120 all fall within the display sub-area at the upper left corner. In this case, it may be determined that the display sub-region in the upper left corner corresponds to the first display sub-region described above.
Assuming that the mobile terminal determines that the designated feature of the included angle of the sliding track 120 shown in fig. 1l matches the preset predetermined feature of the included angle, according to the improvement provided by the embodiment of the present invention, the mobile terminal may display icons of the application "WeChat" and "QQ" displayed in the first display sub-area before entering the user interface lock state, and hide the display contents displayed in the other display sub-areas before entering the user interface lock state. For a detailed display of the improved scheme provided by the embodiment of the present invention, refer to fig. 1 m. In fig. 1m, the displayed icon of the application can be clicked to trigger the opening of the application.
In an embodiment of the present invention, for a situation that the mobile terminal is just started and the user interface lock state has not been released, the display content before the mobile terminal enters the user interface lock state may be the desktop home page of the mobile terminal by default.
In case the touch sensitive display comprises at least two display sub-areas, in an embodiment of the invention, a further improved unlocking scheme is provided.
In the improved unlocking scheme, a user can preset included angle specifying characteristics respectively for different display sub-regions, namely preset reference unlocking passwords respectively. For the mobile terminal, a preset mapping relation between the included angle designated feature and the display sub-region of the touch-sensitive display can be stored, and then, in a subsequent user interface locking state, if touch operation is detected, the included angle designated feature corresponding to the display sub-region acted by the touch operation can be determined according to the pre-stored mapping relation; and further, judging whether the specified characteristic of the included angle of the sliding track corresponding to the touch operation is matched with the determined specified characteristic of the included angle. The specific determination method is as described above, and is not described herein again. If the judgment result is matching, the content displayed in the display subarea acted by the touch operation before entering the user interface locking state can be displayed, and the display content displayed in other display subareas before entering the user interface locking state can be hidden and displayed.
Step 14, the mobile terminal remains in the user interface lock state.
Compared with the mode that a user needs to accurately position the password input area in the prior art, by adopting the scheme provided by the embodiment of the invention, whether the user interface locking state is released or not is judged according to the specified characteristics of the included angle included in the sliding track corresponding to the touch operation, and the shape and the input area of the sliding track are not strictly limited, so that the requirement on the positioning accuracy of the password input area of the user is greatly reduced, the operation of the user is more convenient, the higher unlocking efficiency can be ensured, and the user experience is improved.
According to the scheme provided by the embodiment of the invention, the user can be supported to touch the touch-sensitive display according to the own requirements, so that the electronic equipment can acquire the included angle designated characteristic used as the reference unlocking password, and therefore, the flexibility is strong; because this scheme supports that the user just can realize setting up the password for electronic equipment and unblock electronic equipment through the mode of "drawing the angle", consequently still possesses stronger interest.
Example 2:
in example 2, the following will be presented in order: how a user enters an included angle designated characteristic serving as a reference unlocking password into the mobile terminal, and how the mobile terminal subsequently unlocks a user interface locking state based on the reference unlocking password.
Referring to fig. 2, fig. 2 shows the steps of the overall process flow to be described in embodiment 2:
step 21, in an unlocking password setting mode, a user draws a track with any number of included angles on a touch-sensitive display screen of the mobile terminal at will;
step 22, the mobile terminal analyzes the track to obtain the total number of included angles contained in the track and the number of included angles of each opening orientation, and stores the obtained total number of included angles and the number of included angles of each opening orientation; in addition, the total number of the obtained included angles and the number of the included angles towards which the openings face can be displayed, so that a user can know the specified characteristics of the included angles of the track drawn by the user;
for a specific implementation manner of step 22, the mobile terminal may store, in a buffer (buffer) of the mobile terminal, data related to a trajectory drawn by the user, including position information of pixels through which the trajectory passes in an image coordinate system; and then, judging whether each pixel passed by the track is an angular point or not according to the stored related data, and determining information such as opening orientation of an included angle corresponding to the angular point.
Assuming that the trajectory drawn by the user is as shown in fig. 1b, the mobile terminal may display the following information to the user:
there are 4 corner points in total-2 upward corner points, 1 downward corner point, and 1 opening orientation is a horizontal corner point.
The judging mode of whether the pixel is an angular point comprises the following steps: the left and right derivatives of each pixel (i.e. the left and right slopes of the pixel, please refer to the description in embodiment 1 of the present application) are calculated, and when the values of the left and right derivatives of a pixel are not equal, or the absolute value of the difference between the left and right derivatives is greater than a predetermined threshold, the pixel is determined to be an angular point.
The judgment mode of the orientation of the opening with the included angle comprises the following steps: for the pixel determined as the corner point, the magnitude relationship between the left and right derivatives of the pixel and 0 is analyzed, and then the opening orientation of the included angle is determined according to the analysis result — see the description in embodiment 1 of the present application. It should be noted that when the left and right derivatives have the same sign or there is a derivative of 0 or infinity, the opening orientation that determines the included angle is horizontal (possibly to the left or to the right).
Step 23, after the mobile terminal enters a user interface locking state, drawing a track on a screen locking interface of the mobile terminal by a user; the mobile terminal records the track and calculates the total number of included angles in the track drawn by the user according to the angle point judging mode given in the step 22, matches the calculated total number of included angles with the stored total number of included angles, and executes the step 24 when the calculated total number of included angles and the stored total number of included angles are equal; otherwise, the mobile terminal keeps the user interface locking state and prompts the user to redraw the pattern for unlocking;
step 24, the mobile terminal calculates the opening orientations of the included angles and the number of the included angles of each opening orientation according to the method for judging the opening orientations of the included angles given in the step 22, then matches the calculation results with stored '4 corner points in total, namely 2 upward corner points, 1 downward corner point and 1 horizontal corner point', and releases the user interface locking state of the mobile terminal when the matching is successful; and when the matching is unsuccessful, the mobile terminal keeps the user interface locking state and prompts the user to redraw the pattern for unlocking.
By adopting the scheme provided by the embodiment 2 of the application, a user can draw more randomly without being restricted by the designated pattern when viewing the drawing track, and the method is convenient and fast.
Example 3
The main difference between embodiment 3 of the present invention and embodiment 2 of the present invention is that the mobile terminal in embodiment 3 supports partition unlocking.
In the following, with reference to the accompanying drawings, how a user enters an angle specification feature as a reference unlocking password into a mobile terminal and how the mobile terminal subsequently unlocks a user interface lock state by means of the reference unlocking password will be described.
Referring to fig. 3, fig. 3 shows the steps included in the overall process to be described in embodiment 3:
step 31, in the unlocking password setting mode, a user draws a track with any number of included angles at will on a touch-sensitive display screen of the mobile terminal;
step 32, the mobile terminal analyzes the track to obtain the total number of included angles contained in the track and the number of included angles oriented to each opening, and stores the obtained total number of included angles and the obtained number of included angles oriented to each opening; in addition, the total number of the obtained included angles and the number of the included angles towards which the openings face can be displayed, so that a user can know the specified characteristics of the included angles of the track drawn by the user;
step 33, placing different APPs in different display sub-areas of the touch sensitive display by a user according to personal preferences;
as shown in fig. 1k, according to the user's own wishes, the user places some APPs in the 4 display sub-areas of the touch-sensitive display, respectively.
Step 34, after the mobile terminal enters the user interface locking state, if the user wants to release the user interface locking state of the mobile terminal, and then only displays the APP located in a certain display sub-area, a track can be drawn on the display sub-area;
as shown in FIG. 1l, the user draws a trace 120 (unlock pattern) on the display sub-region in the upper left corner.
Step 35, the mobile terminal analyzes the track drawn on the display sub-area to judge whether the total number of included angles in the track is matched with the total number of the stored included angles, if so, step 36 is executed; otherwise, the mobile terminal keeps the user interface locking state and prompts the user to redraw the pattern for unlocking;
step 36, the mobile terminal calculates the opening orientations of the included angles and the number of the included angles of each opening orientation, then matches the calculated number of the included angles of each opening orientation with the stored number of the included angles of each opening orientation, and when the matching is successful, the user interface locking state of the display sub-area where the drawn track is located in step 34 is released, and the user interface locking states of other display sub-areas except the display sub-area are kept; and when the matching is unsuccessful, the mobile terminal keeps the user interface locking state and prompts the user to redraw the pattern for unlocking.
In an embodiment of the present invention, a specific implementation manner of determining, by a mobile terminal, a display sub-region where a trajectory is located includes:
the mobile terminal determines the coordinates of the pixels passed by the track in an image coordinate system;
judging the coordinate range in which the determined coordinates fall according to the determined coordinates and the coordinate range of the position of each display sub-region in the image coordinate system;
and determining the display sub-area to which the determined coordinate falls and the coordinate range belongs as the display sub-area to which the track is located.
In an embodiment of the present invention, the releasing the user interface lock state of the display sub-region where the drawn track is located in step 34 may specifically include: and displaying the display content displayed in the display sub-area before the mobile terminal enters the user interface locking state.
In an embodiment of the present invention, the maintaining the user interface lock state of the other display sub-regions except the display sub-region may specifically include: and hiding and displaying the display content displayed in the other display sub-areas before the mobile terminal enters the user interface locking state.
For example, if the matching result obtained by performing step 36 is a successful matching, the application in the display sub-area at the upper left corner can be displayed, and the applications in other display sub-areas can be hidden and displayed as shown in fig. 1 m.
In the embodiment of the present invention, if the display content of the other display sub-area is to be displayed, the following two ways may be adopted to perform the operation on the user interface shown in fig. 1 m:
first, in the other display sub-areas of the user interface shown in fig. 1m, tracks for unlocking are respectively drawn; for the mobile terminal, whether the specified features of the included angles of the tracks are matched with the preset specified features or not can be judged one by one, and if the specified features are matched with the preset specified features, the user interface locking state of each display sub-area can be released one by one.
Second, in the user interface as described in FIG. 1m, a trajectory of the unlocking across multiple display sub-regions is drawn; for the mobile terminal, if a touch operation for drawing the trajectory is detected, it may be first determined whether the trajectory crosses multiple (where the multiple may be a preset threshold, such as 2, 3, or 4, etc.) display sub-areas, if so, it may be further determined whether a specified feature of an included angle of the trajectory matches a preset specified feature, and if so, a user interface lock state of the multiple or all display sub-areas may be released, that is, display content (generally, content displayed before entering the user interface lock state) in the multiple or all display sub-areas may be displayed.
By adopting the scheme provided by the embodiment 3 of the invention, the user can be supported to carry out local unlocking on the user interface according to the unlocking requirement of the user, on one hand, the safety of user information can be ensured, namely hidden and displayed contents cannot be leaked; on the other hand, the flexibility of the unlocking mode is improved, the interestingness is strong, and the user experience can be improved.
Example 4
In order to solve the problem that the unlocking efficiency is low due to the inconvenience and the inconvenience of the method for unlocking the mobile terminal provided in the prior art, embodiment 4 of the present invention provides an unlocking device 40, where a specific structural schematic diagram of the unlocking device 40 is shown in fig. 4, and the unlocking device includes a determining unit 41 and an unlocking unit 42. The functions of the units are described in detail below:
the determining unit 41 is configured to, when the electronic device is in a user interface lock state, determine whether an appointed feature of an included angle of a sliding track corresponding to a touch operation matches a preset included angle appointed feature if the touch operation is detected;
and an unlocking unit 42, configured to, when the determination result obtained by the determining unit 41 is yes, release the user interface lock state of the electronic device.
In embodiment 4 of the present invention, in order to further protect information security and improve the interest of the user operation, the unlocking device 40 may further include: a determination unit. The determining unit is configured to determine, if the touch operation is detected, a display sub-area of the touch-sensitive display that is acted by the touch operation.
When the unlocking device 40 further includes a determining unit, the unlocking unit 42 may be specifically configured to display the display content in a display manner of displaying the first display content and hiding and displaying the second display content.
Wherein the first display content includes: display content located in the acted display sub-region prior to entering a user interface lock state; the second display content includes: display content in at least one other display sub-area than the active display sub-area prior to entering the user interface locked state.
In order to further enhance the interest of the user operation and further enhance the information security, in the embodiment of the present invention, the determining unit 41 may further be divided into a feature determining subunit and a determining subunit.
And the characteristic determination subunit is used for determining the included angle designated characteristic corresponding to the display subarea of the action according to a pre-stored mapping relation. The pre-stored mapping relationship comprises: the included angle specifies the mapping relationship of the feature to the display sub-region.
And the judging subunit is used for judging whether the specified characteristic of the included angle of the sliding track corresponding to the touch operation is matched with the specified characteristic of the included angle determined by the characteristic determining subunit.
Considering that there may be a case where there is no included angle in the sliding track, and the specified characteristic of the included angle of the sliding track does not match the preset included angle specified characteristic, the unlocking device 40 provided in the embodiment of the present invention may further include a state maintaining unit 43 as shown in fig. 4. The state maintaining unit 43 is specifically configured to maintain the user interface lock state of the electronic device if it is determined that the sliding track does not have the included angle, or if it is determined that the specified feature of the included angle of the sliding track is not matched with the preset specified feature of the included angle by the determining unit 41.
Compared with the mode that a user needs to accurately position a password input area in the prior art, by adopting the unlocking device 40 provided by the embodiment 4 of the invention, whether the user interface locking state is released or not is judged according to the specified characteristics of the included angle included in the sliding track corresponding to the touch operation, and the shape and the input area of the sliding track are not strictly limited, so that the requirement on the positioning accuracy of the password input area of the user is greatly reduced, the operation of the user is more convenient, the higher unlocking efficiency can be ensured, and the user experience is improved.
Example 5
In order to solve the problem that the unlocking efficiency is low due to the fact that the mode for unlocking the mobile terminal provided by the prior art is not convenient and quick enough, embodiment 5 of the invention provides a mobile terminal.
Fig. 5 is a schematic diagram of a hardware structure of a mobile terminal for implementing various embodiments of the present invention, where the mobile terminal 50 includes, but is not limited to: a radio frequency unit 51, a network module 52, an audio output unit 53, an input unit 54, a sensor 55, a display unit 56, a user input unit 57, an interface unit 58, a memory 59, a processor 510, and a power supply 511. Those skilled in the art will appreciate that the mobile terminal architecture shown in fig. 5 is not intended to be limiting of mobile terminals, and that a mobile terminal may include more or fewer components than shown, or some components may be combined, or a different arrangement of components. In the embodiment of the present invention, the mobile terminal includes, but is not limited to, a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted terminal, a wearable device, a pedometer, and the like.
The processor 510 is configured to, when the mobile terminal is in a user interface lock state, determine whether an appointed feature of an included angle of a sliding track corresponding to a touch operation matches a preset included angle appointed feature if the touch operation is detected; and if so, releasing the user interface locking state of the mobile terminal.
The mobile terminal provided in the embodiment of the present invention can implement each process implemented by the mobile terminal in the method embodiments of fig. 1a to fig. 3, and is not described herein again to avoid repetition.
Compared with the mode that a user needs to accurately position the password input area in the prior art, by adopting the scheme provided by the embodiment of the invention, whether the user interface locking state is released or not is judged according to the specified characteristics of the included angle included in the sliding track corresponding to the touch operation, and the shape and the input area of the sliding track are not strictly limited, so that the requirement on the positioning accuracy of the password input area of the user is greatly reduced, the operation of the user is more convenient, the higher unlocking efficiency can be ensured, and the user experience is improved.
It should be understood that, in the embodiment of the present invention, the radio frequency unit 51 may be used for receiving and sending signals during a message sending and receiving process or a call process, and specifically, receives downlink data from a base station and then processes the received downlink data to the processor 510; in addition, the uplink data is transmitted to the base station. Typically, the radio frequency unit 51 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. In addition, the radio frequency unit 51 can also communicate with a network and other devices through a wireless communication system.
The mobile terminal provides the user with wireless broadband internet access via the network module 52, such as assisting the user in sending and receiving e-mails, browsing web pages, and accessing streaming media.
The audio output unit 53 may convert audio data received by the radio frequency unit 51 or the network module 52 or stored in the memory 59 into an audio signal and output as sound. Also, the audio output unit 53 may also provide audio output related to a specific function performed by the mobile terminal 50 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 53 includes a speaker, a buzzer, a receiver, and the like.
The input unit 54 is used to receive audio or video signals. The input Unit 54 may include a Graphics Processing Unit (GPU) 541 and a microphone 542, and the Graphics processor 541 processes image data of a still picture or video obtained by an image capturing device (such as a camera) in a video capture mode or an image capture mode. The processed image frames may be displayed on the display unit 56. The image frames processed by the graphic processor 541 may be stored in the memory 59 (or other storage medium) or transmitted via the radio frequency unit 51 or the network module 52. The microphone 542 may receive sound, and may be capable of processing such sound into audio data. The processed audio data may be converted into a format output transmittable to a mobile communication base station via the radio frequency unit 51 in case of the phone call mode.
The mobile terminal 50 also includes at least one sensor 55, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor that can adjust the brightness of the display panel 561 according to the brightness of ambient light, and a proximity sensor that can turn off the display panel 561 and/or the backlight when the mobile terminal 50 moves to the ear. As one of the motion sensors, the accelerometer sensor can detect the magnitude of acceleration in each direction (generally three axes), detect the magnitude and direction of gravity when stationary, and can be used to identify the posture of the mobile terminal (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), and vibration identification related functions (such as pedometer, tapping); the sensors 55 may also include a fingerprint sensor, a pressure sensor, an iris sensor, a molecular sensor, a gyroscope, a barometer, a hygrometer, a thermometer, an infrared sensor, etc., which will not be described in detail herein.
The display unit 56 is used to display information input by the user or information provided to the user. The Display unit 56 may include a Display panel 561, and the Display panel 561 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.
The user input unit 57 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the mobile terminal. Specifically, the user input unit 57 includes a touch panel 571 and other input devices 572. The touch panel 571, i.e., the touch-sensitive display in the embodiment of the present invention, also referred to as a touch screen, can collect touch operations of a user on or near the touch panel 571 (e.g., operations of a user on the touch panel 571 or near the touch panel 571 using any suitable object or accessory such as a finger, a stylus, etc.). The touch panel 571 may include two parts, a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 510, and receives and executes commands sent by the processor 510. In addition, the touch panel 571 can be implemented by various types, such as resistive, capacitive, infrared, and surface acoustic wave. The user input unit 57 may include other input devices 572 in addition to the touch panel 571. In particular, other input devices 572 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described in detail herein.
Further, the touch panel 571 can be overlaid on the display panel 561, and when the touch panel 571 detects a touch operation on or near the touch panel 571, the touch panel is transmitted to the processor 510 to determine the type of the touch event, and then the processor 510 provides a corresponding visual output on the display panel 561 according to the type of the touch event. Although the touch panel 571 and the display panel 561 are shown in fig. 5 as two separate components to implement the input and output functions of the mobile terminal, in some embodiments, the touch panel 571 and the display panel 561 may be integrated to implement the input and output functions of the mobile terminal, and the implementation is not limited herein.
The interface unit 58 is an interface for connecting an external device to the mobile terminal 50. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The interface unit 58 may be used to receive input from external devices (e.g., data information, power, etc.) and transmit the received input to one or more elements within the mobile terminal 50 or may be used to transmit data between the mobile terminal 50 and external devices.
The memory 59 may be used to store software programs as well as various data. The memory 59 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the mobile terminal 50, and the like. Further, the memory 59 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.
The processor 510 is a control center of the mobile terminal, connects various parts of the entire mobile terminal using various interfaces and lines, performs various functions of the mobile terminal and processes data by operating or executing software programs and/or modules stored in the memory 59 and calling data stored in the memory 59, thereby monitoring the entire mobile terminal. Processor 510 may include one or more processing units; preferably, the processor 510 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into processor 510.
The mobile terminal 50 may further include a power supply 111 (e.g., a battery) for supplying power to various components, and preferably, the power supply 111 may be logically connected to the processor 510 via a power management system, so as to manage charging, discharging, and power consumption management functions via the power management system.
In addition, the mobile terminal 50 includes some functional modules that are not shown, and thus, the detailed description thereof is omitted.
Preferably, an embodiment of the present invention further provides a mobile terminal, which includes a processor 510 as shown in fig. 5, a memory 59, and a computer program that is stored in the memory 59 and is executable on the processor 510, and when the computer program is executed by the processor 510, the mobile terminal implements each process of any one of the method embodiments described in embodiments 1 to 3, and can achieve the same technical effect, and details are not described here to avoid repetition.
An embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the computer program implements each process of any one of the method embodiments described in embodiments 1 to 3, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here. The computer-readable storage medium may be a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile terminal, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
While the present invention has been described with reference to the embodiments shown in the drawings, the present invention is not limited to the embodiments, which are illustrative and not restrictive, and it will be apparent to those skilled in the art that various changes and modifications can be made therein without departing from the spirit and scope of the invention as defined in the appended claims.
Claims (10)
1. An unlocking method, comprising:
when the electronic equipment is in a user interface locking state, if touch operation is detected, judging whether the specified characteristic of the included angle of the sliding track corresponding to the touch operation is matched with a preset specified characteristic of the included angle;
if so, releasing the user interface locking state of the electronic equipment;
wherein, the specified characteristics of the included angle of the sliding track at least comprise: the sliding track passes through the angle value of the included angle corresponding to each pixel; the angle value of the included angle is determined according to the following formula:
wherein,indicating the angle value of the included angle corresponding to pixel N0,representing the angle value of the left angle for pixel N0,represents the right angle value of pixel N0;
the left included angle value is determined according to the following formula:
the right included angle value is determined according to the following formula:
where DLN0 represents the left derivative of pixel N0; DRN0 represents the right derivative of pixel N0; XN0 and YN0 represent coordinate values of pixel N0 on the X-axis and Y-axis, respectively, of the specified image coordinate system; XN1 and YN1 are coordinate values on the X and Y axes of a pixel adjacent to N0 and located to the left of N0 among pixels through which the slide locus passes in the designated image coordinate system; XN2 and YN2 are coordinate values on the X and Y axes of pixels adjacent to N0 and located to the right of N0 among pixels passed by the slide locus in the designated image coordinate system.
2. The method of claim 1, wherein the method further comprises: if the touch operation is detected, determining a display sub-area acted by the touch operation; then, releasing the user interface lock state of the electronic device specifically includes:
displaying the display content according to a display mode of displaying the first display content and hiding and displaying the second display content;
wherein the first display content comprises: display content located in the acted display sub-region prior to entering the user interface lock state; the second display content includes: display content in at least one other display sub-region than the active display sub-region prior to entering the user interface locked state.
3. The method of claim 2, wherein determining whether the designated feature of the included angle of the sliding track corresponding to the touch operation matches a preset designated feature of the included angle specifically comprises:
determining an included angle designated characteristic corresponding to the display subarea of the action according to a pre-stored mapping relation; the pre-stored mapping relationship comprises: the mapping relation between the included angle specified characteristics and the display sub-area;
and judging whether the specified characteristics of the included angle of the sliding track corresponding to the touch operation are matched with the determined specified characteristics of the included angle.
4. The method of claim 1, further comprising:
and if the sliding track is judged not to have the included angle, or the specified characteristic of the included angle of the sliding track is judged not to be matched with the preset specified characteristic of the included angle, keeping the user interface of the electronic equipment in a locking state.
5. The method according to any one of claims 1 to 4, wherein the predetermined included angle specification feature specifically includes at least one of the following features that are preset:
the number of included angles;
the opening of the included angle faces;
angle values of included angles; the appearance sequence of the included angles with different angle values in the sliding track;
the sequence of the angles of different opening orientations in the sliding trajectory.
6. An unlocking device, comprising:
the electronic equipment comprises a judging unit and a judging unit, wherein the judging unit is used for judging whether the specified characteristic of the included angle of the sliding track corresponding to the touch operation is matched with the preset specified characteristic of the included angle if the touch operation is detected when the electronic equipment is in a user interface locking state;
the unlocking unit is used for releasing the user interface locking state of the electronic equipment when the judgment result obtained by the judgment unit is yes;
wherein, the specified characteristics of the included angle of the sliding track at least comprise: the sliding track passes through the angle value of the included angle corresponding to each pixel; the angle value of the included angle is determined according to the following formula:
wherein,indicating the angle value of the included angle corresponding to pixel N0,representing the angle value of the left angle for pixel N0,representing the right angle value of pixel N0
The left included angle value is determined according to the following formula:
the right included angle value is determined according to the following formula:
where DLN0 represents the left derivative of pixel N0; DRN0 represents the right derivative of pixel N0; XN0 and YN0 represent coordinate values of pixel N0 on the X-axis and Y-axis, respectively, of the specified image coordinate system; XN1 and YN1 are coordinate values on the X and Y axes of a pixel adjacent to N0 and located to the left of N0 among pixels through which the slide locus passes in the designated image coordinate system; XN2 and YN2 are coordinate values on the X and Y axes of pixels adjacent to N0 and located to the right of N0 among pixels passed by the slide locus in the designated image coordinate system.
7. The apparatus of claim 6, wherein the apparatus further comprises:
the determining unit is used for determining a display sub-area acted by the touch operation if the touch operation is detected;
the unlocking unit is specifically used for displaying the display content according to a display mode of displaying the first display content and hiding and displaying the second display content;
wherein the first display content comprises: display content located in the acted display sub-region prior to entering the user interface lock state; the second display content includes: display content in at least one other display sub-region than the active display sub-region prior to entering the user interface locked state.
8. The apparatus according to claim 7, wherein the determining unit specifically includes:
the characteristic determining subunit is used for determining an included angle designated characteristic corresponding to the display subarea with the action according to a prestored mapping relation; the pre-stored mapping relationship comprises: the mapping relation between the included angle designation feature and a display sub-region of the touch sensitive display;
and the judging subunit is used for judging whether the specified characteristic of the included angle of the sliding track corresponding to the touch operation is matched with the specified characteristic of the included angle determined by the characteristic determining subunit.
9. The apparatus of claim 6, further comprising:
and the state maintaining unit is used for maintaining the user interface locking state of the electronic equipment if the sliding track is judged not to have the included angle, or the judging unit judges that the specified characteristic of the included angle of the sliding track is not matched with the preset specified characteristic of the included angle.
10. A mobile terminal, comprising: memory, processor and computer program stored on the memory and executable on the processor, which computer program, when executed by the processor, carries out the steps of the method according to any one of claims 1 to 5.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810305039.2A CN108664204B (en) | 2018-04-08 | 2018-04-08 | A kind of unlocking method, device and mobile terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810305039.2A CN108664204B (en) | 2018-04-08 | 2018-04-08 | A kind of unlocking method, device and mobile terminal |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108664204A CN108664204A (en) | 2018-10-16 |
CN108664204B true CN108664204B (en) | 2019-12-03 |
Family
ID=63783164
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810305039.2A Active CN108664204B (en) | 2018-04-08 | 2018-04-08 | A kind of unlocking method, device and mobile terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108664204B (en) |
Families Citing this family (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2020177070A1 (en) * | 2019-03-05 | 2020-09-10 | 深圳市柔宇科技有限公司 | Method for executing instructions based on trajectory, electronic device and computer-readable storage medium |
CN110769117B (en) * | 2019-09-24 | 2021-02-12 | 维沃移动通信有限公司 | Screen unlocking method and device and mobile terminal |
CN111007981A (en) * | 2019-11-30 | 2020-04-14 | Tcl移动通信科技(宁波)有限公司 | Password input method and device for mobile terminal |
CN113569221B (en) * | 2021-04-02 | 2023-10-24 | 袁麓 | Unlocking method, system and terminal |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102622174A (en) * | 2012-02-23 | 2012-08-01 | 中兴通讯股份有限公司 | Screen unlocking system and method |
CN103150120A (en) * | 2013-03-28 | 2013-06-12 | 华为技术有限公司 | Method and device for unlocking display screen locking and terminal |
CN104317517A (en) * | 2014-10-23 | 2015-01-28 | 苏州天平先进数字科技有限公司 | Touch screen terminal hidden unlocking method and system |
CN105160235A (en) * | 2015-08-31 | 2015-12-16 | 深圳Tcl数字技术有限公司 | Terminal unlocking method and device |
CN106599738A (en) * | 2016-12-16 | 2017-04-26 | 北京小米移动软件有限公司 | Display control method and apparatus for terminal device |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
TWI582682B (en) * | 2012-07-19 | 2017-05-11 | 群聯電子股份有限公司 | Method for entering password and portable electronic and unlocking method and method for data authentication |
-
2018
- 2018-04-08 CN CN201810305039.2A patent/CN108664204B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102622174A (en) * | 2012-02-23 | 2012-08-01 | 中兴通讯股份有限公司 | Screen unlocking system and method |
CN103150120A (en) * | 2013-03-28 | 2013-06-12 | 华为技术有限公司 | Method and device for unlocking display screen locking and terminal |
CN104317517A (en) * | 2014-10-23 | 2015-01-28 | 苏州天平先进数字科技有限公司 | Touch screen terminal hidden unlocking method and system |
CN105160235A (en) * | 2015-08-31 | 2015-12-16 | 深圳Tcl数字技术有限公司 | Terminal unlocking method and device |
CN106599738A (en) * | 2016-12-16 | 2017-04-26 | 北京小米移动软件有限公司 | Display control method and apparatus for terminal device |
Also Published As
Publication number | Publication date |
---|---|
CN108664204A (en) | 2018-10-16 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109933273B (en) | Information processing method and terminal equipment | |
CN111163260B (en) | Camera starting method and electronic equipment | |
CN108664204B (en) | A kind of unlocking method, device and mobile terminal | |
CN107835286B (en) | Method for preventing mistaken unlocking and mobile terminal | |
CN109190356B (en) | Screen unlocking method and terminal | |
CN109343788B (en) | Operation control method of mobile terminal and mobile terminal | |
CN110908750B (en) | Screen capturing method and electronic equipment | |
CN111339515A (en) | Application program starting method and electronic equipment | |
CN110209331A (en) | Information cuing method and terminal | |
CN110730298A (en) | Display control method and electronic equipment | |
CN109901976B (en) | Application program management method and terminal equipment | |
CN109521920B (en) | Application icon control method and terminal equipment | |
CN107783747B (en) | Interface display processing method and mobile terminal | |
CN108062194B (en) | Display method and device and mobile terminal | |
CN109993010B (en) | Information display method and mobile terminal | |
CN111459362A (en) | Information display method, information display device, electronic apparatus, and storage medium | |
CN109814799A (en) | Screen response control mehtod and terminal device | |
CN111338524A (en) | Application program control method and electronic equipment | |
CN108710806B (en) | Terminal unlocking method and mobile terminal | |
CN109189514B (en) | Terminal device control method and terminal device | |
CN111078002A (en) | Suspended gesture recognition method and terminal equipment | |
CN110941469A (en) | Application body-splitting creating method and terminal equipment thereof | |
CN111176512B (en) | Icon processing method and electronic equipment | |
CN111381753B (en) | Multimedia file playing method and electronic equipment | |
CN109446765B (en) | Screen unlocking method and terminal equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |