This application is based upon and claims the benefit of priority from the prior Taiwan Patent Application No. 098120894, filed Jun. 22, 2009, the entire contents of which are incorporated herein by reference.
1. Field of the Invention
The present invention generally relates to touch detection methods, and more particularly to a method for detecting touch position that can obtain quite accurate coordinates of one or more touching points.
2. Description of Prior Art
Nowadays, touch panels have been increasingly widely used in electronic devices for inputting information, such as control commands. A user may input commands for writing letters, scrolling windows and virtual keys, only by an object (such as one's finger, a touch pen, etc.) touching or sliding on a touch panel to caught a relative shift or an absolute coordinates shift of a cursor. For example, a capacitive touch panel can be used by a user moving his/her finger(s) on the smooth panel, so as to control a shift of the cursor. When the user's finger touches the panel, energies in a first sensing direction and a second sensing direction of a touching point may be changed. The obtained energies can be used for determining if the capacitive touch panel is touched by an object and for calculating the position coordinates of the touching point. In addition, the capacitive touch panel is so thin that it can be configured in a super-thin notebook, keypad, digital player and another electronic device. The capacitive touch panel is easy to maintain due to its non-mechanical design, thus, the capacitive touch panel is popular and widely used.
Besides, there are also many other touch detection methods for single-touch panels and multi-touch panels. However, the output coordinates of a touching point of the present methods for detecting touch position may be not accurate enough to meet the users' requirement of high touch detection accuracy. Therefore, there is room for improvement within the art of the method for detecting touch position.
One objective of the present invention is to provide a method for detecting touch position that can obtain quite accurate coordinates of one or more touching point.
In a first aspect of an embodiment of the present invention, a method for detecting touch position comprises steps of: detecting a plurality of first sensing points for obtaining at least one first signal and a plurality of second signals on the first sensing points, wherein the at least one first signal each has an energy above a first preset threshold, the second signals each has an energy below the first preset threshold, positions of the first sensing points where the second signals being detected are successive with a position(s) of the sensing point(s) where the at least one first signal being detected; and performing a weighted averaging operation applied to the energies of the at least one first signal and the second signals and taking a result of the weighted averaging operation as a first dimension coordinate of a touching point, wherein weights of the respective energies of the at least one first signal and the second signals are associated with the positions of the first sensing points where the at least one first signal and the second signals being detected.
According to the first aspect, the weights of the energies of the at least one first signal and the second signals are in a descending order or an ascending order according to the precedence of the positions of the first sensing points where the at least one first signal and the second signals being detected.
According to still the first aspect, the positions of the first sensing points where the plurality of second signals being detected are at both sides of the position(s) of the first sensing point(s) where the at least one first signal being detected. Further, the positions of the first sensing points where the second signals being detected have an equal number at both sides of the position(s) of the first sensing point(s) of the at least one first signal.
According to yet the first aspect, the method for detecting touch position further comprises steps of: detecting a plurality of second sensing points for obtaining at least one third signal and a plurality of fourth signals on the second sensing points, wherein the at least one third signal each has an energy above a second preset threshold, the fourth signals each has an energy below the second preset threshold, positions of the second sensing points where the fourth signals being detected are successive with a position(s) of the second sensing point(s) where the at least one third signal being detected; and performing a weighted averaging operation applied to the energies of the at least one third signal and the fourth signals and taking a result of the weighted averaging operation as a second dimension coordinate of a touching point, wherein weights of the respective energies of the at least one third signal and the fourth signals are associated with the positions of the second sensing points where the at least one third signal and the fourth signals being detected.
According to above method, the weights of the energies of the at least one third signal and the fourth signals are in a descending order or an ascending order according to the precedence of the positions of the second sensing points where the at least one third signal and the fourth signals being detected.
According to above method, the positions of the second sensing points where the fourth signals being detected are at both sides of the position(s) of the second sensing point(s) where the at least one third signal being detected. Further, the positions of the second sensing points where the fourth signals being detected have an equal number at both sides of the position(s) of the second sensing point(s) of the at least one third signal.
In a second aspect, a method for detecting touch position comprises steps of: detecting a plurality of first sensing points, obtaining a plurality of first signals on the first sensing points, wherein first signals each has an energy above a first preset threshold; sorting the first signals into a plurality of first groups, wherein the first sensing points where the first signals being detected having successive positions are sorted into a same group, and the first sensing points where the first signals being detected having non-successive positions are sorted into another group; and performing a weighted averaging operation applied to the energies of each of the first groups and a plurality of second signals having energies below the first preset threshold, and taking a result of the weighted averaging operation as a first dimension coordinate of one of a plurality of touching points, wherein positions of the first sensing points where each of the first groups being detected are successive with the positions of the first sensing points where the second signals of the first groups being detected, and weights of the respective energies of each of the first groups and the corresponding second signals of the first groups are associated with the positions of the first sensing points where the first groups and the second signals being detected.
According to the second aspect, the weights of the energies of each first group and the corresponding second signals of the first group are in a descending order or an ascending order according to the precedence of the positions of the first sensing points where the first groups and the second signals being detected.
According to still the second aspect, the positions of the first sensing points where the corresponding second signals of one of the first groups being detected are at both sides of the positions of the first sensing points where the first group being detected. Further, the positions of the first sensing points where the corresponding second signals of one of the first groups being detected have an equal number at both sides of the positions of the first sensing points where the first group being detected.
According to yet the second aspect, the method for detecting touch position further comprises steps of: detecting a plurality of second sensing points for obtaining a plurality of third signals on the second sensing points, wherein third signals each has an energy above a second preset threshold; sorting the third signals into a plurality of second groups, wherein the second sensing points where the third signals being detected having successive positions are sorted into a same group, and the second sensing points where the third signals being detected having non-successive positions are sorted into another group; and performing a weighted averaging operation applied to the energies of each of the second groups and a plurality of corresponding fourth signals having energies below the second preset threshold, and taking a result of the weighted averaging operation as a second dimension coordinate of one of a plurality of touching points, wherein positions of the second sensing points where each of the second groups being detected are successive with the positions of the second sensing points where the corresponding fourth signals of the second groups being detected, and weights of the respective energies of each of the second groups and the corresponding fourth signals of the second groups are associated with the positions of the second sensing points where the second groups and the corresponding fourth signals being detected.
According to above method, the weights of the energies of each second group and corresponding fourth signals of the second group are in a descending order or an ascending order according to the precedence of the positions of the second sensing points where the second groups and the corresponding fourth signals being detected.
According to above method, the positions of the second sensing points where the corresponding fourth signals of one of the second groups being detected are at both sides of the positions of the second sensing points where the second group being detected. Further, the positions of the second sensing points where the corresponding fourth signals of one of the second groups being detected have an equal number at both sides of the positions of the second sensing points where the second group being detected.
In a third aspect, a method for detecting touch position comprises steps of: detecting a plurality of first sensing points for obtaining a plurality of first signal groups on the first sensing points, wherein each of the first signal groups includes at least one first signal and a plurality of corresponding second signals, the at least one first signal each has an energy above a first preset threshold, the corresponding second signals each has an energy below the first preset threshold, positions of the first sensing points where the corresponding second signals of each first signal group being detected are successive with a position(s) of the sensing point(s) where the at least one first signal being detected; and performing a weighted averaging operation applied to the energies of the at least one first signal and the corresponding second signals of each first signal group and taking a result of the weighted averaging operation as a first dimension coordinate of one touching point of a plurality touching points, wherein weights of the respective energies of the at least one first signal and the corresponding second signals of each first signal group are associated with the positions of the first sensing points where the at least one first signal and the corresponding second signals being detected. Further, if the number of the at least one first signal is more than two, the positions of the first sensing points where the more than two first signals being detected are successive.
According to the third aspect, the weights of the energies of the at least one first signal and the corresponding second signals of each of the first signal groups are in a descending order or an ascending order according to the precedence of the positions of the first sensing points where the at least one first signals and the corresponding second signals of the first signal groups.
According to the third aspect, the method for detecting touch position further comprises steps of: detecting a plurality of second sensing points for obtaining a plurality of second signal groups on the first sensing points, wherein each of the second signal groups includes at least one third signal and a plurality of corresponding fourth signals, the at least one third signal each has an energy above a second preset threshold, the corresponding fourth signals each has an energy below the second preset threshold, positions of the second sensing points where the corresponding fourth signals of each second signal group being detected are successive with a position(s) of the sensing point(s) where the at least one third signal being detected; and performing a weighted averaging operation applied to the energies of the at least one third signal and the corresponding fourth signals of each second signal group and taking a result of the weighted averaging operation as a second dimension coordinate of one touching point of a plurality touching points, wherein weights of the respective energies of the at least one third signal and the corresponding fourth signals of each second signal group are associated with the positions of the second sensing points where the at least one third signal and the corresponding fourth signals being detected. Further, if the number of the at least one third signal is more than two, the positions of the second sensing points where the more than two third signals being detected are successive.
According to still the third aspect, the weights of the energies of the at least one third signal and the corresponding fourth signals of each of the second signal groups are in a descending order or an ascending order according to the precedence of the positions of the second sensing points where the at least one third signals and the corresponding fourth signals of the second signal groups.
The exemplary embodiments of the present invention has a preset threshold, when a signal having energy above the preset threshold being sensed, the signal together with the other signal(s) that having energy below the preset threshold and having sensing points being detected successive with the sensing points of the signal may be applied for a weighted average operation to calculate the coordinates of a single touching point, thus, the obtained result should be quite accurate. Besides, the exemplary embodiment of the present invention can also be used for calculating the coordinates of two or more touching points by applying groups and weights, thus, the exemplary embodiment of the present invention is applicable for detection of multi-touching points.
These and other features and advantages of the various embodiments disclosed herein will be better understood with respect to the following description and drawings, in which like numbers refer to like parts throughout, and in which:
As shown in
Referring to
As per descriptions above, a two-dimensional coordinate of a single touching point, that is, the X-coordinate and Y-coordinate of the touching point in the embodiment can be obtained.
Referring to
As shown in
Further, when calculating X-coordinate of the second touching point using the group 23, energies SF and SH of the signals on PF and PH at both sides of PG are taken as weights for calculation. The signals on PF and PH respectively having energies SF and SH both below the preset threshold 201 are described as second signals. The first signals and the second signals corresponding to energies SF, SG, and SH together form another signal group. The X-coordinate of the touching point can be calculated by an expression (2.3): (SF×PF+SG×PG+SH×PH)/(SF+SG+SH). According to the expression (2.3), the weights of energies SF, SG of the first signals and SH of the second signals are associated with the positions PF, PG, and PH of the sensing points of the first signals and the second signals in sensing direction X, and the positions PF, PG, and Ph of the sensing points of the first signals and the second signals in sensing direction X are sorted in a descending order or an ascending order according to the precedence of the positions of the sensing points where the first signals and the second signals being detected. That is, the value of the PF, PG, and PH are sorted in a descending order or an ascending order. In addition, the positions PF, PH of the sensing points of the second signals in sensing direction X are located at both sides of the positions PG of the sensing points of the first signals in sensing direction X. The sensing points of the second signals have an equal number at both sides of the sensing points of the first signals in sensing direction X. It should be understood, in the embodiment, the energies SE and SI and the positions PE and PI of the sensing points corresponding to SE, SI in sensing direction X can also be applied into the expression (2.3) to calculate the X-coordinate of the second touching point. In other words, in sensing direction X, the number of the second signal(s) in a signal group can be set according to actual requirement.
Referring to
Further, when calculating Y-coordinate of the second touching point using the group 24, energies Se, Sh of the signals on Pe, Ph and beside Pf, Pg are taken as weights for calculation. The signals on Pe and Ph respectively having energies Se and Sh both below the preset threshold 203 are described as second signals. The first signals and the second signals corresponding to energies Se, Sf, Sg and Sh together form another signal group. The Y-coordinate of the second touching point can be calculated by an expression (2.4): (Se×Pe+Sf×Pf+Sg×Pg+Sh×Ph)/(Se+Sf+Sg+Sh). According to the expression (2.4), in sensing direction Y, the weights of energies Sf, Sg and Se, Sh of the first signals and the second signals are associated with the positions Pe, Pf, Pg and Ph of the sensing points of the first signals and the second signals, and the positions Pe, Pf, Pg and Ph of the sensing points where the first signals and the second signals being detected are sorted in a descending order or an ascending order according to the precedence of the positions of the sensing points where the first signals and the second signals being detected. That is, the value of the Pe, Pf, Pg and Ph are sorted in a descending order or an ascending order. In addition, in sensing direction Y, the positions Pe, Ph of the sensing points where the second signals being detected are located at both sides of the positions Pf and Pg of the sensing points where the first signals being detected. The sensing points where the second signals being detected have an equal number at both sides of the sensing points where the first signals being detected. It should be understood, in the embodiment, the energies Sd and Si and the positions Pd and Pi of the sensing points corresponding to Sd, Si in sensing direction Y can also be applied into the expression (2.4) to calculate the Y-coordinate of the second touching point. In other words, in sensing direction Y, the number of the second signal(s) in a signal group can be set according to actual requirement.
The relationship of above X-coordinates and Y-coordinates can be determined by reference of traditional ghost point eliminating means. For example, if a determined result of above embodiment by reference of traditional ghost point eliminating means is that, the groups 21 and 22 are a valid combination for a touching point, the groups 23 and 24 are a valid combination for another touching point, thus, the X-coordinate and Y-coordinate of the first touching point can be obtained by a combination of the groups 21 and 22, and the X-coordinate and Y-coordinate of the second touching point can be obtained by a combination of the groups 23 and 24. Thus, a two-dimensional coordinate of a plurality of touching points, that is, the X-coordinates and Y-coordinates of the plurality of touching points in the embodiment can be obtained.
In the embodiments, above energy of each the at least one first signal or the second signals can respectively be amplitude of a voltage or a current on the corresponding sensing point or of the corresponding signal.
As stated above, the exemplary embodiment of the present invention has a preset threshold, when a signal having energy above the preset threshold being sensed, the signal together with the other signal(s) that having energy below the preset threshold and having sensing points located beside the signal may be applied for a weighted average operation to calculate the coordinates of a single touching point, thus, the obtained result should be quite accurate. In addition, the exemplary embodiment of the present invention can also be used for calculating the coordinates of two or more touching points by group and weight, thus, the exemplary embodiment of the present invention is applicable for detection of multi-touching points.
The above description is given by way of example, and not limitation. Given the above disclosure, one skilled in the art could devise variations that are within the scope and spirit of the invention disclosed herein, including configurations ways of the recessed portions and materials and/or designs of the attaching structures. Further, the various features of the embodiments disclosed herein can be used alone, or in varying combinations with each other and are not intended to be limited to the specific combination described herein. Thus, the scope of the claims is not to be limited by the illustrated embodiments.
Number | Date | Country | Kind |
---|---|---|---|
098120894 | Jun 2009 | TW | national |