Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present invention. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the invention, as detailed in the appended claims.
With the continuous development of science and technology, the number and types of terminals that can be selected and used by users are increasing, and the terminals are common terminals such as mobile phones, tablet computers, electronic books and the like. The user can also conveniently carry out operations such as account transfer, payment and the like through the terminal, so that the safety problem of the terminal becomes more important.
Since most terminals currently provide touch screen control for users, users can control the terminals by touching the display screen of the terminal with fingers, for example. Therefore, the invention generates the preset operation information by collecting the habitual operation of the user on the terminal, and when the user generates a new trigger operation on the terminal, the newly generated trigger operation is compared with the pre-generated operation information (namely the preset operation information), so that whether the user operating the terminal is an illegal user can be quickly judged, and the property loss of the legal user and the like is avoided.
In order to elaborate the technical solution provided by the present invention, an embodiment of the present invention first provides a terminal control method, as shown in fig. 1, the method may include the following steps:
in step S110, a trigger operation of a user on a terminal touch screen is obtained.
The trigger operation refers to a touch operation of a user on a terminal touch screen, such as a click, a slide or a drag operation of the user on the terminal touch screen by a finger. Because the sensor is arranged on the touch screen of the terminal, when a user generates a trigger operation on the touch screen of the terminal, the sensor on the touch screen can acquire the relevant operation of the user on the touch screen.
In step S120, operation information generated by the trigger operation on the terminal touch screen is extracted.
In this embodiment, the present invention needs to extract relevant required operation information in the trigger operation, and further determines whether the current user is an illegal user through the following verification of the operation information.
In step S130, it is determined whether the operation information matches the preset operation information.
When the operation information does not match the preset operation information, the control terminal enters a locked state in step S140.
The preset operation information is operation information included in the previous triggering operation of the terminal touch screen by the user, namely habitual operation of the terminal touch screen by the user, and whether the current operation information of the user is matched with the preset operation information or not is judged by comparing the operation information of the user currently generated on the terminal touch screen with the past habitual operation information of the user. In addition, the habitual operation information of the user can be used as standard operation information, and the operation information generated by the current terminal touch screen operation of the user can be matched with the standard operation information.
When the operation information generated by the user on the terminal touch screen is not matched with the preset operation information, other illegal users are likely to operate the terminal, and at this time, in order to avoid potential safety hazards in aspects of property and the like for the legal users, the terminal needs to be controlled to enter a locking state, so that the illegal users are prevented from further operating the terminal.
According to the terminal control method provided by the invention, the triggering operation of the user on the terminal touch screen is obtained, the operation information generated by the triggering operation on the terminal touch screen is extracted, whether the operation information is matched with the preset operation information or not is judged through the operation information, when the operation information is not matched with the preset operation information, the user operating the terminal is probably an illegal user, and the terminal needs to be controlled to enter a locking state, so that the illegal user is prevented from generating illegal operation on the terminal, and property loss and other losses of the legal user are prevented.
To describe in detail how to determine whether the operation information matches the preset operation information, as a refinement of the method in fig. 1, in another embodiment provided by the present invention, as shown in fig. 2, the operation information includes an interaction track, and step S130 may include the following steps:
in step S131, the sliding track is matched with a preset sliding track, so as to obtain a matching degree between the sliding track and the preset sliding track.
When a user controls a terminal through a touch screen, a sliding operation is required to be performed on the terminal in many times, for example, when a pull-down menu on a terminal screen needs to be called, a common user is used to slide the terminal through a thumb to perform a related operation, and due to the fact that the palm area and the finger length of the same user are fixed and the habitual holding mode of the user on the terminal is added, the user generally performs the same sliding operation and the sliding tracks generated on the terminal touch screen each time are consistent. Therefore, whether the operation information of the user is matched with the preset operation information or not can be judged through the sliding track of the user on the touch screen of the terminal.
In step S132, it is determined whether the matching degree is smaller than a first preset threshold.
When the matching degree is less than the first preset threshold, it is determined that the operation information does not match the preset operation information in step S133.
Exemplarily, with reference to fig. 3, a two-dimensional coordinate system is established on a display screen of a terminal, where fig. 3 includes an x axis, a y axis and an origin (0, 0), when a user performs a certain preset operation on the terminal, 100 is a sliding track of the user on a terminal touch screen, 200 is a preset sliding track, the sliding track is matched with the preset sliding track, and a matching degree between the obtained sliding track and the preset sliding track may be a contact degree between 100 and 200 on the terminal touch screen, and if the two are completely overlapped, it is stated that the matching degree is 1; if no coincidence exists at all, the matching degree is 0; if 100 and 200 coincide by half, the degree of matching is 0.5. In calculating the matching degree between 100 and 200, it can be obtained by calculating the ratio of the overlapping area between 100 and 200 to the area occupied by 200. For example, when the area ratio of the overlapping area between 100 and 200 to 200 is greater than 0.7, it is determined that the operation information does not match the preset operation information.
To describe in detail how to determine whether the operation information matches the preset operation information, as a refinement of the method in fig. 1, in a further embodiment provided by the present invention, as shown in fig. 4, the operation information includes a real-time pressing force value generated by the user on the terminal screen, and step S130 may include the following steps:
in step S134, an average pressing force value generated on the terminal touch screen by the user is calculated according to the real-time pressing force value.
For example, when a user performs a sliding operation on a terminal touch screen, a continuous press is generated on the terminal touch screen, and a force value generated by the press cannot be constant all the time during the sliding operation, so that a real-time press force value generated by the user on the terminal screen needs to be acquired.
In order to simplify the calculation, some values may be sampled from a series of acquired pressing force values, and then the average value of these values is obtained to obtain the average pressing force value.
In step S135, the absolute value of the pressing force difference between the average pressing force value and the preset pressing force value is calculated.
And (4) subtracting the average pressing force value from a preset pressing force value, and then calculating an absolute value to obtain the absolute value of the pressing force difference value between the average pressing force value and the preset pressing force value.
In step S136, it is determined whether the absolute value of the pressing force degree difference is larger than a second preset threshold.
When the absolute value of the pressing force degree difference is greater than the second preset threshold, it is determined that the operation information does not match the preset operation information in step S137.
If the absolute value of the pressing force difference is larger than a second preset threshold, which indicates that the difference between the average pressing force value and the preset pressing force value is too large, it may be determined that the operation information does not match the preset operation information.
To illustrate in detail how to determine whether the operation information matches the preset operation information, as a refinement of the method in fig. 1, in a further embodiment provided by the present invention, as shown in fig. 5, the operation information includes a real-time sliding rate generated on the terminal touch screen by the user, and step S130 may include the following steps:
in step S1371, an average sliding rate generated on the touch screen of the terminal by the user is calculated according to the real-time sliding rate.
Generally, when a user performs a sliding operation on a terminal touch screen, the speed increases from 0, and gradually decreases to 0 after reaching a peak value. Therefore, it is necessary to obtain the real-time sliding rate of the user on the terminal touch screen. For simple calculation, the obtained real-time sliding rate may be sampled, some numerical values may be extracted from the obtained real-time sliding rate, and then an average value of the numerical values is obtained as the average sliding rate.
In step S1372, an absolute value of a rate difference between the average slip rate and a preset slip rate is calculated.
And subtracting the average sliding speed from the preset sliding speed to obtain a difference value, and solving the absolute value of the difference value to obtain the absolute value of the speed difference value between the average sliding speed and the preset sliding speed.
In step S1373, it is determined whether the absolute value of the rate difference is greater than a third preset threshold.
When the absolute value of the rate difference is greater than the third preset threshold, it is determined that the operation information does not match the preset operation information in step S1374.
If the absolute value of the rate difference is greater than a third preset threshold, which indicates that the difference between the average sliding rate and the preset sliding rate is too large, it may be determined that the operation information does not match the preset operation information.
To elaborate on how to judge whether the operation information matches with the preset operation information, as a refinement of the method of fig. 1, in a further embodiment provided by the present invention, as shown in fig. 6, the operation information includes a frequency of clicks of the user on the terminal screen, and step S130 may include the following steps:
in step S1381, an absolute value of a frequency difference between the click frequency and a predetermined click frequency is calculated.
For example, when a user performs double-click or triple-click operations on a terminal touch screen, since different users may have different click frequencies on the terminal touch screen, the click frequency of the user on the terminal touch screen may be obtained, the click frequency is subtracted from a preset click frequency to obtain a difference value, and then an absolute value of the difference value is obtained, that is, an absolute value of a frequency difference value between the click frequency and the preset click frequency.
In step S1382, it is determined whether the absolute value of the frequency difference is greater than a fourth predetermined threshold.
When the absolute value of the frequency difference is greater than the fourth preset threshold, it is determined that the operation information does not match the preset operation information in step S1383.
If the absolute value of the frequency difference is greater than the fourth preset threshold, it indicates that the difference between the click frequency of the user and the preset click frequency is too large, and the user is likely to operate the terminal of the user by an illegal user, and it may be determined that the operation information is not matched with the preset operation information.
To elaborate on how to judge whether the operation information matches the preset operation information, as a refinement of the method of fig. 1, in a further embodiment provided by the present invention, as shown in fig. 7, the operation information includes the inclination of the terminal, and the step S130 may include the steps of:
in step S1391, the absolute value of the inclination difference between the inclination and the preset inclination is calculated.
Referring to fig. 8, taking a terminal as an example of a mobile phone, currently, an acceleration sensor is basically installed on a mobile phone, a three-dimensional coordinate system in three directions of x, y, and z on the mobile phone is established, components of the mobile phone in the three directions of x, y, and z can be calculated through the acceleration sensor, and when the mobile phone is in a non-acceleration state (e.g., in a static state or in a uniform linear motion state), only the gravitational acceleration can be resolved into the three coordinates of x, y, and z.
The inclination of the mobile phone can be understood as an included angle between a screen of the mobile phone and a horizontal plane, and as shown in fig. 8, because the z-axis is perpendicular to the screen of the mobile phone (the included angle is 90 °), and the included angle between the z-axis and the horizontal plane and the included angle between the screen of the mobile phone and the horizontal plane are complementary, the included angle between the screen of the mobile phone and the horizontal plane can be obtained by calculating the included angle between the z-axis and the horizontal plane, and the included angle between the z-axis and the horizontal plane can be obtained according to data detected by the acceleration sensor.
In step S1392, it is determined whether the absolute value of the inclination difference is greater than a fifth preset threshold.
Because each user has the habit of operating the terminal by himself, the inclination of holding or placing the terminal by the user is also constant under general conditions, and therefore, whether the user is an illegal user can be judged by judging the inclination of the terminal when the user uses the terminal.
When the absolute value of the inclination difference is greater than the fifth preset threshold value and greater than the fifth preset threshold value, in step S1393, it is determined that the operation information does not match the preset operation information.
If the inclination of the terminal is different from the preset inclination by too much, the current user using the terminal is likely to be an illegal user, and it can be determined that the operation information is not matched with the preset operation information.
As a refinement of the method of fig. 1, as shown in fig. 9, after step S140, the method may further include the steps of:
in step S150, the user is prompted to input the authentication information, so that the terminal authenticates the authentication information input by the user after acquiring the authentication information input by the user.
When the terminal enters a locking state, an information input box can be popped up on a display interface of the terminal, so that a user can input identity authentication information in the information input box, and the user is prevented from normally using the terminal due to the fact that the user changes operation habits. The identity authentication information can be a security password, the security password is reserved by the user, the password is different from the login password and the payment password, and even if the login password and the payment password in the user are stolen, the identity of the user can be verified through the security password.
It should be noted that, the above embodiments may be combined with each other, for example, one or a combination of several of the sliding track, the real-time pressing force value, the real-time sliding rate, the clicking frequency, and the mobile phone inclination of the user may be determined to determine the current operation of the user. For example, when none of the above-mentioned conditions is satisfied at the same time, the user may be an illegal user, and after further verification and passing the identity of the user, the terminal may be continuously operated, thereby avoiding the user from causing loss such as property. Of course, various factors of the above determination may be set according to specific situations, and whether the user is an illegal user is determined by selecting the combination of the above factors, which is not limited in the present invention.
According to the terminal control method provided by the invention, the triggering operation of the user on the terminal touch screen is obtained, the operation information generated by the triggering operation on the terminal touch screen is extracted, whether the operation information is matched with the preset operation information or not is judged through the operation information, when the operation information is not matched with the preset operation information, the user operating the terminal is probably an illegal user, and the terminal needs to be controlled to enter a locking state, so that the illegal user is prevented from generating illegal operation on the terminal, and property loss and other losses of the legal user are prevented.
In addition, the current operation of the user can be judged according to one or a combination of several of the sliding track, the real-time pressing force value, the real-time sliding rate and the clicking frequency of the user, and if the judgment does not meet the condition, the user of the current operation terminal is probably an illegal user.
Through the above description of the method embodiments, those skilled in the art can clearly understand that the present invention can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but the former is a better implementation mode in many cases. 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 and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the methods according to the embodiments of the present invention. And the aforementioned storage medium includes: various media that can store program codes, such as Read Only Memory (ROM), Random Access Memory (RAM), magnetic or optical disks, and so on.
In addition, as an implementation of the foregoing embodiments, an embodiment of the present invention further provides a terminal control apparatus, where the apparatus is located in a terminal, and as shown in fig. 10, the apparatus includes: a trigger operation acquisition unit 10, an operation information extraction unit 20, a matching judgment unit 30, and a terminal control unit 40, wherein,
a trigger operation obtaining unit 10, configured to obtain a trigger operation of a user on a terminal touch screen;
an operation information extracting unit 20, configured to extract operation information generated on the terminal touch screen by the trigger operation;
a matching judgment unit 30 for judging whether the operation information matches with preset operation information;
and the terminal control unit 40 is used for controlling the terminal to enter a locking state when the operation information is not matched with the preset operation information.
In another embodiment of the present invention, based on fig. 10, as shown in fig. 11, the operation information includes a slide track; the illustrated matching judgment unit 30 includes:
a sliding track matching module 31, configured to match the sliding track with a preset sliding track, so as to obtain a matching degree between the sliding track and the preset sliding track;
a first threshold determining module 32, configured to determine whether the matching degree is smaller than a first preset threshold;
the first operation information determining module 33 is configured to determine that the operation information is not matched with the preset operation information when the matching degree is smaller than a first preset threshold.
In another embodiment of the present invention, based on fig. 10, as shown in fig. 12, the operation information includes a real-time pressing force value generated by the user on a terminal screen; the matching judgment unit 30 includes:
an average pressing force value calculating module 34, configured to calculate an average pressing force value generated by the user on the terminal touch screen according to the real-time pressing force value;
a first absolute value calculating module 35, configured to calculate an absolute value of a pressing force difference between the average pressing force value and a preset pressing force value;
a second threshold value determining module 36, configured to determine whether an absolute value of the pressure difference is greater than a second preset threshold value;
a second operation information determining module 37, configured to determine that the operation information does not match the preset operation information when the absolute value of the pressing force degree difference is greater than a second preset threshold.
In another embodiment of the present invention, based on fig. 10, as shown in fig. 13, the operation information includes a real-time sliding rate generated by the user on the terminal touch screen; the matching judgment unit 30 includes:
the average sliding rate calculation module 381 is configured to calculate, according to the real-time sliding rate, an average sliding rate generated by the user on the terminal touch screen;
a second absolute value calculating module 382, configured to calculate an absolute value of a rate difference between the average sliding rate and a preset sliding rate;
a third threshold determining module 383, configured to determine whether an absolute value of the rate difference is greater than a third preset threshold;
a third operation information determining module 384, configured to determine that the operation information is not matched with the preset operation information when the absolute value of the rate difference is greater than a third preset threshold.
In another embodiment of the present invention, based on fig. 10, as shown in fig. 14, the operation information includes a frequency of clicks of the user on the terminal screen; the matching judgment unit 30 includes:
a third absolute value calculating module 391, configured to calculate an absolute value of a frequency difference between the click frequency and a preset click frequency;
a fourth threshold determining module 392, configured to determine whether the absolute value of the frequency difference is greater than a fourth preset threshold;
a fourth operation information determining module 393 configured to determine that the operation information is not matched with the preset operation information when the absolute value of the frequency difference is greater than a fourth preset threshold.
In still another embodiment of the present invention, based on fig. 10, as shown in fig. 15, the operation information includes an inclination of the terminal; the matching judgment unit 30 includes:
a fourth absolute value calculating module 394 for calculating an absolute value of a gradient difference between the gradient and a preset gradient;
a fifth threshold determining module 395, configured to determine whether the absolute value of the gradient difference is greater than a fifth preset threshold;
a fifth operation information determining module 396, configured to determine that the operation information is not matched with the preset operation information when the absolute value of the inclination difference is greater than a fifth preset threshold and greater than a fifth preset threshold.
In another embodiment of the present invention, based on fig. 10, as shown in fig. 16, the apparatus may further include:
and the prompting unit 50 is configured to prompt the user to input the identity authentication information, so that the terminal authenticates the identity authentication information input by the user after acquiring the identity authentication information input by the user.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
The terminal control device provided by the invention judges whether the operation information is matched with the preset operation information or not by acquiring the trigger operation of the user on the terminal touch screen and extracting the operation information generated by the trigger operation on the terminal touch screen, and when the operation information is not matched with the preset operation information, the user operating the terminal is probably an illegal user, and the terminal needs to be controlled to enter a locking state, so that the illegal user is prevented from generating illegal operation on the terminal, and property loss and other losses are prevented from being caused to the legal user.
In addition, the current operation of the user can be judged according to one or a combination of several of the sliding track, the real-time pressing force value, the real-time sliding rate and the clicking frequency of the user, and if the judgment does not meet the condition, the user of the current operation terminal is probably an illegal user.
It should be appreciated that the invention is operational with numerous general purpose or special purpose computing system environments or configurations. For example: personal computers, server computers, hand-held or portable devices, tablet-type devices, multiprocessor systems, microprocessor-based systems, set top boxes, programmable consumer electronics, network PCs, minicomputers, mainframe computers, distributed computing environments that include any of the above systems or devices, and the like.
The invention may be described in the general context of computer-executable instructions, such as program modules, being executed by a computer. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform particular tasks or implement particular abstract data types. The invention may also be practiced in distributed computing environments where tasks are performed by remote processing devices that are linked through a communications network. In a distributed computing environment, program modules may be located in both local and remote computer storage media including memory storage devices.
It is noted that, in this document, relational terms such as "first" and "second," and the like, may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, 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 identical elements in a process, method, article, or apparatus that comprises the element.
Other embodiments of the invention will be apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the invention following, in general, the principles of the invention and including such departures from the present disclosure as come within known or customary practice within the art to which the invention pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the invention being indicated by the following claims.
It will be understood that the invention is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the invention is limited only by the appended claims.