Summary of the invention
Based on this, it is necessary to which in view of the above technical problems, providing one kind can be improved unlock efficiency, improves the touch screen service lifeThe quick release method, apparatus and computer equipment of the mobile terminal touch screen of shifting.
A kind of quick release method of mobile terminal touch screen, comprising:
A, current touch screen sliding mode information is obtained;
B, sliding speed thresholding V is reached according to the calculating of current touch screen sliding mode informationmRequired time t1;
C, judgement reaches present speed thresholding VmRequired time t1Whether preset unlock thresholding t is less thanmIf then quicklyIt unlocks successfully.
In one of the embodiments, before the step A further include:
A0, unlock thresholding t is presetm;
A01, sliding speed thresholding V is presetm。
The step A is specifically included in one of the embodiments:
A1, sliding speed thresholding V is obtainedm;
A2, sliding trace present speed V is obtained1;
A3, the acceleration a for obtaining sliding trace1。
The step B is specifically included in one of the embodiments:
B1, according to sliding trace present speed V1, acceleration a1And sliding speed thresholding Vm, calculate and reach sliding speed thresholdingVmThe time t needed1。
The step A2 is specifically included in one of the embodiments:
The time of A21, the coordinate for obtaining each touch point and touch, the coordinate of current touch point and a upper touch pointCoordinate distance divided by the two time difference be sliding trace present speed v1;
The step A3 is specifically included:
A31, the acceleration a1It may be expressed as: aa/bb, wherein aa is the sliding trace present speed v that this is calculated1The sliding trace present speed v being calculated with the last time1' difference, bb is sliding trace present speed v at this meter1TimeWith sliding trace present speed v at last time meter1' time difference.
In one of the embodiments, in the step C, preset unlock thresholding tmFor default value 0.5S, can also by withA time is arranged on mobile terminal setting menu in family.
A kind of quick-release mechanism of mobile terminal touch screen, described device include:
Module is preset, for presetting unlock thresholding tmAnd sliding speed thresholding Vm;
Module is obtained, for obtaining current touch screen sliding mode information;
Computing module reaches sliding speed thresholding V for calculatingmThe time t needed1;
Judgment module reaches present speed thresholding V for judgingmRequired time t1Whether preset unlock thresholding t is less thanm,If then unlocking success.
The acquisition module includes: in one of the embodiments,
First acquisition unit, for obtaining sliding speed thresholding Vm;
Second acquisition unit, for obtaining sliding trace present speed V1;
Third acquiring unit, for obtaining the acceleration a of sliding trace1。
A kind of computer equipment, including memory and processor, the memory are stored with computer program, the processingDevice performs the steps of when executing the computer program
A, current touch screen sliding mode information is obtained;
B, sliding speed thresholding V is reached according to the calculating of current touch screen sliding mode informationmRequired time t1;
C, judge present speed thresholding VmRequired time t1Whether preset unlock thresholding t is less thanmIf then quick releaseSuccess.
A kind of computer readable storage medium, is stored thereon with computer program, and the computer program is held by processorIt is performed the steps of when row
A, current touch screen sliding mode information is obtained;
B, sliding speed thresholding V is reached according to the calculating of current touch screen sliding mode informationmRequired time t1;
C, judge present speed thresholding VmRequired time t1Whether preset unlock thresholding t is less thanmIf then quick releaseSuccess.
The quick release method, apparatus and computer equipment, the method for a kind of above-mentioned mobile terminal touch screen pass throughCurrent touch screen sliding mode information is obtained, mobile terminal reaches sliding speed according to the calculating of current touch screen sliding mode informationThresholding VmRequired time t1, and judge present speed thresholding VmRequired time t1Whether preset unlock thresholding is less thantmIf then quick release success, realizing can unlock successfully when detecting that user will draw specified unlock route,Efficiency when unlock is improved, additionally, due to actual route than preset short therefore reduce the touch of touch screen, avoids touchingShield the abrasion being used for a long time, improves the touch screen service life.
Specific embodiment
To make the objectives, technical solutions, and advantages of the present invention clearer and more explicit, right as follows in conjunction with drawings and embodimentsThe present invention is further described.It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, and do not have toIt is of the invention in limiting.
A kind of quick release method of mobile terminal touch screen provided by the present application, can be applied in terminal.Wherein, eventuallyEnd, which can be, but not limited to, to be various personal computers, laptop, mobile phone, tablet computer, vehicle-mounted computer and portable wearsWear equipment.Terminal of the invention uses multi-core processor.Wherein, the processor of terminal can be central processing unit (CentralProcessing Unit, CPU), graphics processor (Graphics Processing Unit, GPU), video processing unitAt least one of (Video Processing Unit, VPU) etc..
In one embodiment, as shown in Figure 1, a kind of quick release method of mobile terminal touch screen is provided, with thisMethod is applied to be illustrated for above-mentioned terminal, comprising the following steps:
Step S100 presets unlock thresholding tmAnd sliding speed thresholding Vm。
Preset unlock thresholding tmAnd sliding speed thresholding Vm.Specifically, preset unlock thresholding tm can be existed by userOne time of self-setting on menu is arranged in mobile terminal, and default value also can be used, and such as 0.5 second;The sliding speed thresholdingIf VmIt is first saved in the terminal in advance after setting.
Step S101 obtains current touch screen sliding mode information.
Wherein, the current touch screen sliding mode information specifically includes: sliding speed thresholding Vm, sliding trace it is currently fastSpend V1And obtain the acceleration a of sliding trace1。
Specifically, the present speed V1By obtaining the coordinate of each touch point and the time of touch, thereafter byIt is current that the coordinate of current touch point is obtained into sliding trace divided by the two time difference at a distance from the coordinate of a upper touch pointSpeed v1.
The acceleration a1It may be expressed as: aa/bb, wherein aa is the sliding trace present speed v that this is calculated1WithThe sliding trace present speed v that last time is calculated1' difference, bb is sliding trace present speed v at this meter1Time withSliding trace present speed v at last time meter1' time difference.
Step S102 reaches sliding speed thresholding V according to the calculating of current touch screen sliding mode informationmThe required timet1。
Specifically, it is based on sliding trace present speed V1, acceleration a1And sliding speed thresholding Vm, calculate and reach slidingSpeed threshold VmThe time t needed1, calculation formula is as follows:
t1 = (Vm-V1)/a1
Step S103, judgement reach present speed thresholding VmRequired time t1Whether preset unlock thresholding t is less thanmIfThen quick release success.
Specifically, when in t1Sliding speed reaches speed threshold V in timem, and t1Less than preset unlock thresholding tmWhen,Then mobile terminal quick release success.
The quick release method of a kind of mobile terminal touch screen of the present embodiment, by presetting unlock thresholding tmWith cunningDynamic speed threshold Vm, sliding speed thresholding V is obtained thereafterm, sliding trace present speed V1And the acceleration a of sliding trace1,According to sliding trace present speed V1, acceleration a1And sliding speed thresholding Vm, calculate and reach sliding speed thresholding VmIt needsTime t1, judge to reach sliding speed thresholding VmRequired time t1Whether preset unlock thresholding t is less thanmIf then quicklyIt unlocks successfully, realizing can unlock successfully when detecting that user will draw specified unlock route, efficiency when making to unlockIt improves, additionally, due to actual route than preset short therefore reduce the touch of touch screen, touch screen is avoided to be used for a long timeAbrasion improves the touch screen service life.
It should be understood that although each step in the flow chart of Fig. 1 is successively shown according to the instruction of arrow, thisA little steps are not that the inevitable sequence according to arrow instruction successively executes.Unless expressly state otherwise herein, these stepsIt executes there is no the limitation of stringent sequence, these steps can execute in other order.Moreover, at least part in Fig. 1Step may include that perhaps these sub-steps of multiple stages or stage are executed in synchronization to multiple sub-stepsIt completes, but can execute at different times, the execution sequence in these sub-steps or stage, which is also not necessarily, successively to be carried out,But it can be executed in turn or alternately at least part of the sub-step or stage of other steps or other steps.
In one embodiment, as shown in Fig. 2, providing a kind of quick-release mechanism of mobile terminal touch screen, comprising:It presets module 210, obtain module 220, computing module 230 and judgment module 240, in which:
Module 210 is preset, for presetting unlock thresholding tmAnd sliding speed thresholding Vm;
Module 220 is obtained, for obtaining current touch screen sliding mode information;
Computing module 230 reaches sliding speed thresholding V for calculatingmThe time t needed1;
Judgment module 240 reaches present speed thresholding V for judgingmRequired time t1Whether it is less than preset solution to lock a doorLimit tmIf then unlocking success.
In one embodiment, the acquisition module includes:
First acquisition unit, for obtaining sliding speed thresholding Vm;
Second acquisition unit, for obtaining sliding trace present speed V1;
Third acquiring unit, for obtaining the acceleration a of sliding trace1。
A kind of specific restriction of quick-release mechanism about mobile terminal touch screen may refer to above for one kindThe restriction of the quick release method of mobile terminal touch screen, details are not described herein.A kind of above-mentioned mobile terminal touch screen it is quickModules in tripper can be realized fully or partially through software, hardware and combinations thereof.Above-mentioned each module can be hardPart form is embedded in or independently of in the processor in computer equipment, can also be stored in computer equipment in a software formMemory in, execute the corresponding operation of above modules in order to which processor calls.
In one embodiment, a kind of computer equipment is provided, which can be terminal, internal structureFigure can be as shown in Figure 3.The computer equipment includes processor, the memory, network interface, display connected by system busScreen and input unit.Wherein, the processor of the computer equipment is for providing calculating and control ability.The computer equipment is depositedReservoir includes non-volatile memory medium, built-in storage.The non-volatile memory medium is stored with operating system and computer journeySequence.The built-in storage provides environment for the operation of operating system and computer program in non-volatile memory medium.The calculatingThe network interface of machine equipment is used to communicate with external terminal by network connection.When the computer program is executed by processor withRealize a kind of quick release method of mobile terminal touch screen.The display screen of the computer equipment can be liquid crystal display orElectric ink display screen, the input unit of the computer equipment can be the touch layer covered on display screen, be also possible to calculateKey, trace ball or the Trackpad being arranged on machine equipment shell can also be external keyboard, Trackpad or mouse etc..
It will be understood by those skilled in the art that structure shown in Fig. 3, only part relevant to application scheme is tiedThe block diagram of structure does not constitute the restriction for the computer equipment being applied thereon to application scheme, specific computer equipmentIt may include perhaps combining certain components or with different component layouts than more or fewer components as shown in the figure.
In one embodiment, a kind of computer equipment, including memory and processor are provided, is stored in memoryComputer program, the processor perform the steps of when executing computer program
A, current touch screen sliding mode information is obtained;
B, sliding speed thresholding V is reached according to the calculating of current touch screen sliding mode informationmRequired time t1;
C, judgement reaches sliding speed thresholding VmRequired time t1Whether preset unlock thresholding t is less thanmIf then quicklyIt unlocks successfully.
In one embodiment, following steps are also executed before obtaining current touch screen sliding mode information Step:
A0, unlock thresholding t is presetm;
A01, sliding speed thresholding V is presetm;
In one embodiment, it is performed the steps of when which executes step A
A1, sliding speed thresholding V is obtainedm;
A2, sliding trace present speed V is obtained1;
A3, the acceleration a for obtaining sliding trace1。
In one embodiment, it is performed the steps of when which executes step B
B1, according to sliding trace present speed V1, acceleration a1And sliding speed thresholding Vm, calculate and reach sliding speed thresholdingVmThe time t needed1。
In one embodiment, it is performed the steps of when which executes step A2
The time of A21, the coordinate for obtaining each touch point and touch, by the coordinate of current touch point and a upper touch pointThe distance of coordinate is sliding trace present speed v1 divided by the two time difference;
In one embodiment, it is performed the steps of when which executes step A3
A31, the acceleration a1It may be expressed as: aa/bb, wherein aa is the sliding trace present speed v that this is calculated1The sliding trace present speed v being calculated with the last time1' difference, bb is sliding trace present speed v at this meter1TimeWith sliding trace present speed v at last time meter1' time difference.
In one embodiment, a kind of computer readable storage medium is provided, computer program is stored thereon with, is calculatedMachine program performs the steps of when being executed by processor
A, current touch screen sliding mode information is obtained;
B, sliding speed thresholding V is calculated according to current touch screen sliding mode informationmRequired time t1;
C, judgement reaches sliding speed thresholding VmRequired time t1Whether preset unlock thresholding t is less thanmIf then quicklyIt unlocks successfully.
In one embodiment, following steps are also executed before obtaining current touch screen sliding mode information Step:
A0, unlock thresholding t is presetm;
A01, sliding speed thresholding V is presetm;
In one embodiment, it is performed the steps of when which executes step A
A1, sliding speed thresholding V is obtainedm;
A2, sliding trace present speed V is obtained1;
A3, the acceleration a for obtaining sliding trace1。
In one embodiment, it is performed the steps of when which executes step B
B1, according to sliding trace present speed V1, acceleration a1And sliding speed thresholding Vm, calculate and reach sliding speed thresholdingVmThe time t needed1。
In one embodiment, it is performed the steps of when which executes step A2
The time of A21, the coordinate for obtaining each touch point and touch, by the coordinate of current touch point and a upper touch pointThe distance of coordinate is sliding trace present speed v1 divided by the two time difference;
In one embodiment, it is performed the steps of when which executes step A3
A31, the acceleration a1It may be expressed as: aa/bb, wherein aa is the sliding trace present speed v that this is calculated1The sliding trace present speed v being calculated with the last time1' difference, bb is sliding trace present speed v at this meter1TimeWith sliding trace present speed v at last time meter1' time difference.
Those of ordinary skill in the art will appreciate that realizing all or part of the process in above-described embodiment method, being can be withRelevant hardware is instructed to complete by computer program, the computer program can be stored in a non-volatile computerIn read/write memory medium, the computer program is when being executed, it may include such as the process of the embodiment of above-mentioned each method.Wherein,To any reference of memory, storage, database or other media used in each embodiment provided herein,Including non-volatile and/or volatile memory.Nonvolatile memory may include read-only memory (ROM), programming ROM(PROM), electrically programmable ROM(EPROM), electrically erasable ROM(EEPROM) or flash memory.Volatile memory may includeRandom-access memory (ram) or external cache.By way of illustration and not limitation, RAM is available in many forms,Such as static state RAM(SRAM), dynamic ram (DRAM), synchronous dram (SDRAM), double data rate sdram (DDRSDRAM), enhancingType SDRAM(ESDRAM), synchronization link (Synchlink) DRAM(SLDRAM), memory bus (Rambus) direct RAM(RDRAM), direct memory bus dynamic ram (DRDRAM) and memory bus dynamic ram (RDRAM) etc..
Each technical characteristic of above embodiments can be combined arbitrarily, for simplicity of description, not to above-described embodimentIn each technical characteristic it is all possible combination be all described, as long as however, the combination of these technical characteristics be not present lanceShield all should be considered as described in this specification.
The several embodiments of the application above described embodiment only expresses, the description thereof is more specific and detailed, but simultaneouslyIt cannot therefore be construed as limiting the scope of the patent.It should be pointed out that coming for those of ordinary skill in the artIt says, without departing from the concept of this application, various modifications and improvements can be made, these belong to the protection of the applicationRange.Therefore, the scope of protection shall be subject to the appended claims for the application patent.