Summary of the invention
In view of this, the invention provides a kind of be pressed method of position of touch screen of judging,, select to decide pressing position, and increase for the accuracy of judging on the pressing position than the sampling spot of tool meaning with reference to the detected force value of a plurality of sampling spots.
For reaching above-mentioned or other purposes, the present invention proposes a kind of be pressed method of position of touch screen of judging, be applicable to electronic installation with touch screen, the method comprises the following steps: the coordinate figure and the force value of m the sampling spot (sample) that a. detection touch screen is pressed continuously, and wherein m is a positive integer; B. compare the force value of this m sampling spot, find out the highest n of a force value sampling spot, wherein n is a positive integer; C. the coordinate figure of this n sampling spot is average, and obtain the 1st position that touch screen is pressed.
In an embodiment of the present invention, said method also comprises steps d, continue to detect the next sampling spot that is pressed, and get the force value that detects a continuous m sampling spot at last and compare, find out the highest n of a force value sampling spot, and the coordinate figure of this n sampling spot is average, and obtain the 2nd position that touch screen is pressed.
In an embodiment of the present invention, said method also comprises step e, repeats above-mentioned steps d, continues to detect the next sampling spot that is pressed, and till can't detecting sampling spot, and obtains the k position at last, and wherein k is a positive integer.
In an embodiment of the present invention, said method comprises that also the 1st~k position of will calculate gained is sent to the operating system of electronic installation, and by the operating system of electronic installation according to the distance between the 1st position and the k position, choose at least one object that is presented on the touch screen.Wherein, when the distance between the 1st position and the k position during, promptly choose the 1st position or the locational object of k that are presented at touch screen less than a preset value; And, then be the object of choosing between the 1st position and k position in the scope chosen when the distance between the 1st position and the k position during greater than a preset value.
In an embodiment of the present invention, the force value of this m of above-mentioned comparison sampling spot, the step of finding out the highest n of a force value sampling spot also comprises and neglects the 1st~i sampling spot in the detected m sampling spot, and the force value of the i+1~m sampling spot relatively only, to find out the highest n of a force value sampling spot, wherein i is a positive integer.
In an embodiment of the present invention, the coordinate figure of above-mentioned sampling spot comprises horizontal coordinate value and vertical coordinate value, and above-mentioned electronic installation comprise mobile phone, personal digital assistant and notebook computer one of them.
The present invention proposes a kind of be pressed method of position of touch screen of judging, be applicable to electronic installation with touch screen, the method comprises the following steps: the coordinate figure and the force value of m the sampling spot (sample) that a. detection touch screen is pressed continuously, and wherein m is a positive integer; B. compare the force value of this m sampling spot, find out the highest n of a force value sampling spot, wherein n is a positive integer; C. calculate the mean value AVG and the standard deviation SD of the force value of this n sampling spot; D. choose in this m sampling spot, force value fall within doubly standard deviation of mean value plus-minus f (sampling spot in the scope of AVG ± f * SD), wherein f is a positive integer; E. the coordinate figure of selected sampling spot is average, obtain the 1st position that touch screen is pressed.
The present invention proposes a kind of be pressed method of position of touch screen of judging, is applicable to the electronic installation with touch screen, and the method comprises the following steps: that a. detects the coordinate figure and the force value of a plurality of sampling spots that touch screen is pressed; B. get m individual sampling spot of j in these sampling spots~(m+j-1), relatively the force value of this m sampling spot is found out the highest n of a force value sampling spot, and wherein j, m and n are positive integer; C. the coordinate figure of this n sampling spot is average, obtain the 1st position that touch screen is pressed.
In an embodiment of the present invention, said method also comprises steps d, get the individual sampling spot of j+1 in these sampling spots~(m+j), and the force value of this m of comparison sampling spot, find out the highest n of a force value sampling spot, again that the coordinate figure of this n sampling spot is average, obtain the 2nd position that touch screen is pressed.
In an embodiment of the present invention, said method also comprises step e, repeats above-mentioned steps d, all is used to calculate with till obtaining the p position up to the coordinate figure and the force value of all detected sampling spots.
The present invention proposes a kind of be pressed method of position of touch screen of judging, is applicable to the electronic installation with touch screen, and the method comprises the following steps: that a. detects the coordinate figure and the force value of a plurality of sampling spots that touch screen is pressed; B. get m individual sampling spot of j in these sampling spots~(m+j-1), relatively the force value of this m sampling spot is found out the highest n of a force value sampling spot, and wherein j, m and n are positive integer; C. calculate the mean value AVG and the standard deviation SD of the force value of this n sampling spot; D. choose its force value fall within doubly standard deviation of mean value plus-minus f (sampling spot in the scope of AVG ± f * SD), wherein f is a positive integer; E. the coordinate figure of selected sampling spot is average, obtain the 1st position that touch screen is pressed.
The present invention is by force value and coordinate figure with reference to the detected a plurality of touch points of touch screen, only select the highest or force value of force value wherein to wait a plurality of sampling spots to calculate the actual position that is pressed of touch screen near being positioned at the ensemble average value, to increase the be pressed accuracy of position of touch screen judgement than the tool meaning.
For above-mentioned and other purposes, feature and advantage of the present invention can be become apparent, preferred embodiment cited below particularly, and conjunction with figs. are described in detail below.
Embodiment
In general, touch screen is the mode that adopts a plurality of sampling spots of continuous detecting in the single time when judging the position that the user pushes, and with the coordinate figure of these sampling spots on average as its judged result.Yet in the application of reality, the detected sampling spot meeting of touch screen is different with the screen contact site because of angle, power, finger that the user pushes screen, and different distribution modes is arranged.
Can find that via the touching behavior of analyzing general user the screen position that the user really wants to click is exactly the bigger position of its pressing force usually.Therefore, as long as judge pressing position, can infer usually the position that the user desires to push according to the size of the detected force value of each sampling spot.The present invention promptly be based on above-mentioned notion develop out a kind ofly judge the be pressed method of position of touch screen.In order to make content of the present invention more clear, below the example that can implement according to this really as the present invention especially exemplified by embodiment.
Fig. 1 is the be pressed method flow diagram of position of the judgement touch screen that illustrates according to one embodiment of the invention.Please refer to Fig. 1, present embodiment is applicable to the electronic installation with touch screen, and this electronic installation comprises portable electronic devices such as mobile phone, personal digital assistant or notebook computer, and does not limit its scope.Below promptly introduce the detailed step of the method:
At first, in step S110, the coordinate figure and the force value of m the sampling spot (sample) that elder generation's detection touch screen is pressed, wherein m is a positive integer.These sampling spots for example are in a Preset Time, force value that touch screen detects surpasses the touch points of a preset threshold value (Threshold), and after touch screen detects a sampling spot, the coordinate figure of this sampling spot and force value promptly can be transferred in the processor of electronic installation, further to calculate pressing position.
Then, in step S120, after electronic installation receives the coordinate figure and force value of a plurality of sampling spots, promptly can compare the force value of the continuous m sampling spot that detects, find out the highest n of a force value sampling spot, wherein n is a positive integer.Wherein, the coordinate figure of above-mentioned sampling spot comprises horizontal coordinate value and vertical coordinate value.
At last, in step S130, then be that the coordinate figure of this n sampling spot is average, and obtain the position that this touch screen is pressed.Wherein, because this position is that the coordinate figure of taking the highest several sampling spots of force value is calculated, rather than the coordinate figure of taking gross sample point comes average, therefore angle, power, finger and screen contact site when person capable of reducing using touches are not equal " human factor " influence that caused, improve the be pressed accuracy of position of judgement touch screen.
What deserves to be mentioned is, be to find according to the analysis result of touching behavior equally, and factor affecting such as the angle that preceding several sampling spots that common user touches screen can be touched, custom are not high with reference to degree.Therefore, the present invention also is included in when choosing sampling spot, neglects detected preceding several sampling spots, and only considers the force value of remaining sampling spot, and finds out the highest n of a force value sampling spot.
For instance, the coordinate figure and the force value of the sampling spot that detects of touch screen that table 1 is classified as.Wherein, the order that on behalf of sampling spot, the 1st row be detected, the X in the 2nd row represent horizontal coordinate value of sampling spot, the vertical coordinate value that Y represents sampling spot, and P is the inverse of representative pressure value then, that is to say, and the P measured force value of little representative that heals heals greatly.The statistical result showed of table 1, the position deviation comparatively of several sampling spots before touch screen is detected is not so actual when choosing sampling spot with the comparative pressure value, these sampling spots are just considered, with the accuracy of raising judged result.
| Sampling spot |
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
| Coordinate figure |
X:864 Y:3172 |
X:850 Y:3163 |
X:803 Y:3145 |
X:804 Y:3158 |
X:802 Y:3161 |
X:810 Y:3167 |
X:810 Y:3164 |
X:811 Y:3165 |
X:810 Y:3162 |
| Force value |
P:9616 |
P:6936 |
P:5428 |
P:5201 |
P:4651 |
P:4471 |
P:4203 |
P:4119 |
P:4033 |
| Sampling spot |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
| Coordinate figure |
X:811 Y:3156 |
X:808 Y:3148 |
X:808 Y:3145 |
X:809 Y:3141 |
X:814 Y:3134 |
X:820 Y:3133 |
X:829 Y:3136 |
X:847 Y:3134 |
X:851 Y:3083 |
| Force value |
P:4071 |
P:4290 |
P:4476 |
P:4878 |
P:5315 |
P:5945 |
P:6938 |
P:9071 |
P:12654 |
Table 1
By above-mentioned steps, electronic installation can be judged the position that touch screen is pressed from detected m continuous sampling spot.Yet, the present invention comprises that also continuation detects the next sampling spot that is pressed, and get the force value that detects a continuous m sampling spot at last and compare, find out the highest n of a force value sampling spot, and it is the coordinate figure of this n sampling spot is average, obtain the 2nd position that touch screen is pressed, and repetition above-mentioned steps, continue to detect the next sampling spot that is pressed, till can't detecting sampling spot, and obtain the k position at last, wherein k is a positive integer, and then the 1st~k position of above-mentioned acquisition is sent to operating system judges user's touching behavior with the operating system that electronic installation is provided, carry out according to this and choose action.Describe in detail for an embodiment again with next:
Fig. 2 is the be pressed method flow diagram of position of the judgement touch screen that illustrates according to one embodiment of the invention.Please refer to Fig. 2, present embodiment is applicable to the electronic installation with touch screen, and this electronic installation comprises portable electronic devices such as mobile phone, personal digital assistant or notebook computer, and does not limit its scope.Below promptly introduce the detailed step of the method:
At first, in step S210, the coordinate figure and the force value of a plurality of sampling spots that elder generation's detection touch screen is pressed, wherein m is a positive integer.Then, in step S220, after electronic installation receives the coordinate figure and force value of m sampling spot, promptly can compare the force value of this m sampling spot, find out the highest n of a force value sampling spot, wherein n is a positive integer.Then, in step S230, then be that the coordinate figure of this n sampling spot is average, and obtain the position that touch screen is pressed that this position is the 1st position.Above step S210~S230 is all same or similar with the step S110~S130 of previous embodiment, so this repeats no more its detailed content again.
After obtaining this position that is pressed, in step S240, be about to the operating system that this position of calculating gained is sent to electronic installation.And in step S250, electronic installation can judge whether further that then its touch screen can't detect sampling spot.If not, continue to detect the next sampling spot that is pressed, and get the force value that detects a continuous m sampling spot at last and compare, find out the highest n of a force value sampling spot, and it is the coordinate figure of this n sampling spot is average, obtain one the 2nd position that this touch screen is pressed, the 2nd position is sent to the operating system of electronic installation, then repeat above-mentioned steps, till can't detecting sampling spot, and obtain a k position at last, and be sent to the operating system of electronic installation, wherein k is a positive integer.The usefulness of this step is intended to, and user's operational motion is except simple choosing, and the action that also comprises towing is interior, and when carrying out the action of towing, and finger can rest on and continue the touching screen on the touch screen and slide on screen.
In order effectively to detect and judge user's operational motion, when electronic installation finds that touch screen still can detect sampling spot, then get back to step S210, repeated execution of steps S210~S240, to continue the detection sampling spot, to choose the highest sampling spot of force value, and the coordinate figure mean deviation of sampling spot is sent to electronic installation, when treating that touch screen detects less than sampling spot, just enter step S260,, carry out and choose action according to the relativeness between each position that is received by the operating system of electronic installation.
What deserves to be mentioned is that the foregoing description is when whenever detecting a sampling spot, selects the force value of a last m sampling spot to compare immediately, to obtain desired position information.Yet, in another embodiment, electronic installation also can be behind a plurality of sampling spots of continuous detecting, m sampling spot calculates the 1st position before these sampling spots j selects individual to (m+j-1) again, j wherein, m and n are positive integer, and then select that j+1~(m+j) individual k~(m+k-1) individual sampling spot calculates the 2nd position, the k position, so repeat to select and calculate, all be used to calculate with till obtaining last position (p position) and going out positional information up to the coordinate figure of all detected sampling spots and force value, and transmit the operating system of the 1st~p position of calculating gained to this electronic installation, go out pressing position for system's subsequent calculations.Can reach the effect that the present invention improves the accuracy of judging the position that is pressed equally.
In addition, in step S260, when the operating system of electronic installation finds that distance between its 1st of receiving and last p the position is less than a preset value, then can choose and be positioned at these locational objects in its screen, this is the so-called action that clicks merely.On the other hand, when the operating system of electronic installation finds that distance between its 1st of receiving and last p the position is greater than a preset value, then can choose between the object in the scope chosen between these two positions, this is that so-called pull-type is chosen action.Yet above-mentioned two kinds of judgment modes of choosing action are only for illustrating, and are not in order to limiting the scope of the invention, and the operator who knows this area is when visual actual needs, and design is chosen action corresponding to the difference of diverse location relation.
Fig. 3 is the be pressed method synoptic diagram of position of the judgement touch screen that illustrates according to one embodiment of the invention.Wherein, Fig. 3 (a) illustrate is for being presented at a form of touch screen, and hypothetical target 310 persons of being to use want the position that clicks.The user is after pushing touch screen, and touch screen can detect a plurality of sampling spots 320 that illustrated as Fig. 3 (b).These sampling spots 320 are after the method computing of position of being pressed through judgement touch screen of the present invention, and the position that is pressed of delivering to operating system at last then is illustrated in the judged result 330 shown in Fig. 3 (c).Comparison diagram 3 (b) and Fig. 3 (c) use the effectively spreading range of reduced sampling point of method of the present invention as can be known, and increase the accuracy that touch screen is judged the position that is pressed.
With next work effectiveness of lifting example explanation said method again, coordinate figure and force value with reference to the listed sampling spot of table 1, if getting the force value of the 1st~9 sampling spot in front compares, 3 the highest sampling spots of the force value that obtains be the 7th, 8, No. 9 sampling spot, shown in the 1st row of table 2:
| Force value |
1:9616 |
2:6936 |
3:5428 |
4:5201 |
5:4651 |
6:4471 |
7:4203 |
8:4119 |
9:4033 |
| Force value |
2:6936 |
3:5428 |
4:5201 |
5:4651 |
6:4471 |
7:4203 |
8:4119 |
9:4033 |
10:9616 |
Table 2
This moment is average with the coordinate figure of these 3 sampling spots again, can obtain the position that touch screen is pressed:
P1(x,y)=[(810,3164)+(811,3165)+(810,3162)]/3=(810,3163)
Then, when detecting the 10th sampling spot, then be that the force value of getting back 9 sampling spots compares, then can obtain 3 the highest sampling spots of force value and be the 8th, 9, No. 10 sampling spot (shown in the 2nd row of table 2), this moment can be average with the coordinate figure of these 3 sampling spots, and obtain the position that touch screen is pressed:
P2(x,y)=[(811,3165)+(810,3162)+(811,3156)]/3=(811,3161)
By that analogy, Yi Bian detect sampling spot, calculate the position that is pressed Yi Bian then get last detected 9 sampling spots, till touch screen detects less than sampling spot.Table 3 is classified the position that is pressed of the operating system that is sent to electronic installation as, and wherein, existing method is that to get the coordinate figure of 6 sampling spots average, and method of the present invention then is that the coordinate figure of getting 3 sampling spots that force value is the highest in 9 sampling spots comes average.As shown in Table 3, the coordinate figure scope of existing method extends to 23 pixels in X-direction, extends to 35 pixels on Y direction; Method of the present invention only extends to 3 pixels on X-direction, also only extend to 14 pixels on Y direction, and is obviously accurate than existing methods.
| Sequence |
Method of the present invention |
Existing method |
| 6 |
N/A |
(822,3161) |
| 7 |
N/A |
(813,3160) |
| 8 |
N/A |
(806,3160) |
| 9 |
(810,3163) |
(807,3163) |
| 10 |
(811,3161) |
(809,3163) |
| 11 |
(811,3161) |
(810,3160) |
| 12 |
(811,3161) |
(810,3157) |
| 13 |
(811,3161) |
(810,3153) |
| 14 |
(811,3161) |
(810,3148) |
| 15 |
(811,3161) |
(812,3143) |
| 16 |
(811,3161) |
(815,3140) |
| 17 |
(810,3155) |
(821,3137) |
| 18 |
(809,3150) |
(828,3127) |
Table 3
Except the highest sampling spot of above-mentioned selection pressure value calculates the mode of the position that is pressed, the present invention also comprises the mean value and the standard deviation of the force value that calculates continuous a plurality of sampling spots, with the foundation of sampling spot alternatively, describe in detail for an embodiment again with next:
Fig. 4 is the be pressed method flow diagram of position of the judgement touch screen that illustrates according to another embodiment of the present invention.Please refer to Fig. 4, present embodiment is applicable to the electronic installation with touch screen, and this electronic installation comprises portable electronic devices such as mobile phone, personal digital assistant or notebook computer, and does not limit its scope.Below promptly introduce the detailed step of the method:
At first, in step S410, the coordinate figure and the force value of m the sampling spot that elder generation's detection touch screen is pressed, m is a positive integer.Then, in step S420, after electronic installation receives the coordinate figure and force value of a plurality of sampling spots, promptly can compare the force value of the continuous m sampling spot that detects, find out the highest n of a force value sampling spot, wherein n is a positive integer.Above step S410~S420 is all same or similar with the step S310~S320 of previous embodiment, so its detailed content does not repeat them here.
Yet, different with previous embodiment is, present embodiment is in step S430, the mean value AVG and the standard deviation SD that also comprise this n of further calculating sampling spot force value, and in step S440, then be to choose force value to fall within doubly standard deviation of this mean value plus-minus f (a plurality of sampling spots in the scope of AVG ± f*SD).Wherein, (for example finger tip contacted earlier for different (for example nail contacts earlier) of finger and screen contact site or the difference of engagement sequence when the usefulness that above-mentioned reference pressure value mean value and standard deviation are chosen sampling spot was intended to avoid the user to operate, refer to contact behind the abdomen), and cause the highest force value can depart from the result that the user wants chosen position.And choose sampling spot by the force value mean value and the standard deviation of reference sampling spot, can solve such problem.
After choosing sampling spot according to the mean value of sampling spot force value and standard deviation, in step S450, can the coordinate figure of these selected sampling spots is average, and obtain the position that touch screen is pressed.
Subsequent step in step S460, is sent to this position of calculating gained the operating system of electronic installation then as described in the previous embodiment.In step S470, electronic installation can judge whether further that then its touch screen can't detect sampling spot, if when finding that touch screen still can detect sampling spot, then get back to step S410, repeated execution of steps S410~S460, continue detecting sampling spot, to choose sampling spot, the coordinate figure mean deviation of sampling spot is sent to electronic installation; And when touch screen detects less than sampling spot, just enter step S480, according to the relativeness between each position that is received, action is chosen in execution by the operating system of electronic installation.
What deserves to be mentioned is that the foregoing description is progressively to get m sampling spot to find out the highest sampling spot of force value and calculate its mean value and standard deviation in detected a plurality of sampling spots, and then select sampling spot to calculate the position that touch screen is pressed.Yet, in another embodiment, also can be when detecting m sampling spot, promptly find out the highest sampling spot of force value earlier and calculate its mean value and standard deviation, and then select sampling spot to calculate the position that touch screen is pressed, and the up-to-date position of double counting during 1 sampling spot of every afterwards detection, and can grasp the information of the position that touch screen is pressed immediately.
In addition, in another embodiment, electronic installation also can be behind a plurality of sampling spots of continuous detecting, m sampling spot before these sampling spots j selects individual to (m+j-1) again, find out the highest n of a force value sampling spot, and the mean value AVG and the standard deviation SD of n sampling spot force value of calculating, choose its force value and fall within doubly this standard deviation of this mean value plus-minus f (a plurality of sampling spots in the scope of AVG ± f * SD), wherein f is a positive integer, so that the coordinate figure of those selected sampling spots is average, obtain the position that this touch screen is pressed, j wherein, m and n are positive integer, so repeat to select and calculate, coordinate figure and force value up to all detected sampling spots all are used to calculate with till obtaining last position, and transmit the operating system of the position of calculating gained to this electronic installation, and go out pressing position for system's subsequent calculations, can reach the effect that the present invention improves the accuracy of judging the position that is pressed equally.
In addition, among the above-mentioned steps S420,, find out the highest n of a force value sampling spot though be from the force value of detected m continuous sampling spot.Yet, the problem that above-mentioned top pressure value departs from if the user of electronic installation desires to forgo, then can directly go and choose the highest m of a force value sampling spot (being n=m), that is to say all sampling spots are averaged and standard deviation, and as the foundation of choosing sampling spot.
In sum, in judgement touch screen of the present invention is pressed the method for position, with reference to the force value of a plurality of sampling spots that detect, choose than the top pressure value of tool meaning or fall near a plurality of sampling spots of integral pressure value average, and the position that the judgement touch screen is pressed.In view of the above, can forgo that some are accustomed to the different false judgment that caused because of the user, and increase the accuracy that touch screen is judged the position that is pressed.
Though the present invention discloses as above with preferred embodiment; right its is not in order to limiting the present invention, anyly has the knack of this skill person, without departing from the spirit and scope of the present invention; when can doing a little change and retouching, so protection scope of the present invention is when with being as the criterion that claim was defined.