CN109543394B - Function triggering method, system, device and computer readable storage medium - Google Patents

Function triggering method, system, device and computer readable storage medium Download PDF

Info

Publication number
CN109543394B
CN109543394B CN201811445788.1A CN201811445788A CN109543394B CN 109543394 B CN109543394 B CN 109543394B CN 201811445788 A CN201811445788 A CN 201811445788A CN 109543394 B CN109543394 B CN 109543394B
Authority
CN
China
Prior art keywords
direction value
sequence
track
actual
standard
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201811445788.1A
Other languages
Chinese (zh)
Other versions
CN109543394A (en
Inventor
谢兴安
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Koudai Network Technology Co ltd
Original Assignee
Shenzhen Koudai Network Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Koudai Network Technology Co ltd filed Critical Shenzhen Koudai Network Technology Co ltd
Priority to CN201811445788.1A priority Critical patent/CN109543394B/en
Publication of CN109543394A publication Critical patent/CN109543394A/en
Application granted granted Critical
Publication of CN109543394B publication Critical patent/CN109543394B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/30Authentication, i.e. establishing the identity or authorisation of security principals
    • G06F21/31User authentication
    • G06F21/36User authentication by graphic or iconic representation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F18/00Pattern recognition
    • G06F18/20Analysing
    • G06F18/22Matching criteria, e.g. proximity measures

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Data Mining & Analysis (AREA)
  • Computer Security & Cryptography (AREA)
  • General Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Bioinformatics & Cheminformatics (AREA)
  • Evolutionary Computation (AREA)
  • Evolutionary Biology (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Bioinformatics & Computational Biology (AREA)
  • Artificial Intelligence (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Computer Hardware Design (AREA)
  • Software Systems (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The application discloses a function triggering method, which is different from the existing method for judging whether an actually input track pattern is consistent with a preset standard track pattern based on an image recognition principle, the consistency between the actually input track pattern and the preset standard track pattern is judged based on a mode of transversely comparing the directions of track line segments obtained by connecting track points in the track pattern, the similarity calculation of an image is converted into the calculation of a direction value, the calculation of the direction value can be easily carried out directly based on the coordinates of the track points, the calculation with the help of a complex algorithm is not needed to be carried out on the basis of an integral image like the former, the calculation complexity can be obviously reduced, the number of system resources required to be occupied is further reduced, the method is more suitable for being applied to various light-weight intelligent mobile terminals, and the user experience is better. The application also discloses a function triggering system, a function triggering device and a computer readable storage medium, which have the beneficial effects.

Description

Function triggering method, system, device and computer readable storage medium
Technical Field
The present application relates to the field of conditional triggering technologies, and in particular, to a method, a system, an apparatus, and a computer-readable storage medium for triggering a function.
Background
The continuous progress of electronic informatization brings new prosperity to the modern society, and the change of a function triggering mode on a computer terminal can be observed for one time.
Initially, an operating system based on a command line implements triggering of a corresponding function by inputting a fixed function code, and at this stage, a professional operator must implement the function, and it is very common that the function cannot be implemented due to an erroneous input. Later, a graphical operating system appears, programmers use different graphs to perform upper-layer packaging on part of fixed function codes, corresponding functions can be triggered by directly using a mouse or a keyboard in a mode of clicking corresponding icons at the stage, and an attractive operating mode is provided for vast users without the operating capability of bottom-layer codes.
At the present of small-sized intelligent mobile terminals and comprehensive screens, a new function triggering mode gradually appears, corresponding function icons do not need to be clicked at a fixed place, and triggering of functions can be achieved through a gesture operation mode with corresponding functions. The mode which is used more nowadays is self-defined pattern unlocking based on track identification, a user can preset some self-defined patterns and bind different function trigger links for each self-defined pattern, so that corresponding functions can be quickly triggered by drawing the same self-defined pattern on the same equipment again in the following process, and the mode is widely applied to the aspects of equipment unlocking verification, long-step function triggering and the like.
Most of the existing self-defined pattern unlocking methods based on track recognition realize the comparison between an actually input pattern and a preset pattern in an image recognition mode, while the similarity comparison method based on image recognition has the problem of unbalance between precision and occupied resource number, and if high precision is required, the existing image recognition methods need to occupy more system resources for realizing the purpose; the requirement of using less system resources will result in a reduction of the recognition accuracy. The occupied system resources directly affect the use experience of the user, and especially when a large number of programs run in the background and more system resources are occupied to calculate and identify the image similarity, the method is not actually suitable for a lightweight application platform of the intelligent mobile terminal, and therefore the use experience of the user is poor.
Therefore, it is an urgent need for the skilled in the art to solve the problem of how to overcome various technical defects of the conventional image recognition-based custom pattern function triggering method, and to provide a custom pattern function triggering method capable of realizing higher precision even in the case of occupying less system resources.
Disclosure of Invention
The method is characterized in that the consistency between the actually input track pattern and the preset standard track pattern is judged based on the mode of transversely comparing the directions of track line segments obtained by connecting track points in the track pattern, the similarity calculation of the image is converted into the calculation of a direction value, the calculation of the direction value can be easily carried out directly based on the coordinates of the track points, the calculation by means of a complex algorithm on the basis of the integral image as in the former method is not needed, the calculation complexity can be obviously reduced, the number of system resources required to be occupied is further reduced, the method is more suitable for being applied to various light-weight intelligent mobile terminals, and the user experience is better.
Another object of the present application is to provide a function triggering system, apparatus and computer-readable storage medium.
In order to achieve the above object, the present application provides a function triggering method, including:
receiving an input actual track pattern;
obtaining a direction value sequence of the actual track pattern arranged according to the drawing sequence by continuously calculating the direction of the connecting line between each adjacent track point, and taking the direction value sequence as the actual direction value sequence;
judging whether each direction value arranged in the actual direction value sequence is consistent with each direction value arranged in a standard direction value sequence in the same sequence;
if so, calling a function link corresponding to the standard track pattern to trigger a corresponding function; and the standard track pattern is obtained by pre-drawing and corresponds to the standard direction value sequence.
Optionally, the direction value sequence of the actual trace pattern arranged according to the drawing order is obtained by continuously calculating the direction of the connection line between each adjacent trace point, and the direction value sequence is used as the actual direction value sequence, including:
sequentially connecting adjacent track points in the actual track pattern according to the drawing sequence to obtain track line segments;
respectively calculating the slope of each track line segment under a preset rectangular coordinate system, and taking each slope as the direction value of the corresponding track line segment;
and arranging the direction values according to the drawing sequence to obtain the actual direction value sequence.
Optionally, the determining whether each direction value arranged in the actual direction value sequence is consistent with each direction value arranged in the standard direction value sequence in the same order includes:
according to the formula
Figure BDA0001885690110000031
Calculating to obtain sequence direction value difference; wherein X is the sequence direction value difference, n is the number of direction values in the standard direction value sequence and the actual direction value sequence, and the actual direction value sequenceThe actual direction value represents a direction value in the actual direction value sequence, and the standard direction value represents a direction value in the standard direction value sequence;
and judging whether the sequence direction value difference is smaller than a preset allowable error.
Optionally, the function triggering method further includes:
and displaying the error track pattern input last time at the preset position.
Optionally, invoking a function link corresponding to the standard trace pattern to trigger a corresponding function includes:
and calling an unlocking function link corresponding to the standard track pattern so as to unlock the equipment by using an unlocking instruction generated according to the unlocking function link.
To achieve the above object, the present application also provides a function triggering system, including:
an actual track pattern receiving unit for receiving an input actual track pattern;
the direction value calculation and sequence generation unit is used for obtaining a direction value sequence of the actual track pattern arranged according to the drawing sequence in a mode of continuously calculating the direction of a connecting line between every two adjacent track points, and the direction value sequence is used as the actual direction value sequence;
a standard direction value coincidence determination unit configured to determine whether or not each direction value arranged in the actual direction value sequence coincides with each direction value arranged in a standard direction value sequence in the same order;
the function triggering unit is used for calling a function link corresponding to the standard track pattern to trigger a corresponding function if the function is in the normal track pattern; and the standard track pattern is obtained by pre-drawing and corresponds to the standard direction value sequence.
Optionally, the direction value calculating and sequence generating unit includes:
the locus point connecting and locus segment generating subunit is used for sequentially connecting each adjacent locus point in the actual locus pattern according to the drawing sequence to obtain each locus segment;
the direction value calculation operator unit is used for respectively calculating the slope of each track line segment under a preset rectangular coordinate system and taking each slope as the direction value of the corresponding track line segment;
and the direction value arrangement subunit is configured to arrange the direction values according to the drawing order to obtain the actual direction value sequence.
Optionally, the standard direction value coincidence judging unit includes:
a sequence direction value difference calculating subunit for calculating the difference according to a formula
Figure BDA0001885690110000041
Calculating to obtain sequence direction value difference; wherein X is the sequence direction value difference, n is the number of direction values in the standard direction value sequence and the actual direction value sequence, the actual direction value represents a direction value in the actual direction value sequence, and the standard direction value represents a direction value in the standard direction value sequence;
and the comparison subunit is used for judging whether the sequence direction value difference is smaller than a preset allowable error.
Optionally, the function triggering system further includes:
and the error reminding unit is used for displaying the error track pattern input last time at the preset position.
Optionally, the function triggering unit includes:
and the unlocking subunit is used for calling the unlocking function link corresponding to the standard track pattern so as to unlock the equipment by using the unlocking instruction generated according to the unlocking function link.
To achieve the above object, the present application also provides a function triggering apparatus, including:
a memory for storing a computer program;
a processor for implementing the steps of the function triggering method as described in the above when executing the computer program.
To achieve the above object, the present application also provides a computer-readable storage medium having a computer program stored thereon, which, when being executed by a processor, implements the steps of the function triggering method as described above.
Obviously, the function triggering method provided by the application is different from the existing method for judging whether the actually input track pattern is consistent with the preset standard track pattern based on the image recognition principle, the consistency between the actually input track pattern and the preset standard track pattern is judged based on the mode that the direction of the track line segment obtained by connecting the track points in the track pattern is transversely compared, the similarity calculation of the image is converted into the calculation of the direction value, the calculation of the direction value can be easily carried out directly based on the coordinates of the track points, the calculation with the help of a complex algorithm is not needed to be carried out on the basis of the integral image like the former method, the calculation complexity can be obviously reduced, the number of system resources required to be occupied is further reduced, the method is more suitable for various light-weight intelligent mobile terminals, and the user experience is better. The application also provides a function triggering system, a function triggering device and a computer readable storage medium, which have the beneficial effects and are not described herein again.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, it is obvious that the drawings in the following description are only embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
Fig. 1 is a flowchart of a function triggering method according to an embodiment of the present application;
fig. 2 is a flowchart of a method for generating an actual direction value sequence in a function triggering method provided in an embodiment of the present application;
fig. 3 is a flowchart of a consistency determination method in the function triggering method according to the embodiment of the present application;
fig. 4 is a flowchart of a method for unlocking based on a track direction according to an embodiment of the present application;
fig. 5 is a block diagram of a function triggering system according to an embodiment of the present application.
Detailed Description
The core of the application is to provide a function triggering method, a system, a device and a computer readable storage medium, which are different from the existing method for judging whether an actually input track pattern is consistent with a preset standard track pattern based on an image recognition principle.
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some embodiments of the present application, but not all embodiments. 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 application.
Example one
With reference to fig. 1, fig. 1 is a flowchart of a function triggering method provided in an embodiment of the present application, where an execution main body of any subsequent embodiment of the present application is an intelligent mobile terminal, and the execution main body receives a trace pattern for function triggering, which is drawn by a user, through a touch display screen, it should be noted that the touch display screen can also present coordinates of each trace point based on a uniform rectangular coordinate system in a background, and the method specifically includes the following steps:
s101: receiving an input actual track pattern;
the step is intended to receive an actual trace pattern input from the outside, where the actual trace pattern may be drawn by a user moving a finger on the capacitive screen directly or by a dedicated stylus, and is not limited herein.
S102: obtaining a direction value sequence of the actual track pattern arranged according to the drawing sequence by continuously calculating the direction of the connecting line between each adjacent track point, and taking the direction value sequence as the actual direction value sequence;
on the basis of S101, this step is intended to arrange the direction values obtained by connecting the track points forming the actual track pattern in the drawing order to obtain a direction value sequence uniquely corresponding to the received actual track pattern, and the direction value sequence calculated from the actual track pattern is referred to as an actual direction value sequence. The method comprises the steps that every two adjacent track points are connected to obtain one track line segment, different direction values obtained by each track line segment based on the same coordinate system can be used for describing the direction change of the actual track pattern, and the obtained direction value sequence can uniquely represent the actual track pattern, so that the method for judging whether the two patterns are consistent or not based on the pattern direction change condition is actually provided. Specifically, under the same rectangular coordinate system, the slope value or the angle value of each connected trajectory line segment under the rectangular coordinate system can be used as the corresponding direction value, and the direction value can also be obtained by combining some auxiliary parameters or self-defined parameter modes on the basis.
The drawing sequence of the track pattern is the sequence of the coordinate determination of each track point, for example, when a track pattern is composed of 100 track points, the 1 st track point is the first track point obtained according to the drawing sequence, the 2 nd track point is the next track point adjacent to the 1 st track point, and the analogy is performed to the 100 th track point in turn.
It should be further noted that the manner of continuously calculating the direction of the connection line between adjacent track points described in this step means that starting from the 1 st track point, the direction value is continuously calculated in a manner of two adjacent track points, for example, the first calculated direction value is the direction value of the connection line between the 1 st track point and the 2 nd track point, the next calculated direction value is the direction value of the connection line between the 2 nd track point and the 3 rd track point, and so on to the direction value of the connection line between the 99 th track point and the 100 th track point, and finally 99 different track segments can be obtained, that is, 99 direction values can exist.
S103: judging whether all direction values arranged in the actual direction value sequence are consistent with all direction values arranged in the standard direction value sequence in the same sequence;
on the basis of S102, this step is intended to determine whether each direction value arranged in the actual direction value sequence is identical to each direction value arranged in the standard direction value sequence in the same order, so as to see whether a preset function triggering condition is satisfied according to the determination result. The standard direction value sequence is a direction value queue obtained by performing the same calculation step on a standard track pattern obtained by pre-drawing, so that the step actually judges whether the actual track pattern and the standard track pattern have consistency or not based on the difference between the direction values.
It should be noted that, in consideration of errors in the actual drawing process (even if the same pattern is drawn twice, the same pattern may be different), the consistency described herein is not only completely the same, but is also recognized within a certain error tolerance range, and it can also be considered that the two trace patterns are consistent and the same, which satisfies the consistency determination. In the actual operation process, the error allowable range can be flexibly adjusted according to the required precision, and a more reasonable error threshold value can be obtained through comprehensive calculation according to a plurality of sample data, so that the probability of repeated drawing of a user is reduced under the condition that the precision meets the requirement.
S104: calling a function link corresponding to the standard track pattern to trigger a corresponding function;
this step is based on the determination result in S103 that the direction values arranged in the actual direction value sequence are consistent with the direction values arranged in the standard direction value sequence in the same order, so that a function link corresponding to the standard trajectory pattern can be called to trigger a corresponding function, such as turning on an application (camera, music, flashlight, etc.), and performing a system operation (screen locking, unlocking, power off, etc.). It should be noted that different operations may be performed according to different interface levels where the actual track pattern is drawn, for example, a track pattern is drawn on a screen lock interface presented when the device is not unlocked, and consistency verification passes, and it is assumed that when a payment interface should be opened after the track pattern passes verification, unlocking information is requested from the user because of non-unlocking, so as to prevent the real user from directly stealing money and money when the track pattern is peeped. Of course, if the function corresponding to the track pattern is to turn on a conventional widget such as a flashlight, the influence of the interface level may be ignored, and further, the authority information of each track pattern may be defined to determine whether the influence of the level may be ignored.
S105: error is reported or no response is made.
This step is based on the determination result of S103 that the direction values arranged in the actual direction value sequence are not completely consistent with the direction values arranged in the standard direction value sequence in the same order, and these may be flexibly set because it is detected that the input wrong track pattern selectively returns error-reporting information or no response is directly made.
Furthermore, in order to reduce the number of times that the user draws the same wrong track pattern and improve the drawing success rate of the user, the wrong track pattern input last time can be displayed at a certain position of the display screen, so that the user is provided with error improvement, that is, the track pattern input again is a new track pattern different from the wrong track pattern, and the situation that the same wrong track pattern is drawn for multiple times when an error point is not found is prevented. Meanwhile, a plurality of error track patterns can be displayed at the same time, and the error track patterns are not particularly limited and can be flexibly selected according to special requirements possibly existing in all practical situations.
Based on the technical scheme, the function triggering method provided by the embodiment of the application is different from the existing method for judging whether the actually input track pattern is consistent with the preset standard track pattern based on the image recognition principle, the consistency between the actually input track pattern and the preset standard track pattern is judged based on the mode that the directions of track line segments obtained by connecting track points in the track pattern are transversely compared, the similarity calculation of the image is converted into the calculation of a direction value, the calculation of the direction value can be easily calculated directly based on the coordinates of the track points, the calculation based on the whole image and by means of a complex algorithm is not needed like the former, the calculation complexity can be obviously reduced, the number of system resources required to be occupied is further reduced, the method is more suitable for being applied to various light-weight intelligent mobile terminals, and the user experience is better.
Example two
With reference to fig. 2, fig. 2 is a flowchart of a method for generating an actual direction value sequence in a function triggering method provided in this embodiment of the present application, this embodiment provides a specific implementation scheme for S102 in the first embodiment, other steps are not transformed, and S102 may be replaced with the content of this embodiment while remaining the other steps, so as to form a new embodiment, where the specific implementation steps are as follows:
s201: sequentially connecting adjacent track points in the actual track pattern according to the drawing sequence to obtain track line segments;
s202: respectively calculating the slope of each track line segment under a preset rectangular coordinate system, and taking each slope as the direction value of the corresponding track line segment;
s203: and arranging the direction values according to the drawing sequence to obtain an actual direction value sequence.
In this embodiment, first, adjacent track points are connected according to a drawing sequence, and by applying the example of the track pattern composed of 100 track points in the first embodiment, S201 will obtain 99 track line segments, S202 will respectively calculate the slope of each track line segment relative to a rectangular coordinate system under a preset uniform rectangular coordinate system, and each slope is taken as a direction value of a corresponding track line segment, and finally S203 will arrange each direction value according to the drawing sequence to obtain an actual direction value sequence.
It should be noted that the direction values may not be arranged in the drawing order, but in a special application where there is no need for them to be arranged in another order, but the arrangement in a certain order is also for the purpose of performing corresponding difference comparison with the direction values in the standard direction value sequence arranged in the same manner, because if the arrangement of the direction values in the two sequences is not the same, the difference comparison is not significant, and the final effect of determining the consistency is not achieved.
EXAMPLE III
With reference to fig. 3, fig. 3 is a flowchart of a consistency determination method in the function triggering method provided in the embodiment of the present application, in this embodiment, a specific determination method is provided for the first step S103, a certain difference is allowed, a preset allowable error is preset, and the remaining steps are not transformed, and the content of this embodiment may be used to replace the second step S102 in the case of remaining the remaining steps, so as to form a new embodiment, where the specific implementation steps are as follows:
s301: according to the formula
Figure BDA0001885690110000091
Calculating to obtain sequence direction value difference;
wherein, X is the sequence direction value difference, n is the number of direction values in the standard direction value sequence and the actual direction value sequence, the actual direction value represents the direction value in the actual direction value sequence, and the standard direction value represents the direction value in the standard direction value sequence.
That is, the present embodiment obtains the direction value difference between the whole direction value sequences in an accumulation manner.
S302: judging whether the difference of the sequence direction values is smaller than a preset allowable error or not;
s303: calling a function link corresponding to the standard track pattern to trigger a corresponding function;
this step is based on the determination result of S302 being that the direction values arranged in the actual direction value sequence are consistent with the direction values arranged in the standard direction value sequence in the same order, so that the function link corresponding to the standard trace pattern can be called to trigger the corresponding function.
S304: error is reported or no response is made.
This step is based on the determination result of S302 that the direction values arranged in the actual direction value sequence are not completely consistent with the direction values arranged in the standard direction value sequence in the same order, and these may be flexibly set because it is detected that the input wrong track pattern selectively returns error-reporting information or no response is directly made.
Example four
With reference to fig. 4, fig. 4 is a flowchart of a method for implementing unlocking based on a track direction according to an embodiment of the present application, where the embodiment is used to implement screen unlocking based on the above embodiments, and the specific implementation manner is as follows:
s401: receiving an input actual track pattern;
s402: sequentially connecting adjacent track points in the actual track pattern according to the drawing sequence to obtain track line segments;
s403: respectively calculating the slope of each track line segment under a preset rectangular coordinate system, and taking each slope as the direction value of the corresponding track line segment;
s404: arranging the direction values according to a drawing sequence to obtain an actual direction value sequence;
s405: according to the formula
Figure BDA0001885690110000101
Calculating to obtain sequence direction value difference;
s406: and when the calculated difference of the sequence direction values is smaller than a preset allowable error, calling an unlocking function link corresponding to the standard track pattern so as to unlock the equipment by using an unlocking instruction generated according to the unlocking function link.
EXAMPLE five
On the basis of the above embodiments, the present embodiment provides a specific implementation scheme by combining a specific unlocking scenario:
the core principle is as follows: the user prestores a drawing track, and the program records the main drawing direction and the sequence of the direction in the drawing process during drawing. When a user needs to unlock, drawing a track similar to the pre-stored track, recording a main drawing direction in the drawing process during input, sequentially comparing the main drawing direction with the pre-stored direction value, and judging that the track passes if the direction sequence of the drawn track is completely the same as the direction sequence of the pre-stored track, otherwise, judging that the track does not pass.
Description of a specific trajectory drawing process: in the program, a plurality of specific angle values, such as up, down, left, right, left up, right up, left down, right down, point (no direction) and the like, are preset, in the actual drawing process, the identified angle is firstly similar to the closest preset angle, and then other judgment is made, so as to eliminate errors, the more the angle is set, the higher the complexity is, but the worse the precision is, and vice versa. In the drawing process, the program records the coordinates of the point where the current finger of the user is located at a special frequency, and compares the last coordinate to obtain the angle value of the track at the moment, wherein the angle value is approximate to a preset angle; the program sets a fault-tolerant threshold, if the continuous occurrence frequency of a certain angle value exceeds the fault-tolerant threshold, the angle value is recorded, otherwise, the angle value is not recorded, and the fault-tolerant threshold is used for eliminating errors caused by the direction change process in the operation of a user; the drawing process of the user can be drawn by a plurality of curves without requiring one step, and if the drawing track is interrupted, the next angle value is not considered to be continuous with the previous angle value, even if the previous angle value and the next angle value are consistent. The input is considered to be terminated if the user input is interrupted for more than a certain preset time period or the user manually executes a method for terminating the input.
For the termination input method executed by the user, the scheme is not limited, and may be an action of drawing a screen, or quickly double-clicking the screen, or clicking a termination input button on the screen, and any operation that may be required to be performed when a trajectory is input may be used as the termination input method.
The specific scheme of applying the scheme to unlocking behaviors of self-protection of users such as mobile phone screen unlocking and the like is as follows:
the first step is as follows: and pre-storing the track. Before the user uses the unlocking scheme, an expected track needs to be preset as an unlocking basis during each unlocking. When the user draws the pre-stored track, the angle value in the track drawing process is recorded by using the method until the user finishes inputting. After the input is finished, the program saves the sequence of the angle values of the prestored track;
the second step is that: and confirming the track. The user is required to draw the same track once again, the same identification method is used for recording the angle value when the track is drawn, if the angle value sequence recorded in the drawing process of the user is the same as the angle value sequence prestored at the last time, the password takes effect, otherwise, the password does not take effect, and the user is required to try again;
the third step: and unlocking the track. When a user tries to unlock the screen of the touch screen terminal, the user is required to draw a track which is the same as the preset track, the identification process when the track is drawn is the same as the process when the track is confirmed, when the sequence of the angle values recorded in the drawing process of the user is the same as the sequence of the pre-stored angle values, the judgment is that the angle value passes, and otherwise, the judgment is that the angle value does not pass.
If the user needs to modify the preset track, track unlocking needs to be carried out once, the prestored track is modified by continuously executing the steps of prestoring the track and confirming the track, and after the track is effective, the unlocking evidence is replaced by the angle value sequence of the latest preset track.
Compared with the conventional implementation scheme, the scheme provided by the embodiment has the following advantages:
1. safety: if the program can recognize 8 directions in total when the scheme is implemented, and 5 directions (corresponding to 5-bit passwords) exist in the drawn track, the possibility of arrangement exists in 32768 rows in total, and compared with the currently mainstream 3 × 3-point gesture unlocking mode (hereinafter referred to as 3 × 3 gesture unlocking), the possibility of stroke 5 points (corresponding to 5-bit passwords) in 15120 rows in 9 × 8 × 7 × 6 × 5 is also existed, and the complexity of the password is higher than that of 3 × 3 gesture unlocking. According to calculation, when the password length exceeds 3 bits, the total number of the arrangement of the invention is larger than 3 multiplied by 3 gesture unlocking, and the longer the bit is, the higher the complexity difference is, namely the encryption is better, and theoretically, the invention has no maximum password length limitation;
2. the user experience is as follows: in addition to security, the present invention may improve the user experience of unlocking. Because only the track direction is used as the unlocking basis, some disadvantages of 3 × 3 gesture unlocking can be avoided, including: the method has the advantages that the track can be drawn at any position of a screen by a user, the track is not limited by a fixed point and is not required to be drawn in one step, only direction sequence matching is needed, the operation is simpler, and the memory and input habits of the user are better met;
3. balance of calculation amount and accuracy: compared with the similar track similarity judging unlocking mode without auxiliary positions, the method only needs to judge the slope of the track without introducing a complex mathematical model, and compared with the scheme of using image recognition and a machine learning algorithm to compare track characteristics, the method is more suitable for being actually introduced into a mobile terminal, does not occupy too much hardware computing resources when in use, and accords with the memory habit of a user during actual drawing due to the fact that the drawing direction of the line is used as the recognition basis, so that the method can achieve better recognition accuracy, and is easy for the user to learn and understand the operation method.
Because the situation is complicated and cannot be illustrated by a list, a person skilled in the art can realize that many examples exist according to the basic method principle provided by the application and the practical situation, and the protection scope of the application should be protected without enough inventive work.
EXAMPLE six
Referring to fig. 5, fig. 5 is a block diagram of a function triggering system according to an embodiment of the present disclosure, where the function triggering system may include:
an actual track pattern receiving unit 100 for receiving an input actual track pattern;
the direction value calculating and sequence generating unit 200 is configured to obtain a direction value sequence in which actual track patterns are arranged according to a drawing sequence by continuously calculating a direction of a connection line between adjacent track points, and use the direction value sequence as the actual direction value sequence;
a standard direction value coincidence judging unit 300 for judging whether or not each direction value arranged in the actual direction value sequence coincides with each direction value arranged in the standard direction value sequence in the same order;
a function triggering unit 400, configured to, if yes, invoke a function link corresponding to the standard trajectory pattern to trigger a corresponding function; the standard track pattern is obtained by pre-drawing and corresponds to a standard direction value sequence.
The direction value calculating and sequence generating unit 200 may include:
the locus point connecting and locus segment generating subunit is used for sequentially connecting each adjacent locus point in the actual locus pattern according to the drawing sequence to obtain each locus segment;
the direction value calculation operator unit is used for respectively calculating the slope of each track line segment under a preset rectangular coordinate system and taking each slope as the direction value of the corresponding track line segment;
and the direction value arrangement subunit is used for arranging the direction values according to the drawing sequence to obtain an actual direction value sequence.
The standard direction value coincidence determining unit 300 may include:
a sequence direction value difference calculating subunit for calculating the difference according to a formula
Figure BDA0001885690110000131
Calculating to obtain sequence direction value difference; wherein X is the sequence direction value difference, n is the number of direction values in the standard direction value sequence and the actual direction value sequence, the actual direction value represents the direction value in the actual direction value sequence, and the standard direction value represents the direction value in the standard direction value sequence;
and the comparison subunit is used for judging whether the difference of the sequence direction values is smaller than the preset allowable error.
Further, the function triggering system may further include:
and the error reminding unit is used for displaying the error track pattern input last time at the preset position.
Among them, the function triggering unit 400 may include:
and the unlocking subunit is used for calling the unlocking function link corresponding to the standard track pattern so as to unlock the equipment by using the unlocking instruction generated according to the unlocking function link.
Based on the foregoing embodiments, the present application further provides a function triggering apparatus, which may include a memory and a processor, where the memory stores a computer program, and the processor, when calling the computer program in the memory, may implement the steps provided by the foregoing embodiments. Of course, the device may also include various necessary network interfaces, power supplies, and other components.
The present application also provides a computer-readable storage medium, on which a computer program is stored, which, when executed by an execution terminal or processor, can implement the steps provided by the above-mentioned embodiments. The storage medium may include: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
The principle and the implementation of the present application are described herein by applying specific examples, and in order to make the various embodiments have a progressive relationship, each embodiment focuses on the differences from the other embodiments, and the same and similar parts among the various embodiments may be referred to each other. For the apparatus disclosed in the embodiments, reference is made to the corresponding method section. The above description of the embodiments is only intended to help understand the method of the present application and its core ideas. It will be apparent to those skilled in the art that various changes and modifications can be made in the present invention without departing from the principles of the invention, and these changes and modifications also fall within the scope of the claims of the present application.
It is further noted that, in the present specification, relational terms such as first and second, and the like are 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.

Claims (10)

1. A method for triggering a function, the method comprising:
receiving an input actual track pattern; the actual track pattern is a continuous track point connecting line or a discontinuous track point connecting line;
obtaining a direction value sequence of the actual track pattern arranged according to the drawing sequence by continuously calculating the direction of the connecting line between each adjacent track point, and taking the direction value sequence as the actual direction value sequence;
judging whether each direction value arranged in the actual direction value sequence is consistent with each direction value arranged in a standard direction value sequence in the same sequence;
if so, calling a function link corresponding to the standard track pattern to trigger a corresponding function; and the standard track pattern is obtained by pre-drawing and corresponds to the standard direction value sequence.
2. The method according to claim 1, wherein the step of obtaining a direction value sequence of the actual trace pattern arranged in the drawing order by continuously calculating the direction of the connection line between adjacent trace points and using the direction value sequence as the actual direction value sequence comprises:
sequentially connecting adjacent track points in the actual track pattern according to the drawing sequence to obtain track line segments;
respectively calculating the slope of each track line segment under a preset rectangular coordinate system, and taking each slope as the direction value of the corresponding track line segment;
and arranging the direction values according to the drawing sequence to obtain the actual direction value sequence.
3. The method according to claim 1, wherein the step of determining whether the direction values arranged in the actual direction value sequence are identical to the direction values arranged in the standard direction value sequence in the same order comprises:
according to the formula
Figure FDA0003164143930000011
Calculating to obtain sequence direction value difference; wherein X is the sequence direction value difference, n is the number of direction values in the standard direction value sequence and the actual direction value sequence, the actual direction value represents a direction value in the actual direction value sequence, and the standard direction value represents a direction value in the standard direction value sequence;
and judging whether the sequence direction value difference is smaller than a preset allowable error.
4. The function triggering method of claim 1, further comprising:
and displaying the error track pattern input last time at the preset position.
5. The method according to any one of claims 1 to 4, wherein invoking a function link corresponding to a standard trace pattern to trigger a corresponding function comprises:
and calling an unlocking function link corresponding to the standard track pattern so as to unlock the equipment by using an unlocking instruction generated according to the unlocking function link.
6. A function triggering system, characterized in that the function triggering system comprises:
an actual track pattern receiving unit for receiving an input actual track pattern; the actual track pattern is a continuous track point connecting line or a discontinuous track point connecting line;
the direction value calculation and sequence generation unit is used for obtaining a direction value sequence of the actual track pattern arranged according to the drawing sequence in a mode of continuously calculating the direction of a connecting line between every two adjacent track points, and the direction value sequence is used as the actual direction value sequence;
a standard direction value coincidence determination unit configured to determine whether or not each direction value arranged in the actual direction value sequence coincides with each direction value arranged in a standard direction value sequence in the same order;
the function triggering unit is used for calling a function link corresponding to the standard track pattern to trigger a corresponding function if the function is in the normal track pattern; and the standard track pattern is obtained by pre-drawing and corresponds to the standard direction value sequence.
7. The function trigger system of claim 6, wherein the direction value calculation and sequence generation unit comprises:
the locus point connecting and locus segment generating subunit is used for sequentially connecting each adjacent locus point in the actual locus pattern according to the drawing sequence to obtain each locus segment;
the direction value calculation operator unit is used for respectively calculating the slope of each track line segment under a preset rectangular coordinate system and taking each slope as the direction value of the corresponding track line segment;
and the direction value arrangement subunit is configured to arrange the direction values according to the drawing order to obtain the actual direction value sequence.
8. The function triggering system according to claim 6, wherein the criterion direction value coincidence judging unit includes:
sequence direction value difference calculationA subunit for generating according to a formula
Figure FDA0003164143930000021
Calculating to obtain sequence direction value difference; wherein X is the sequence direction value difference, n is the number of direction values in the standard direction value sequence and the actual direction value sequence, the actual direction value represents a direction value in the actual direction value sequence, and the standard direction value represents a direction value in the standard direction value sequence;
and the comparison subunit is used for judging whether the sequence direction value difference is smaller than a preset allowable error.
9. A function triggering device, characterized in that the function triggering device comprises:
a memory for storing a computer program;
a processor for implementing the steps of the function triggering method according to any one of claims 1 to 5 when executing the computer program.
10. A computer-readable storage medium, characterized in that a computer program is stored on the computer-readable storage medium, which computer program, when being executed by a processor, carries out the steps of the function triggering method according to any one of claims 1 to 5.
CN201811445788.1A 2018-11-29 2018-11-29 Function triggering method, system, device and computer readable storage medium Active CN109543394B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811445788.1A CN109543394B (en) 2018-11-29 2018-11-29 Function triggering method, system, device and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811445788.1A CN109543394B (en) 2018-11-29 2018-11-29 Function triggering method, system, device and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN109543394A CN109543394A (en) 2019-03-29
CN109543394B true CN109543394B (en) 2021-11-23

Family

ID=65850928

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811445788.1A Active CN109543394B (en) 2018-11-29 2018-11-29 Function triggering method, system, device and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN109543394B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111179121B (en) * 2020-01-17 2023-03-21 华南理工大学 Power grid emergency control method based on expert system and deep reverse reinforcement learning
CN111553291B (en) * 2020-04-30 2023-10-17 北京爱笔科技有限公司 Pedestrian track generation method, device, equipment and computer storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106203059A (en) * 2016-07-14 2016-12-07 深圳市金立通信设备有限公司 A kind of unlocking screen method and terminal
CN107679374A (en) * 2017-08-23 2018-02-09 北京三快在线科技有限公司 A kind of man-machine recognition methods and device based on sliding trace, electronic equipment
CN108121906A (en) * 2016-11-28 2018-06-05 阿里巴巴集团控股有限公司 A kind of verification method, device and computing device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8924893B2 (en) * 2009-10-14 2014-12-30 At&T Mobility Ii Llc Locking and unlocking of an electronic device using a sloped lock track

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106203059A (en) * 2016-07-14 2016-12-07 深圳市金立通信设备有限公司 A kind of unlocking screen method and terminal
CN108121906A (en) * 2016-11-28 2018-06-05 阿里巴巴集团控股有限公司 A kind of verification method, device and computing device
CN107679374A (en) * 2017-08-23 2018-02-09 北京三快在线科技有限公司 A kind of man-machine recognition methods and device based on sliding trace, electronic equipment

Also Published As

Publication number Publication date
CN109543394A (en) 2019-03-29

Similar Documents

Publication Publication Date Title
US9027117B2 (en) Multiple-access-level lock screen
US9823834B2 (en) Quick access gesture setting and accessing method for a touch control device
RU2665222C2 (en) Authenticity confirmation device and authenticity confirmation method
TWI507968B (en) Method and non-transitory computer-readable medium for controlling electronic device with touch screen and electronic device thereof
CN103853481B (en) Method and system for simulating touch screen mobile terminal key
CN105446636B (en) Dynamic unlocking method and electronic device
CN109543394B (en) Function triggering method, system, device and computer readable storage medium
CN104598783A (en) Unlocking method and device of intelligent terminal
CN105786370B (en) The method and device of user interface unlock
US10496852B1 (en) Systems and methods of dynamic obfuscation pattern generation for preventing smudge attacks on touch screen devices
KR101392113B1 (en) Fingerprint locking system
CN106407761B (en) Unlocking method and unlocking device
CN104182161A (en) Method and device for opening screen functional area
CN107347111A (en) The control method and terminal of terminal
JP5307294B2 (en) Operation support computer program, operation support computer system
CN107247558A (en) A kind of terminal control method, device, computer installation and readable storage medium storing program for executing
CN112925598B (en) Application program starting method and device and electronic equipment
CN111639322A (en) Application login method and device, electronic equipment and computer storage medium
CN110912743B (en) Method and device for executing configuration instruction
WO2016123941A1 (en) Method and device for unlocking process and displaying screen locking interface
CN110087235B (en) Identity authentication method and device, and identity authentication method and device adjustment method and device
CN110162261B (en) Unlocking method, terminal equipment and computer readable storage medium
CN107272920B (en) Method and device for changing corresponding relation between keys and characters
CN106293304B (en) Interface operation method and device
CN106709321B (en) Verification method and verification device for combined key

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