Embodiment
Refer to Fig. 3, Fig. 3 is the process flow diagram of photographing type touch control method of the present invention.
Described photographing type touch control method comprises the following steps:
S201, obtain the image in the described touch control zone that at least three camera heads of the touch control edges of regions that is arranged on display device take respectively;
Wherein, described touch control zone is user's touch control to be taken to the zone of location, is preferably the zone of the positive top of described display device.Touch operation in described touch control zone will be detected, and as the information of touch control, is processed.
For guaranteeing that each camera head can both photograph the image in the touch control zone of complete described display device, therefore, the shooting visual angle of each described camera head all must comprise whole described touch control zone.The shooting axle preferred parallel of each described camera head is in the plane of described camera head, from the side described touch control zone is taken, when having touch objects to appear at described touch control zone, photograph equally from the side the image that described touch objects appears at described touch control zone.
The setting position of described three camera heads can be set according to those skilled in the art's needs on each position of described touch control edges of regions, those skilled in the art only need to obtain the position coordinates of described three camera heads and the relative position of described display device, just can calculate by computing the position relationship in the touch control zone of the photographic images of each camera head and described display device, thereby the touch objects occurred in described touch control zone is positioned.
And as preferred embodiment a kind of, three described camera heads are separately positioned on the two ends on described display device one side and the midpoint on described limit, and the shooting angle that is arranged on two described camera heads at described display device two ends on one side is 90 degree, and the shooting angle that is arranged on the camera head of described limit midpoint is 180 degree.Therefore can utilize three camera heads just whole described touch control zone to be taken, and avoid touch objects to appear at two situations between camera head.
The detection and location of touch objects are calculated for convenience of description, below with two-dimensional touch, orientate the example explanation as:
Refer to Fig. 4, the plane at display device 11 places, using the Nei De any point, plane at display device 11 places as true origin, sets up coordinate system.The touch control zone of described display device 11 is the zone onesize with the positive viewing area of described display device 11.As to take the first camera head A be true origin,, the coordinate of this first camera head A is (0,0), and the length of establishing one side 111 of this display device 11 is L, the coordinate of the second camera head B is (L, 0), the coordinate of the 3rd camera head C is (L/2,0), the coordinate of touch objects O is unknown-value (x, y).Obtain respectively the image that it is taken the touch control zone of described display device 11 respectively from described the first camera head A, described the second camera head B and described the 3rd camera head C.
S202, the touch locating information of taking according to each described camera head, calculate touch article coordinate; Wherein, described touch locating information comprises the positional information of touch objects image in the image in the described touch control zone of each described camera head shooting;
The positional information of described touch objects image in the described image of stating the touch control zone can mean with the distance value of the image border in touch objects image and described touch control zone; The information of shooting angles that each camera head that also can calculate according to described relative position information is taken described touch objects, mean the position of touch objects image in the image in the described touch control zone of each described camera head shooting with described information of shooting angles.
According to the described touch locating information of two camera heads, can determine the intersection point of two straight lines from two camera heads to touch article coordinate, described intersection point is the preliminary coordinate of touch objects.
In the inferior touch article coordinate computing method of applying during two kinds of the present invention are provided, those skilled in the art can, according to the prior art of camera type touch control technology, adopt other conventional computing method to calculate described touch article coordinate.
The computing method of wherein a kind of touch article coordinate of the present invention are:
Suppose that described at least three camera heads comprise the first camera head, the second camera head and the 3rd camera head;
, according to the described touch locating information of described the first camera head and described the second camera head shooting, calculate the first preliminary coordinate of touch objects;
According to the described touch locating information of described the first camera head and described the 3rd camera head shooting, calculate the second preliminary coordinate of touch objects;
Identical coordinate points in described the first preliminary coordinate and described the second preliminary coordinate is defined as to touch article coordinate.
This kind of method need to be calculated the preliminary coordinate of twice touch objects, then the preliminary coordinate of twice calculating is compared to definite touch article coordinate.Comparison of computational results is accurate, is easy to realize.
The computing method of another kind of touch article coordinate of the present invention are:
Suppose that described at least three camera heads comprise the first camera head, the second camera head and the 3rd camera head;
, according to the described touch locating information of described the first camera head and described the second camera head shooting, calculate the first preliminary coordinate of touch objects;
According to the coordinate of described the first preliminary coordinate and the 3rd camera head, calculate the theoretical value of described the 3rd camera head to the touch locating information of described the first preliminary coordinate shooting;
By the actual value of the touch locating information of the theoretical value of described touch locating information and described the 3rd camera head relatively, if comparative result is identical, described first preliminary coordinate of correspondence is defined as to touch article coordinate.
This kind of method is without the preliminary coordinate of calculating twice touch objects, but the coordinate of the preliminary coordinate that utilization is once calculated and another camera head calculates the theoretical value of the touch locating information of another camera head, by the actual value of the touch locating information of described theoretical value and another camera head relatively, again described the first preliminary coordinate is screened, obtained touch article coordinate.Because without the calculating of carrying out twice preliminary coordinate, so operand is less, be conducive to improve locating speed.
S203, relatively touch locating information corresponding to each described touch article coordinate;
If corresponding each of one of them described touch article coordinate touches locating information, all respectively one of them corresponding with other touch article coordinates to touch locating information identical, perform step S204, otherwise, execution step S205;
If corresponding each of one of them described touch article coordinate touches locating information, all respectively one of them corresponding with other touch article coordinates to touch locating information identical, illustrate on the line of this touch article coordinate and each camera head that it is very likely by the overlapping and erroneous judgement in the shooting visual angle of other touch objects that other touch article coordinate, this touch article coordinate are arranged;
Therefore, execution step S204, be divided into invalid touch article coordinate by described touch article coordinate;
If corresponding each of described touch article coordinate touches locating information, not all one of them corresponding with other touch article coordinates to touch locating information identical, illustrate that this touch article coordinate can not be by overlapping the forming in shooting visual angle to other touch objects, has real touch objects on this touch article coordinate;
Therefore, execution step S205, be divided into effective touch article coordinate by described touch article coordinate.
The touch objects distribution scenario shown in Fig. 1 of below take is example, illustrates the process step principle of photographing type touch control method of the present invention.
Obtain respectively its image of respectively the touch control zone of described display device 11 being taken from described the first camera head A, described the second camera head B and described the 3rd camera head C after, positional information according to described touch objects image in the described image of stating the touch control zone, calculate the information of shooting angles that each camera head is taken each described touch objects, and using each described information of shooting angles touch locating information corresponding as each described touch article coordinate., for described the first camera head A, it has three information of shooting angles, is designated as respectively: a1, a2 and a3; For described the second camera head B and described the 3rd camera head C, there are respectively three information of shooting angles and be designated as respectively: b1, b2 and b3 equally; And c1, c2 and c3.
Because the coordinate of the coordinate of described the first camera head A (0,0), described the second camera head B (L, 0), the coordinate of described the 3rd camera head C is (L/2,0).Therefore, at first three information of shooting angles b1, the b2 of three information of shooting angles a1, the a2 of described the first camera head A and a3 and described the second camera head B and b3 combination are calculated, obtained the first preliminary coordinate of touch objects; Then by three information of shooting angles b1, the b2 of three information of shooting angles a1, the a2 of described the first camera head A and a3 or described the second camera head B and b3, with three information of shooting angles c1, c2 and the c3 combination of described the 3rd camera head C, calculated, obtain the second preliminary coordinate of touch objects, more described the first preliminary coordinate and described the second preliminary coordinate, obtain an a, b, c, d are identical coordinate, therefore tentatively judge that it is touch article coordinate
Compare respectively touch locating information corresponding to each described touch article coordinate, that is information of shooting angles corresponding to coordinate of more described some a, b, c, d respectively, can respectively a, b, c, d be expressed as to the set of each information of shooting angles at described, put a and be expressed as (a1, b1, c1); Point b is expressed as (a2, b2, c2); Point c is expressed as (a3, b3, c3); Point d is expressed as (a3, b1, c2).
More known, three information of shooting angles (a3, b1, c2) corresponding to some d coordinate, one of them corresponding with a c touches corresponding one of them of locating information a3, some a and touches locating information b1 respectively, and it is identical to put one of them touch locating information c2 that b is corresponding.Therefore, the coordinate of a d is divided into to invalid touch article coordinate, avoids erroneous judgement.And the coordinate of other a, b, c does not meet the condition that judgement is invalid, the coordinate that therefore will put d is divided into effective touch article coordinate.
The touch objects distribution scenario shown in Fig. 2 of take again is example, and the touch article coordinate calculated is some a, a b, c, d, e, f, with corresponding information of shooting angles, is expressed as respectively:
a(a1,b1,c1);
b(a3,b3,c3);
c(a4,b4,c4);
d(a4,b1,c3);
e(a2,b2,c2);
f(a3,b1,c2)。
Through more definite, point d(a4, b1, c3) and some f(a3, b1, c2) each information of shooting angles is identical with one of them information of shooting angles corresponding to other points, therefore, it may be overlapping the forming of shooting angle that other points are arranged that the coordinate of some d and some f has very large, therefore, a d is divided into to invalid touch article coordinate with the coordinate of some f, and the coordinate of other a, b, c, e is divided into effective touch article coordinate.
Compared with prior art, in photographing type touch control method of the present invention, after calculating touch article coordinate, compare touch locating information corresponding to each described touch article coordinate, according to comparative result, the touch article coordinate calculated is screened, eliminating, because taking the touch article coordinate of the overlapping erroneous calculations caused in visual angle, is judged effective touch article coordinate.Thereby the minimizing location of mistake, improve positional accuracy.
Refer to Fig. 5, Fig. 5 is the process flow diagram of a kind of preferred implementation of photographing type touch control method of the present invention.
In the present embodiment, described photographing type touch control method comprises:
S501, obtain the image in the described touch control zone that at least three camera heads of the touch control edges of regions that is arranged on display device take respectively;
S502, the image in the described touch control zone that each described camera head is taken is divided at least two sub regions images being parallel on the direction of described display device, and according to the dividing mode of described subregion image, and effective coordinate range in described touch control zone, described touch control zone is divided into respectively at least two with respect to each camera head and takes subregion;
When carrying out the division of described subregion image, the division number of described subregion image, and the size of each described subregion image etc. can need to be set according to user's self use.The overall principle is: the division number of described subregion image is more, anticipation elimination ability to touch objects is just stronger, but the operand that anticipation is got rid of can increase and become large along with the division number of subregion image again, therefore the division number of described subregion image should be chosen moderate, both guarantee enough anticipation elimination abilities, and can not increase again too much extra computing.And the size of each described subregion image is preferably the equal portions division, can reduce operand.
As a kind of preferred implementation, in this step, the image in the described touch control zone that two camera heads that are arranged on described display device two ends on one side can be taken, be divided into three sub regions images equal in length being parallel on described display device direction; And the image in the described touch control zone taken of the camera head that will be arranged on the midpoint on described limit, be divided into six sub regions images equal in length being parallel on described display device direction.Through overtesting, the dividing mode of this seed region image can realize the anticipation of touch objects is got rid of efficiently, also can ensure higher arithmetic speed, is dividing mode preferably.
As another kind of preferred implementation of the present invention, in this step, the image in described touch control zone is divided into to three sub regions images equal in length being parallel on described display device direction; Corresponding described touch control zone is divided into each described camera head: take described camera head place is summit, and three of equating of drift angle take subregions.
The image in the touch control zone that as shown in Figure 6, this first camera head A takes is divided into three sub regions image A 1 equal in length, A2, A3, the touch control zone of shown device is divided into three shooting subregion a1 that drift angle equates, a2, a3 with respect to this first camera head A;
The image in the touch control zone that this second camera head B takes is divided into three sub regions image B 1 equal in length, B2, B3, the touch control zone of shown device is divided into respect to this second camera head B three shooting subregion b1 that drift angle equates, b2, b3;
The image in the touch control zone that the 3rd camera head C takes is divided into three sub regions image C 1 equal in length, C2, C3, the touch control zone of shown device is divided into respect to the 3rd camera head C three shooting subregion c1 that drift angle equates, c2, c3.
While due to described touch control zone, touch objects occurring, will inevitably be photographed the touch objects image by three camera heads simultaneously, therefore, each touch objects image all will inevitably appear at respectively in a sub regions image of three camera heads, that is, each touch objects image all will inevitably appear in the subregion image collection of (Ax, Bx, Cx) composition.Yet, not all (Ax that appears at, Bx, Cx) touch objects in the subregion image collection formed is all effective touch objects, because described subregion image is to be parallel to from the side described display device plane to take, therefore, the scope of its shooting may exceed the touch control zone of described display device, and photographs invalid touch objects.
And the shooting subregion that corresponding described subregion image is divided is within the effective range in described touch control zone, that is to say, any point in the effective range in described touch control zone all should appear in the shooting subregion set of (ax, bx, cx) composition.For example, in Fig. 7, zone is 1 by a1, b1, and tri-of c1 take that subregion is overlapping to be formed, and zone 2 is by a2, b1, tri-of c1 take that subregion is overlapping to be formed; Zone is 3 by a3, b1, and tri-of c1 take that subregion is overlapping to be formed; Zone is 4 by a3, b2, and tri-of c1 take that subregion is overlapping to be formed; Zone is 5 by a3, b2, and tri-of c2 take that subregion is overlapping to be formed; Zone is 6 by a2, b1, and tri-of c2 take that subregion is overlapping to be formed; Zone is 7 by a1, b1, and tri-of c2 take that subregion is overlapping to be formed; Zone is 8 by a1, b2, and tri-of c2 take that subregion is overlapping to be formed; Zone is 9 by a2, b2, and tri-of c2 take that subregion is overlapping to be formed; Zone is 10 by a2, b3, and tri-of c2 take that subregion is overlapping to be formed; Zone is 11 by a2, b3, and tri-of c3 take that subregion is overlapping to be formed; Zone is 12 by a1, b3, and tri-of c3 take that subregion is overlapping to be formed; Zone is 13 by a1, b2, and tri-of c3 take that subregion is overlapping to be formed; Zone is 14 by a1, b1, and tri-of c3 take that subregion is overlapping to be formed.
Overlapping the forming of shooting subregion visible, that each zone is corresponding by different camera heads.
Whether S503, while at least three described subregion images, the touch objects image occurring, have common overlapping region according to each described shooting subregion corresponding with each described subregion image, judges that whether the combination of each described subregion image is effective;
When there is touch objects in described touch control zone, each described camera head all can photograph the touch objects image, and described touch objects image appears at respectively in one of them subregion image of each described camera head shooting.Be illustrated in figure 8 the zone 13 (a1, b2, c3) in described touch control zone while touch objects occurring, the schematic diagram of the subregion image that each camera head is taken.Now, according to the corresponding relation of described subregion image and described shooting subregion, the combination of each described subregion image is judged.
The rule of judgement is: whether each described shooting subregion corresponding to each described subregion image that described touch objects image occurs has common overlapping region, and the combination of each corresponding described subregion image is effective; Otherwise invalid.
Provide whether effective method of two kinds of combinations that judge each described subregion image at this:
A kind of determination methods is when touch objects occurs, the instant dividing mode according to each the described subregion image that the touch objects image occurs, and effective coordinate range in described touch control zone, the coordinate range of each described shooting subregion of calculating correspondence respectively; And, according to the coordinate range of each described shooting subregion, judge whether each described shooting subregion has common overlapping region; If common overlapping region is arranged, being combined as of each described subregion image of judgement correspondence is effective; If there is no common overlapping region, being combined as of each described subregion image of judgement correspondence is invalid.This method is whether calculate the combination of each described subregion image when touch objects occurs effective again, now because determined shooting subregion corresponding to described touch objects, so only need less computing.
Another determination methods is in advance according to the dividing mode of each described subregion image, and effective coordinate range in described touch control zone, calculate in advance the coordinate range of all described shooting subregions, and from described at least three camera heads a plurality of shooting subregions separately, get respectively one of them shooting subregion and combined, judge whether each shooting subregion has common overlapping region; If common overlapping region is arranged, the combination of each described subregion image of correspondence is divided into to effective combination; If there is no common overlapping region, the combination of each described subregion image of correspondence is divided into to invalid combination;
Then, while in the subregion image that each described camera head is taken, the touch objects image occurring, directly judge whether each described subregion image forms described effective combination.Thereby whether the combination that can judge fast each described subregion image is effective.
This method is before touch objects occurs, calculate the combination of effective subregion image with regard to budget, when touch objects is arranged, directly the whether corresponding effectively combination of each sub regions image of touch objects image appears in judgement, without carrying out again coordinate calculating, can greatly reduce the operation time in position fixing process.
If judge that in step S503 the combination of each described subregion image is effective, illustrate that described touch objects is all photographed by each camera head, and touch article coordinate is effective touch objects within described touch control regional extent, execution step S504.If judge that the combination of each described subregion image is invalid, illustrate that described touch objects is not all to be photographed by each camera head, or touch article coordinate is invalid touch objects outside described touch control regional extent, execution step S505.
S504, be divided into effective touch objects by described touch objects;
S505, be divided into invalid touch objects by described touch objects.
S506, according to the touch locating information of each described camera head shooting, calculate the coordinate of effective touch objects;
Wherein, described touch locating information comprises the positional information of touch objects image in the image in the described touch control zone of each described camera head shooting;
S507, relatively the touch locating information corresponding to coordinate of each described effective touch objects;
If corresponding each of one of them described touch article coordinate touches locating information, all respectively one of them corresponding with other touch article coordinates to touch locating information identical, perform step S508, described touch article coordinate is divided into to invalid touch article coordinate; Otherwise execution step S509, be divided into effective touch article coordinate by described touch article coordinate.
In the photographing type touch control method of present embodiment, the image in the described touch control zone that each described camera head is taken is divided into a plurality of subregion images, and correspondingly described touch control zone is divided into to a plurality of shooting subregions for each camera head.When photographing the touch objects image, judgement touch objects image appears at that subregion image, thereby can judge which shooting subregion that described touch objects appears at each camera head.Whether each appearance according to described touch objects taken subregion common overlapping region, whether the combination that judges each described subregion image is effective, if effectively, illustrate that corresponding described touch objects is likely all photographed by all camera heads, and touch article coordinate, within described touch control regional extent, therefore is divided into effective touch objects by these touch objects; If photograph touch objects in corresponding subregion image, but the combination of each described subregion image is invalid, illustrate that described touch objects is not all photographed by each camera head, or touch article coordinate is invalid touch objects outside described touch control regional extent.
Therefore, photographing type touch control method by present embodiment can be in the situation that do not calculate the coordinate of touch objects, according to the subregion image that photographs the touch objects appearance, whether touch objects is effectively carried out to preliminary judgement, the touch objects that exclusive segment is invalid, at the coordinate time that calculates each touch objects, without calculating the coordinate that is divided into invalid touch objects again, greatly reduced and touched the operand of location and the time delay of location, improved the speed of camera type touch location.
Refer to Fig. 9, Fig. 9 is the structural representation of camera type touch control device of the present invention.
Described camera type touch control device comprises:
Image collection module 901, the image in the described touch control zone of taking respectively at least three camera heads that obtain the touch control edges of regions that is arranged on display device;
Touch objects locating module 902, for the touch locating information of taking according to each described camera head, calculate touch article coordinate; Wherein, described touch locating information comprises the positional information of touch objects image in the image in the described touch control zone of each described camera head shooting;
Comparer 903, touch locating information for corresponding each of one of them described touch article coordinate relatively, whether respectively one of them corresponding with other touch article coordinates to touch locating information identical;
Coordinate sort module 904, while being identical for the comparative result at described comparer, be divided into invalid touch article coordinate by described touch article coordinate; While being incomplete same, described touch article coordinate is divided into to effective touch article coordinate at the comparative result of described comparer.
Wherein, described touch control zone is user's touch control to be taken to the zone of location, is preferably the zone of the positive top of described display device.Touch operation in described touch control zone will be detected, and as the information of touch control, is processed.
Described image collection module 901 can be by the image that therefrom obtains described touch control zone that is connected with each described camera head.
For guaranteeing that each camera head can both photograph the image in the touch control zone of complete described display device, therefore, the shooting visual angle of each described camera head all must comprise whole described touch control zone.The shooting axle preferred parallel of each described camera head is in the plane of described camera head, from the side described touch control zone is taken, when having touch objects to appear at described touch control zone, photograph equally from the side the image that described touch objects appears at described touch control zone.
The setting position of described three camera heads can be set according to those skilled in the art's needs on each position of described touch control edges of regions, those skilled in the art only need to obtain the position coordinates of described three camera heads and the relative position of described display device, just can calculate by computing the position relationship in the touch control zone of the photographic images of each camera head and described display device, thereby the touch objects occurred in described touch control zone is positioned.
And as preferred embodiment a kind of, three described camera heads are separately positioned on the two ends on described display device one side and the midpoint on described limit, and the shooting angle that is arranged on two described camera heads at described display device two ends on one side is 90 degree, and the shooting angle that is arranged on the camera head of described limit midpoint is 180 degree.Therefore can utilize three camera heads just whole described touch control zone to be taken, and avoid touch objects to appear at two situations between camera head.
The detection and location of touch objects are calculated for convenience of description, below with two-dimensional touch, orientate the example explanation as:
Refer to Fig. 4, the plane at display device 11 places, using the Nei De any point, plane at display device 11 places as true origin, sets up coordinate system.The touch control zone of described display device 11 is the zone onesize with the positive viewing area of described display device 11.As to take the first camera head A be true origin,, the coordinate of this first camera head A is (0,0), and the length of establishing one side 111 of this display device 11 is L, the coordinate of the second camera head B is (L, 0), the coordinate of the 3rd camera head C is (L/2,0), the coordinate of touch objects O is unknown-value (x, y).Obtain respectively the image that it is taken the touch control zone of described display device 11 respectively from described the first camera head A, described the second camera head B and described the 3rd camera head C.
The touch locating information that described touch objects locating module 902 is taken according to each described camera head, calculate touch article coordinate.Wherein, the positional information of described touch objects image in the described image of stating the touch control zone can mean with the distance value of the image border in touch objects image and described touch control zone; The information of shooting angles that each camera head that also can calculate according to described relative position information is taken described touch objects, mean the position of touch objects image in the image in the described touch control zone of each described camera head shooting with described information of shooting angles.
Described touch objects locating module 902, according to the described touch locating information of two camera heads, can be determined the intersection point of two straight lines from two camera heads to touch article coordinate, and described intersection point is the preliminary coordinate of touch objects.
Those skilled in the art can, according to the prior art of camera type touch control technology, adopt other conventional computing method to calculate described touch article coordinate.
As a kind of preferred implementation of described touch objects locating module 902, described touch objects locating module 902 comprises:
The Primary Location module, for the described touch locating information according to described the first camera head and described the second camera head shooting, calculate the first preliminary coordinate of touch objects; And, according to the described touch locating information that described the first camera head and described the 3rd camera head are taken, calculate the second preliminary coordinate of touch objects;
Locating module, be defined as touch article coordinate by identical coordinate points in described the first preliminary coordinate and described the second preliminary coordinate.
This kind of method need to be calculated the preliminary coordinate of twice touch objects, then the preliminary coordinate of twice calculating is compared to definite touch article coordinate.Comparison of computational results is accurate, is easy to realize.
As the another kind of preferred implementation of described touch objects locating module 902, described touch objects locating module 902 comprises:
The Primary Location module, for the described touch locating information according to described the first camera head and described the second camera head shooting, calculate the first preliminary coordinate of touch objects;
Computing module, for the coordinate according to described the first preliminary coordinate and the 3rd camera head, calculate the theoretical value of described the 3rd camera head to the touch locating information of described the first preliminary coordinate shooting;
Locating module, for the actual value of the touch locating information of the theoretical value by described touch locating information and described the 3rd camera head relatively, if comparative result is identical, be defined as touch article coordinate by described first preliminary coordinate of correspondence.
This kind of method is without the preliminary coordinate of calculating twice touch objects, but the coordinate of the preliminary coordinate that utilization is once calculated and another camera head calculates the theoretical value of the touch locating information of another camera head, by the actual value of the touch locating information of described theoretical value and another camera head relatively, again described the first preliminary coordinate is screened, obtained touch article coordinate.Because without the calculating of carrying out twice preliminary coordinate, so operand is less, be conducive to improve locating speed.
Described comparer 903 is touch locating information corresponding to each described touch article coordinate relatively;
If corresponding each of one of them described touch article coordinate touches locating information, all respectively one of them corresponding with other touch article coordinates to touch locating information identical, illustrate on the line of this touch article coordinate and each camera head that it is very likely by the overlapping and erroneous judgement in the shooting visual angle of other touch objects that other touch article coordinate, this touch article coordinate are arranged;
Therefore, described coordinate sort module 904 is divided into invalid touch article coordinate by described touch article coordinate;
If corresponding each of described touch article coordinate touches locating information, not all one of them corresponding with other touch article coordinates to touch locating information identical, illustrate that this touch article coordinate can not be by overlapping the forming in shooting visual angle to other touch objects, has real touch objects on this touch article coordinate;
Therefore, described coordinate sort module 904 is divided into effective touch article coordinate by described touch article coordinate.
Compared with prior art, in camera type touch control device of the present invention, after described touch objects locating module calculates touch article coordinate, described comparer is touch locating information corresponding to each described touch article coordinate relatively, described coordinate sort module is screened the touch article coordinate calculated according to comparative result, eliminating, because taking the touch article coordinate of the overlapping erroneous calculations caused in visual angle, is judged effective touch article coordinate.Thereby the minimizing location of mistake, improve positional accuracy.
Refer to Figure 10, Figure 10 is the structural representation of a kind of preferred implementation of camera type touch control device of the present invention.
Described camera type touch control device comprises:
Image collection module 101, the image in the described touch control zone of taking respectively at least three camera heads that obtain the touch control edges of regions that is arranged on display device;
Module 102 is divided in zone, be divided at least two sub regions images for the image in described touch control zone that each described camera head is taken being parallel on the direction of described display device, and, according to the dividing mode of described subregion image and effective coordinate range in described touch control zone, described touch control zone is divided into respectively at least two with respect to each camera head and takes subregion;
Judge module 103, for when the touch objects image appears at least three described subregion images, according to each described shooting subregion corresponding with each described subregion image, whether common overlapping region is arranged, judge that whether the combination of each described subregion image is effective;
Touch objects sort module 104, when judgment result is that of described judge module is, be divided into effective touch objects by described touch objects; When the determination result is NO, described touch objects is divided into to invalid touch objects at described judge module.
Touch objects locating module 105, according to the touch locating information of each described camera head shooting, calculates the coordinate of effective touch objects; Do not calculate the coordinate that described touch objects sort module is divided into invalid touch objects.
Wherein, described touch locating information comprises the positional information of touch objects image in the image in the described touch control zone of each described camera head shooting;
Comparer 106, touch locating information for corresponding each of one of them described touch article coordinate relatively, whether respectively one of them corresponding with other touch article coordinates to touch locating information identical;
Coordinate sort module 107, while being identical for the comparative result at described comparer, be divided into invalid touch article coordinate by described touch article coordinate; While being incomplete same, described touch article coordinate is divided into to effective touch article coordinate at the comparative result of described comparer.
Wherein, module 102 is divided when carrying out the division of described subregion image in described zone, the division number of described subregion image, and the size of each described subregion image etc. can need to be set according to user's self use.The overall principle is: the division number of described subregion image is more, anticipation elimination ability to touch objects is just stronger, but the operand that anticipation is got rid of can increase and become large along with the division number of subregion image again, therefore the division number of described subregion image should be chosen moderate, both guarantee enough anticipation elimination abilities, and can not increase again too much extra computing.And the size of each described subregion image is preferably the equal portions division, can reduce operand.
As a kind of preferred implementation, the image in the described touch control zone that module 102 can take two camera heads that are arranged on described display device two ends is on one side divided in described zone, is divided into three sub regions images equal in length being parallel on described display device direction; And the image in the described touch control zone taken of the camera head that will be arranged on the midpoint on described limit, be divided into six sub regions images equal in length being parallel on described display device direction.Through overtesting, the dividing mode of this seed region image can realize the anticipation of touch objects is got rid of efficiently, also can ensure higher arithmetic speed, is dividing mode preferably.
As another kind of preferred implementation of the present invention, module 102 is divided in described zone also can be divided into three sub regions images equal in length being parallel on described display device direction by the image in described touch control zone; Corresponding described touch control zone is divided into each described camera head: take described camera head place is summit, and three of equating of drift angle take subregions.
Each shooting subregion that the corresponding described subregion image division of module 102 is divided in described zone is all within the effective range in described touch control zone, that is to say, any point in the effective range in described touch control zone all should appear at (ax, bx, cx), in the shooting subregion set formed, every sub regions in described touch control zone is corresponding overlapping the forming of shooting subregion by different camera heads all.
When there is touch objects in described touch control zone, each described camera head all can photograph the touch objects image, and described touch objects image appears at respectively in one of them subregion image of each described camera head shooting.Now, described judge module 103 is according to the corresponding relation of described subregion image and described shooting subregion, and the combination of each described subregion image is judged.
The judgment rule of described judge module 103 is: whether each described shooting subregion corresponding to each described subregion image that described touch objects image occurs has common overlapping region, and the combination of each corresponding described subregion image is effective; Otherwise invalid.
In a preferred implementation, described judge module 103 can be when touch objects occurs, the instant dividing mode according to each the described subregion image that the touch objects image occurs, and effective coordinate range in described touch control zone, the coordinate range of each described shooting subregion of calculating correspondence respectively; And, according to the coordinate range of each described shooting subregion, judge whether each described shooting subregion has common overlapping region; If common overlapping region is arranged, being combined as of each described subregion image of judgement correspondence is effective; If there is no common overlapping region, being combined as of each described subregion image of judgement correspondence is invalid.This method is whether calculate the combination of each described subregion image when touch objects occurs effective again, now because determined shooting subregion corresponding to described touch objects, so only need less computing.
In another preferred implementation, described judge module 103 comprises:
Presetting module, for in advance according to the dividing mode of each described subregion image, and effective coordinate range in described touch control zone, calculate in advance the coordinate range of all described shooting subregions, and from described at least three camera heads a plurality of shooting subregions separately, get respectively one of them shooting subregion and combined, judge whether each shooting subregion has common overlapping region; If common overlapping region is arranged, the combination of each described subregion image of correspondence is divided into to effective combination; If there is no common overlapping region, the combination of each described subregion image of correspondence is divided into to invalid combination;
The real-time judge module, while for the subregion image of taking at each described camera head, the touch objects image occurring, directly judge whether each described subregion image forms described effective combination.Thereby whether the combination that can judge fast each described subregion image is effective.
This method is before touch objects occurs, described presetting module calculates effective shooting subregion combination with regard to budget, or the combination of subregion image.And when touch objects is arranged, described real-time judge module directly judges the whether corresponding effectively combination of each sub regions image that the touch objects image occurs, if just can directly judge corresponding shooting subregion, common overlapping region is arranged, without carrying out again coordinate calculating, can greatly reduce the operation time in position fixing process.
If the combination of described judge module 103 each described subregion images of judgement is effective, illustrate that described touch objects is all photographed by each camera head, and touch article coordinate is within described touch control regional extent, for effective touch objects, therefore described touch objects sort module 104 is divided into effective touch objects by described touch objects.If the combination of described judge module 103 each described subregion images of judgement is invalid, illustrate that described touch objects is not all to be photographed by each camera head, perhaps touch article coordinate is outside described touch control regional extent, for invalid touch objects, therefore described touch objects sort module 104 is divided into invalid touch objects by described touch objects.
Described touch objects locating module 105, at the coordinate time that calculates touch objects, can directly be ignored invalid touch objects, only effective touch objects is calculated, and saves the computing time to invalid touch article coordinate, accelerates locating speed.
In the camera type touch control device of present embodiment, described zone is divided module the image in the described touch control zone of each described camera head shooting is divided into to a plurality of subregion images, and correspondingly described touch control zone is divided into to a plurality of shooting subregions for each camera head.While in the image in the touch control zone obtained in described image collection module, the touch objects image occurring, described judge module appears at that subregion image according to the touch objects image, thereby can judge which shooting subregion that described touch objects appears at each camera head.Whether each appearance according to described touch objects again taken subregion common overlapping region, whether the combination that judges each described subregion image is effective, if effectively, illustrate that corresponding described touch objects is likely all photographed by all camera heads, and touch article coordinate, within described touch control regional extent, therefore is divided into effective touch objects by described touch objects sort module by these touch objects; If photograph touch objects in corresponding subregion image, but the combination of each described subregion image is invalid, illustrate that described touch objects is not all photographed by each camera head, perhaps touch article coordinate, outside described touch control regional extent, is divided into invalid touch objects by described sort module by it.
Camera type touch control device by present embodiment can be in the situation that do not calculate the coordinate of touch objects, according to the subregion image that photographs the touch objects appearance, whether touch objects is effectively carried out to preliminary judgement, the touch objects that exclusive segment is invalid, at the coordinate time that calculates each touch objects,, without calculating again the coordinate that is divided into invalid touch objects, greatly reduced and touched the operand of location and the time delay of location, improved the speed of camera type touch location.
Coordinate of the present invention is identical or overlapping, be all the error in considering the shooting process of camera head, and defines on the basis of the suitable error of computation process, and identical or overlapping on absolute sense frequently.Should in having allowed the certain error scope, understand identical or the overlapping and similar description of coordinate of the present invention.
The present invention is not limited to above embodiment, for example: apply photographing type touch control method of the present invention and the device can carry out the multipoint positioning more than 3.For example, while carrying out the multipoint positioning (four point positioning) more than 3, the photographic images information combination of two of each camera head is solved, contrast obtains the touch objects actual coordinate.
In addition, by understanding technical scheme of the present invention, those skilled in the art will recognize, the photographic images information that makes these all camera heads combination of two respectively solves, perhaps by the number that increases camera head, increase the image information of shooting, can make the location of this photographing type touch control method of the present invention and device thereof more accurate, also can realize more easily the multipoint positioning more than 3.
Above-described embodiment of the present invention, do not form limiting the scope of the present invention.Any modification of doing within the spirit and principles in the present invention, be equal to and replace and improvement etc., within all should being included in claim protection domain of the present invention.