Summary of the invention
Embodiments of the invention provide a kind of touch-screen multipoint positioning method, device and touch-screen equipment, can improve the possibility of the multiple touch points distinguishing close together, improve touch point positioning precision.
For achieving the above object, embodiments of the invention adopt following technical scheme:
The first aspect of the embodiment of the present invention, provides a kind of touch-screen multipoint positioning method to be applied to touch-screen equipment, and the touch-screen of described touch-screen equipment comprises first direction limit and second direction limit, and described method comprises:
Within a scan period, carry out the scanning of each direction of scanning on described first direction limit successively, to determine the touch area of each direction of scanning on described first direction limit, and determine the first candidate scan direction according to the touch area of each direction of scanning on described first direction limit;
Carry out the scanning of each direction of scanning on described second direction limit successively, to determine the touch area of each direction of scanning on described second direction limit, and determine the second candidate scan direction according to the touch area of each direction of scanning on described second direction limit;
Calculate the set of candidate touch point according to the common factor of touch area on described first candidate scan direction and described second candidate scan direction, in the set of described candidate touch point, comprise at least one candidate touch point;
Terrible point is removed, location true touch point from the set of described candidate touch point.
In conjunction with first aspect, in a kind of possible implementation, the first candidate scan direction is determined in the described touch area according to each direction of scanning on described first direction limit, comprising:
Add up the number of the touch area of each direction of scanning on described first direction limit;
Direction of scanning maximum for the number of the described touch area counted on is defined as described first candidate scan direction.
In conjunction with first aspect and above-mentioned possible implementation, in the implementation that another kind is possible, the second candidate scan direction is determined in the described touch area according to each direction of scanning on described second direction limit, comprising:
Add up the number of the touch area of each direction of scanning on described second direction limit;
Direction of scanning maximum for the number of the described touch area counted on is defined as described second candidate scan direction.
In conjunction with first aspect and above-mentioned possible implementation, in the implementation that another kind is possible, described according to the common factor of touch area on described first candidate scan direction and described second candidate scan direction calculate candidate touch point set, comprising:
Determine the center line of the center line of the touch area in described first candidate scan direction and the touch area in described second candidate scan direction;
Obtain the intersection point set of the center line of the center line of the touch area in described first candidate scan direction and the touch area in described second candidate scan direction, described intersection point set is gathered as described candidate touch point.
In conjunction with first aspect and above-mentioned possible implementation, in the implementation that another kind is possible, a direction of scanning on described first direction limit or described second direction limit is made up of one group of parallel light path with slope, and the slope of the parallel light path in composition different scanning direction is different;
The touch area of a direction of scanning on described first direction limit or described second direction limit is when described touch-screen exists touch point, the region that forms by the continuous parallel light path that described touch point is blocked;
First sidelight road of the described continuous parallel light path blocked by described touch point is the beginning boundary of described touch area, the second sidelight road of the described continuous parallel light path blocked by described touch point is the termination border of described touch area;
The center line of described touch area is parallel with the beginning boundary of described touch area, the center line of described touch area is parallel with the termination border of described touch area, and the center line of described touch area equals the vertical range of center line to the termination border of described touch area of described touch area to the vertical range of the beginning boundary of described touch area.
In conjunction with first aspect and above-mentioned possible implementation, in the implementation that another kind is possible, describedly from the set of described candidate touch point, remove terrible point, location true touch point, comprising:
Determine the first non-candidate direction of scanning and the second non-candidate direction of scanning, described first non-candidate direction of scanning is other direction of scanning in all direction of scanning on described first direction limit except described first candidate scan direction, and described second non-candidate direction of scanning is other direction of scanning in all direction of scanning on described second direction limit except described second candidate scan direction;
According to the position relationship in the parallelogram region of described candidate touch point and described first non-candidate direction of scanning, and the position relationship in the parallelogram region of described candidate touch point and described second non-candidate direction of scanning, calculate the theoretical matching value of described candidate touch point, the parallelogram region of described first non-candidate direction of scanning is surrounded by two the critical parallel light paths formed in the same slope parallel light path of described first non-candidate direction of scanning and described first direction limit, the parallelogram region of described second non-candidate direction of scanning is surrounded by two the critical parallel light paths formed in the same slope parallel light path of described second non-candidate direction of scanning and described second direction limit,
According to described candidate touch point and the position relationship of touch area of described first non-candidate direction of scanning and the position relationship of the touch area of described candidate touch point and described second non-candidate direction of scanning, calculate the actual match value of described candidate touch point;
According to the theoretical matching value of described candidate touch point and the actual match value of described candidate touch point, from the set of described candidate touch point, remove described terrible point, locate described true touch point.
In conjunction with first aspect and above-mentioned possible implementation, in the implementation that another kind is possible, described according to described candidate touch point and the position relationship of touch area of described first non-candidate direction of scanning and the position relationship of the touch area of described candidate touch point and described second non-candidate direction of scanning, calculate the actual match value of described candidate touch point, comprising:
Calculate candidate touch point described in candidate touch point described in each to the vertical range of the center line of the touch area of described first non-candidate direction of scanning and each to the vertical range of the center line of the touch area of described second non-candidate direction of scanning;
The actual match value of described candidate touch point is calculated according to the vertical range calculated.
In conjunction with first aspect and above-mentioned possible implementation, in the implementation that another kind is possible, the actual match value of the described theoretical matching value according to described candidate touch point and described candidate touch point, described terrible point is removed from the set of described candidate touch point, locate described true touch point, comprising:
Contrast the theoretical matching value of described candidate touch point and the actual match value of described candidate touch point;
If the ratio of the theoretical matching value of the actual match value of described candidate touch point and described candidate touch point is greater than default true Point matching threshold value, then determine that described candidate touch point is described true touch point;
If the theoretical matching value of described candidate touch point is zero, then determine that described candidate touch point is described true touch point.
In conjunction with first aspect and above-mentioned possible implementation, in the implementation that another kind is possible, M is the number of the direction of scanning that described first direction limit comprises, and N is the number of the direction of scanning that described second direction limit comprises;
Work as M=1, and during N=1, described default true Point matching threshold value is 1;
Work as M>1, and during N=1, described default true Point matching threshold value is (N+ (M-1))/(M+N);
Work as M=1, and during N>1, described default true Point matching threshold value is (M+ (N-1))/(M+N);
Work as M>1, and during N>1, described default true Point matching threshold value is ((M-1)+(N-1))/(M+N).
The second aspect of the embodiment of the present invention, also provides a kind of touch-screen multi-point positioning device, is contained in and is applied to touch-screen equipment, and the touch-screen of described touch-screen equipment comprises first direction limit and second direction limit, and described touch-screen multi-point positioning device comprises:
First scanning element, for within a scan period, carry out the scanning of each direction of scanning on described first direction limit successively, to determine the touch area of each direction of scanning on described first direction limit, and determine the first candidate scan direction according to the touch area of each direction of scanning on described first direction limit;
Second scanning element, for within a described scan period, carry out the scanning of each direction of scanning on described second direction limit successively, to determine the touch area of each direction of scanning on described second direction limit, and determine the second candidate scan direction according to the touch area of each direction of scanning on described second direction limit;
Computing unit, on the described second candidate scan direction that the described first candidate scan direction determined according to described first scanning element and described second scanning element are determined, the common factor of touch area calculates the set of candidate touch point, comprises at least one candidate touch point in the set of described candidate touch point;
Positioning unit, terrible point is removed in gathering in the described candidate touch point for calculating from described computing unit, location true touch point.
In conjunction with second aspect, in a kind of possible implementation, described first scanning element, comprising:
First statistical module, for carrying out the scanning of each direction of scanning on described first direction limit successively, to determine the touch area of each direction of scanning on described first direction limit, and add up the number of the touch area of each direction of scanning on described first direction limit;
First determination module, for by described first statistical module counts to the maximum direction of scanning of the number of described touch area be defined as described first candidate scan direction.
In conjunction with second aspect and above-mentioned possible implementation, in the implementation that another kind is possible, described second scanning element, comprising:
Second statistical module, for carrying out the scanning of each direction of scanning on described second direction limit successively, to determine the touch area of each direction of scanning on described second direction limit, and add up the number of the touch area of each direction of scanning on described second direction limit;
Second determination module, for by described second statistical module counts to the maximum direction of scanning of the number of described touch area be defined as described second candidate scan direction.
In conjunction with second aspect and above-mentioned possible implementation, in the implementation that another kind is possible, described computing unit, comprising:
3rd determination module, for the center line of the touch area of the center line and described second candidate scan direction of determining the touch area in described first candidate scan direction;
Acquisition module, for the intersection point set of the center line of the touch area of the center line and described second candidate scan direction that obtain the touch area in the described first candidate scan direction that described 3rd determination module is determined, described intersection point set is gathered as described candidate touch point.
In conjunction with second aspect and above-mentioned possible implementation, in the implementation that another kind is possible, a direction of scanning on described first direction limit or described second direction limit is made up of one group of parallel light path with slope, and the slope of the parallel light path in composition different scanning direction is different;
The touch area of a direction of scanning on described first direction limit or described second direction limit is when described touch-screen exists touch point, the region that forms by the continuous parallel light path that described touch point is blocked;
First sidelight road of the described continuous parallel light path blocked by described touch point is the beginning boundary of described touch area, the second sidelight road of the described continuous parallel light path blocked by described touch point is the termination border of described touch area;
The center line of described touch area is parallel with the beginning boundary of described touch area, the center line of described touch area is parallel with the termination border of described touch area, and the center line of described touch area equals the vertical range of center line to the termination border of described touch area of described touch area to the vertical range of the beginning boundary of described touch area.
In conjunction with second aspect and above-mentioned possible implementation, in the implementation that another kind is possible, described positioning unit, comprising:
4th determination module, for the touch area of the touch area and the second non-candidate direction of scanning of determining the first non-candidate direction of scanning, described first non-candidate direction of scanning is other direction of scanning in all direction of scanning on described first direction limit except described first candidate scan direction, and described second non-candidate direction of scanning is other direction of scanning in all direction of scanning on described second direction limit except described second candidate scan direction;
First computing module, for the position relationship in the parallelogram region of described first non-candidate direction of scanning determined according to described candidate touch point and described 4th determination module, and the position relationship in the parallelogram region of described second non-candidate direction of scanning that described candidate touch point and described 4th determination module are determined, calculate the theoretical matching value of described candidate touch point, the parallelogram region of described first non-candidate direction of scanning is surrounded by two the critical parallel light paths formed in the same slope parallel light path of described first non-candidate direction of scanning and described first direction limit, the parallelogram region of described second non-candidate direction of scanning is surrounded by two the critical parallel light paths formed in the same slope parallel light path of described second non-candidate direction of scanning and described second direction limit,
Second computing module, the position relationship of the touch area of the described second non-candidate direction of scanning determined for the position relationship of the touch area of described first non-candidate direction of scanning determined according to described candidate touch point and described 4th determination module and described candidate touch point and described 4th determination module, calculates the actual match value of described candidate touch point;
Locating module, for the actual match value of the described candidate touch point that the theoretical matching value of described candidate touch point that calculates according to described first computing module and described second computing module calculate, from the set of described candidate touch point, remove described terrible point, locate described true touch point.
In conjunction with second aspect and above-mentioned possible implementation, in the implementation that another kind is possible, described second computing module, also for calculating candidate touch point described in candidate touch point described in each to the vertical range of the center line of the touch area of described first non-candidate direction of scanning and each to the vertical range of the center line of the touch area of described second non-candidate direction of scanning; The actual match value of described candidate touch point is calculated according to the vertical range calculated.
In conjunction with second aspect and above-mentioned possible implementation, in the implementation that another kind is possible, described locating module, comprising:
Contrast submodule, contrasts the theoretical matching value of described candidate touch point and the actual match value of described candidate touch point;
Second determines submodule, if be greater than default true Point matching threshold value for the ratio of the actual match value of described candidate touch point and the theoretical matching value of described candidate touch point, then determines that described candidate touch point is described true touch point;
3rd determines submodule, if be zero for the theoretical matching value of described candidate touch point, then determines that described candidate touch point is described true touch point.
In conjunction with second aspect and above-mentioned possible implementation, in the implementation that another kind is possible, M is the number of the direction of scanning that described first direction limit comprises, and N is the number of the direction of scanning that described second direction limit comprises;
Work as M=1, and during N=1, described default true Point matching threshold value is 1;
Work as M>1, and during N=1, described default true Point matching threshold value is (N+ (M-1))/(M+N);
Work as M=1, and during N>1, described default true Point matching threshold value is (M+ (N-1))/(M+N);
Work as M>1, and during N>1, described default true Point matching threshold value is ((M-1)+(N-1))/(M+N).
The third aspect of the embodiment of the present invention, also provides a kind of touch-screen equipment, comprising:
Storer, for storing batch processing code;
Processor, for the batch processing code stored according to described storer, enforcement of rights requires the touch-screen multipoint positioning method that first aspect present invention exemplifies.
Touch-screen multipoint positioning method, device and touch-screen equipment that the embodiment of the present invention provides, within a scan period, carry out the scanning of each direction of scanning on first direction limit successively, to determine the touch area of each direction of scanning on first direction limit, and determine the first candidate scan direction according to the touch area of each direction of scanning on first direction limit; Carry out the scanning of each direction of scanning on second direction limit successively, to determine the touch area of each direction of scanning on second direction limit, and determine the second candidate scan direction according to the touch area of each direction of scanning on second direction limit; Calculate the set of candidate touch point according to the common factor of touch area on the first candidate scan direction and the second candidate scan direction, in the set of candidate touch point, comprise at least one candidate touch point; Terrible point is removed, location true touch point from the set of candidate touch point.
With prior art, only adopt long and short limit just clearing off road and carry out location, candidate touch point and may cause distinguishing the problem of multiple touch points of close together, touch point positioning precision is lower to be compared.In this programme, not only length is adopted, minor face is just clearing off road and is carrying out location, candidate touch point, but respectively according to the touch area in each direction of scanning in first direction limit (long limit is just clearing off the limit, direction at place, road) and second direction limit (minor face is just clearing off the limit, direction at place, road), determine first direction limit and the higher view directions of second direction limit intermediate-resolution respectively, i.e. the first candidate scan direction and the second candidate scan direction, then the first candidate scan direction and the second candidate scan direction is just adopted to carry out location, candidate touch point, the possibility of the multiple touch points distinguishing close together can be improved, improve touch point positioning precision.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, be clearly and completely described the technical scheme in the embodiment of the present invention, obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
In addition, term " system " and " network " are often used interchangeably in this article herein.Term "and/or" herein, being only a kind of incidence relation describing affiliated partner, can there are three kinds of relations in expression, and such as, A and/or B, can represent: individualism A, exists A and B simultaneously, these three kinds of situations of individualism B.In addition, character "/" herein, general expression forward-backward correlation is to the relation liking a kind of "or".
Embodiment 1
The embodiment of the present invention provides a kind of touch-screen multipoint positioning method, is applied to touch-screen equipment, and the touch-screen of this touch-screen equipment comprises first direction limit and second direction limit, and as shown in Figure 3, this touch-screen multipoint positioning method comprises:
S101, touch-screen multi-point positioning device are within a scan period, carry out the scanning of each direction of scanning on first direction limit successively, to determine the touch area of each direction of scanning on first direction limit, and determine the first candidate scan direction according to the touch area of each direction of scanning on first direction limit.
Wherein, first direction limit comprises at least one direction of scanning, a direction of scanning on first direction limit is made up of one group of parallel light path with slope, and the slope of the parallel light path in composition different scanning direction is different; Second direction limit comprises at least one direction of scanning, a direction of scanning on second direction limit is made up of one group of parallel light path with slope, and the slope of the parallel light path in composition different scanning direction is different.
The touch area of a direction of scanning on first direction limit or second direction limit is when touch-screen exists touch point, the region that the continuous parallel light path that touched point is blocked forms.
Wherein, the first direction limit in the embodiment of the present invention can be the long limit of the touch-screen of the touch-screen equipment shown in Fig. 1, and second direction limit can be the minor face of the touch-screen of the touch-screen equipment shown in Fig. 1; Or first direction limit can be the minor face of the touch-screen of the touch-screen equipment shown in Fig. 1, second direction limit can be the long limit of the touch-screen of the touch-screen equipment shown in Fig. 1.
Exemplary, touch-screen multi-point positioning device is within a scan period, the scanning of each direction of scanning on first direction limit can be carried out respectively, to determine that the touch area of each direction of scanning on first direction limit is (on this direction of scanning, the region that the same slope rate continuity parallel light path that touched point is blocked forms), and add up the number of the touch area of each direction of scanning on first direction limit; Direction of scanning maximum for the number of the touch area counted on is defined as the first candidate scan direction.
S102, touch-screen multi-point positioning device carry out the scanning of each direction of scanning on second direction limit successively, to determine the touch area of each direction of scanning on second direction limit, and determine the second candidate scan direction according to the touch area of each direction of scanning on second direction limit.
Exemplary, touch-screen multi-point positioning device is within a scan period, the scanning of each direction of scanning on second direction limit can be carried out respectively, to determine that the touch area of each direction of scanning on second direction limit is (on this direction of scanning, the region that the same slope rate continuity parallel light path that touched point is blocked forms), and add up the number of the touch area of each direction of scanning on second direction limit; Direction of scanning maximum for the number of the touch area counted on is defined as the second candidate scan direction.
S103, touch-screen multi-point positioning device calculate the set of candidate touch point according to the common factor of touch area on the first candidate scan direction and the second candidate scan direction, comprise at least one candidate touch point in the set of candidate touch point.
Concrete, the method that touch-screen multi-point positioning device obtains the set of candidate touch point according to the first candidate scan direction and the second candidate scan direction calculating can comprise: touch-screen multi-point positioning device determines the center line of the center line of the touch area in the first candidate scan direction and the touch area in the second candidate scan direction; Obtain the intersection point set of the center line of the center line of the touch area in the first candidate scan direction and the touch area in described second candidate scan direction, by intersection point set alternatively touch point set.
Exemplary, the touch area of a direction of scanning on first direction limit or second direction limit is when touch-screen exists touch point, the region that the continuous parallel light path that touched point is blocked forms.Second sidelight road of the continuous parallel light path that the first sidelight road of the continuous parallel light path that touched point is blocked is the beginning boundary of touch area, touched point is blocked is the termination border of touch area; The center line of touch area is parallel with the beginning boundary of touch area, the center line of touch area is parallel with the termination border of touch area, and the center line of touch area equals the vertical range of center line to the termination border of touch area of touch area to the vertical range of the beginning boundary of touch area.
S104, touch-screen multi-point positioning device remove terrible point from the set of candidate touch point, location true touch point.
Wherein, touch-screen multi-point positioning device can remove terrible point from least one the candidate touch point the set of candidate touch point, location true touch point.
The touch-screen multipoint positioning method that the embodiment of the present invention provides, within a scan period, carry out the scanning of each direction of scanning on first direction limit successively, to determine the touch area of each direction of scanning on first direction limit, and determine the first candidate scan direction according to the touch area of each direction of scanning on first direction limit; Carry out the scanning of each direction of scanning on second direction limit successively, to determine the touch area of each direction of scanning on second direction limit, and determine the second candidate scan direction according to the touch area of each direction of scanning on second direction limit; Calculate the set of candidate touch point according to the common factor of touch area on the first candidate scan direction and the second candidate scan direction, in the set of candidate touch point, comprise at least one candidate touch point; Terrible point is removed, location true touch point from the set of candidate touch point.
With prior art, only adopt long and short limit just clearing off road and carry out location, candidate touch point and may cause distinguishing the problem of multiple touch points of close together, touch point positioning precision is lower to be compared.In this programme, not only length is adopted, minor face is just clearing off road and is carrying out location, candidate touch point, but respectively according to the touch area in each direction of scanning in first direction limit (long limit is just clearing off the limit, direction at place, road) and second direction limit (minor face is just clearing off the limit, direction at place, road), determine first direction limit and the higher view directions of second direction limit intermediate-resolution respectively, i.e. the first candidate scan direction and the second candidate scan direction, then the first candidate scan direction and the second candidate scan direction is just adopted to carry out location, candidate touch point, the possibility of the multiple touch points distinguishing close together can be improved, improve touch point positioning precision.
Embodiment 2
The embodiment of the present invention provides a kind of touch-screen multipoint positioning method, is applied to touch-screen equipment, and the touch-screen of this touch-screen equipment comprises first direction limit and second direction limit, as shown in Figure 4, comprising:
S201, touch-screen multi-point positioning device are within a scan period, carry out the scanning of each direction of scanning on first direction limit successively, to determine the touch area of each direction of scanning on first direction limit, and add up the number of the touch area of each direction of scanning on first direction limit.
Concrete, first direction limit comprises M direction of scanning, a direction of scanning on first direction limit is made up of one group of parallel light path with slope, and the slope difference of the parallel light path in composition different scanning direction, M >=1; Second direction limit comprises N number of direction of scanning, and a direction of scanning on second direction limit is made up of one group of parallel light path with slope, and the slope of the parallel light path in composition different scanning direction is different, N >=1.The touch area of direction of scanning is when touch-screen exists touch point, the region that the continuous parallel light path that touched point is blocked forms.
It should be noted that, M can equal N in embodiments of the present invention, M also can not equal N, and the number of the direction of scanning namely first direction limit comprised can equal the number of the direction of scanning that second direction limit comprises, and also can be not equal to the number of the direction of scanning that second direction limit comprises.
Wherein, as shown in Figure 10, touch-screen comprises first direction limit and second direction limit (first direction limit is the long limit of touch-screen, and second direction limit is the minor face of touch-screen).As shown in Figure 10, suppose first direction limit to comprise two direction of scanning: direction of scanning a and direction of scanning b.Wherein, direction of scanning a is made up of one group of parallel light path with slope, and this group is vertical with first direction limit with the parallel light path of slope; Direction of scanning b is made up of one group of parallel light path with slope, and this group becomes 60 ° of angles with the parallel light path of slope with first direction limit.
Exemplary, touch-screen multi-point positioning device, within a scan period, carries out the scanning of the direction of scanning a on first direction limit, and determines the number of the touch area of direction of scanning a respectively.Namely along the parallel light path that direction of scanning a(is vertical with first direction limit) scan, to determine the touch area (region that the continuous parallel light path that in the parallel light path vertical with first direction limit, touched point is blocked forms) of the direction of scanning a on first direction limit, then add up the number of the touch area of direction of scanning a.
Suppose to there are two touch points in touch-screen, as shown in figure 11, now touch-screen multi-point positioning device carries out the scanning of the direction of scanning a on first direction limit, can determine that three parallel light paths (dotted line 1 as shown in figure 11, dotted line 2 and the dotted line 3) touched point in a of direction of scanning is blocked, and these three parallel light paths (dotted line 1 as shown in figure 11, dotted line 2 and dotted line 3) are continuous print parallel light path, and therefore touch-screen multi-point positioning device can determine that the number of the touch area of the direction of scanning a on first direction limit is 1.
Exemplary, touch-screen multi-point positioning device, within a scan period, carries out the scanning of the direction of scanning b on first direction limit, and determines the number of the touch area of direction of scanning b respectively.Namely the parallel light path of 60 ° of angles is become with first direction limit along direction of scanning b() scan, to determine the touch area (becoming the region that the continuous parallel light path that in the parallel light path of 60 ° of angles, touched point is blocked forms with first direction limit) of the direction of scanning b on first direction limit, then add up the number of the touch area of direction of scanning b.
Corresponding with above-mentioned example, suppose in touch-screen, to there are two same touch points, as shown in figure 11, now touch-screen multi-point positioning device carries out the scanning of the direction of scanning b on first direction limit, three parallel light paths (dotted line 4 as shown in figure 11 in the b of direction of scanning can be determined, dotted line 5 and dotted line 6) touched point blocks, and this three parallel light paths (dotted line 4 as shown in figure 11, dotted line 5 and dotted line 6) in, dotted line 5 and the parallel light path representated by dotted line 6 are continuous print parallel light path, and parallel light path representated by dotted line 4 and dotted line 5 and the parallel light path representated by dotted line 6 discontinuous, therefore touch-screen multi-point positioning device can determine that the number of the touch area of the direction of scanning b on first direction limit is 2.
It should be noted that, two direction of scanning incessantly can be comprised in first direction limit, the embodiment of the present invention does not limit the number of direction of scanning on first direction limit, touch-screen multi-point positioning device can arrange the number of direction of scanning on first direction limit in response to the input of user, or touch-screen multi-point positioning device can arrange the number of direction of scanning on first direction limit according to the accuracy of identification of touch-screen multi-point positioning device to touch point.
It should be noted that further, the parallel lines in Figure 10 and Figure 11 only represent parallel light path in an illustrative manner, and in direction of scanning a and direction of scanning b, the number of the actual parallel light path comprised is far longer than the parallel lines number in Figure 10 and Figure 11.Namely dotted line 1, dotted line 2, dotted line 3, dotted line 4, dotted line 5 and dotted line 6 can represent a parallel light path set respectively, comprise several parallel light paths in this parallel light path set.
Exemplary, because dotted line in Figure 11 1, dotted line 2, dotted line 3, dotted line 4, dotted line 5 and dotted line 6 can represent a parallel light path set respectively, in parallel light path set, comprise several parallel light paths.Therefore, the touch area of direction of scanning a should the region that surrounds of the parallel light path set representated by dotted line 1, the parallel light path set representated by dotted line 2 and the parallel light path set representated by dotted line 3 and first direction limit; The touch area of direction of scanning b should comprise: the region that the region that the parallel light path set representated by dotted line 4 and first direction limit surround, the parallel light path set representated by dotted line 5, parallel light path set representated by dotted line 6 and first direction limit surround.
Direction of scanning maximum for the number of the touch area counted on is defined as the first candidate scan direction by S202, touch-screen multi-point positioning device.
Exemplary, as shown in above-mentioned example, suppose first direction limit to comprise two direction of scanning: direction of scanning a and direction of scanning b.The number of the touch area of direction of scanning a is 1, and the number of the touch area of direction of scanning b is 2, then touch-screen multi-point positioning device can determine that direction of scanning b is the first candidate scan direction.
S203, touch-screen multi-point positioning device carry out the scanning of each direction of scanning on second direction limit successively, to determine the touch area of each direction of scanning on second direction limit, and add up the number of the touch area of each direction of scanning on second direction limit.
Wherein, as shown in figure 12, touch-screen comprises first direction limit and second direction limit (first direction limit is the long limit of touch-screen, and second direction limit is the minor face of touch-screen).As shown in figure 12, suppose second direction limit to comprise two direction of scanning: direction of scanning A and direction of scanning B.Wherein, direction of scanning A is made up of one group of parallel light path with slope, and this group is vertical with second direction limit with the parallel light path of slope; Direction of scanning B is made up of one group of parallel light path with slope, and this group becomes 80 ° of angles with the parallel light path of slope with second direction limit.
Exemplary, touch-screen multi-point positioning device, within a scan period, carries out the scanning of the direction of scanning A on second direction limit, and determines the number of the touch area of direction of scanning A respectively.Namely along the parallel light path that direction of scanning A(is vertical with second direction limit) scan, to determine the touch area (region that the continuous parallel light path that in the parallel light path vertical with second direction limit, touched point is blocked forms) of the direction of scanning A on second direction limit, then add up the number of the touch area of direction of scanning A.
Corresponding with above-mentioned example, suppose to there are two touch points in touch-screen, as shown in figure 13, now touch-screen multi-point positioning device carries out the scanning of the direction of scanning A on second direction limit, can determine that three parallel light paths (as shown in fig. 13 that dotted line 6 and the dotted line 7) touched point in the A of direction of scanning is blocked, and these two parallel light paths (as shown in fig. 13 that dotted line 6 and dotted line 7) are discontinuous parallel light path, and therefore touch-screen multi-point positioning device can determine that the number of the touch area of the direction of scanning A on second direction limit is 2.
Exemplary, touch-screen multi-point positioning device, within a scan period, carries out the scanning of the direction of scanning B on second direction limit, and determines the number of the touch area of direction of scanning B respectively.Namely the parallel light path of 80 ° of angles is become with second direction limit along direction of scanning B() scan, to determine the touch area (becoming the region that the continuous parallel light path that in the parallel light path of 80 ° of angles, touched point is blocked forms with second direction limit) of the direction of scanning B on first direction limit, then add up the number of the touch area of direction of scanning b.
Corresponding with above-mentioned example, suppose in touch-screen, to there are two same touch points, as shown in figure 13, now touch-screen multi-point positioning device carries out the scanning of the direction of scanning B on second direction limit, can determine that three parallel light paths (as shown in fig. 13 that dotted line 8, dotted line 9 and the dotted line 10) touched point in the B of direction of scanning is blocked, and these three parallel light paths (as shown in fig. 13 that dotted line 8, dotted line 9 and dotted line 10) are continuous parallel light path, and therefore touch-screen multi-point positioning device can determine that the number of the touch area of the direction of scanning b on first direction limit is 1.
It should be noted that, two direction of scanning incessantly can be comprised in second direction limit, the embodiment of the present invention does not limit the number of direction of scanning on second direction limit, touch-screen multi-point positioning device can arrange the number of direction of scanning on second direction limit in response to the input of user, or touch-screen multi-point positioning device can arrange the number of direction of scanning on second direction limit according to the accuracy of identification of touch-screen multi-point positioning device to touch point.
It should be noted that further, the parallel lines in Figure 12 and Figure 13 only represent parallel light path in an illustrative manner, and in direction of scanning A and direction of scanning B, the number of the actual parallel light path comprised is far longer than the parallel lines number in Figure 12 and Figure 13.Namely in Figure 13, dotted line 6, dotted line 7, dotted line 8, dotted line 9 and dotted line 10 can represent a parallel light path set respectively, comprise several parallel light paths in this parallel light path set.
Exemplary, because dotted line in Figure 13 6, dotted line 7, dotted line 8, dotted line 9 and dotted line 10 can represent a parallel light path set respectively, in parallel light path set, comprise several parallel light paths.Therefore, the touch area of direction of scanning A should comprise: the region that the region that the parallel light path set representated by dotted line 6 and second direction limit surround, the parallel light path set representated by dotted line 7 and second direction limit surround; The touch area of direction of scanning B should comprise: the region that the parallel light path set representated by dotted line 8, the parallel light path set representated by dotted line 9, parallel light path set representated by dotted line 10 and second direction limit surround.
Direction of scanning maximum for the number of the touch area counted on is defined as the second candidate scan direction by S204, touch-screen multi-point positioning device.
Exemplary, as shown in above-mentioned example, suppose second direction limit to comprise two direction of scanning: direction of scanning A and direction of scanning B.The number of the touch area of direction of scanning A is 2, and the number of the touch area of direction of scanning B is 1, then touch-screen multi-point positioning device can determine that direction of scanning B is the second candidate scan direction.
S205, touch-screen multi-point positioning device determine the center line of the center line of the touch area in the first candidate scan direction and the touch area in the second candidate scan direction.
Wherein, the termination border that the beginning boundary that the first sidelight road of continuous parallel light path that touched point is blocked is touch area, the second sidelight road of continuous parallel light path of being blocked by described touch point are touch area; The center line of touch area is parallel with the beginning boundary of touch area, the center line of touch area is parallel with the termination border of touch area, and the center line of touch area equals the vertical range of center line to the termination border of touch area of touch area to the vertical range of the beginning boundary of touch area.
Exemplary, as shown in figure 11, first candidate scan direction is direction of scanning b, direction of scanning b comprises two touch areas, and two touch areas in the first candidate scan direction are respectively the region that region that parallel light path set in Figure 11 representated by dotted line 4 and first direction limit surround, the parallel light path set representated by dotted line 5, the parallel light path set representated by dotted line 6 and first direction limit surround.Wherein, corresponding with Figure 11, as shown in figure 14, the center line of two touch areas in the first candidate scan direction is respectively the thick dashed line 1(dotted line 4 in Figure 14) parallel with thick dashed line 2(thick dashed line 2 and dotted line 6, dotted line 5, and thick dashed line 2 equals the vertical range of thick line 2 to dotted line 5 to the vertical range of dotted line 6).
Exemplary, as shown in figure 13, first candidate scan direction is direction of scanning A, direction of scanning A comprises two touch areas, and two touch areas in the second candidate scan direction are respectively the region that region that parallel light path set in Figure 13 representated by dotted line 1 and second direction limit surround, parallel light path set representated by dotted line 2 and second direction limit surround.Wherein, corresponding with Figure 13, as shown in figure 15, the center line of two touch areas in the first candidate scan direction is respectively the thick dashed line 3(dotted line 6 in Figure 15) and thick dashed line 4(dotted line 7).
S206, touch-screen multi-point positioning device obtain the intersection point set of the center line of the center line of the touch area in the first candidate scan direction and the touch area in the second candidate scan direction, by intersection point set alternatively touch point set.
Wherein, at least one candidate touch point is comprised in the set of candidate touch point.
Concrete, the intersection point of the center line of the center line of the touch area in the first candidate scan direction and the touch area in the second candidate scan direction is candidate touch point.
Exemplary, as shown in figure 16, center line thick dashed line 3, the thick dashed line 4 of two touch areas in the center line thick dashed line 1 of two touch areas in the first candidate scan direction in Figure 14, thick dashed line 2 and the second candidate scan direction intersect, and the intersection point obtained is candidate touch point.Wherein, the stain in Figure 16 is candidate touch point, can obtain four candidate touch points in the above example.
S207, touch-screen multi-point positioning device remove terrible point from the set of candidate touch point, location true touch point.
Concrete, S207 can comprise S207a-S207g:
S207a, touch-screen multi-point positioning device determine the first non-candidate direction of scanning and the second non-candidate direction of scanning.
Wherein, first non-candidate direction of scanning is other direction of scanning in all direction of scanning on first direction limit except the first candidate scan direction, and the second non-candidate direction of scanning is other direction of scanning in all direction of scanning on second direction limit except the second candidate scan direction.
Exemplary, as shown in figure 11, suppose that touch-screen multi-point positioning device is when the scanning of direction of scanning a carrying out first direction limit, determine that the number of the touch area of the direction of scanning a on first direction limit is 1, suppose that touch-screen multi-point positioning device is when the scanning of direction of scanning b carrying out first direction limit, determine that the number of the touch area of direction of scanning b is 2, then touch-screen multi-point positioning device can be determined in direction of scanning a on first direction limit and direction of scanning b, direction of scanning b is the first candidate scan direction (number of the touch area of direction of scanning b is maximum), then touch-screen multi-point positioning device can determine that the direction of scanning a on first direction limit is the first non-candidate direction of scanning.
Exemplary, as shown in figure 13, suppose that touch-screen multi-point positioning device is when the scanning of direction of scanning A carrying out second direction limit, determine that the number of the touch area of the direction of scanning A on first direction limit is 2, suppose that touch-screen multi-point positioning device is when the scanning of direction of scanning B carrying out second direction limit, determine that the number of the touch area of direction of scanning B is 2, then touch-screen multi-point positioning device can be determined in direction of scanning A on second direction limit and direction of scanning B, direction of scanning A is the second candidate scan direction (number of the touch area of direction of scanning A is maximum), then touch-screen multi-point positioning device can determine that the direction of scanning B on second direction limit is the first non-candidate direction of scanning.
It should be noted that, only comprise a first candidate scan direction in first direction limit, namely in first direction limit, comprise the direction of scanning that the number of touch area is maximum.A non-candidate direction of scanning incessantly can be comprised in first direction limit, in other words, the first non-candidate direction of scanning can be the direction of scanning set of other direction of scanning in all direction of scanning comprising on first direction limit except the first candidate scan direction.
Accordingly, only comprise a second candidate scan direction in second direction limit, namely in second direction limit, comprise the direction of scanning that the number of touch area is maximum.A non-candidate direction of scanning incessantly can be comprised in second direction limit, in other words, the second non-candidate direction of scanning can be the direction of scanning set of other direction of scanning in all direction of scanning comprising on second direction limit except the second candidate scan direction.
S207b, touch-screen multi-point positioning device are according to the position relationship in the parallelogram region of candidate touch point and the first non-candidate direction of scanning, and the position relationship in the parallelogram region of candidate touch point and the second non-candidate direction of scanning, the theoretical matching value of calculated candidate touch point
Wherein, the parallelogram region of the first non-candidate direction of scanning is surrounded by two the critical parallel light paths formed in the same slope parallel light path of the first non-candidate direction of scanning and first direction limit, and the parallelogram region of the second non-candidate direction of scanning is surrounded by two the critical parallel light paths formed in the same slope parallel light path of the second non-candidate direction of scanning and second direction limit.
Exemplary, corresponding with above-mentioned example, when the first non-candidate direction of scanning is direction of scanning a, the parallelogram region of the first non-candidate direction of scanning is surrounded by two the critical parallel light paths formed in the same slope parallel light path of direction of scanning a and first direction limit, as the parallelogram region in thick line besieged city in Figure 17.
Corresponding with above-mentioned example, when the second non-candidate direction of scanning is direction of scanning B, the parallelogram region of the second non-candidate direction of scanning is surrounded by two the critical parallel light paths formed in the same slope parallel light path of direction of scanning B and second direction limit, as the parallelogram region in thick line besieged city in Figure 18.
It should be noted that, because the first non-candidate direction of scanning can be a direction of scanning set, second non-candidate direction of scanning can be a direction of scanning set, therefore, the parallelogram region of the first non-candidate direction of scanning may comprise the parallelogram region that thick line is as shown in figure 17 encircled a city incessantly, and the parallelogram region of the second non-candidate direction of scanning may comprise the parallelogram region that thick line is as shown in figure 18 encircled a city incessantly.
Exemplary, corresponding with Figure 16, four stains are as shown in figure 20 candidate touch point, and empty parallel lines represent the parallel light path on the first candidate scan direction and the parallel light path on the second candidate scan direction respectively; Real parallel lines represent the parallel light path on the first non-candidate direction of scanning and the parallel light path on the second non-candidate direction of scanning respectively.The parallelogram 1 that thick line is encircled a city is the parallelogram region of the second non-candidate direction of scanning, and the parallelogram 2 that thick line is encircled a city is the parallelogram region of the first non-candidate direction of scanning.
Touch-screen multi-point positioning device can calculate the theoretical matching value of each candidate touch point according to the position relationship of each candidate touch point as shown in figure 20 and the position relationship of parallelogram 1, each candidate touch point and parallelogram 2.
Concrete, touch-screen multi-point positioning device can judge candidate touch point whether in the parallelogram region of the first non-candidate direction of scanning, if candidate touch point is in the parallelogram region of the first non-candidate direction of scanning, touch-screen multi-point positioning device then determines that candidate touch point is mated with the first non-candidate direction of scanning theory; Touch-screen multi-point positioning device can judge candidate touch point whether in the parallelogram region of the second non-candidate direction of scanning, if candidate touch point is in the parallelogram region of the second non-candidate direction of scanning, touch-screen multi-point positioning device then determines that candidate touch point is mated with the second non-candidate direction of scanning theory; Then touch-screen multi-point positioning device can add up the sum of the first non-candidate direction of scanning and the second non-candidate direction of scanning of mating with candidate touch point theory, and the theory counted on coupling sum is defined as the theoretical matching value of candidate touch point.
Exemplary, as shown in Figure 19 or Figure 20, because each the candidate touch point in Figure 19 or Figure 20 is all in the parallelogram region (parallelogram 2) of the first non-candidate direction of scanning, therefore touch-screen multi-point positioning device can determine that each the candidate touch point in Figure 19 or Figure 20 is all mated with the first non-candidate direction of scanning theory.
As shown in figure 19, because each the candidate touch point in Figure 19 is all in the parallelogram region (parallelogram 1) of the second non-candidate direction of scanning, therefore touch-screen multi-point positioning device can determine that each the candidate touch point in Figure 19 is all mated with the second non-candidate direction of scanning theory.
Certainly, if a candidate touch point is not in the parallelogram region (parallelogram 1) of the second non-candidate direction of scanning, then touch-screen multi-point positioning device can determine that this candidate touch point is not mated with the second non-candidate direction of scanning theory.Such as, in Figure 20, candidate touch point 1 is not in the parallelogram region (parallelogram 1) of the second non-candidate direction of scanning, then touch-screen multi-point positioning device can determine that candidate touch point 1 is not mated with the second non-candidate direction of scanning theory.
Therefore, because each candidate touch point as shown in figure 11 is all mated with the first non-candidate direction of scanning theory, and all mate with the second non-candidate direction of scanning theory, then touch-screen multi-point positioning device can determine that the theoretical matching value of each the candidate touch point shown in Figure 11 is 2.
As shown in figure 12, the theoretical matching value of other candidate touch points except candidate touch point 1 is 2.Because candidate touch point 1 is mated with the first non-candidate direction of scanning theory, but candidate touch point 1 is not mated with the second non-candidate direction of scanning theory, and therefore the theoretical matching value of candidate touch point 1 is 1.
After touch-screen multi-point positioning device determines the touch area of the first non-candidate direction of scanning and the touch area of the second non-candidate direction of scanning, touch-screen multi-point positioning device can according to candidate touch point and the position relationship of touch area of the first non-candidate direction of scanning and the position relationship of the touch area of candidate touch point and the second non-candidate direction of scanning, the actual match value of calculated candidate touch point.Concrete, the method for the actual match value of touch-screen multi-point positioning device calculated candidate touch point can comprise S207c-S207d:
S207c, touch-screen multi-point positioning device calculate candidate touch point described in each to the vertical range of the center line of the touch area of described first non-candidate direction of scanning and candidate touch point described in each to the vertical range of the center line of the touch area of described second non-candidate direction of scanning.
Wherein, the touch area of direction of scanning is when touch-screen exists touch point, the region that the continuous parallel light path that touched point is blocked forms.The center line of touch area is parallel with the beginning boundary of touch area, the center line of touch area is parallel with the termination border of touch area, and the center line of touch area equals the vertical range of center line to the termination border of touch area of touch area to the vertical range of the beginning boundary of touch area, the termination border that the first side critical optical path of the continuous parallel light path that touched point is blocked is the beginning boundary of touch area, the second side critical optical path of continuous parallel light path of being blocked by described touch point is touch area.
The region that exemplary, as shown in figure 11, the touch area of the first non-candidate direction of scanning (scanning of a) is dotted line 1, dotted line 2 and dotted line 3 form.Wherein, first side critical optical path of the continuous parallel light path that dotted line 1 blocks for touched point on a of direction of scanning, the i.e. beginning boundary of touch area, the second side critical optical path of the continuous parallel light path that dotted line 3 blocks for touched point on a of direction of scanning, i.e. the termination border of touch area; Or, first side critical optical path of the continuous parallel light path that dotted line 3 blocks for touched point on a of direction of scanning, the i.e. beginning boundary of touch area, the second side critical optical path of the continuous parallel light path that dotted line 1 blocks for touched point on a of direction of scanning, i.e. the termination border of touch area.
Because dotted line 2 is parallel with dotted line 1, dotted line 2 is parallel with dotted line 3, and dotted line 2 equals the vertical range of dotted line 2 to dotted line 3 to the vertical range of dotted line 1, and therefore, (center line of touch area a), direction of scanning is dotted line 2 in the first non-candidate direction of scanning.
As shown in figure 13, the touch area of the second non-candidate direction of scanning (scanning of B) be dotted line 8, the region that forms of dotted line 9 and dotted line 10.
Wherein, first side critical optical path of the continuous parallel light path that dotted line 8 blocks for touched point on the B of direction of scanning, the i.e. beginning boundary of touch area, the second side critical optical path of the continuous parallel light path that dotted line 10 blocks for touched point on the B of direction of scanning, i.e. the termination border of touch area; Or, first side critical optical path of the continuous parallel light path that dotted line 10 blocks for touched point on the B of direction of scanning, the i.e. beginning boundary of touch area, the second side critical optical path of the continuous parallel light path that dotted line 8 blocks for touched point on the B of direction of scanning, i.e. the termination border of touch area.
Due to, dotted line 9 is parallel with dotted line 8, and dotted line 9 is parallel with dotted line 10, and dotted line 9 equals the vertical range of dotted line 9 to dotted line 10 to the vertical range of dotted line 8, and therefore, the center line of the touch area of the second non-candidate direction of scanning (direction of scanning B) is dotted line 9.
Exemplary, as shown in figure 21, touch-screen multi-point positioning device can distinguish calculated candidate touch point 1 center line to the touch area of dotted line 2(first non-candidate direction of scanning) vertical range, candidate touch point 2 is to the vertical range of dotted line 2, candidate touch point 3 to the vertical range of dotted line 2 and candidate touch point 4 to the vertical range of dotted line 2.Wherein, the first non-candidate direction of scanning is direction of scanning a, and the dotted line 2 in Figure 21 is same dotted lines with the dotted line 2 in Fig. 6.
As shown in figure 22, touch-screen multi-point positioning device can distinguish calculated candidate touch point 1 center line to the touch area of dotted line 9(second non-candidate direction of scanning) vertical range, candidate touch point 2 is to the vertical range of dotted line 9, candidate touch point 3 to the vertical range of dotted line 9 and candidate touch point 4 to the vertical range of dotted line 9.Wherein, the second non-candidate direction of scanning is direction of scanning B, and the dotted line 9 in Figure 14 is same dotted lines with the dotted line 9 in Fig. 7.
S207d, touch-screen multi-point positioning device calculate the actual match value of described candidate touch point according to the vertical range calculated.
Concrete, if candidate touch point is nearest to the vertical range of the center line of the touch area of the first non-candidate direction of scanning, then touch-screen multi-point positioning device can determine this candidate touch point and the first non-candidate direction of scanning actual match; If candidate touch point is nearest to the vertical range of the center line of the touch area of the second non-candidate direction of scanning, then touch-screen multi-point positioning device can determine this candidate touch point and the second non-candidate direction of scanning actual match; Then statistics and the first non-candidate direction of scanning of candidate touch point actual match and the sum of the second non-candidate direction of scanning, and the actual match counted on sum is defined as the actual match value of candidate touch point.
Exemplary, as shown in figure 21, because the vertical range of the center line of the touch area of non-candidate direction of scanning, candidate touch point 3 to the first is nearest, namely in candidate touch point 1 to the vertical range of dotted line 2, candidate touch point 2 to the vertical range of dotted line 2, candidate touch point 3 to the vertical range of dotted line 2 and candidate touch point 4 in the vertical range of dotted line 2, candidate touch point 3 is minimum to the vertical range of dotted line 2, therefore, touch-screen multi-point positioning device can determine candidate touch point 3 and the first non-candidate direction of scanning actual match.
As shown in figure 22, because the vertical range of the center line of the touch area of non-candidate direction of scanning, candidate touch point 1 to the second is nearest, namely in candidate touch point 1 to the vertical range of dotted line 9, candidate touch point 2 to the vertical range of dotted line 9, candidate touch point 3 to the vertical range of dotted line 9 and candidate touch point 4 in the vertical range of dotted line 9, candidate touch point 1 is minimum to the vertical range of dotted line 9, therefore, touch-screen multi-point positioning device can determine candidate touch point 1 and the second non-candidate direction of scanning actual match.
As shown in figure 21 and figure, owing to being candidate touch point 1 with the candidate touch point of the second non-candidate direction of scanning actual match, being candidate touch point 3 with the candidate touch point of the first non-candidate direction of scanning actual match, therefore touch-screen multi-point positioning device can determine that the actual match value of candidate touch point 1 is 1, the actual match value of candidate touch point 2 is 0, the actual match value of candidate touch point 3 is 1, and the actual match value of candidate touch point 4 is 0.
Further alternative, vertical range for the center line of the touch area to the first non-candidate direction of scanning is not nearest candidate touch point, and touch-screen multi-point positioning device can calculate the vertical range of this candidate touch point to the center line of the touch area of the first non-candidate direction of scanning and the difference of nearest vertical range; If the absolute value of the difference calculated is less than first-phase and adjusts the distance threshold value, touch-screen multi-point positioning device then determines candidate touch point and the first non-candidate direction of scanning actual match; Vertical range for the center line of the touch area to the second non-candidate direction of scanning is not nearest candidate touch point, and touch-screen multi-point positioning device can calculate the vertical range of this candidate touch point to the center line of the touch area of the second non-candidate direction of scanning and the difference of nearest vertical range; If the absolute value of the difference calculated is less than second-phase and adjusts the distance threshold value, touch-screen multi-point positioning device then determines candidate touch point and the second non-candidate direction of scanning actual match.
It should be noted that, in the embodiment of the present invention, first-phase threshold value of adjusting the distance is the relative distance threshold value pre-set; Second-phase threshold value of adjusting the distance is the relative distance threshold value pre-set.
Or first-phase threshold value of adjusting the distance is the half of the first distance, and the first distance is the vertical range of beginning boundary to the termination border of the touch area of the first non-candidate direction of scanning of the touch area of the first non-candidate direction of scanning; Second-phase threshold value of adjusting the distance is the half of second distance, and second distance is the vertical range of beginning boundary to the termination border of the touch area of described second non-candidate direction of scanning of the touch area of described second non-candidate direction of scanning.
Wherein, the theoretical matching value of touch-screen multi-point positioning device according to candidate touch point and the actual match value of candidate touch point, remove described terrible point from the set of candidate touch point, and the method for location true touch point can comprise S207e-S207g:
S207e, the touch-screen multi-point positioning device contrast theoretical matching value of candidate touch point and the actual match value of candidate touch point.
If the ratio of the actual match value of S207f candidate touch point and the theoretical matching value of candidate touch point is greater than default true Point matching threshold value, touch-screen multi-point positioning device then determines that candidate touch point is true touch point.
It should be noted that, M is the number of the direction of scanning that described first direction limit comprises, and N is the number of the direction of scanning that described second direction limit comprises.
Work as M=1, and during N=1, described default true Point matching threshold value is 1; Work as M>1, and during N=1, described default true Point matching threshold value is (N+ (M-1))/(M+N); Work as M=1, and during N>1, described default true Point matching threshold value is (M+ (N-1))/(M+N); Work as M>1, and during N>1, described default true Point matching threshold value is ((M-1)+(N-1))/(M+N).
Exemplary, suppose M=2, and N=2, comprise four candidate touch points in the set of candidate touch point: candidate touch point 1, candidate touch point 2, candidate touch point 3 and candidate touch point 4.Wherein, the theoretical matching value of candidate touch point 1, candidate touch point 2, candidate touch point 3 and candidate touch point 4 is 2, and the actual match value of candidate touch point 1 and candidate touch point 3 is 2, the actual match value of candidate touch point 2 and candidate touch point 4 is 0.The ratio that touch-screen multi-point positioning device can calculate the actual match value of candidate touch point 1 and the theoretical matching value of candidate touch point 1 is 1; The ratio of the actual match value of candidate touch point 2 and the theoretical matching value of candidate touch point 2 is 0; The ratio of the actual match value of candidate touch point 3 and the theoretical matching value of candidate touch point 3 is 1; The ratio of the actual match value of candidate touch point 4 and the theoretical matching value of candidate touch point 4 is 0.
M=2, and during N=2, presetting true Point matching threshold value is ((M-1)+(N-1))/(M+N)=2/4=0.5, because the ratio 1 of the actual match value of candidate touch point 1 and the theoretical matching value of candidate touch point 1 is greater than default true Point matching threshold value 0.5, therefore touch-screen multi-point positioning device can determine that candidate touch point 1 is for true touch point; Because the ratio 1 of the actual match value of candidate touch point 3 and the theoretical matching value of candidate touch point 3 is greater than default true Point matching threshold value 0.5, therefore touch-screen multi-point positioning device can determine that candidate touch point 3 is for true touch point.
Further, if the ratio that the method for the embodiment of the present invention can also comprise the actual match value of candidate touch point and the theoretical matching value of candidate touch point is less than default true Point matching threshold value, touch-screen multi-point positioning device then determines that candidate touch point is terrible point.Wherein, because the ratio 0.5 of the actual match value of candidate touch point 2 and the theoretical matching value of candidate touch point 2 is less than default true Point matching threshold value 0, therefore touch-screen multi-point positioning device can determine that candidate touch point 2 is for terrible point; Because the ratio 0 of the actual match value of candidate touch point 2 and the theoretical matching value of candidate touch point 4 is less than default true Point matching threshold value 0.5, therefore touch-screen multi-point positioning device can determine that candidate touch point 4 is for terrible point.
If the theoretical matching value of S207g candidate touch point is zero, touch-screen multi-point positioning device then determines that candidate touch point is true touch point.
Wherein, when the theoretical matching value of candidate touch point is zero, no matter the actual match value of candidate touch point is how many, and touch-screen multi-point positioning device can determine that this candidate touch point is true touch point.
It should be noted that, in the embodiment of the present invention, touch-screen multi-point positioning device removes terrible point from the set of candidate touch point, the method of location true touch point includes but not limited to the method cited by the embodiment of the present invention, the additive method removing ghost point can with reference to the correlation technique removing ghost point in prior art, and the present embodiment does not limit here.
The touch-screen multipoint positioning method that the embodiment of the present invention provides, within a scan period, carry out the scanning of each direction of scanning on first direction limit successively, to determine the touch area of each direction of scanning on first direction limit, and determine the first candidate scan direction according to the touch area of each direction of scanning on first direction limit; Carry out the scanning of each direction of scanning on second direction limit successively, to determine the touch area of each direction of scanning on second direction limit, and determine the second candidate scan direction according to the touch area of each direction of scanning on second direction limit; Calculate the set of candidate touch point according to the common factor of touch area on the first candidate scan direction and the second candidate scan direction, in the set of candidate touch point, comprise at least one candidate touch point; Terrible point is removed, location true touch point from the set of candidate touch point.
With prior art, only adopt long and short limit just clearing off road and carry out location, candidate touch point and may cause distinguishing the problem of multiple touch points of close together, touch point positioning precision is lower to be compared.In this programme, not only length is adopted, minor face is just clearing off road and is carrying out location, candidate touch point, but respectively according to the touch area in each direction of scanning in first direction limit (long limit is just clearing off the limit, direction at place, road) and second direction limit (minor face is just clearing off the limit, direction at place, road), determine first direction limit and the higher view directions of second direction limit intermediate-resolution respectively, i.e. the first candidate scan direction and the second candidate scan direction, then the first candidate scan direction and the second candidate scan direction is just adopted to carry out location, candidate touch point, the possibility of the multiple touch points distinguishing close together can be improved, improve touch point positioning precision.
Embodiment 3
The embodiment of the present invention provides a kind of touch-screen multi-point positioning device, be contained in touch-screen equipment, the touch-screen of described touch-screen equipment comprises first direction limit and second direction limit, as shown in Figure 5, this touch-screen multi-point positioning device comprises: the first scanning element 31, second scanning element 32, computing unit 33 and positioning unit 34.
First scanning element 31, for within a scan period, carry out the scanning of each direction of scanning on described first direction limit successively, to determine the touch area of each direction of scanning on described first direction limit, and determine the first candidate scan direction according to the touch area of each direction of scanning on described first direction limit.
Second scanning element 32, for within a described scan period, carry out the scanning of each direction of scanning on described second direction limit successively, to determine the touch area of each direction of scanning on described second direction limit, and determine the second candidate scan direction according to the touch area of each direction of scanning on described second direction limit.
Computing unit 33, on the described second candidate scan direction that the described first candidate scan direction determined according to described first scanning element 31 and described second scanning element 32 are determined, the common factor of touch area calculates the set of candidate touch point, comprises at least one candidate touch point in the set of described candidate touch point.
Positioning unit 34, terrible point is removed in gathering in the described candidate touch point for calculating from described computing unit 33, location true touch point.
Further, as shown in Figure 6, described first scanning element 31, can comprise: the first statistical module 311 and the first determination module 312.
First statistical module 311, for carrying out the scanning of each direction of scanning on described first direction limit successively, to determine the touch area of each direction of scanning on described first direction limit, and add up the number of the touch area of each direction of scanning on described first direction limit.
First determination module 312, the direction of scanning that the number for the described touch area counted on by described first statistical module 311 is maximum is defined as described first candidate scan direction.
Further, as shown in Figure 7, described second scanning element 32, can comprise: the second statistical module 321 and the second determination module 322.
Second statistical module 321, for carrying out the scanning of each direction of scanning on described second direction limit successively, to determine the touch area of each direction of scanning on described second direction limit, and add up the number of the touch area of each direction of scanning on described second direction limit.
Second determination module 322, the direction of scanning that the number for the described touch area counted on by described second statistical module 321 is maximum is defined as described second candidate scan direction.
Further, as shown in Figure 8, described computing unit 33, can comprise: the 3rd determination module 331 and acquisition module 332.
3rd determination module 331, for the center line of the touch area of the center line and described second candidate scan direction of determining the touch area in described first candidate scan direction.
Acquisition module 332, for the intersection point set of the center line of the touch area of the center line and described second candidate scan direction that obtain the touch area in the described first candidate scan direction that described 3rd determination module 331 is determined, described intersection point set is gathered as described candidate touch point.
Further, a direction of scanning on described first direction limit or described second direction limit is made up of one group of parallel light path with slope, and the slope of the parallel light path in composition different scanning direction is different.
The touch area of a direction of scanning on described first direction limit or described second direction limit is when described touch-screen exists touch point, the region that forms by the continuous parallel light path that described touch point is blocked.
First sidelight road of the described continuous parallel light path blocked by described touch point is the beginning boundary of described touch area, the second sidelight road of the described continuous parallel light path blocked by described touch point is the termination border of described touch area.
The center line of described touch area is parallel with the beginning boundary of described touch area, the center line of described touch area is parallel with the termination border of described touch area, and the center line of described touch area equals the vertical range of center line to the termination border of described touch area of described touch area to the vertical range of the beginning boundary of described touch area.
Further, described positioning unit, comprising: the 4th determination module, the first computing module, the second computing module and locating module.
4th determination module, for the touch area of the touch area and the second non-candidate direction of scanning of determining the first non-candidate direction of scanning, described first non-candidate direction of scanning is other direction of scanning in all direction of scanning on described first direction limit except described first candidate scan direction, and described second non-candidate direction of scanning is other direction of scanning in all direction of scanning on described second direction limit except described second candidate scan direction.
First computing module, for the position relationship in the parallelogram region of described first non-candidate direction of scanning determined according to described candidate touch point and described 4th determination module, and the position relationship in the parallelogram region of described second non-candidate direction of scanning that described candidate touch point and described 4th determination module are determined, calculate the theoretical matching value of described candidate touch point, the parallelogram region of described first non-candidate direction of scanning is surrounded by two the critical parallel light paths formed in the same slope parallel light path of described first non-candidate direction of scanning and described first direction limit, the parallelogram region of described second non-candidate direction of scanning is surrounded by two the critical parallel light paths formed in the same slope parallel light path of described second non-candidate direction of scanning and described second direction limit.
Second computing module, the position relationship of the touch area of the described second non-candidate direction of scanning determined for the position relationship of the touch area of described first non-candidate direction of scanning determined according to described candidate touch point and described 4th determination module and described candidate touch point and described 4th determination module, calculates the actual match value of described candidate touch point.
Locating module, for the actual match value of the described candidate touch point that the theoretical matching value of described candidate touch point that calculates according to described first computing module and described second computing module calculate, from the set of described candidate touch point, remove described terrible point, locate described true touch point.
Further, described second computing module, also for calculating candidate touch point described in candidate touch point described in each to the vertical range of the center line of the touch area of described first non-candidate direction of scanning and each to the vertical range of the center line of the touch area of described second non-candidate direction of scanning; The actual match value of described candidate touch point is calculated according to the vertical range calculated.
Further, described locating module, comprising: contrast submodule, second determines that submodule and the 3rd determines submodule.
Contrast submodule, contrasts the theoretical matching value of described candidate touch point and the actual match value of described candidate touch point.
Second determines submodule, if be greater than default true Point matching threshold value for the ratio of the actual match value of described candidate touch point and the theoretical matching value of described candidate touch point, then determines that described candidate touch point is described true touch point.
3rd determines submodule, if be zero for the theoretical matching value of described candidate touch point, then determines that described candidate touch point is described true touch point.
Further, M is the number of the direction of scanning that described first direction limit comprises, and N is the number of the direction of scanning that described second direction limit comprises.
Work as M=1, and during N=1, described default true Point matching threshold value is 1; Work as M>1, and during N=1, described default true Point matching threshold value is (N+ (M-1))/(M+N); Work as M=1, and during N>1, described default true Point matching threshold value is (M+ (N-1))/(M+N); Work as M>1, and during N>1, described default true Point matching threshold value is ((M-1)+(N-1))/(M+N).
It should be noted that, in the touch-screen multi-point positioning device that the embodiment of the present invention provides, the specific descriptions of part functional module can corresponding content in reference method embodiment, and the present embodiment is no longer described in detail here.
The touch-screen multi-point positioning device that the embodiment of the present invention provides, within a scan period, carry out the scanning of each direction of scanning on first direction limit successively, to determine the touch area of each direction of scanning on first direction limit, and determine the first candidate scan direction according to the touch area of each direction of scanning on first direction limit; Carry out the scanning of each direction of scanning on second direction limit successively, to determine the touch area of each direction of scanning on second direction limit, and determine the second candidate scan direction according to the touch area of each direction of scanning on second direction limit; Calculate the set of candidate touch point according to the common factor of touch area on the first candidate scan direction and the second candidate scan direction, in the set of candidate touch point, comprise at least one candidate touch point; Terrible point is removed, location true touch point from the set of candidate touch point.
With prior art, only adopt long and short limit just clearing off road and carry out location, candidate touch point and may cause distinguishing the problem of multiple touch points of close together, touch point positioning precision is lower to be compared.In this programme, not only length is adopted, minor face is just clearing off road and is carrying out location, candidate touch point, but respectively according to the touch area in each direction of scanning in first direction limit (long limit is just clearing off the limit, direction at place, road) and second direction limit (minor face is just clearing off the limit, direction at place, road), determine first direction limit and the higher view directions of second direction limit intermediate-resolution respectively, i.e. the first candidate scan direction and the second candidate scan direction, then the first candidate scan direction and the second candidate scan direction is just adopted to carry out location, candidate touch point, the possibility of the multiple touch points distinguishing close together can be improved, improve touch point positioning precision.
Embodiment 4
The embodiment of the present invention provides a kind of touch-screen equipment, as shown in Figure 9, comprising: storer 41 and processor 42.
Storer 41, for storing batch processing code;
Processor 42, for the batch processing code stored according to described storer 41, performs touch-screen multipoint positioning method cited in the embodiment of the present invention 1 and embodiment 2.
It should be noted that, in the touch-screen equipment that the embodiment of the present invention provides, the specific descriptions of part functional module can with reference to the corresponding content in the inventive method embodiment, and the present embodiment is no longer described in detail here.
The touch-screen equipment that the embodiment of the present invention provides, can according to the batch processing code prestored, and perform within a scan period according to the batch processing code prestored, carry out the scanning of each direction of scanning on first direction limit successively, to determine the touch area of each direction of scanning on first direction limit, and determine the first candidate scan direction according to the touch area of each direction of scanning on first direction limit; Carry out the scanning of each direction of scanning on second direction limit successively, to determine the touch area of each direction of scanning on second direction limit, and determine the second candidate scan direction according to the touch area of each direction of scanning on second direction limit; Obtain the set of candidate touch point according to the first candidate scan direction and the second candidate scan direction calculating, in the set of candidate touch point, comprise at least one candidate touch point; Terrible point is removed, location true touch point from the set of candidate touch point.
With prior art, only adopt long and short limit just clearing off road and carry out location, candidate touch point and may cause distinguishing the problem of multiple touch points of close together, touch point positioning precision is lower to be compared.In this programme, not only length is adopted, minor face is just clearing off road and is carrying out location, candidate touch point, but respectively according to the touch area in each direction of scanning in first direction limit (long limit is just clearing off the limit, direction at place, road) and second direction limit (minor face is just clearing off the limit, direction at place, road), determine first direction limit and the higher view directions of second direction limit intermediate-resolution respectively, i.e. the first candidate scan direction and the second candidate scan direction, then the first candidate scan direction and the second candidate scan direction is just adopted to carry out location, candidate touch point, the possibility of the multiple touch points distinguishing close together can be improved, improve touch point positioning precision.
Through the above description of the embodiments, those skilled in the art can be well understood to, for convenience and simplicity of description, only be illustrated with the division of above-mentioned each functional module, in practical application, can distribute as required and by above-mentioned functions and be completed by different functional modules, the inner structure by device is divided into different functional modules, to complete all or part of function described above.The system of foregoing description, the specific works process of device and unit, with reference to the corresponding process in preceding method embodiment, can not repeat them here.
In several embodiments that the application provides, should be understood that, disclosed system, apparatus and method, can realize by another way.Such as, device embodiment described above is only schematic, such as, the division of described module or unit, be only a kind of logic function to divide, actual can have other dividing mode when realizing, such as multiple unit or assembly can in conjunction with or another system can be integrated into, or some features can be ignored, or do not perform.Another point, shown or discussed coupling each other or direct-coupling or communication connection can be by some interfaces, and the indirect coupling of device or unit or communication connection can be electrical, machinery or other form.
The described unit illustrated as separating component or can may not be and physically separates, and the parts as unit display can be or may not be physical location, namely can be positioned at a place, or also can be distributed in multiple network element.Some or all of unit wherein can be selected according to the actual needs to realize the object of the present embodiment scheme.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, also can be that the independent physics of unit exists, also can two or more unit in a unit integrated.Above-mentioned integrated unit both can adopt the form of hardware to realize, and the form of SFU software functional unit also can be adopted to realize.
If described integrated unit using the form of SFU software functional unit realize and as independently production marketing or use time, can be stored in a computer read/write memory medium.Based on such understanding, the part that technical scheme of the present invention contributes to prior art in essence in other words or all or part of of this technical scheme can embody with the form of software product, this computer software product is stored in a storage medium, comprising some instructions in order to make a computer equipment (can be personal computer, server, or the network equipment etc.) or processor (processor) perform all or part of step of method described in each embodiment of the present invention.And aforesaid storage medium comprises: USB flash disk, portable hard drive, ROM (read-only memory) (ROM, Read-OnlyMemory), random access memory (RAM, RandomAccessMemory), magnetic disc or CD etc. various can be program code stored medium.
The above; be only the specific embodiment of the present invention, but protection scope of the present invention is not limited thereto, is anyly familiar with those skilled in the art in the technical scope that the present invention discloses; change can be expected easily or replace, all should be encompassed within protection scope of the present invention.Therefore, protection scope of the present invention should be as the criterion with the protection domain of described claim.