Mobile terminal operation optimization method and device based on screen sliding track
Technical field
The present invention relates to mobile communication technology field, specifically, relate to a kind of based on screen sliding rail
The mobile terminal operation optimization method and device of mark.
Background technology
Current most intelligent terminal all use touch screen as input equipment, touch input
Efficiency and accuracy directly affects the overall performance of terminal.Bigger for display and operating area
Panel computer, user would generally select hands grasping to operate, and bimanualness has higher steady
Qualitative, add that the large icons that region uses greatly is bigger to the induction area of operation, input efficiency
Certain guarantee is had with accuracy.But for Miniature Terminal, such as mobile phone etc., user is more prone to
Operate in single-hand handling & machine, the less stable now operated, often occur because identifying mistake
Maloperation, especially when the screen sliding carrying out certain distance operates often because of action deformation, rail
The reasons such as mark distortion and cognitive disorders occurs, had a strong impact on input efficiency.
User is generally carried out when the browser of use touch screen mobile terminal is at browsing pages at present
Singlehanded screen sliding operation is to roll or page turning, owing to the screen sliding track of user's input is unlikely to be definitely
Straight or level, the most all can be subjected to displacement when this causes sliding every time simultaneously,
But when user reads, actual simply needs is slided towards a horizontally or vertically direction, two sides
To displacement will result in cognitive disorders.Therefore prior art can use certain means to assist in identifying
Screen sliding operates, and such as application software can be according to horizontally or vertically displacement to horizontal or vertical direction
Lock.
One of them typical locking means is: if the displacement of vertical direction is water in single slip
Square to 1.5 times, then be locked as vertical sliding motion, the horizontal displacement that produces of this time sliding will be by
Ignore;Horizontal direction is as the same.Use which, when 1.5 times that vertical displacement is horizontal displacement
Time, sliding trace is about 33.7 degree with the angle of vertical direction.The size of this angle is direct
It is related to the effect of direction-locking, if angle is the least, then locks undesirable;If angle is excessive,
Then it is not easy correctly to identify oblique slip.
During above-mentioned process user operation track adjust level, vertical displacement ratio time,
Owing to vast majority of people's right hand flexibility ratio and stability are higher, angle during left hand screen sliding is used to lead to
Often can than use the right hand screen sliding time big.Carry out locking or left hand being made according to same ratio
Screen sliding locking is undesirable or the oblique identification of right hand screen sliding can be made undesirable, therefore said circumstances
Under, the scale parameter arranging the vertical displacement of suitable lock operation and horizontal displacement is extremely important.
In the software of the most existing mobile terminal that swipes, it is presented in the layout of virtual key on screen
Being generally applicable in user's right-hand operated, the user for left-handed operation uses the most not
Convenient.
Another prior art is to use the gravity sensing sensor in mobile phone current to identify user
It is left-handed operation or right-hand operated, but the same sensitivity problem of gravity sensing sensor,
Need user that body posture carries out bigger adjustment or be exactly the sensitiveest often to occur
Wrong identification, therefore its actual recognition effect is very poor.
Summary of the invention
In view of the drawbacks described above of prior art, the present invention is to solve the most quick and precisely to difference
The problem that the screen sliding action of manipulator is identified and optimizes, it is provided that a kind of based on screen sliding track
Mobile terminal operation optimization method and device.
According to an aspect of the present invention, the present invention provides a kind of mobile end based on screen sliding track
End operation optimization method, described method includes:
After receiving user's screen sliding operation to mobile terminal, obtain corresponding screen sliding track;
Based on acquired screen sliding track, determine the screen sliding action type of user be left-handed operation also
It it is right-hand operated;And
Screen sliding action type determined by according to, is optimized place to the operation setting of mobile terminal
Reason.
Preferably, in described method, based on acquired screen sliding track, determine the screen sliding of user
Action type is left-handed operation or right-hand operated includes:
Tracing point coordinate based on acquired screen sliding track, determines the bending of described screen sliding track
Direction;And
According to the bending direction determined, determine that the screen sliding action type of user is left-handed operation
Or right-hand operated.
Preferably, in described method, tracing point coordinate based on acquired screen sliding track, really
The bending direction of fixed described screen sliding track includes:
Two or three neighbouring tracing points are chosen from described screen sliding track;And
Coordinates based on two or three selected tracing points, determine the curved of described screen sliding track
Qu Fangxiang.
Preferably, in described method, coordinates based on two selected tracing points, determine institute
The bending direction stating screen sliding track uses changes in coordinates tendency method to determine.
Preferably, in described method, coordinates based on three selected tracing points, determine institute
The bending direction stating screen sliding track is that employing perpendicular bisector intersects method or angular bisectrix method determines
's.
Preferably, in described method, according to determined by screen sliding action type, to mobile terminal
Operation setting be optimized process and include:
Screen sliding action type determined by according to, adjusts the rotating direction lock during operation of user's screen sliding
That determines parameter is set or adjusted virtual key position on screen.
On the other hand, the present invention provides a kind of mobile terminal based on screen sliding track to operate the most simultaneously
Optimizing device, described device includes:
Screen sliding track acquiring unit, is used for after receiving user's screen sliding operation to mobile terminal,
Obtain corresponding screen sliding track;
Screen sliding action type determines unit, for based on acquired screen sliding track, determines user
Screen sliding action type be left-handed operation or right-hand operated;And
Optimize processing unit, for screen sliding action type determined by basis, to mobile terminal
Operation setting is optimized process.
Preferably, described screen sliding action type determines that unit includes:
Bending direction determines module, for tracing point coordinate based on acquired screen sliding track,
Determine the bending direction of described screen sliding track;And
Screen sliding action type determines module, for according to the bending direction determined, determines use
The screen sliding action type at family is left-handed operation or right-hand operated.
Preferably, described device also includes: tracing point chooses module, for from described screen sliding rail
Mark is chosen two or three neighbouring tracing points;And
Described bending direction determines that module is configured to based on two or three selected tracks
The coordinate of point, determines the bending direction of described screen sliding track.
Preferably, described optimization processing unit is configured to screen sliding action type determined by basis,
Being set or adjusted on screen of rotating direction locking parameter when adjusting the operation of user's screen sliding is virtual
Key position.
Compared with prior art, the method and device that the present invention provides utilizes in screen sliding track and does not surpasses
The coordinate crossing three points i.e. can recognize that the manipulator of user, thus it is excellent to carry out system targetedly
Changing, the solution of the present invention achieves in the case of not increasing hardware cost and identifies fast and accurately
And optimization, efficiency and the accuracy of user input are greatly improved, enhance Consumer's Experience.
Accompanying drawing explanation
The track schematic diagram that Fig. 1 is common when being the operation of right-hand man's screen sliding.
Fig. 2 is that the flow process of the mobile terminal operation optimization method based on screen sliding track of the present invention is shown
It is intended to.
Fig. 3 is that the typical case of a series of input points of the process generation of left hand screen sliding track in Fig. 1 shows
It is intended to.
When Fig. 4 is to use perpendicular bisector to intersect method identification in one embodiment of the present of invention based on
The schematic flow sheet of the mobile terminal operation optimization method of screen sliding track.
Fig. 5 is the principle schematic that in the present invention, perpendicular bisector intersects method.
Based on screen sliding when Fig. 6 is to use angular bisectrix method identification in an alternative embodiment of the invention
The schematic flow sheet of the mobile terminal operation optimization method of track.
Fig. 7 is the principle schematic of angular bisectrix method in the present invention.
Fig. 8 is the screen sliding track finishing of changes in coordinates tendency method in yet another embodiment of the present invention
Effect schematic diagram.
Fig. 9 be in yet another embodiment of the present invention use changes in coordinates tendency method identification time based on
The schematic flow sheet of the mobile terminal operation optimization method of screen sliding track.
Figure 10 is the scroll lock area schematic after using the solution of the present invention to optimize.
Detailed description of the invention
Below in conjunction with the accompanying drawing in the embodiment of the present invention, to the technical side in the embodiment of the present invention
Case is clearly and completely described.Obviously, described embodiment is to implement the present invention relatively
Good embodiment, for the purpose of described description is the rule so that the present invention to be described, and is not used to
Limit the scope of the present invention.Protection scope of the present invention should be as defined in claim,
Based on the embodiment in the present invention, those of ordinary skill in the art are not making creative work
On the premise of the every other embodiment that obtained, broadly fall into the scope of protection of the invention.
Correctly to identify singlehanded screen sliding, first have to its operation rule is understood.Normal conditions
Lower user, when one hand operates, is usually and uses thumb to carry out screen sliding, each time screen sliding
The track produced all can deflect toward manipulator side, and the track that left hand and the right hand produce has
Institute is different.In common vertical direction, the general track of screen sliding is as it is shown in figure 1, in Fig. 1, the left side
Lines be left hand one hand slide time track, the lines on the right be right hand one hand slide time rail
Mark.
Can become apparent from, the screen sliding track produced when using left-handed operation and right-hand operated
Both there is something in common, there are differences again.Something in common is, either with left hand or the right side
Hands inputs, and all will produce a track with radian;Difference is, uses left hand input
Time, this track bends to the left, and when using right hand input, this track bends to the right.Therefore,
Identify that manipulator is left hand or the right hand, only need to identify the horizontal curvature of track towards.
Provide a kind of mobile terminal operation optimization method based on screen sliding track in the present invention,
As in figure 2 it is shown, the method comprising the steps of:
S1, after receiving user's screen sliding operation to mobile terminal, obtains corresponding screen sliding rail
Mark;
S2, based on acquired screen sliding track, determines that the screen sliding action type of user is left hand behaviour
Make or right-hand operated;
S3, according to determined by screen sliding action type, the operation setting of mobile terminal is carried out excellent
Change processes.Further, the present invention advises by analyzing the coordinate of limited point in screen sliding track
Rule identifies bending towards of track.Wherein, in a preferred embodiment of the invention, utilize not
The identification bent towards can be completed, it is achieved that quickly and accurately know more than the coordinate of three points
Not.The horizontal curvature of screen sliding input trajectory will be introduced towards knowledge below by three different embodiments
Other algorithm:
Embodiment one
The once singlehanded screen sliding of user is segmented into three sub-operation parts simple to operately: big thumb
Refer to press on screen;Thumb slides on screen;Lift thumb.Produce when wherein pressing
Raw initial contact, produce when lifting and terminate contact, and also can be according to touch screen in sliding process
Discrimination obtains some process points, this series of point such as Fig. 3.
A screen sliding track in Fig. 3 contains multiple point (P1, P2, P3 ..., P17), once
During swiping, system can automatically identify the point swiped position in screen, and by this position
Confidence breath is sent to application program, so after a swiping terminates, application program can
Know this time swiping positional information a little.By profit in various embodiments of the present invention
With these characteristics put be curved towards identification.
In embodiments of the invention one, utilize three points therein, use perpendicular bisector phase
Friendship method identification bending direction.Specifically, current up-to-date generation in user's sliding process can be gathered
Three neighbor points calculate, obtain current horizontal curvature towards;Or it is complete at one
Track end of input after, can suitably choose three points (such as first in tracing point
Point P1, intermediate point P9 and last some P17), again calculate, obtain final horizontal curved
Qu Chaoxiang.See Fig. 4, in an embodiment of the present invention, use perpendicular bisector to intersect method auxiliary
The process helping identification is:
S401, after receiving user's screen sliding operation to mobile terminal, obtains corresponding screen sliding
Track;
S402, chooses three neighbouring tracing points from described screen sliding track;
S403, coordinates based on three selected tracing points, use perpendicular bisector to intersect method
Determine the bending direction of described screen sliding track;
S404, according to the bending direction determined, determines that the screen sliding action type of user is left
Hands operation or right-hand operated;
S405, according to determined by screen sliding action type, the operation setting of mobile terminal is carried out
Optimization processes.
Assuming that this is chosen three points and is respectively P1, P2, P3, the coordinate of its correspondence is respectively
(x1, y1), (x2, y2), (x3, y3), in embodiments of the invention one, perpendicular bisector intersects at method
Reason process is as shown in Figure 5: the perpendicular bisector m of line taking section P1P2, line segment P2P3's is vertical flat
Separated time n, calculates the intersection point T of straight line m and n, it is assumed that intersection point T coordinate be (x, y);Now, if
Horizontal coordinate x of T horizontal coordinate x2 less than P2, i.e. x < x2, then explanation these three point composition
Curve level bend towards as a left side;If horizontal coordinate x2 that horizontal coordinate x of T is more than P2,
I.e. x > x2, then the curve level of explanation these three point composition bends towards as the right side.Wherein, hand over
Horizontal coordinate x of some T is:
Calculate x value it being compared with x2 according to above formula and can draw the horizontal curvature court of track
To.
Shake is there occurs in view of finger in some special circumstances, such as sliding process, may
Cause the abnormal conditions utilizing above formula to occur in that extreme x=x2 when calculating, now can use below
Mode auxiliary judgement:
If in finger sliding process occurs this situation, previous judgement knot be can be used directly
Really (i.e. the point of first three in sliding process) draws and bends towards;
Run into this situation if having slided when finally judging, then can use in track other
Point replace one or more points therein recalculate (or before calculating, the most disposable choosing
Good suitable point, selects after such as getting rid of the most abnormal point again);
If the attempt to make to recalculate repeatedly in aforementioned manners, but all of point is (in view of concrete
Efficiency, may only understand double counting several times) it is all this abnormal results, it assumes that use
Family is to use the right hand, because using the right hand the most common.
Embodiment two
In embodiments of the invention two, also with three points in screen sliding track, angle is used to put down
Separated time method is identified, and sees Fig. 6, and its process is:
S601, after receiving user's screen sliding operation to mobile terminal, obtains corresponding screen sliding
Track;
S602, chooses three neighbouring tracing points from described screen sliding track;
S603, coordinates based on three selected tracing points, use angular bisectrix method to determine institute
State the bending direction of screen sliding track;
S604, according to the bending direction determined, determines that the screen sliding action type of user is left
Hands operation or right-hand operated;
S605, according to determined by screen sliding action type, the operation setting of mobile terminal is carried out
Optimization processes.
The processing procedure of angular bisectrix method (assumes that the point chosen is and embodiment one as shown in Figure 7
Identical P1, P2, P3): with P2 as initial point, set up plane right-angle coordinate, calculate respectively
Ray P2P1, P2P3 in this rectangular coordinate system with x-axis forward constitute angle a and b;Count again
Calculate these two ray angle ∠ P1P2P3(and take the folded part less than 180 degree of two rays)
Angle c that constitutes of angular bisector m and x-axis forward;Fall at the second quadrant as angular bisector m or
Third quadrant, i.e. angular bisector angle c span are 90 < c < when 270, these three point to be described
The curve level of composition bends towards as a left side;When angular bisector m falls at first quartile or four-quadrant
Limit, i.e. angular bisector angle c span be 0≤c < 90 or 270 < c < when 360, illustrate this three
The curve level of individual composition bends towards as the right side.Wherein, each goniometer formula is:
If between a, b, difference is less than or equal to 180, thenIf difference is more than 180 between a, b,
ThenWherein % represents the computing that rems.C is calculated according to above formula
Value and judge its corresponding angle fall which quadrant can draw the horizontal curvature of track towards.
Embodiment three
Above-mentioned two embodiment is required to carry out a certain amount of calculating, inevitably gives screen sliding
Operation brings certain performance to be lost, but the result of its gained is reliable comparatively speaking.
The method for simplifying that a kind of amount of calculation is little is used, according to the present embodiment embodiments of the invention three kinds
In changes in coordinates tendency method can quickly draw and bend towards.But the method can when identifying
Can need suitably to accept or reject the point produced in sliding process, its screen sliding track relied on is not
Real operation model, is therefore not suitable for the feelings higher to left hand right hand recognition accuracy demand
Condition.
Specifically, in embodiments of the invention three, not to screen sliding track bent horizontal towards entering
Row calculate, but use two points, learn according to the changes in coordinates trend of the two point be with
Left hand or the right hand operates.
In embodiments of the invention three, first repairing the track of Fig. 1, Fig. 1 is to connect most
Being bordering on real input condition, after finishing, track is as shown in Figure 8.Track after finishing and Fig. 1
Difference be to revise after the bottom of track be almost vertical, this is because true screen sliding rail
The part of mark (as shown in Figure 1) generally bottom bending is smaller, during for ease of processing finishing
Bending to bottom is ignored.
During left-handed operation, no matter thumb is to slide into down from above, or from gliding upwards,
The horizontal coordinate of coordinate points during slip is consistent with the variation tendency of vertical coordinate;And use
During right-hand operated, no matter thumb is to slide into down from above, or from gliding upwards, during slip
The horizontal coordinate of coordinate points and the variation tendency of vertical coordinate are contrary.It should be noted that
In the present embodiment three, the ways customary setting employing this area of coordinate system, i.e. mobile phone screen
On, zero is arranged on the upper left corner (rather than lower left corner) of screen, and x coordinate is from left to right
Becoming larger, y-coordinate becomes larger from top to bottom.
See Fig. 9, in an embodiment of the present invention, use perpendicular bisector to intersect method auxiliary and know
Other process is:
S901, after receiving user's screen sliding operation to mobile terminal, obtains corresponding screen sliding
Track;
S902, chooses two neighbouring tracing points from described screen sliding track;
S903, coordinates based on two selected tracing points, use coordinate transform tendency method true
The bending direction of fixed described screen sliding track;
S904, according to the bending direction determined, determines that the screen sliding action type of user is left
Hands operation or right-hand operated;
S905, according to determined by screen sliding action type, the operation setting of mobile terminal is carried out
Optimization processes.
The recognition principle of coordinate transform tendency method is: assume any two point on sliding trace
P1, P2, coordinate is respectively (x1, y1), (x2, y2).Left hand is then used to have when sliding:
(x1-x2) (y1-y2) >=0;
The right hand is used to have when sliding:
(x1-x2) (y1-y2) <=0.
Amount of calculation needed for using the method for the present embodiment is minimum, substantially can ignore, thus right
Performance is entirely without impact.But it should be recognized that the screen sliding relied on due to changes in coordinates tendency method
Track is not real operation model, therefore may need suitably in sliding process when identifying
The point produced is accepted or rejected.
After correctly identifying manipulator, system is carried out by the present invention further according to manipulator
Optimize, to improve efficiency and the accuracy of user's input, strengthen Consumer's Experience.Specifically, exist
In sliding process, identify after being left hand or right-hand operated, when can suitably adjust screen sliding
Scroll lock parameter, to reach more preferable Consumer's Experience.
A kind of typical optimization is to optimize locking parameter, i.e. in sliding process, when identifying is
After left hand or right-hand operated, when suitably can adjust screen sliding according to the operation rule that two handss are different
Scroll lock parameter.Such as use bigger locking angle during left hand, use less during the right hand
Locking angle, to identify correct and effectively to obtain balance between locking, reach more preferable user
Experience.This optimal way is the highest to the accuracy requirement of recognition result, therefore uses changes in coordinates
Tendency method identifies the resource occupation that can reduce in sliding process CPU.
In an embodiment of the present invention, owing to screen sliding operation is higher for efficiency requirements, therefore make
With changes in coordinates tendency method identification manipulator.That is, during screen sliding, record slip produces
Upper some P1 (x1, y1), and combine current coordinate points P2 (x2, y2) identify user be which only
Hands operates.The recognition method of changes in coordinates tendency method hereinbefore has been described, at this not
Repeat again.The principle relying on parameter to lock rotating direction in the present invention is: assume the position of P1 to P2
Moving absolute value is (during x, y), as y > a*x, to be then locked as vertical scrolling;As x > b*y time, then lock
It is set to horizontal rolling;Wherein a and b is screen sliding locking parameter.
In a preferred embodiment of the invention, different locks is set according to the recognition result of manipulator
Determine parameter, thus optimize roll screen or the page processing of screen sliding operation, improve Consumer's Experience.
Preferably, about the value of vertical scrolling locking parameter a, it is set to 1.25 when being identified as left hand
(i.e. be 38.7 degree with vertical direction angle), is set to 1.04(with vertical when being identified as the right hand
Angular separation is 43.9 degree).Such as when using left hand screen sliding, with vertical direction angle 38.7
Vertical scrolling will be all locked as within degree;Right hand screen sliding is all locked as vertically rolling in being then 43.9 degree
Dynamic.The value of horizontal screen sliding locking parameter b will not change according to left hand or the right hand, and perseverance is 1.5
(i.e. be 33.7 degree with horizontal direction angle) because during horizontal rolling, generation with level side
To angle all can be smaller, it is not necessary that optimize according to the left hand right hand.
With further reference to Figure 10, which show the scroll lock after using aforesaid way to be optimized
Region: wherein, when the angle of screen sliding track generation and the angle of vertical direction are in the range of A
Time, it is locked as vertical scrolling;When the angle of screen sliding track generation exists with the angle of horizontal direction
Time in the range of B1 or B2, it is locked as horizontal rolling;And trajectory angle is when C1 or C2 region,
Direction is not locked, both horizontally and vertically can roll simultaneously.Figure 10 only illustrates
At the angle of y-axis positive direction, it is equally applicable to the operation of y-axis negative direction, and effect is with by Figure 10
Mirror image switch is carried out with x-axis.
Another kind of optimization is inputting interface optimization, such as after slip terminates, obtains user current
It is to use left hand or right-hand operated, adjusts the position of virtual key on screen.Virtual key
Typically such as the turnover key on the right in browser, and the button etc. in the lower right corner in application model
Deng, the left side can be placed into when being identified as left-handed operation.Owing to this optimal way adjusts
More, the most complete screen sliding terminate after be just identified, therefore can use and vertically divide equally
Line intersects method or angular bisectrix method.
In a preferred embodiment of the invention, it is assumed that a height of w pixel of screen, a width of h pixel.
In the ordinary course of things, the position of certain virtual key is (w-20, h-30), i.e. shows in the lower right corner;.
After carrying out screen sliding operation, use perpendicular bisector to intersect method or angular bisectrix method identifies operation
Hands is left hand, then by this virtual by strong position adjustment to (20, h-30), i.e. y-coordinate holding is not
Becoming, x coordinate is appropriately adapted to the left side, so that virtual key is shown to the lower left corner, convenient
This button of left hand touch-control.
Corresponding with the method for the present invention, the present invention includes a kind of based on screen sliding track the most simultaneously
Optimization device, this device is generally with the form table of the corresponding functional module of step each with method
Show;Thus, described system and device includes:
Screen sliding track acquiring unit, is used for after receiving user's screen sliding operation to mobile terminal,
Obtain corresponding screen sliding track;
Screen sliding action type determines unit, for based on acquired screen sliding track, determines user
Screen sliding action type be left-handed operation or right-hand operated;And
Optimize processing unit, for screen sliding action type determined by basis, to mobile terminal
Operation setting is optimized process.
Further, described screen sliding action type determines that unit includes:
Bending direction determines module, for tracing point coordinate based on acquired screen sliding track,
Determine the bending direction of described screen sliding track;And
Screen sliding action type determines module, for according to the bending direction determined, determines use
The screen sliding action type at family is left-handed operation or right-hand operated.
Described mobile terminal operation optimization device also includes: tracing point chooses module, for from institute
State and screen sliding track is chosen two or three neighbouring tracing points;And
Described bending direction determines that module is configured to based on two or three selected tracks
The coordinate of point, determines the bending direction of described screen sliding track.
Further, described optimization processing unit is configured to screen sliding operation determined by basis
Type, being set or adjusted on screen of rotating direction locking parameter when adjusting the operation of user's screen sliding
Virtual key position.
In sum, the method and apparatus that the present invention provides is used, it is possible to obtain the most obvious
Beneficial effect:
1. can complete to identify without increasing extra hardware unit, effectively reduce mobile eventually
The hardware cost of end, can be applicable in various different equipment, and scheme has the strongest suitability;
2. achieving and quickly and accurately identify, occupying system resources is few, is swift in response, can
Input efficiency is greatly improved, effectively enhances Consumer's Experience;
3. amount of calculation and recognition accuracy can select the most voluntarily, meet different answering
By scene, provide abundant selection for system optimization.
It will appreciated by the skilled person that realize in above-described embodiment method whole
Or part steps can be by program and completes to instruct relevant hardware, described program can
To be stored in a computer read/write memory medium, this program upon execution, including above-mentioned reality
Execute each step of example method, and described storage medium may is that ROM/RAM, magnetic disc,
CD, storage card etc..
Although above in association with preferred embodiment, invention has been described, but the technology of this area
Personnel are it should be understood that method and system of the present invention is not limited in detailed description of the invention institute
The embodiment stated, without departing substantially from the spirit and scope of the invention being defined by the appended claims
In the case of, can to the present invention various modification can be adapted, increase and replace.