Method and the portable terminal thereof of the screen locking of touch-type mobile terminal gestureTechnical field
The present invention relates to the touch-type mobile terminal field, relate more specifically to method and the portable terminal thereof of a kind of touch-type mobile terminal gesture screen locking.
Background technology
Along with the maturation of touch screen technology, touch-type mobile terminal is seen everywhere, and the personalized application of touch control is also more and more abundanter, has brought good use impression to the user.
Touch control has been subject to the generally favor of portable terminal producer and mobile phone users owing to flexible operation, mode of operation novelty.Yet, although touch-type mobile terminal can be realized the touch control of most functions, fail to break away from dependence to physical button for this common function of screen locking.
Not only mode of operation is single by carrying out screen locking by the power key on the portable terminal, and owing to for a long time, repeatedly will speed up the wearing and tearing, aging of power key by power key, and then shortened the serviceable life of portable terminal power key.
Therefore, be necessary to provide method and the portable terminal thereof of the screen locking of a kind of touch-type mobile terminal gesture to overcome defects.
Summary of the invention
The method that the purpose of this invention is to provide the screen locking of a kind of touch-type mobile terminal gesture, use with the touch of enriching touch-type mobile terminal, realize the touch gestures screen locking, and the wearing and tearing that reduce owing to for a long time, repeatedly by power key power key are caused, the serviceable life of prolongation portable terminal power key.
Another object of the present invention provides a kind of touch-type mobile terminal, use with the touch of enriching touch-type mobile terminal, realize the touch gestures screen locking, and the wearing and tearing that reduce owing to for a long time, repeatedly by power key power key are caused, the serviceable life of prolongation portable terminal power key.
For achieving the above object, the invention provides the method for a kind of touch-type mobile terminal gesture screen locking, may further comprise the steps:
(1) the screen locking gesture is set;
(2) touch gestures on the described portable terminal of monitoring;
(3) judge that by template matching method whether the similarity of described touch gestures and described screen locking gesture is greater than predetermined threshold value;
(4) if then finish the screen locking of described portable terminal, otherwise then repeating said steps (2) is to described step (3).
Compared with prior art, the present invention is by arranging the screen locking gesture, and monitor touch gestures on the described portable terminal, judge that by template matching method whether the similarity of described touch gestures and described screen locking gesture is greater than predetermined threshold value again, finish at last the screen locking of described portable terminal, realized the function of touch-type mobile terminal gesture screen locking, make touch-type mobile terminal break away from single screen locking mode by the power key screen locking, having enriched the touch of touch-type mobile terminal uses, reduced simultaneously because long-term, repeatedly by power key to the wearing and tearing that power key causes, prolonged the serviceable life of portable terminal power key.
Particularly, described step (1) specifically may further comprise the steps:
(11) enter the gesture screen locking interface is set, open gesture screen locking function;
(12) the newly-increased gesture in interface is set or selects arbitrary initial gesture in the gesture storehouse as described screen locking gesture in described gesture screen locking.Described gesture storehouse makes arranging of described screen locking gesture faster, and has guaranteed the high resolution of described screen locking gesture; Described newly-increased gesture makes user's energy according to the needs of oneself, and more Extraordinary arranges the described screen locking gesture of described portable terminal.
Particularly, " newly-increased gesture is as described screen locking gesture " in the described step (12) specifically may further comprise the steps:
(121) in described gesture screen locking the interface is set and selects " newly-increased gesture " option;
(122) input new gesture at the screen of described portable terminal;
(123) judge that by template matching method whether the similarity of the arbitrary initial gesture in described new gesture and the described gesture storehouse is greater than predetermined threshold value;
(124) if, then the existing same gesture of prompting and repeating said steps (122) be to described step (123), otherwise, then with described new gesture as described screen locking gesture and be saved to described gesture storehouse.
Preferably, the arbitrary initial gesture in the described gesture storehouse and the described new gesture coherent gesture that is disposable input.The coherent gesture of disposable input has guaranteed quick, the high resolution of gesture input and has reduced maloperation.
Correspondingly, the present invention also provides a kind of touch-type mobile terminal, comprising:
Module is set, is used for arranging the screen locking gesture;
Monitoring modular is used for monitoring the touch gestures on the described portable terminal;
Judge module, be used for judging described monitoring module monitors to described touch gestures and the described similarity of the set described screen locking gesture of module that arranges whether greater than predetermined threshold value;
Execution module is used for finishing according to the judged result of described judge module the screen locking of described portable terminal.
Particularly, described touch-type mobile terminal also comprises:
The gesture storehouse is used at least one initial gesture of storage and the described set screen locking gesture of module that arranges.
Particularly, the described module that arranges specifically comprises:
The interface is set enters the unit, be used for entering the gesture screen locking and the interface be set and open gesture screen locking function; And
Screen locking gesture setting unit, the initial gesture that is used for the newly-increased gesture in interface being set or selecting described gesture storehouse in described gesture screen locking is as described screen locking gesture.
Particularly, described screen locking gesture setting unit specifically comprises:
The first subelement is used for selecting the arbitrary initial gesture in described gesture storehouse as described screen locking gesture;
The second subelement is used in described gesture screen locking the interface being set and selects " newly-increased gesture " option;
The 3rd subelement is used for the new gesture of screen input at described portable terminal;
The 4th subelement is used for judging that by template matching method whether the similarity of arbitrary initial gesture in described new gesture and described gesture storehouse is greater than predetermined threshold value; And
The 5th subelement, when being used for judged result when described the 4th subelement and being being, the existing identical gesture in the described gesture of prompting storehouse, when the determination result is NO when described the 4th subelement, with described new gesture as described screen locking gesture and be saved to described gesture storehouse.
Preferably, the arbitrary initial gesture in the described gesture storehouse and the described new gesture coherent gesture that is disposable input.
Particularly, described touch-type mobile terminal is smart mobile phone or panel computer.
By following description also by reference to the accompanying drawings, it is more clear that the present invention will become, and these accompanying drawings are used for explaining embodiments of the invention.
Description of drawings
Fig. 1 is the main process flow diagram of the method for touch-type mobile terminal gesture of the present invention screen locking.
Fig. 2 is an embodiment process flow diagram of the method for touch-type mobile terminal gesture of the present invention screen locking.
Fig. 3 is the embodiment process flow diagram that " increases gesture newly as the screen locking gesture " among the step S202 among Fig. 2.
Fig. 4 is the structured flowchart of touch-type mobile terminal of the present invention.
Embodiment
With reference now to accompanying drawing, describe embodiments of the invention, similar element numbers represents similar element in the accompanying drawing.
Need to prove, template matching method refers in order to detect the object of known form in image, use shape template and the images match of this object, under the criterion of agreement, detect the object image, it is a kind of statistical recognition method, can detect lines in the image, curve, pattern etc.
Below in conjunction with accompanying drawing, the embodiment of the invention is elaborated.
Fig. 1 is the main process flow diagram of the method for touch-type mobile terminal gesture of the present invention screen locking.With reference to Fig. 1, concrete steps of the present invention are as follows:
Step S101 arranges the screen locking gesture;
Step S102 monitors the touch gestures on the described portable terminal;
Step S103 judges that by template matching method whether the similarity of described touch gestures and described screen locking gesture is greater than predetermined threshold value; If, execution in step S104 then, on the contrary then repeating step S102 is to step S103;
Step S104 finishes the screen locking of described portable terminal.
By above flow process, the present invention has realized the function of touch-type mobile terminal gesture screen locking, make touch-type mobile terminal break away from single screen locking mode by the power key screen locking, having enriched the touch of touch-type mobile terminal uses, reduced simultaneously because for a long time, repeatedly by power key to the wearing and tearing that power key causes, prolonged the serviceable life of portable terminal power key.
Fig. 2 is an embodiment process flow diagram of the method for touch-type mobile terminal gesture of the present invention screen locking.With reference to Fig. 2, one embodiment of the invention concrete steps are as follows:
Step S201 enters the gesture screen locking interface is set, and opens gesture screen locking function; It should be noted that after entering the gesture screen locking arranges the interface and also can close described gesture screen locking function; It will be apparent to those skilled in the art that then described portable terminal is namely finished the screen locking function or automatic screen locking when automatically entering holding state by the power key on the described portable terminal with by existing manner screen locking such as gesture screen locking function as described in closing;
Step S202 arranges the newly-increased gesture in interface or selects arbitrary initial gesture in the gesture storehouse as the screen locking gesture in described gesture screen locking; Arbitrary initial gesture in the described gesture storehouse is the coherent gesture of disposable input; As: as described in comprise the initial gesture of serpentine, the initial gesture of " z " shape and the initial gesture of " O " shape in the gesture storehouse; As: the initial gesture of the serpentine as described in selecting in the gesture storehouse is as the screen locking gesture; And for example: newly-increased " 6 " shape gesture is as the screen locking gesture;
Step S203 monitors the touch gestures on the described portable terminal; What deserves to be explained is, if described portable terminal then do not monitor at screen lock state or holding state, otherwise, then monitor the touch gestures on the described portable terminal;
Step S204, whether the similarity of judging described touch gestures and described screen locking gesture by template matching method greater than predetermined threshold value, if, execution in step S205 then, on the contrary then repeating said steps S203 is to described step S204; The large young pathbreaker of described predetermined threshold value scope directly affects the identification sensitivity of described touch gestures, and the identification sensitivity of the larger then described touch gestures of described predetermined threshold value scope is lower, otherwise it is higher then to identify sensitivity;
Step S205 finishes the screen locking of described portable terminal.
Particularly, Fig. 3 is the embodiment process flow diagram that " increases gesture newly as the screen locking gesture " among the step S202 among Fig. 2, and with reference to this figure, described " newly-increased gesture is as the screen locking gesture " may further comprise the steps:
Step S301 arranges the interface in described gesture screen locking and selects " newly-increased gesture " option;
Step S302 is in the new gesture of described portable terminal input; Described new gesture is the coherent gesture of disposable input; As: as described in new gesture be " U " the shape gesture of disposable input;
Step S303, whether the similarity of judging the arbitrary initial gesture in described new gesture and the described gesture storehouse by template matching method is greater than predetermined threshold value, if then the existing same gesture of prompting and repeating said steps S302 are to described step S303, otherwise, execution in step S304 then;
Step S304 is saved to described new gesture described gesture storehouse and is made as described screen locking gesture.
Fig. 4 is the structured flowchart of touch-type mobile terminal of the present invention.With reference to Fig. 4, described portable terminal 100 specifically comprises:
Module 10 is set, is used for arranging the screen locking gesture;
Monitoring modular 20 is used for monitoring the touch gestures on the described portable terminal 100;
Judge module 30 is used for judging that whether described touch gestures that described monitoring modular 20 monitors and the described similarity of the set described screen locking gesture ofmodule 10 that arranges are greater than predetermined threshold value;
Execution module 40 is used for finishing according to the judged result of describedjudge module 30 screen locking of describedportable terminal 100.
Particularly, described portable terminal 100 also comprises:
Gesture storehouse 50 is used at least one initial gesture of storage and the described set screen locking gesture ofmodule 10 that arranges.
Particularly, the described module that arranges specifically comprises:
The interface is set entersunit 102, be used for entering the gesture screen locking interface is set; And
Screen lockinggesture setting unit 101, the initial gesture that is used for the newly-increased gesture in interface being set or selecting described gesture storehouse in described gesture screen locking is as described screen locking gesture.
Particularly, described screen lockinggesture setting unit 101 specifically comprises:
Thefirst subelement 1011 is used for selecting the arbitrary initial gesture in describedgesture storehouse 50 as described screen locking gesture;
Thesecond subelement 1012 is used in described gesture screen locking the interface being set and selects " newly-increased gesture " option;
The3rd subelement 1013 is used for the new gesture of screen input at described portable terminal 100;
The4th subelement 1014 is used for judging that by template matching method whether the similarity of arbitrary initial gesture in described new gesture and described gesture storehouse is greater than predetermined threshold value; And
The5th subelement 1015, when being used for judged result when described the4th subelement 1014 and being being, the described gesture of promptingstorehouse 50 existing identical gestures, when the determination result is NO when described the4th subelement 1014, with described new gesture as described screen locking gesture and be saved to describedgesture storehouse 50.
Particularly, described portable terminal 100 is smart mobile phone or panel computer.
With reference to Fig. 1 and Fig. 4, the principle of work of described portable terminal 100 is as follows:
Bymodule 10 is set the screen locking gesture is set, and by the touch gestures on the describedportable terminal 100 of monitoring modular 20 monitorings, judge that by template matching method whether the similarity of described touch gestures and described screen locking gesture is greater than predetermined threshold value byjudge module 30 again, finished at last the screen locking of described portable terminal 100 byexecution module 40, realized the function of touch-type mobile terminal gesture screen locking, make touch-type mobile terminal break away from single screen locking mode by the power key screen locking, having enriched the touch of touch-type mobile terminal uses, reduced simultaneously because long-term, repeatedly by power key to the wearing and tearing that power key causes, prolonged the serviceable life of portable terminal power key.
Above invention has been described in conjunction with most preferred embodiment, but the present invention is not limited to the embodiment of above announcement, and should contain various modification, equivalent combinations of carrying out according to essence of the present invention.