Summary of the invention
In view of the defects of prior art, the present invention provides a kind of portable terminal operation optimization method and device based on sliding screen track in order to solve the problem how quick and precisely sliding screen action of different operating hand to be identified and to optimize.
According to an aspect of the present invention, the invention provides a kind of portable terminal operation optimization method based on sliding screen track, described method comprises:
After receiving the sliding screen operation of user to portable terminal, obtain corresponding sliding screen track;
Based on the sliding screen track that obtains, determine that user's sliding screen action type is left-handed operation or right-hand operated; And
According to determined sliding screen action type, the operation setting of portable terminal is optimized processing.
Preferably, in the described method, based on the sliding screen track that obtains, determine that user's sliding screen action type is that left-handed operation or right-hand operated comprise:
Based on the tracing point coordinate of the sliding screen track that obtains, determine the bending direction of described sliding screen track; And
According to the bending direction of determining, determine that user's sliding screen action type is left-handed operation or right-hand operated.
Preferably, in the described method, based on the tracing point coordinate of the sliding screen track that obtains, determine that the bending direction of described sliding screen track comprises:
From described sliding screen track, choose two or three contiguous tracing points; And
Based on the coordinate of two or three selected tracing points, determine the bending direction of described sliding screen track.
Preferably, in the described method, based on the coordinate of two selected tracing points, the bending direction of determining described sliding screen track is to adopt the changes in coordinates tendency method to determine.
Preferably, in the described method, based on the coordinate of three selected tracing points, the bending direction of determining described sliding screen track is to adopt the crossing method of perpendicular bisector or angular bisectrix method to determine.
Preferably, in the described method, according to determined sliding screen action type, the operation setting of portable terminal be optimized to process comprise:
According to determined sliding screen action type, adjust the setting of the rotating direction locking parameter the when user is sliding shields operation or adjust virtual key position on the screen.
On the other hand, the present invention also provides a kind of portable terminal operation optimization device based on sliding screen track simultaneously, and described device comprises:
Sliding screen track acquiring unit is used for obtaining corresponding sliding screen track after receiving the sliding screen operation of user to portable terminal;
Sliding screen action type determining unit is used for based on the sliding screen track that obtains, and determines that user's sliding screen action type is left-handed operation or right-hand operated; And
The optimization process unit is used for according to determined sliding screen action type, and the operation setting of portable terminal is optimized processing.
Preferably, described sliding screen action type determining unit comprises:
The bending direction determination module is used for the tracing point coordinate based on the sliding screen track that obtains, and determines the bending direction of described sliding screen track; And
Sliding screen action type determination module is used for according to the bending direction of determining, and determines that user's sliding screen action type is left-handed operation or right-hand operated.
Preferably, described device also comprises: tracing point is chosen module, is used for choosing two or three contiguous tracing points from described sliding screen track; And
Described bending direction determination module is configured to the coordinate based on two or three selected tracing points, determines the bending direction of described sliding screen track.
Preferably, described optimization process unit is configured to adjust the setting of the rotating direction locking parameter the when user is sliding shields operation or adjust virtual key position on the screen according to determined sliding screen action type.
Compared with prior art, method provided by the invention and device utilize the coordinate that is no more than three points in the sliding screen track can identify user's operator, thereby carry out targetedly system optimization, the solution of the present invention has realized identifying fast and accurately and optimizing in the situation that does not increase hardware cost, significantly improve efficient and the accuracy of user's input, strengthened user's experience.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the invention, the technical scheme in the embodiment of the invention is clearly and completely described.Obviously, described embodiment is for implementing preferred embodiments of the present invention, and described description is to illustrate that rule of the present invention is purpose, is not to limit scope of the present invention.Protection scope of the present invention should with claim the person of being defined be as the criterion, based on the embodiment among the present invention, the every other embodiment that those of ordinary skills obtain under the prerequisite of not making creative work belongs to the scope of protection of the invention.
To correctly identify singlehanded sliding screen, at first will operate rule to it and understand.Generally the user generally is that the use thumb is slided screen when one hand operates, and the track of sliding screen generation all can turn toward operator one lateral deviation each time, and the track of left hand and right hand generation can be different.Slide the general track of screen on the common vertical direction as shown in Figure 1, among Fig. 1, the track the when track the when lines on the left side are the singlehanded slip of left hand, the lines on the right are the singlehanded slip of the right hand.
Can find out clearly that the sliding screen track that produces when using left-handed operation and right-hand operated had both existed something in common, there are differences again.Something in common is, no matter is with left hand or right hand input, all will produce one with the track of radian; Difference is, when using the left hand input, this track is crooked left, and when using right hand input, this track is crooked to the right.Therefore, the identifying operation hand is left hand or the right hand, the horizontal curvature that only need identify track towards.
A kind of portable terminal operation optimization method based on sliding screen track is provided in the present invention, and as shown in Figure 2, the method comprising the steps of:
S1 after receiving the sliding screen operation of user to portable terminal, obtains corresponding sliding screen track;
S2 based on the sliding screen track that obtains, determines that user's sliding screen action type is left-handed operation or right-hand operated;
S3 according to determined sliding screen action type, is optimized processing to the operation setting of portable terminal.Further, the present invention's bending of identifying track by the coordinate rule of analyzing limited point in the sliding screen track towards.Wherein, in a preferred embodiment of the invention, utilize the coordinate be no more than three points can finish crooked towards identification, realized fast and accurately identification.The below will introduce the horizontal curvature of sliding screen input trajectory towards the algorithm of identification by three different embodiment:
Embodiment one
User's once singlehanded sliding screen can be divided into three sub-operation parts simple to operately: thumb is pressed at screen; Thumb slides at screen; Lift thumb.Produce initial contact when wherein pressing, produce when lifting and finish the contact, and also can obtain according to the discrimination of touch-screen some process points in the sliding process, this a series of point such as Fig. 3.
A plurality of point (P1 have been comprised in the sliding screen track among Fig. 3, P2, P3, ..., P17), system can automatically identify the position of point in screen that swipes in the process that once swipes, and this positional information is sent to application program, so after a swiping finished, application program can be known the positional information of having a few of this time swiping.To utilize in the various embodiments of the present invention characteristic of these points carry out crooked towards identification.
In embodiments of the invention one, utilize three points wherein, adopt perpendicular bisector to intersect method identification bending direction.Particularly, can gather that three neighbor points of current up-to-date generation calculate in user's sliding process, obtain current horizontal curvature towards; Perhaps after a complete track end of input, can suitably choose three points (such as first P1, intermediate point P9 and last some P17) in the tracing point, again calculate, obtain final horizontal curvature towards.Referring to Fig. 4, in an embodiment of the present invention, adopt the process that perpendicular bisector intersects the method aid identification to be:
S401 after receiving the sliding screen operation of user to portable terminal, obtains corresponding sliding screen track;
S402 is from the described sliding tracing point of choosing three vicinities the track that shields;
S403 based on the coordinate of three selected tracing points, adopts perpendicular bisector to intersect the bending direction that method is determined described sliding screen track;
S404 according to the bending direction of determining, determines that user's sliding screen action type is left-handed operation or right-hand operated;
S405 according to determined sliding screen action type, is optimized processing to the operation setting of portable terminal.
Suppose that this chooses three points and be respectively P1, P2, P3, its corresponding coordinate is respectively (x1, y1), (x2, y2), (x3, y3), in the embodiments of the invention one, perpendicular bisector intersects the method processing procedure as shown in Figure 5: the perpendicular bisector m of line taking section P1P2, and the perpendicular bisector n of line segment P2P3 calculates the intersection point T of straight line m and n, suppose that intersection point T coordinate is (x, y); At this moment, if the horizontal coordinate x of T less than the horizontal coordinate x2 of P2, i.e. x<x2 illustrates that then the curve level bending that these three points form is oriented a left side; If the horizontal coordinate x of T is greater than the horizontal coordinate x2 of P2, i.e. x〉x2, illustrate that then the curve level bending that these three points form is oriented the right side.Wherein, the horizontal coordinate x of intersection point T is:
The horizontal curvature that calculates the x value and itself and x2 relatively can be drawn track according to following formula towards.
Consider some special circumstances, such as finger in the sliding process shake has occured, occurred the abnormal conditions of extreme x=x2 in the time of may causing utilizing following formula to calculate, this moment is auxiliary judgement in the following ways:
If this situation in the finger sliding process, occurs, can directly use last time result of determination (being first three point in the sliding process) draw bending towards;
Run into this situation when finishing final decision if slide, then can recomputate (perhaps before calculating with other one or more points of putting to replace wherein in the track, choose suitable point with regard to disposable, after getting rid of obviously unusual point, select again);
If attempt using said method to recomputate repeatedly, but all points (considering concrete efficiency, only meeting double counting several times) all are this abnormal resultses, suppose that then the user uses the right hand, because use the right hand more common.
Embodiment two
In the embodiments of the invention two, same three points that utilize in the sliding screen track adopt angular bisectrix method to identify, and referring to Fig. 6, its process is:
S601 after receiving the sliding screen operation of user to portable terminal, obtains corresponding sliding screen track;
S602 is from the described sliding tracing point of choosing three vicinities the track that shields;
S603 based on the coordinate of three selected tracing points, adopts angular bisectrix method to determine the bending direction of described sliding screen track;
S604 according to the bending direction of determining, determines that user's sliding screen action type is left-handed operation or right-hand operated;
S605 according to determined sliding screen action type, is optimized processing to the operation setting of portable terminal.
The processing procedure of angular bisectrix method (supposes that the point of choosing is the P1 identical with embodiment one as shown in Figure 7, P2, P3): take P2 as initial point, set up plane right-angle coordinate, calculate respectively angle a and b that ray P2P1, P2P3 consist of with x axle forward in this rectangular coordinate system; Calculate again these two ray angle ∠ P1P2P3(and get the folded parts less than 180 degree of two rays) the angle c of angular bisector m and x axle forward formation; When angular bisector m drops on the second quadrant or third quadrant, namely angular bisector angle c span is 90<c<270 o'clock, illustrates that the curve level bending that these three points form is oriented a left side; When angular bisector m drops on first quartile or fourth quadrant, namely angular bisector angle c span is 0≤c<90 or 270<c<360 o'clock, illustrates that the curve level bending that these three points form is oriented the right side.Wherein, each angle gauge formula is:
If a, difference is less than or equal to 180, then between b
If a, difference is greater than 180, then between b
Wherein % represents the computing that rems.According to following formula calculate the c value and judge its corresponding angle drop on horizontal curvature which quadrant can draw track towards.
Embodiment three
Above-mentioned two embodiment all need to carry out a certain amount of calculating, bring certain performance loss can for inevitably sliding screen operation, but the result of its gained are reliable comparatively speaking.Adopt the little short-cut method of a kind of calculated amount three kinds of embodiments of the invention, according to the changes in coordinates tendency method in the present embodiment can draw fast crooked towards.But the point that the method produces in may needing suitably to sliding process when identification is accepted or rejected, and the sliding screen track of its dependence is not real operation model, therefore is not suitable for the higher situation of left hand right hand recognition accuracy demand.
Particularly, in embodiments of the invention three, not to sliding screen track bent horizontal towards calculating, but use two points, learn according to the changes in coordinates trend of these two points operating with left hand or the right hand.
In embodiments of the invention three, at first the track of Fig. 1 is repaired, Fig. 1 is close to real input condition, track is as shown in Figure 8 after the finishing.What the track after the finishing and the difference of Fig. 1 were to revise rear track almost is vertical bottom, this is smaller because of the part of the truly common bottom bending of sliding screen track (as shown in Figure 1), during for ease of the processing finishing bending is bottom ignored.
Leftward in the operating process, no matter thumb is from sliding into down, or from gliding upwards, the horizontal coordinate of the coordinate points during slip is consistent with the variation tendency of vertical coordinate; And when using right-hand operated, no matter thumb is from sliding into down, or makes progress from gliding, and the horizontal coordinate of the coordinate points during slip and the variation tendency of vertical coordinate are opposite.It should be noted that in present embodiment three ways customary of this area is adopted in the setting of coordinate system, be on the mobile phone screen, true origin is arranged on the upper left corner (rather than lower left corner) of screen, and it is large that the x coordinate from left to right becomes gradually, and it is large that the y coordinate becomes from top to bottom gradually.
Referring to Fig. 9, in an embodiment of the present invention, adopt the process that perpendicular bisector intersects the method aid identification to be:
S901 after receiving the sliding screen operation of user to portable terminal, obtains corresponding sliding screen track;
S902 is from the described sliding tracing point of choosing two vicinities the track that shields;
S903 based on the coordinate of two selected tracing points, adopts the coordinate transform tendency method to determine the bending direction of described sliding screen track;
S904 according to the bending direction of determining, determines that user's sliding screen action type is left-handed operation or right-hand operated;
S905 according to determined sliding screen action type, is optimized processing to the operation setting of portable terminal.
The recognition principle of coordinate transform tendency method is: suppose any two some P1 on sliding trace, and P2, coordinate is respectively (x1, y1), (x2, y2).Have when then using left hand to slide:
(x1-x2)(y1-y2)>=0;
Have when using the right hand to slide:
(x1-x2)(y1-y2)<=0。
Adopt the required calculated amount of the method for present embodiment minimum, substantially can ignore, thus on performance fully without impact.But need to prove that because the sliding screen track that the changes in coordinates tendency method relies on is not real operation model, so the point that produces in may needing suitably to sliding process is accepted or rejected when identification.
After correctly identifying operator, the present invention further is optimized system according to operator, to improve efficient and the accuracy of user's input, strengthens the user and experiences.Particularly, in sliding process, identify be left hand or right-hand operated after, the scroll lock parameter in the time of can suitably adjusting sliding screen is experienced to reach better user.
A kind of typical optimization is to optimize locking parameter, namely in sliding process, when identify be left hand or right-hand operated after, the scroll lock parameter in the time of can suitably adjusting sliding screen according to the different operation rule of two hands.Use larger locking angle during such as left hand, use less locking angle during the right hand, between correct identification and effective locking, to average out, reach better user and experience.This optimal way is not high to the accuracy requirement of recognition result, therefore identifies meeting minimizing resource occupation to CPU in sliding process with the changes in coordinates tendency method.
In an embodiment of the present invention, because sliding screen operation is had relatively high expectations for efficient, therefore use changes in coordinates tendency method identifying operation hand.That is, in sliding screen process, the upper some P1 (x1, y1) that record slides and produces, and to identify the user in conjunction with current coordinate points P2 (x2, y2) be which hand operates.The recognition method of changes in coordinates tendency method is existing the description hereinbefore, do not repeat them here.Rely on the principle of parameter locking rotating direction to be among the present invention: suppose that P1 is (x, y) to the displacement absolute value of P2, as y〉during a*x, then be locked as vertical scrolling; As x〉during b*y, then be locked as horizontal rolling; Wherein a and b are sliding screen locking parameter.
In a preferred embodiment of the invention, according to the recognition result of operator different locking parameters is set, thereby has optimized roll screen or the page processing of sliding screen operation, promoted user's experience.Preferably, about the value of vertical scrolling locking parameter a, being made as 1.25(when being identified as left hand is 38.7 degree with the vertical direction angle), being made as 1.04(when being identified as the right hand is 43.9 degree with the vertical direction angle).Such as when using the sliding screen of left hand, will all be locked as vertical scrolling at 38.7 degree with interior with the vertical direction angle; The sliding screen of the right hand then is all to be locked as vertical scrolling in 43.9 degree.The value of the sliding screen of level locking parameter b can not change according to left hand or the right hand, permanent is that 1.5(is 33.7 degree with the horizontal direction angle namely), because during horizontal rolling, generation all can be smaller with angle horizontal direction, there is no need to optimize according to the left hand right hand.
Further referring to Figure 10, it has showed the scroll lock zone of adopting after aforesaid way is optimized: wherein, when the angle of the angle of sliding screen trajectory generation and vertical direction is in the A scope, be locked as vertical scrolling; When the angle of the angle of sliding screen trajectory generation and horizontal direction is in B1 or B2 scope, be locked as horizontal rolling; And the track angle does not lock direction when C1 or C2 zone, and the horizontal and vertical direction can be rolled simultaneously.Only illustrated the angle in y axle positive dirction among Figure 10, it is equally applicable to the operation of y axle negative direction, and effect gets final product so that Figure 10 is carried out mirror image switch with the x axle.
Another kind of optimization is inputting interface optimization, and such as after the end of sliding, obtaining the user current is to use left hand or right-hand operated, adjusts the position of virtual key on the screen.Virtual key typical as in the browser on the right of turnover key, and the button etc. in the lower right corner in the application model can be placed into the left side with it when being identified as left-handed operation.Because it is more that this optimal way is adjusted, after finishing, be once complete sliding screen just identifies, and therefore can use perpendicular bisector to intersect method or angular bisectrix method.
In a preferred embodiment of the invention, the height of supposing screen is the w pixel, and wide is the h pixel.In the ordinary course of things, the position of certain virtual key is (w-20, h-30), namely is presented at the lower right corner; . after sliding the screen operation, use the crossing method of perpendicular bisector or angular bisectrix method to identify operator and be left hand, then this is virtually adjusted to (20 by strong position, h-30), be that the y coordinate remains unchanged, the x coordinate is suitably adjusted to the left side, thereby makes virtual key be shown to the lower left corner, makes things convenient for this button of left hand touch-control.
Corresponding with method of the present invention, the present invention also comprises a kind of optimization device based on sliding screen track simultaneously, and this device represents with the form of the functional module corresponding with each step of method usually; Thereby described system and device comprises:
Sliding screen track acquiring unit is used for obtaining corresponding sliding screen track after receiving the sliding screen operation of user to portable terminal;
Sliding screen action type determining unit is used for based on the sliding screen track that obtains, and determines that user's sliding screen action type is left-handed operation or right-hand operated; And
The optimization process unit is used for according to determined sliding screen action type, and the operation setting of portable terminal is optimized processing.
Further, described sliding screen action type determining unit comprises:
The bending direction determination module is used for the tracing point coordinate based on the sliding screen track that obtains, and determines the bending direction of described sliding screen track; And
Sliding screen action type determination module is used for according to the bending direction of determining, and determines that user's sliding screen action type is left-handed operation or right-hand operated.
Described portable terminal operation optimization device also comprises: tracing point is chosen module, is used for choosing two or three contiguous tracing points from described sliding screen track; And
Described bending direction determination module is configured to the coordinate based on two or three selected tracing points, determines the bending direction of described sliding screen track.
Further, described optimization process unit is configured to adjust the setting of the rotating direction locking parameter the when user is sliding shields operation or adjust virtual key position on the screen according to determined sliding screen action type.
In sum, adopt method and apparatus provided by the invention, can obtain following obvious beneficial effect:
1. need not to increase extra hardware unit and can finish identification, effectively reduce the hardware cost of portable terminal, can be applicable in the various equipment, scheme has very strong applicability;
2. realized fast and accurately identification, occupying system resources is few, is swift in response, and can significantly improve input efficiency, has effectively strengthened user's experience;
3. calculated amount and recognition accuracy can be selected according to demand voluntarily, satisfy different application scenarioss, for system optimization provides abundant selection.
One of ordinary skill in the art will appreciate that, realize that all or part of step in above-described embodiment method is to come the relevant hardware of instruction to finish by program, described program can be stored in the computer read/write memory medium, this program is when carrying out, each step that comprises above-described embodiment method, and described storage medium can be: ROM/RAM, magnetic disc, CD, storage card etc.
Although below invention has been described in conjunction with the preferred embodiments, but it should be appreciated by those skilled in the art, method and system of the present invention is not limited to the embodiment described in the embodiment, in the situation that does not deviate from the spirit and scope of the invention that is limited by appended claims, can make various modifications, increase and replacement to the present invention.