CN109543394A - A kind of function triggering method, system, device and computer readable storage medium - Google Patents

A kind of function triggering method, system, device and computer readable storage medium Download PDF

Info

Publication number
CN109543394A
CN109543394A CN201811445788.1A CN201811445788A CN109543394A CN 109543394 A CN109543394 A CN 109543394A CN 201811445788 A CN201811445788 A CN 201811445788A CN 109543394 A CN109543394 A CN 109543394A
Authority
CN
China
Prior art keywords
direction value
sequence
function
actual
value
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.)
Granted
Application number
CN201811445788.1A
Other languages
Chinese (zh)
Other versions
CN109543394B (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 Pocket Network Technology Co Ltd
Original Assignee
Shenzhen Pocket 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 Pocket Network Technology Co Ltd filed Critical Shenzhen Pocket 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

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

This application discloses a kind of function triggering methods, be different from it is existing based on image recognition principle judge between the track pattern actually entered and preset standard trajectory pattern whether consistent method, the application carries out the mode of across comparison based on the direction of the track line segment connected in track pattern by each tracing point to judge consistency between the two, the similarity calculation of image is switched to the calculating of direction value, the coordinate that the latter can be directly based upon each tracing point is calculated easily, without being calculated based on general image by complicated algorithm as the former, it can obviously reduce computation complexity, and then reduce the system resource quantity for needing to occupy, it is more suitably applied to the intelligent mobile terminal of various lightweight, user experience is more preferably.The application further simultaneously discloses a kind of function triggering system, device and computer readable storage medium, has above-mentioned beneficial effect.

Description

A kind of function triggering method, system, device and computer readable storage medium
Technical field
This application involves condition triggering technique field, in particular to a kind of function triggering method, system, device and computer Readable storage medium storing program for executing.
Background technique
Constantly striding forward for electronic information brings new prosperity to modern society, function can touch from terminal The variation of originating party formula gets a glimpse of one or two.
Initially, based on the operating system of order line, the triggering of corresponding function is realized by the fixed function code of input, this One stage must be by professional operator come very normal the case where realizing function, cause function cannot achieve because of erroneous input See.Later, there is patterned operating system, programming personnel carries out the fixed function code in part using different figures Upper layer encapsulation, this stage can trigger corresponding function in a manner of directly using mouse or keyboard by clicking respective icon, Very attractive mode of operation is provided for the numerous users without bottom code operational capacity.
Shield in small intelligent mobile terminal and comprehensively the today propagated its belief on a large scale, gradually appear new function triggering mode, It does not need to carry out clicking corresponding icon in fixed place, it can be by the way that there are the gestures of corresponding relationship with corresponding function The triggering of mode of operation realization function.A kind of is now that the customized pattern based on track identification unlocks using more mode, User can be by presetting some customized patterns, and different function triggering links is bound for each customized pattern, so as to It draws out identical customized pattern on the same equipment again as long as subsequent and can quickly trigger corresponding function, this side Formula has been applied to equipment unlock verifying, the triggering of long step function etc. extensively.
Customized pattern unlocking manner based on track identification now, is that reality is realized by way of image recognition mostly absolutely Comparison between the pattern and predetermined pattern of border input, and there is precision in realization in the similarity-rough set mode based on image recognition With the imbalance problem for occupying number of resources, if requiring high-precision, conventional images recognition methods needs to account for for this purpose With more system resource;If it is desired to which the reduction of accuracy of identification can be led to therewith by occupying less system resource then.Occupancy system The number of resource then directly affects the usage experience of user, especially when running background has a large amount of programs, then occupies and more is Unite calculating and identification of the resource to carry out image similarity when, be actually not particularly suited for this lightweight application of intelligent mobile terminal Platform, so that user experience is poor.
Therefore, items technology existing for the existing customized pattern function triggering mode based on image recognition how to be overcome to lack It falls into, a kind of customized pattern function triggering method being also able to achieve degree of precision in the case where occupying less system resource is provided It is those skilled in the art's urgent problem to be solved.
Summary of the invention
The purpose of the application is to provide a kind of function triggering method, is different from existing practical based on image recognition principle judgement Between the track pattern of input and preset standard trajectory pattern whether consistent method, the application be based on track pattern in by each rail The direction for the track line segment that mark point connects carries out the mode of across comparison to judge consistency between the two, by the phase of image The calculating for switching to direction value is calculated like degree, the coordinate that the latter can be directly based upon each tracing point is calculated easily, without as the former Calculated based on general image by complicated algorithm, can obviously reduce computation complexity, so reduce need to occupy be System resource quantity, is more suitably applied to the intelligent mobile terminal of various lightweight, user experience is more preferably.
The another object of the application is the provision of a kind of function triggering system, device and computer readable storage medium.
To achieve the above object, the application provides a kind of function triggering method, which includes:
Receive the actual path pattern of input;
It is suitable by drawing that the actual path pattern is obtained by way of line direction between constantly calculating each adjacent track point The direction value sequence of sequence arrangement, and as actual direction value sequence;
Judge whether all directions value that is arranged in the actual direction value sequence with same sequence is arranged in standard side All directions value into value sequence is consistent;
If so, calling function chain corresponding with standard trajectory pattern to fetch triggers corresponding function;Wherein, the mark Quasi- track pattern obtains to be pre-rendered, and the corresponding reference direction value sequence.
Optionally, obtained by way of line direction between constantly calculating each adjacent track point the actual path pattern by The direction value sequence of drawing order arrangement, and as actual direction value sequence, comprising:
It is sequentially connected each adjacent track point in the actual path pattern by the drawing order, obtains each track line segment;
Slope of each track line segment under default rectangular coordinate system is calculated separately, and using each slope as correspondence The direction value of track line segment;
Each direction value is arranged by the drawing order, obtains the actual direction value sequence.
Optionally, whether all directions value that judgement is arranged in the actual direction value sequence is arranged in with same sequence All directions value in reference direction value sequence is consistent, comprising:
According to formulaSequence direction value difference is calculated;Wherein, X is the sequence side Different to value difference, n is the quantity of direction value in the reference direction value sequence and the actual direction value sequence, the actual direction Value indicates that the direction value in the actual direction value sequence, the reference direction value indicate the side in the reference direction value sequence To value;
Judge whether the sequence direction value difference is less than default allowable error.
Optionally, the function triggering method further include:
The wrong track pattern once inputted on predeterminated position is shown.
Optionally, it calls function chain corresponding with standard trajectory pattern to fetch and triggers corresponding function, comprising:
Unlocking function corresponding with the standard trajectory pattern is called to link, to link using according to the unlocking function The unlock instruction of generation is unlocked equipment.
To achieve the above object, present invention also provides a kind of functions to trigger system, and the function triggering system includes:
Actual path pattern receiving unit, actual path pattern for receiving input;
Direction value calculates and sequence generating unit, for by way of line direction between constantly calculating each adjacent track point The direction value sequence that the actual path pattern is arranged by drawing order is obtained, and as actual direction value sequence;
The consistent judging unit of reference direction value, for judging that all directions value being arranged in the actual direction value sequence is It is no consistent with all directions value that is being arranged in same sequence in reference direction value sequence;
Function trigger unit, for if so, to call corresponding to standard trajectory pattern function chain to fetch triggering corresponding Function;Wherein, the standard trajectory pattern obtains to be pre-rendered, and the corresponding reference direction value sequence.
Optionally, the direction value calculates and sequence generating unit includes:
Tracing point connection and track line segment generate subelement, for being sequentially connected the actual path by the drawing order Each adjacent track point, obtains each track line segment in pattern;
Direction value computation subunit, for calculating separately slope of each track line segment under default rectangular coordinate system, And using each slope as the direction value of corresponding track line segment;
Direction value arranges subelement and obtains the reality for arranging each direction value by the drawing order Border direction value sequence.
Optionally, the consistent judging unit of the reference direction value includes:
Sequence direction value difference computation subunit, for according to formulaSequence is calculated Direction value difference;Wherein, X is the sequence direction value difference, and n is the reference direction value sequence and the actual direction value sequence The quantity of direction value in column, the actual direction value indicate the direction value in the actual direction value sequence, the reference direction Value indicates the direction value in the reference direction value sequence;
With default allowable error comparing subunit, allow to miss for judging whether the sequence direction value difference is less than to preset Difference.
Optionally, which triggers system further include:
Error prompting unit, the wrong track pattern for once being inputted on predeterminated position is shown.
Optionally, the function trigger unit includes:
Subelement is unlocked, for calling unlocking function corresponding with the standard trajectory pattern to link, to utilize basis The unlock instruction that the unlocking function link generates is unlocked equipment.
To achieve the above object, present invention also provides a kind of function trigger device, which includes:
Memory, for storing computer program;
Processor realizes the step such as above content described function triggering method when for executing the computer program Suddenly.
To achieve the above object, described computer-readable to deposit present invention also provides a kind of computer readable storage medium It is stored with computer program on storage media, the function as described in above content is realized when the computer program is executed by processor The step of energy triggering method.
Obviously, a kind of function triggering method provided herein is different from existing real based on image recognition principle judgement Border input track pattern and preset standard trajectory pattern between whether consistent method, the application be based on track pattern in by each The direction for the track line segment that tracing point connects carries out the mode of across comparison to judge consistency between the two, by image Similarity calculation switchs to the calculating of direction value, and the coordinate that the latter can be directly based upon each tracing point is calculated easily, without as the former one Sample is calculated based on general image by complicated algorithm, can obviously reduce computation complexity, and then reduces what needs occupied System resource quantity is more suitably applied to the intelligent mobile terminal of various lightweight, and user experience is more preferably.The application is simultaneously A kind of function triggering system, device and computer readable storage medium are additionally provided, there is above-mentioned beneficial effect, it is no longer superfluous herein It states.
Detailed description of the invention
In order to illustrate the technical solutions in the embodiments of the present application or in the prior art more clearly, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this The embodiment of application for those of ordinary skill in the art without creative efforts, can also basis The attached drawing of offer obtains other attached drawings.
Fig. 1 is a kind of flow chart of function triggering method provided by the embodiments of the present application;
Fig. 2 is a kind of stream for the method for generating actual direction value sequence in function triggering method provided by the embodiments of the present application Cheng Tu;
Fig. 3 is a kind of flow chart of consistency judgment method in function triggering method provided by the embodiments of the present application;
Fig. 4 is a kind of flow chart of method that unlock is realized based on course bearing provided by the embodiments of the present application;
Fig. 5 is the structural block diagram that a kind of function provided by the embodiments of the present application triggers system.
Specific embodiment
The core of the application is to provide a kind of function triggering method, system, device and computer readable storage medium, difference In existing based on whether consistent between the image recognition principle judgement track pattern actually entered and preset standard trajectory pattern Method, the application carry out the mode of across comparison based on the direction of the track line segment connected in track pattern by each tracing point Judge consistency between the two, the similarity calculation of image is switched to the calculating of direction value, the latter can be directly based upon each track The coordinate of point is calculated easily, without being calculated based on general image by complicated algorithm as the former, can obviously reduce Computation complexity, and then the system resource quantity for needing to occupy is reduced, the intelligent mobile for being more suitably applied to various lightweight is whole End, user experience is more preferably.
To keep the purposes, technical schemes and advantages of the embodiment of the present application clearer, below in conjunction with the embodiment of the present application In attached drawing, the technical scheme in the embodiment of the application is clearly and completely described, it is clear that described embodiment is Some embodiments of the present application, instead of all the embodiments.Based on the embodiment in the application, those of ordinary skill in the art All other embodiment obtained without making creative work, shall fall in the protection scope of this application.
Embodiment one
Below in conjunction with Fig. 1, Fig. 1 is a kind of flow chart of function triggering method provided by the embodiments of the present application, after the application The executing subject of continuous any embodiment is a kind of intelligent mobile terminal, receives being used for for user's drafting by touch display screen The track pattern of function triggering, it should be noted that touch display screen can also be based on unification each tracing point is presented from the background The coordinate of rectangular coordinate system, specifically includes the following steps:
S101: the actual path pattern of input is received;
This step is intended to receive externally input actual path pattern, which can be user and directly use hand Finger mobile drafting on capacitance plate obtains, and can also draw to obtain by dedicated writing pencil, herein and be not specifically limited.
S102: it is suitable by drawing that actual path pattern is obtained by way of line direction between constantly calculating each adjacent track point The direction value sequence of sequence arrangement, and as actual direction value sequence;
On the basis of S101, this step is intended between the side connected each tracing point for forming the actual path pattern It is arranged to value by drawing order, to obtain one and the unique corresponding direction value sequence of the actual path pattern that receives, The direction value sequence being calculated by the actual path pattern is known as actual direction value sequence herein.Wherein, every two is adjacent Tracing point, which is connected, can obtain a track line segment, and each track line segment can based on the different directions value that same coordinate system obtains To be used to describe the direction change of the actual path pattern, and obtained direction value sequence can uniquely represent the actual path figure Case, therefore the application is in fact provided and a kind of is differentiated between two patterns with the presence or absence of consistency based on pattern direction situation of change Method.Specifically, every can be used to connect obtained track line segment under the rectangular coordinate system under identical rectangular coordinate system Slope value or angle value as its corresponding direction value, some auxiliary parameters or customized ginseng can also be combined on this basis Number mode obtains direction value.
The sequencing that the drawing order of track pattern, that is, each tracing point coordinate determines, for example, a track pattern by When 100 tracing point compositions, the 1st tracing point is exactly the first tracing point obtained by drawing order, and the 2nd tracing point is exactly phase Adjacent next tracing point with the 1st tracing point, and so on to the 100th tracing point, it is also necessary to explanation, this step may be used also To begin to the calculating to the partial traces click-through line direction value for having determined coordinate while receiving actual path pattern, i.e., The calculating process of direction value is carried out with drawing process is synchronous, can accelerate entire identification process.
Also it should be noted that the mode for constantly calculating line direction between each adjacent track point of this step description refers to from the 1 tracing point starts, and direction value is constantly calculated in a manner of the point of adjacent track two-by-two, such as first calculating is exactly the 1st rail The direction value of line between mark point and the 2nd tracing point, what is next calculated is exactly to connect between the 2nd tracing point and the 3rd tracing point The direction value of line, and so on to line between the 99th tracing point and the 100th tracing point direction value, will eventually get 99 Different track line segments, that is, can have 99 direction value.
S103: whether all directions value that is arranged in actual direction value sequence of judgement with same sequence is arranged in standard side All directions value into value sequence is consistent;
On the basis of S102, this step be intended to judge all directions value that is arranged in actual direction value sequence whether with It is consistent that same sequence is arranged in all directions value in reference direction value sequence, with seen according to judging result whether meet it is preset Function trigger condition.Wherein, reference direction value sequence is by pre-rendered obtained standard trajectory pattern through identical calculations step Obtained direction value queue, therefore, this step is really based on the difference between direction value to actual path pattern and standard trajectory Whether with uniformity judged between pattern.
It should be noted that in view of the existing error of practical drawing process is (even if the same pattern is successively drawn twice System can also have differences), it is described herein it is consistent not only refer to complete identical, be also in certain allowable range of error It is approved, also may be considered that two track patterns are consistent, be it is identical, meet consistency checking.Practical operation Cheng Zhong, the allowable range of error can be adjusted flexibly according to required precision, can also be according to numerous sample data COMPREHENSIVE CALCULATINGs A more reasonable error threshold is obtained, repeats the probability drawn to reduce user in the case where precision meets the requirements.
S104: it calls function chain corresponding with standard trajectory pattern to fetch and triggers corresponding function;
This step establish the judging result in S103 be all directions value that is arranged in actual direction value sequence with identical Sequence be arranged in all directions value in reference direction value sequence it is consistent on the basis of, therefore can call and standard trajectory pattern phase Corresponding function chain fetches the corresponding function of triggering, such as opens some application program (camera, music, flashlight etc.), Execute a certain system operatio etc. (screen locking, unlock, shutdown etc.).It should also be noted that, can also be according to the actual path The interface level difference that pattern is plotted in executes different operations, such as draws on the locking screen interface presented when equipment does not unlock One track pattern, and consistency checking passes through, it is assumed that the track pattern when a payment interface should be opened after being verified, Also unlocking information can be requested to user because of not unlocking, it is true to prevent from directly stealing in the case where the track pattern is pried through The wealth of positive user.Certainly, if the corresponding function of the track pattern is to open the conventional small tool such as flashlight, boundary can also be ignored The influence of surface layer grade further can also be by defining the authority information of each track pattern to determine whether negligible layer The influence of grade.
S105: reporting an error or does not do any response.
This step establish the judging result in S103 be all directions value that is arranged in actual direction value sequence with identical On the basis of all directions value that sequence is arranged in reference direction value sequence is not quite identical, then mistake can be had input because of detecting The return error information of track pattern selectivity accidentally does not directly do any response, these can flexibly set.
Further, in order to reduce user with regard to the drafting number of same error track pattern, promotion user draws success rate, The wrong track pattern once inputted can also be shown in a certain position of display screen, promoted to give user's mistake, i.e., The track pattern inputted again should be the new track pattern for being different from the mistake track pattern, to prevent from not finding mistake Same wrong track pattern is drawn repeatedly when point.At the same time it can also show multiple wrong track patterns simultaneously, do not do herein It is specific to limit, it can be according to particular/special requirement flexible choice that may be present under all actual conditions.
Based on the above-mentioned technical proposal, a kind of function triggering method provided by the embodiments of the present application is different from existing based on figure As recognition principle judge between the track pattern actually entered and preset standard trajectory pattern whether consistent method, the application base The direction of the track line segment connected in track pattern by each tracing point carries out the mode of across comparison to judge between the two Consistency, the similarity calculation of image is switched to the calculating of direction value, the latter can be directly based upon the coordinate of each tracing point easily It calculates, without calculating based on general image by complicated algorithm as the former, can obviously reduce computation complexity, into And the system resource quantity for needing to occupy is reduced, it is more suitably applied to the intelligent mobile terminal of various lightweight, user uses body It tests more preferably.
Embodiment two
Below in conjunction with Fig. 2, Fig. 2 is a kind of generation actual direction value sequence in function triggering method provided by the embodiments of the present application The flow chart of the method for column, the present embodiment provide a kind of concrete implementation scheme for one S102 of embodiment, remaining step is simultaneously It does not convert, S102 can be replaced using the content of the present embodiment in the case where retaining remaining step, it is new to form one Embodiment, specific implementation step are as follows:
S201: it is sequentially connected each adjacent track point in actual path pattern by drawing order, obtains each track line segment;
S202: slope of each track line segment under default rectangular coordinate system is calculated separately, and using each slope as corresponding rail The direction value of trace segments;
S203: all directions value is arranged by drawing order, obtains actual direction value sequence.
The present embodiment presses drawing order first and connects each adjacent track point, applies in embodiment one by 100 tracing point groups At track pattern example, S201 will obtain 99 track line segments, and S202 is then under preset unified rectangular coordinate system point Slope of the every track line segment relative to the rectangular coordinate system is not calculated, and using each slope as the direction of corresponding track line segment Value, final S203 arrange all directions value according to the drawing order, obtain actual direction value sequence.
It should be noted that all directions value can not also be arranged according to drawing order, but in no other necessity Specific use be, it is not necessary that arrange all directions value according to other sequence, and carrying out arrangement in a certain order is also In order to the corresponding comparison in difference of all directions value progress in the reference direction value sequence using same way arrangement because if two The arrangement mode of all directions value is different in a sequence, comparison in difference be it is nonsensical, do not have final consistency judgement effect Fruit.
Embodiment three
Below in conjunction with Fig. 3, Fig. 3 is a kind of consistency judgment method in function triggering method provided by the embodiments of the present application Flow chart, the present embodiment provide a kind of specific discriminant approach for one S103 of embodiment, allow to have a certain difference, and A default allowable error is preset, remaining step does not convert, and can use in the case where retaining remaining step The content of the present embodiment replaces S102, and to form a new embodiment, specific implementation step is as follows:
S301: according to formulaSequence direction value difference is calculated;
Wherein, X is sequence direction value difference, and n is the number of direction value in reference direction value sequence and actual direction value sequence Amount, actual direction value indicate that the direction value in actual direction value sequence, reference direction value indicate the side in reference direction value sequence To value.
I.e. the present embodiment obtains the direction value difference between entire direction value sequence by way of cumulative.
S302: judge whether sequence direction value difference is less than default allowable error;
S303: it calls function chain corresponding with standard trajectory pattern to fetch and triggers corresponding function;
This step establish the judging result in S302 be all directions value that is arranged in actual direction value sequence with identical Sequence be arranged in all directions value in reference direction value sequence it is consistent on the basis of, therefore can call and standard trajectory pattern phase Corresponding function chain fetches the corresponding function of triggering.
S304: reporting an error or does not do any response.
This step establish the judging result in S302 be all directions value that is arranged in actual direction value sequence with identical On the basis of all directions value that sequence is arranged in reference direction value sequence is not quite identical, then mistake can be had input because of detecting The return error information of track pattern selectivity accidentally does not directly do any response, these can flexibly set.
Example IV
Below in conjunction with Fig. 4, Fig. 4 is a kind of stream of method that unlock is realized based on course bearing provided by the embodiments of the present application Cheng Tu, the present embodiment is on the basis of in summary each embodiment, using the present application point for realizing unlocking screen, specifically Implementation is as follows:
S401: the actual path pattern of input is received;
S402: it is sequentially connected each adjacent track point in actual path pattern by drawing order, obtains each track line segment;
S403: slope of each track line segment under default rectangular coordinate system is calculated separately, and using each slope as corresponding rail The direction value of trace segments;
S404: all directions value is arranged by drawing order, obtains actual direction value sequence;
S405: according to formulaSequence direction value difference is calculated;
S406: it when the sequence direction value difference being calculated is less than default allowable error, calls and standard trajectory pattern Corresponding unlocking function link, to be unlocked using the unlock instruction generated according to unlocking function link to equipment.
Embodiment five
On the basis of above-mentioned each embodiment, the present embodiment combines specific unlock scene, gives a kind of specific Implementation:
Central principle: user first prestores a track drafting, and program records the main drafting in its drawing process when drafting The sequence in direction and direction.When user needs to unlock, the track similar with track is prestored is drawn, record is drawn in input Main drafting direction in the process, and being compared in order with the direction value prestored, if the direction sequence of track drafting and pre- The direction sequence for depositing track is identical, then is judged to passing through, otherwise is judged to not passing through.
Specific track drawing process explanation: in a program, can preset several specific angle values, such as above, Under, left and right, upper left, upper right, lower-left, bottom right, point (directionless) etc., in practical drawing process, the angle recognized can first quilt It is similar arrive immediate predetermined angle, then other judgements are done, error is eliminated with this, more complexities of angle initialization are more Height, but precision is poorer, and vice versa.In drawing process, program can be come with a frequency specially to the current finger of user The point at place carries out coordinate record, and compares a coordinate to obtain the angle value of track at this time, and angle value can be arrived by approximation Predetermined angle;Program can set a fault-tolerant threshold value, if the number that some angle value continuously occurs has been more than the fault-tolerant threshold value, It can be recorded, on the contrary then will not be recorded, this measure is used to eliminate direction change process bring error in user's operation;User's Drawing process can divide a plurality of curve to be drawn, and not require to settle at one go, if track drafting interrupts, next angle value is not It will be considered that and upper one is continuously, even if the angle value of front and back is consistent.User input interrupt be more than certain predetermined when The method of the manual executive termination input of long or user, then it is assumed that input terminates.
For the termination input method that user executes, this programme with no restrictions, can be the movement for marking screen, or fast Speed double-clicks screen, or clicks the termination input button on screen, as long as required progress when input trajectory can be different from Operation, all can serve as terminate input method.
By this programme be used for mobile phone screen unlock etc. users' self-protection unlock behavior when the specific scheme is that
Step 1: prestoring track.User needed first to preset a desired trajectory before using this unlock scheme, as Unlock foundation when unlock every time.User is come in recording track drawing process when drafting prestores track using above method Angle value, until user terminates to input.After end of input, program prestores the angle value sequence of track under saving;
Step 2: confirmation track.User can be required to draw once identical track again, and phase is used in track drafting With recognition methods record angle value, if the angle value sequence that user this time records in drawing process was prestored with the last time Angle value sequence it is identical, then this password comes into force, and otherwise password will not come into force, and may require that user reattempts to;
Step 3: track unlocks.When user attempts to carry out unlocking screen to touch screen terminal, may require that user draw with it is pre- If the identical track in track, identification process when track drafting is identical as process when confirmation track, when user this time drew The angle value sequence recorded in journey is identical as the angle value sequence prestored, then is judged to passing through, and is otherwise judged to not passing through.
If user needs to modify desired guiding trajectory, needs first to carry out a track unlock, prestore rail by then continuing to execute Mark modifies the track prestored with the step of track is confirmed, after coming into force, unlock authority is changed to the angle of the last desired guiding trajectory Angle value sequence.
Compared with conventional approach, scheme provided in this embodiment is had the advantages that
1, safety: assuming that when realizing the program, program can identify direction in 8 altogether, there is 5 directions in the track of drafting (being equivalent to 5 passwords) then co-exists in 85=32768 kind arrangement possibility, compared to the gesture solution of 3 × 3 points of mainstream instantly Lock mode (is once known as the unlock of 3 × 3 gestures), streaks 5 points (being equivalent to 5 passwords), co-exists in 9 × 8 × 7 × 6 × 5= The complexity of 15120 kinds of possibility, password is unlocked higher than 3 × 3 gestures.According to calculating it is found that after Password Length is more than 3, Arrangement sum of the invention will be greater than 3 × 3 gestures and unlock, and digit is longer, complexity difference it is higher, i.e., encryption is more It is good, and theoretically there is no maximum Password Lengths to limit by the present invention;
2, user experience: in addition to safety, the user experience that unlock is is can be improved in the present invention.Due to only relying on track side To as unlock foundation, some drawbacks can be unlocked to avoid 3 × 3 gestures, comprising: fixed input position (is easy accidentally touching mistake Point, will necessarily show track when accidentally touching sliding to reduce), must single stepping in place (more complex password draw it is difficult, easily Interrupt error;Make snooping to drafting movement after, it is easier to try out correct combination), password maximum length limitation (limit the solution The highest complexity of lock mode) etc., user can be in screen any position track drafting, and the limitation of fixed point, is not required to yet It settles at one go, as long as direction sequence matches, operation is simpler, more meets memory and the input habit of user;
3, the balance of calculation amount and precision: the track similarity for comparing more similar no aided location judges unlocking manner, Present invention only requires the slope for judging track, does not need to introduce complicated mathematical model, compare using image recognition and machine For scheme of the device learning algorithm to carry out track characteristic comparison, the present invention is more suitable for being actually introduced into mobile terminal, when use Too many hardware computing resource will not be occupied, and due to using lines to draw direction as basis of characterization, meet that user is practical to draw Memory habit when processed, therefore can achieve preferable accuracy of identification, and be easy to user's study and understand its operating method.
Because situation is complicated, it can not enumerate and be illustrated, those skilled in the art should be able to recognize according to the application The basic skills principle combination actual conditions of offer may exist many examples, in the case where not paying enough creative works, It should within the scope of protection of this application.
Embodiment six
Fig. 5 is referred to below, and Fig. 5 is the structural block diagram that a kind of function provided by the embodiments of the present application triggers system, the function System, which can be triggered, may include:
Actual path pattern receiving unit 100, actual path pattern for receiving input;
Direction value calculates and sequence generating unit 200, for by constantly calculating line direction between each adjacent track point Mode obtains the direction value sequence that actual path pattern is arranged by drawing order, and as actual direction value sequence;
The consistent judging unit 300 of reference direction value, all directions value for judging to be arranged in actual direction value sequence are It is no consistent with all directions value that is being arranged in same sequence in reference direction value sequence;
Function trigger unit 400, for if so, function chain corresponding with standard trajectory pattern is called to fetch triggering phase The function of answering;Wherein, standard trajectory pattern obtains to be pre-rendered, and corresponding reference direction value sequence.
Wherein, direction value calculates and sequence generating unit 200 may include:
Tracing point connection and track line segment generate subelement, for being sequentially connected in actual path pattern respectively by drawing order Adjacent track point, obtains each track line segment;
Direction value computation subunit, for calculating separately slope of each track line segment under default rectangular coordinate system, and will Direction value of each slope as corresponding track line segment;
Direction value arranges subelement and obtains actual direction value sequence for arranging all directions value by drawing order.
Wherein, the consistent judging unit 300 of reference direction value may include:
Sequence direction value difference computation subunit, for according to formulaSequence is calculated Direction value difference;Wherein, X is sequence direction value difference, and n is direction value in reference direction value sequence and actual direction value sequence Quantity, actual direction value indicate that the direction value in actual direction value sequence, reference direction value indicate in reference direction value sequence Direction value;
With default allowable error comparing subunit, for judging whether sequence direction value difference is less than default allowable error.
Further, function triggering system can also include:
Error prompting unit, the wrong track pattern for once being inputted on predeterminated position is shown.
Wherein, function trigger unit 400 may include:
Subelement is unlocked, for calling unlocking function corresponding with standard trajectory pattern to link, using according to unlock The unlock instruction that function chain is delivered a child is unlocked equipment.
Based on the above embodiment, present invention also provides a kind of function trigger device, the apparatus may include memory and Processor, wherein there is computer program in the memory, it, can when which calls the computer program in the memory To realize step provided by above-described embodiment.Certainly, the device can also include various necessary network interfaces, power supply and Other components etc..
Present invention also provides a kind of computer readable storage mediums, have computer program thereon, the computer program Step provided by above-described embodiment may be implemented when being performed terminal or processor execution.The storage medium may include: U Disk, mobile hard disk, read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), the various media that can store program code such as magnetic or disk.
Specific examples are used herein to illustrate the principle and implementation manner of the present application, and between each embodiment For progressive relationship, each embodiment focuses on the differences from other embodiments, identical between each embodiment Similar portion may refer to each other.For the device disclosed in the embodiment, reference can be made to corresponding method part illustration.The above reality The explanation for applying example is merely used to help understand the present processes and its core concept.For the ordinary skill people of the art Member for, under the premise of not departing from the application principle, can also to the application, some improvement and modification can also be carried out, these improve and Modification is also fallen into the protection scope of the claim of this application.
It should also be noted that, in the present specification, relational terms such as first and second and the like be used merely to by One entity or operation are distinguished with another entity or operation, without necessarily requiring or implying these entities or operation Between there are any actual relationship or orders.Moreover, the terms "include", "comprise" or its any other variant meaning Covering non-exclusive inclusion, so that the process, method, article or equipment for including a series of elements not only includes that A little elements, but also other elements including being not explicitly listed, or further include for this process, method, article or The intrinsic element of equipment.In the absence of more restrictions, the element limited by sentence "including a ...", is not arranged Except there is also other identical elements in the process, method, article or equipment for including element.

Claims (10)

1. a kind of function triggering method, which is characterized in that the function triggering method includes:
Receive the actual path pattern of input;
The actual path pattern is obtained by way of line direction between constantly calculating each adjacent track point to arrange by drawing order The direction value sequence of column, and as actual direction value sequence;
Judge whether all directions value that is arranged in the actual direction value sequence with same sequence is arranged in reference direction value All directions value in sequence is consistent;
If so, calling function chain corresponding with standard trajectory pattern to fetch triggers corresponding function;Wherein, the standard gauge Mark pattern obtains to be pre-rendered, and the corresponding reference direction value sequence.
2. function triggering method according to claim 1, which is characterized in that connected between each adjacent track point by constantly calculating The mode in line direction obtains the direction value sequence that the actual path pattern is arranged by drawing order, and as actual direction Value sequence, comprising:
It is sequentially connected each adjacent track point in the actual path pattern by the drawing order, obtains each track line segment;
Slope of each track line segment under default rectangular coordinate system is calculated separately, and using each slope as corresponding track The direction value of line segment;
Each direction value is arranged by the drawing order, obtains the actual direction value sequence.
3. function triggering method according to claim 1, which is characterized in that judgement is arranged in the actual direction value sequence In all directions value it is whether consistent with all directions value that is arranged in same sequence in reference direction value sequence, comprising:
According to formulaSequence direction value difference is calculated;Wherein, X is the sequence direction value Difference, n are the quantity of direction value in the reference direction value sequence and the actual direction value sequence, the actual direction value table Show that the direction value in the actual direction value sequence, the reference direction value indicate the direction in the reference direction value sequence Value;
Judge whether the sequence direction value difference is less than default allowable error.
4. function triggering method according to claim 1, which is characterized in that further include:
The wrong track pattern once inputted on predeterminated position is shown.
5. function triggering method according to any one of claims 1 to 4, which is characterized in that call and standard trajectory pattern Corresponding function chain fetches the corresponding function of triggering, comprising:
Unlocking function corresponding with the standard trajectory pattern is called to link, to link generation using according to the unlocking function Unlock instruction equipment is unlocked.
6. a kind of function triggers system, which is characterized in that the function triggers system and includes:
Actual path pattern receiving unit, actual path pattern for receiving input;
Direction value calculates and sequence generating unit, for being obtained by way of line direction between constantly calculating each adjacent track point The actual path pattern presses the direction value sequence of drawing order arrangement, and as actual direction value sequence;
The consistent judging unit of reference direction value, all directions value for judging to be arranged in the actual direction value sequence whether with It is consistent that all directions value in reference direction value sequence is arranged in same sequence;
Function trigger unit, for if so, corresponding with standard trajectory pattern function chain is called to fetch the corresponding function of triggering Energy;Wherein, the standard trajectory pattern obtains to be pre-rendered, and the corresponding reference direction value sequence.
7. function according to claim 6 triggers system, which is characterized in that the direction value calculates and sequence generating unit Include:
Tracing point connection and track line segment generate subelement, for being sequentially connected the actual path pattern by the drawing order In each adjacent track point, obtain each track line segment;
Direction value computation subunit, for calculating separately slope of each track line segment under default rectangular coordinate system, and will Direction value of each slope as corresponding track line segment;
Direction value arranges subelement and obtains the reality side for arranging each direction value by the drawing order To value sequence.
8. function according to claim 6 triggers system, which is characterized in that the consistent judging unit packet of the reference direction value It includes:
Sequence direction value difference computation subunit, for according to formulaSequence direction is calculated Value difference is different;Wherein, X is the sequence direction value difference, and n is in the reference direction value sequence and the actual direction value sequence The quantity of direction value, the actual direction value indicate the direction value in the actual direction value sequence, the reference direction value table Show the direction value in the reference direction value sequence;
With default allowable error comparing subunit, for judging whether the sequence direction value difference is less than default allowable error.
9. a kind of function trigger device, which is characterized in that the function trigger device includes:
Memory, for storing computer program;
Processor realizes such as function triggering method described in any one of claim 1 to 5 when for executing the computer program The step of.
10. a kind of computer readable storage medium, which is characterized in that be stored with computer on the computer readable storage medium Program is realized when the computer program is executed by processor such as function triggering method described in any one of claim 1 to 5 Step.
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 true CN109543394A (en) 2019-03-29
CN109543394B 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)

Cited By (2)

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

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150074799A1 (en) * 2009-10-14 2015-03-12 At&T Mobility Ii Llc Locking and unlocking of an electronic device using a sloped lock track
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

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150074799A1 (en) * 2009-10-14 2015-03-12 At&T Mobility Ii Llc Locking and unlocking of an electronic device using a sloped lock track
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

Cited By (4)

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

Also Published As

Publication number Publication date
CN109543394B (en) 2021-11-23

Similar Documents

Publication Publication Date Title
CN101526880B (en) Touch event model
US9182846B2 (en) Electronic device and touch input control method for touch coordinate compensation
CN102937869B (en) The method and apparatus of a kind of terminal device trigging control instruction
CN106843739A (en) The display control method and mobile terminal of a kind of mobile terminal
CN101097495A (en) Character identification for touch panel and character input method
CN106325668B (en) Touch event response processing method and system
US20160054887A1 (en) Gesture-based selection and manipulation method
US20150082217A1 (en) Gesture-based selection and manipulation method
CN106446622B (en) Electronic equipment and its cipher-code input method
CN102023784A (en) Method and equipment for inputting characters in non-contact mode
KR20140138794A (en) System and method for inputting symbols
CN103324420B (en) A kind of multi-point touchpad input operation identification method and electronic equipment
US20180136834A1 (en) Gesture-based selection and manipulation method
CN105892877A (en) Multi-finger closing/opening gesture recognition method and device as well as terminal equipment
CN109543394A (en) A kind of function triggering method, system, device and computer readable storage medium
CN104063639A (en) Authentication Processing Device For Performing Authentication Processing
CN105843467A (en) Icon displaying method and device
CN103064621B (en) A kind of electronic equipment and unlock method and device
CN105824534B (en) A kind of information processing method and electronic equipment
CN106445378A (en) Display control method and device of touch menu, and touch display equipment
CN102902470A (en) Input interface switching method and input interface switching device
CN109164950A (en) A kind of mobile terminal system interface setting method, device, medium and equipment
CN106020712B (en) Touch gesture recognition method and device
CN108052269A (en) Unlocking screen optimization method, terminal device and computer-readable medium
CN102299997A (en) Movable terminal number input method and device

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