The content of the invention
In view of above-mentioned the deficiencies in the prior art, it is an object of the invention to provide a kind of finger tilt based on touch screen is known
Other method, system and mobile terminal, it is desirable to provide a kind of function of the operation for being capable of identify that finger tilt, and can respond user with
The related operation of finger tilt.
Technical scheme is as follows:
A kind of finger tilt identification method based on touch screen, it is characterised in that including step:
A, when detect user touch touch screen when, triggering open finger tilt identification function;
B, acquisition finger touch area on the touchscreen, and the central point of the touch area is obtained as the first center
Point;
C, detect finger touch touch screen exceed the scheduled time after, again obtain finger Petting Area on the touchscreen
Domain, while obtain the central point of new touch area as the second central point;
D, judge whether the second central point deviates first nodal point preset distance, when being, then judge finger tilt.
The described finger tilt identification method based on touch screen, it is characterised in that step B is specifically included:
B1, acquisition finger touch area on the touchscreen, and obtain the touch area maximum Xmax, X in X-axis
Minima Ymin on the maximum Ymax in minima Xmin, Y-axis, Y-axis on axle;
B2, the central point for calculating the touch area, and using the central point as first nodal point:
Xmid=(Xmax+Xmin)/2;
Ymid=(Ymax+Ymin)/ 2, the Xmid are coordinate of the first nodal point in X-axis, and Ymid is first nodal point
Coordinate in Y-axis.
The described finger tilt identification method based on touch screen, it is characterised in that step C is specifically included:
C1, one intervalometer of unlatching, when the timing of the intervalometer is reached, judge whether user discharges touch screen, when
When being, finger tilt identification function is closed, otherwise into step C2;
C2, again acquisition finger touch area on the touchscreen, while obtain the central point conduct of new touch area
Second central point, and calculate coordinate X1mid of second central point in X-axis.
The described finger tilt identification method based on touch screen, it is characterised in that step D is specifically included:
When the second central point meets:Xmid-Xth≤X1mid≤Xmid+Xth, then judge that finger is not inclined;
When the second central point meets:Xmid+Xth < X1mid < Xmax, then judge that finger is tilted to the right;
When the second central point meets:Xmid-Xth > X1mid > Xmin, then judge that finger is tilted to the left;
Xth is a default threshold value.
The described finger tilt identification method based on touch screen, it is characterised in that the Xth is dynamic value:Xth=
(Xmin+Xmax)/3.
A kind of finger tilt identifying system based on touch screen, wherein, including:
Touch recognition module, for when user's touch touch screen is detected, finger tilt identification function is opened in triggering;
First acquisition module, for obtaining finger touch area on the touchscreen, and obtains the center of the touch area
Point is used as first nodal point;
Second acquisition module, for, after finger touch touch screen is detected more than the scheduled time, obtaining finger again and existing
Touch area on touch screen, while obtain the central point of new touch area as the second central point;
Judge module, for judging whether the second central point deviates first nodal point preset distance, when being, then judges handss
Refer to and incline.
The described finger tilt identifying system based on touch screen, wherein, first acquisition module includes:
First acquisition unit, for obtaining finger touch area on the touchscreen, and obtains the touch area in X-axis
Maximum Xmax, minima Xmin in X-axis, the maximum Ymax in Y-axis, minima Ymin in Y-axis;
Computing unit, for calculating the central point of the touch area, and using the central point as first nodal point:
Xmid=(Xmax+Xmin)/2;
Ymid=(Ymax+Ymin)/ 2, the Xmid are coordinate of the first nodal point in X-axis, and Ymid is first nodal point
Coordinate in Y-axis.
The described finger tilt identifying system based on touch screen, wherein, second acquisition module includes:
Judging unit, for opening an intervalometer, when the timing of the intervalometer is reached, judges whether user discharges
Touch screen, when being, closes finger tilt identification function;
Second acquisition unit, for when user does not discharge touch screen, obtaining finger Petting Area on the touchscreen again
Domain, while obtaining the central point of new touch area as the second central point, and calculates coordinate of second central point in X-axis
X1mid。
The described finger tilt identifying system based on touch screen, wherein, the judge module includes:
Identifying unit is not inclined, for meeting when the second central point:Xmid-Xth≤X1mid≤Xmid+Xth, then judge
Finger is not inclined;
Be tilted to the right identifying unit, if meeting for the second central point:Xmid+Xth < X1mid < Xmax, then judge handss
Point to right bank;
Be tilted to the left identifying unit, if meeting for the second central point:Xmid-Xth > X1mid > Xmin, then judge handss
Point to left bank;
Xth is a default threshold value.
A kind of mobile terminal, wherein, including finger tilt identifying system as above.
Beneficial effect:The present invention passes through to obtain two central points of the finger in the touch area of different time, according to two
Judging whether finger inclines, so as to identify the operation of finger tilt, and it is related to respond user for the deviation distance of central point
Action, invention increases touch screen finger tilt identification function, enrich the operation of touch screen, be that user brings
Brand-new touch screen operation experience.
Specific embodiment
The present invention provides a kind of based on the finger tilt identification method of touch screen, system and mobile terminal, for making the present invention
Purpose, technical scheme and effect it is clearer, clear and definite, the present invention is described in more detail below.It should be appreciated that this place
The specific embodiment of description only to explain the present invention, is not intended to limit the present invention.
Fig. 1 is referred to, Fig. 1 is flow chart of the present invention based on the finger tilt identification method preferred embodiment of touch screen,
As illustrated, which includes step:
S101, when detect user touch touch screen when, triggering open finger tilt identification function;
S102, finger touch area on the touchscreen is obtained, and the central point of the touch area is obtained as in first
Heart point;
S103, detect finger touch touch screen exceed the scheduled time after, again obtain finger on the touchscreen touch
Region is touched, while the central point of new touch area is obtained as the second central point;
S104, judge whether the second central point deviates first nodal point preset distance, when being, then judge finger tilt;
In step S101, when user's finger touch touch screen is detected, finger tilt identification function is opened in triggering, is known
Whether other finger inclines.
In step s 102, finger is obtained first in the touch area of touch screen, then obtains the center of the touch area
Used as first nodal point, specifically, which includes step to point:
S201, acquisition finger touch area on the touchscreen, and obtain maximum of the touch area in X-axis
Minima Ymin on the maximum Ymax in minima Xmin, Y-axis, Y-axis in Xmax, X-axis;As shown in Figures 2 and 3, handss
Refer to when touch screen is touched, it may be possible to which not inclined mode touches touch screen, it is also possible to which inclined mode touches touch screen, this
When first obtain finger in the touch area of touch screen, as shown in figure 4, the touch area on touch screen its be one it is irregular touch
Region is touched, the touch area can be obtained in the maximum of X-axis and Y-axis, minima, in the touch area, the abscissa of C points
The maximum Xmax for being the touch area in X-axis, the abscissa of A points is minima Xmin of the touch area in X-axis, B
The vertical coordinate of point is maximum Ymax of the touch area in Y-axis, the vertical coordinate of D points be the touch area in Y-axis most
Little value Ymin.
S202, the central point for calculating the touch area, and using the central point as first nodal point:
Xmid=(Xmax+Xmin)/2;
Ymid=(Ymax+Ymin)/ 2, as shown in figure 4, Xmid is coordinate of first nodal point M in X-axis, Ymid is the
Coordinates of the one central point M in Y-axis.
In step s 103, after finger touches touch screen certain hour, Petting Area of the finger in touch screen is obtained again
Domain, while obtaining the central point of new touch area as the second central point, which includes step:
S401, one intervalometer of unlatching, when the timing of the intervalometer is reached, judge whether user discharges touch screen,
When being, finger tilt identification function is closed, otherwise into step S402;Reaching the timing such as 200ms of intervalometer
When, whether detection user discharges touch screen, if it does, then directly terminating flow process, closes finger tilt identification function, otherwise
Obtain new touch area.
S402, again acquisition finger touch area on the touchscreen, while the central point for obtaining new touch area is made
For the second central point, and coordinate X1mid of second central point in X-axis is calculated, while can also obtain the coordinate Y1mid in Y-axis.
The step of during this, is identical with the process of the acquisition and calculating of first nodal point above, therefore repeats no more.
In step S104, this step is to detect that the second central point deviates the distance of first nodal point, specific as follows:
When the second central point meets:Xmid-Xth≤X1mid≤Xmid+Xth, then judge that finger is not inclined;
If the second central point meets:Xmid+Xth < X1mid < Xmax, then judge that finger is tilted to the right;
If the second central point meets:Xmid-Xth > X1mid > Xmin, then judge that finger is tilted to the left;
Xth is a default threshold value.
As shown in figure 5, when the second central point is located at scope 1, then judging that finger is tilted to the left, when the second central point is located at
During scope 2, then judge that finger is not inclined, when the second central point is located at scope 3, then judge that finger is tilted to the right.
Described Xth is a default threshold value, and the threshold value can be a dynamic value, such as Xth=(Xmin+Xmax)/
3。
After judging to finish, step S103 can be re-entered into, detection is re-started, persistently to detect whether finger inclines
Tiltedly, respond the operation of user.
In the present invention, can be using same principle judging the deviation distance of the vertical coordinate of the second central point, this and horizontal stroke
The determination methods of coordinate are identical, equally can realize that the whether inclined purpose of identification finger, i.e. identification finger are inclined upwardly or downwards
Incline.
Based on said method, the present invention also provides a kind of finger tilt identifying system based on touch screen, as shown in fig. 6,
Which includes:
Touch recognition module 100, for when user's touch touch screen is detected, finger tilt identification work(is opened in triggering
Energy;
First acquisition module 200, for obtaining finger touch area on the touchscreen, and obtains in the touch area
Heart point is used as first nodal point;
Second acquisition module 300, for, after finger touch touch screen is detected more than the scheduled time, obtaining finger again
Touch area on the touchscreen, while obtain the central point of new touch area as the second central point;
Judge module 400, for judging whether the second central point deviates first nodal point preset distance, when being, then sentences
Determine finger tilt.
Further, first acquisition module 200 includes:
First acquisition unit, for obtaining finger touch area on the touchscreen, and obtains the touch area in X-axis
Maximum Xmax, minima Xmin in X-axis, the maximum Ymax in Y-axis, minima Ymin in Y-axis;
Computing unit, for calculating the central point of the touch area, and using the central point as first nodal point:
Xmid=(Xmax+Xmin)/2;
Ymid=(Ymax+Ymin)/ 2, the Xmid are coordinate of the first nodal point in X-axis, and Ymid is first nodal point
Coordinate in Y-axis.
Further, second acquisition module 300 includes:
Judging unit, for opening an intervalometer, when the timing of the intervalometer is reached, judges whether user discharges
Touch screen, when being, closes finger tilt identification function;
Second acquisition unit, for when user does not discharge touch screen, obtaining finger Petting Area on the touchscreen again
Domain, while obtaining the central point of new touch area as the second central point, and calculates coordinate of second central point in X-axis
X1mid。
Further, the judge module 400 includes:
Identifying unit is not inclined, for meeting when the second central point:Xmid-Xth≤X1mid≤Xmid+Xth, then judge
Finger is not inclined;
Be tilted to the right identifying unit, if meeting for the second central point:Xmid+Xth < X1mid < Xmax, then judge handss
Point to right bank;
Be tilted to the left identifying unit, if meeting for the second central point:Xmid-Xth > X1mid > Xmin, then judge handss
Point to left bank;
Xth is a default threshold value.
The present invention also provides a kind of mobile terminal, and which includes finger tilt identifying system as above.Described movement
Terminal is the various handheld terminals such as mobile phone, PAD.
In sum, the present invention passes through to obtain two central points of the finger in the touch area of different time, according to two
Judging whether finger inclines, so as to identify the operation of finger tilt, and it is related to respond user for the deviation distance of central point
Action, invention increases touch screen finger tilt identification function, enrich the operation of touch screen, be that user brings
Brand-new touch screen operation experience.
It should be appreciated that the application of the present invention is not limited to above-mentioned citing, and for those of ordinary skills, can
To be improved according to the above description or be converted, all these modifications and variations should all belong to the guarantor of claims of the present invention
Shield scope.