Summary of the invention
The object of the present invention is to provide and a kind ofly can reduce operand, improve locating speed, and can reduce requirement, lower-cost camera type touch control method camera head.
A kind of camera type touch control method may further comprise the steps:
Obtain first camera head and second camera head and take the touch locating information of the touch control area of display device, calculate first preliminary coordinate of touch objects; Wherein, said first camera head and said second camera head are arranged on the edge of said touch control area, and said touch control area is taken; Said touch locating information comprises the positional information of touch objects image in the image of the said touch control area that each said camera head is taken; Said touch control area is divided into first subregion and second subregion;
According to said first subregion of said touch control area and the division scope of said second subregion, judge the subregion that said first preliminary coordinate is affiliated;
According to the judged result of subregion under said first preliminary coordinate, obtain said first subregion of the 3rd camera head or the 4th camera head shooting or the touch locating information of said second subregion; Wherein, said the 3rd camera head and said the 4th camera head are arranged on the edge of said touch control area, respectively said first subregion and said second subregion are taken;
According to the position coordinates of said first preliminary coordinate and said the 3rd camera head or said the 4th camera head, calculate said the 3rd camera head or said the 4th camera head theoretical value to the touch locating information of said first preliminary coordinate;
Compare calculating the theoretical value of the said touch locating information that obtains and the touch locating information of said the 3rd camera head or the shooting of said the 4th camera head;
When comparative result is identical, said first preliminary coordinate of correspondence is confirmed as touch article coordinate.
Compared with prior art; In the camera type touch control method of the present invention; At first calculate first preliminary coordinate of touch objects, the coordinate Calculation according to said first preliminary coordinate and the 3rd camera head or the 4th camera head goes out the theoretical value of the said the 3rd or the 4th camera head to the touch locating information of said first preliminary coordinate shooting then; Theoretical value with said touch locating information compares with the actual value of taking acquisition again, thereby said first preliminary coordinate is screened, and directly can confirm touch article coordinate according to the coordinate after the screening.Need not to carry out the calculating of twice preliminary coordinate, reduced operand the calculating of touch article coordinate, and the time-delay of location, the speed of camera type touch location improved.And; Owing to adopted the 3rd camera head and the 4th camera head respectively said first subregion and second subregion to be taken; Therefore only definite subregion that need possibly occur according to the said first preliminary coordinate touch objects; Camera head from correspondence obtains photographic images again; Needn't obtain the photographic images of two camera heads; Simplify positioning flow, accelerated locating speed.And high performance fish eye lens need not be installed, the linear array camera that available cost is lower gets final product, and has reduced cost.
Another object of the present invention is to provide a kind of and can reduce operand, improve locating speed, and can reduce requirement, lower-cost camera type touch control device camera head.
A kind of camera type touch control device comprises:
The image information acquisition module; Be used to obtain first camera head and second camera head and take the touch locating information of the touch control area of display device; Wherein, Said first camera head and said second camera head are arranged on the edge of said touch control area, and said touch control area is taken; Said touch locating information comprises the positional information of touch objects image in the image of the said touch control area that each said camera head is taken; Said touch control area is divided into first subregion and second subregion;
The Primary Location module is used for the touch locating information according to said first camera head and second camera head, calculates first preliminary coordinate of touch objects;
The subregion judge module is used for according to said first subregion of said touch control area and the division scope of said second subregion, judges the subregion that said first preliminary coordinate is affiliated;
Select module, be used for judged result, obtain said first subregion of the 3rd camera head or the 4th camera head shooting or the touch locating information of said second subregion according to subregion under said first preliminary coordinate; Wherein, said the 3rd camera head and said the 4th camera head are arranged on the edge of said touch control area, respectively said first subregion and said second subregion are taken;
The locating information computing module; Be used for position coordinates, calculate said the 3rd camera head or said the 4th camera head theoretical value the touch locating information of said first preliminary coordinate according to said first preliminary coordinate and said the 3rd camera head or said the 4th camera head;
Locating module; Be used for comparing with calculating the theoretical value of the said touch locating information that obtains and the touch locating information of said the 3rd camera head or the shooting of said the 4th camera head; When comparative result is identical, said first preliminary coordinate of correspondence is confirmed as touch article coordinate.
Compared with prior art; In the camera type touch control device of the present invention; Said Primary Location module is at first calculated first preliminary coordinate of touch objects, and said then locating information computing module goes out the theoretical value of the said the 3rd or the 4th camera head to the touch locating information of said first preliminary coordinate shooting according to the coordinate Calculation of said first preliminary coordinate and the 3rd or the 4th camera head; Said locating module compares the theoretical value of said touch locating information with the actual value of taking acquisition, thereby said first preliminary coordinate is screened, and directly can confirm touch article coordinate according to the coordinate after the screening.Need not to carry out the calculating of twice preliminary coordinate, reduced operand the calculating of touch article coordinate, and the time-delay of location, the speed of camera type touch location improved.
And; Owing to adopted the 3rd camera head and the 4th camera head respectively said first subregion and second subregion to be taken; Therefore only definite subregion that need possibly occur according to the said first preliminary coordinate touch objects; Camera head from correspondence obtains photographic images again; Needn't obtain the photographic images of two camera heads; Simplify positioning flow, accelerated locating speed.And high performance fish eye lens need not be installed, the linear array camera that available cost is lower gets final product, and has reduced cost.
Embodiment
See also Fig. 2, Fig. 2 is the process flow diagram of camera type touch control method of the present invention.
Said camera type touch control method may further comprise the steps:
S201 obtains the touch locating information that first camera head and second camera head are taken the touch control area of display device, calculates first preliminary coordinate of touch objects;
Wherein, said first camera head and said second camera head are arranged on the edge of said touch control area, and said touch control area is taken; Said touch locating information comprises the positional information of touch objects image in the image of the said touch control area that each said camera head is taken; Said touch control area is divided into first subregion and second subregion;
Said touch control area is that positioned area is taken in user's touch control, and the positive top certain altitude that is preferably said display device is with interior zone.Touch operation in said touch control area will be to be detected, handles as the information that touches control.
Said touch objects image can be represented with the distance value of the image border of touch objects image and said touch control area in the said positional information of stating in the image that touches the control area; Also the information of shooting angles that can take said touch objects according to each camera head that said relative position information calculates is represented the position of touch objects image in the image of the said touch control area that each said camera head is taken with said information of shooting angles.
According to the said touch locating information of two camera heads, can confirm the intersection point of two straight lines from two camera heads to touch article coordinate, said intersection point is the preliminary coordinate of touch objects.
For guaranteeing that each camera head can both photograph the image of the touch control area of complete said display device, therefore, the shooting visual angle of each said camera head all must comprise whole said touch control area.The shooting axle preferred parallel of each said camera head is in the plane of said camera head; From the side said touch control area is taken; When touch objects appears at said touch control area, photograph the image that said touch objects appears at said touch control area equally from the side.As shown in Figure 5.
The position is set is set on each position at edge, said touch control area according to those skilled in the art's needs of said first, second camera head; Those skilled in the art only need obtain the relative position of said first, second camera head and said display device; Just can calculate the position relation of touch control area of photographic images and the said display device of each camera head, thereby the touch objects that occurs in the said touch control area is positioned through computing.
And as preferred embodiment a kind of; Said first camera head and said second camera head are separately positioned on the two ends on same one side of said touch control area; And shooting angle is more than or equal to 90 degree, can adopt lower-cost linear array camera to realize.
The detection and location that touch objects is described are for ease calculated, and orientate the position that is provided with of example said first camera head of explanation and second camera head below as with two-dimensional touch:
See also Fig. 3, the plane at display device 11 places as true origin, is set up coordinate system with any point in the plane at display device 11 places.The touch control area of said display device 11 is the zone onesize with the positive viewing area of said display device 11.As being true origin with the first camera head A, then, 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, and the coordinate of the second camera head B is (L, 0), the coordinate of touch objects O be unknown-value (x, y).Obtain the image that it is taken the touch control area of said display device 11 respectively from the said first camera head A, the said second camera head B respectively.
For the division of first subregion and said second subregion of said touch control area, can set according to those skilled in the art's needs equally.Preferably, the separatrix of said first subregion and said second subregion was the vertical line of the mid point on said limit, and said first subregion and said second subregion are divided in the both sides of the mid point on said limit respectively.As shown in Figure 3.In another embodiment, said first subregion and said second subregion have the zone that overlaps each other, and as shown in Figure 4, the separatrix of said first subregion is L1, and the separatrix of said second subregion is L2.
S202 according to said first subregion of said touch control area and the division scope of said second subregion, judges the subregion that said first preliminary coordinate is affiliated.
According to the coordinate figure of said first preliminary coordinate, and the coordinate range of said first subregion and said second subregion, can judge said first preliminary coordinate is to belong to said first subregion or belong to said second subregion.
S203 according to the judged result of subregion under said first preliminary coordinate, obtains said first subregion of the 3rd camera head or the 4th camera head shooting or the touch locating information of said second subregion;
Wherein, said the 3rd camera head and said the 4th camera head are arranged on the edge of said touch control area, respectively said first subregion and said second subregion are taken.As shown in Figure 3.
Preferably; Be separately positioned on the two ends on same one side of said touch control area when said first camera head and said second camera head; When the separatrix of said first subregion and said second subregion was the vertical line of mid point on said limit, said the 3rd camera head and said the 4th camera head were separately positioned on the both sides of said mid point.As shown in Figure 4.And said the 3rd camera head and said the 4th camera head are taken the image of said first subregion and said second subregion respectively; That is; The image combination that said the 3rd camera head and said the 4th camera head are taken can constitute the image of whole said touch control area; And, or have certain superimposed images.
Therefore, said first camera head, said second camera head, said the 3rd camera head and said the 4th camera head can adopt the linear array camera of shooting angle more than or equal to 90 degree, to reduce cost.
As a preferred implementation of the present invention, in this step, start said the 3rd camera head and said the 4th camera head in advance; When judging that said first preliminary coordinate belongs to first subregion, obtain the touch locating information of said first subregion of said the 3rd camera head shooting; When judging that said first preliminary coordinate belongs to second subregion, obtain the touch locating information of said second subregion of said the 4th camera head shooting.
Promptly; After touching the detection beginning; Keep the shoot function of said the 3rd camera head and said the 4th camera head to open; After the subregion judged result occurs; Can get access to said touch locating information rapidly from said the 3rd camera head or said the 4th camera head of opening shoot function at once, have higher locating speed.
As another preferred embodiment of the present invention; In this step; After touching the detection beginning; The shoot function of said the 3rd camera head and said the 4th camera head is not what be held open; But after judging the subregion that said first preliminary coordinate belongs to, select to open according to the subregion judged result.That is:
When judging that said first preliminary coordinate belongs to first subregion, start said the 3rd camera head, obtain the touch locating information that said the 3rd camera head is taken said first subregion;
When judging that said first preliminary coordinate belongs to second subregion, start said the 4th camera head, obtain the touch locating information that said the 4th camera head is taken said second subregion.
Because according to the subregion judged result, select the shoot function that a ground starts said the 3rd camera head or said the 4th camera head, therefore said the 3rd camera head or said the 4th camera head needn't remain on opening, energy savings.
S204 according to the position coordinates of said first preliminary coordinate and said the 3rd camera head or said the 4th camera head, calculates said the 3rd camera head or said the 4th camera head theoretical value to the touch locating information of said first preliminary coordinate;
Position coordinates according to said first preliminary coordinate and the 3rd camera head; Perhaps according to the position coordinates of said first preliminary coordinate and said the 4th camera head; Can calculate the straight line of confirming through the position coordinates of said first preliminary coordinate and the 3rd camera head, perhaps calculate the straight line of confirming through the position coordinates of said first preliminary coordinate and said the 4th camera head.As shown in Figure 4; Appearance point a, b 2 points in touching the control area; Then first camera head and second camera head all photograph two touch points; In step S201, calculate first preliminary coordinate and be an a, b, c, d; Scope according to said some a, b, c, d and first subregion, second subregion; Judge that b, c, d belong to first subregion at said, said some a, b, c belong to second subregion; Therefore; Calculate said some b, c, d line respectively to said the 3rd camera head; And said some a is to the line of said the 4th camera head; Thereby can be according to the angle at said line and edge, said touch control area; Calculate the information of shooting angles of said the 3rd camera head to a b, c, d; And said the 4th camera head perhaps further calculates the theoretical position information of image in the image of the said touch control area that the said the 3rd or the 4th camera head is taken of b, c, d and some d at said to the information of shooting angles of an a.
S205 compares calculating the theoretical value of the said touch locating information that obtains and the touch locating information of said the 3rd camera head or the shooting of said the 4th camera head;
With the theoretical position information of image in the image of the said touch control area that the said the 3rd or the 4th camera head is taken of said some b, c, d and the some d of aforementioned calculation, the touch locating information that comprises in the image of taking with said the 3rd camera head or said the 4th camera head relatively;
If comparative result is identical, illustrate that then said first preliminary coordinate is consistent with the touch locating information that the said the 3rd or the 4th camera head actual photographed obtains, so execution in step S206, said first preliminary coordinate of correspondence is confirmed as touch article coordinate.
If comparative result is inequality; The touch locating information that the acquisition of said first preliminary coordinate and the said the 3rd or the 4th camera head actual photographed then is described is inconsistent; Said first preliminary coordinate is an invalid coordinates; Said first preliminary coordinate up to all has all been judged; Return step S201, again new touch point is positioned.
Compared with prior art; In the camera type touch control method of the present invention; At first calculate first preliminary coordinate of touch objects, the coordinate Calculation according to said first preliminary coordinate and the 3rd camera head or the 4th camera head goes out the theoretical value of the said the 3rd or the 4th camera head to the touch locating information of said first preliminary coordinate shooting then; Theoretical value with said touch locating information compares with the actual value of taking acquisition again, thereby said first preliminary coordinate is screened, and directly can confirm touch article coordinate according to the coordinate after the screening.Need not to carry out the calculating of twice preliminary coordinate, reduced operand the calculating of touch article coordinate, and the time-delay of location, the speed of camera type touch location improved.
And; Owing to adopted the 3rd camera head and the 4th camera head respectively said first subregion and second subregion to be taken; Therefore only definite subregion that need possibly occur according to the said first preliminary coordinate touch objects; Camera head from correspondence obtains photographic images again; Needn't obtain the photographic images of two camera heads; Simplify positioning flow, accelerated locating speed.And high performance fish eye lens need not be installed, the linear array camera that available cost is lower gets final product, and has reduced cost
See also Fig. 6, Fig. 6 is the structural representation of camera type touch control device of the present invention.
Said camera type touch control device comprises:
Image information acquisition module 11; Be used to obtain first camera head and second camera head and take the touch locating information of the touch control area of display device; Wherein, Said first camera head and said second camera head are arranged on the edge of said touch control area, and said touch control area is taken; Said touch locating information comprises the positional information of touch objects image in the image of the said touch control area that each said camera head is taken; Said touch control area is divided into first subregion and second subregion;
Primary Location module 12 is used for the touch locating information according to said first camera head and second camera head, calculates first preliminary coordinate of touch objects
Subregion judge module 13 is used for according to said first subregion of said touch control area and the division scope of said second subregion, judges the subregion that said first preliminary coordinate is affiliated;
Select module 14, be used for judged result, obtain said first subregion of the 3rd camera head or the 4th camera head shooting or the touch locating information of said second subregion according to subregion under said first preliminary coordinate; Wherein, said the 3rd camera head and said the 4th camera head are arranged on the edge of said touch control area, respectively said first subregion and said second subregion are taken;
Locating information computing module 15; Be used for position coordinates, calculate said the 3rd camera head or said the 4th camera head theoretical value the touch locating information of said first preliminary coordinate according to said first preliminary coordinate and said the 3rd camera head or said the 4th camera head;
Locating module 16; Be used for comparing with calculating the theoretical value of the said touch locating information that obtains and the touch locating information of said the 3rd camera head or the shooting of said the 4th camera head; When comparative result is identical, said first preliminary coordinate of correspondence is confirmed as touch article coordinate.
Said touch control area is that positioned area is taken in user's touch control, and the positive top certain altitude that is preferably said display device is with interior zone.Touch operation in said touch control area will be to be detected, handles as the information that touches control.
In the touch locating information that said image information acquisition module 11 is obtained, said touch objects image can be represented with the distance value of the image border of touch objects image and said touch control area in the said positional information of stating in the image that touches the control area; Also the information of shooting angles that can take said touch objects according to each camera head that said relative position information calculates is represented the position of touch objects image in the image of the said touch control area that each said camera head is taken with said information of shooting angles.
For guaranteeing that each camera head can both photograph the image of the touch control area of complete said display device, therefore, the shooting visual angle of each said camera head all must comprise whole said touch control area.The shooting axle preferred parallel of each said camera head is in the plane of said camera head; From the side said touch control area is taken; When touch objects appears at said touch control area, photograph the image that said touch objects appears at said touch control area equally from the side.As shown in Figure 5.
The position is set is set on each position at edge, said touch control area according to those skilled in the art's needs of said first, second camera head; Those skilled in the art only need obtain the relative position of said first, second camera head and said display device; Just can calculate the position relation of touch control area of photographic images and the said display device of each camera head, thereby the touch objects that occurs in the said touch control area is positioned through computing.
And as preferred embodiment a kind of; Said first camera head and said second camera head are separately positioned on the two ends on same one side of said touch control area; And shooting angle is more than or equal to 90 degree, can adopt lower-cost linear array camera to realize.
For the division of first subregion and said second subregion of said touch control area, can set according to those skilled in the art's needs equally.Preferably, the separatrix of said first subregion and said second subregion was the vertical line of the mid point on said limit, and said first subregion and said second subregion are divided in the both sides of the mid point on said limit respectively.As shown in Figure 3.In another embodiment, said first subregion and said second subregion have the zone that overlaps each other, and as shown in Figure 4, the separatrix of said first subregion is L1, and the separatrix of said second subregion is L2.
Said Primary Location module 12 can be confirmed the intersection point of two straight lines from two camera heads to touch article coordinate according to the said touch locating information of two camera heads, and said intersection point is the preliminary coordinate of touch objects.
Said subregion judge module 13 is according to the coordinate figure of said first preliminary coordinate, and the coordinate range of said first subregion and said second subregion, and can judge said first preliminary coordinate is to belong to said first subregion or belong to said second subregion.
Said selection module 14 is obtained said first subregion of the 3rd camera head or the 4th camera head shooting or the touch locating information of said second subregion according to the judged result of said subregion judge module 13; Wherein, said the 3rd camera head and said the 4th camera head are arranged on the edge of said touch control area, respectively said first subregion and said second subregion are taken.
Preferably; Be separately positioned on the two ends on same one side of said touch control area when said first camera head and said second camera head; When the separatrix of said first subregion and said second subregion was the vertical line of mid point on said limit, said the 3rd camera head and said the 4th camera head were separately positioned on the both sides of said mid point.And said the 3rd camera head and said the 4th camera head are taken the image of said first subregion and said second subregion respectively; That is; The image combination that said the 3rd camera head and said the 4th camera head are taken can constitute the image of whole said touch control area; And, or have certain superimposed images.
Said first camera head, said second camera head, said the 3rd camera head and said the 4th camera head can adopt the linear array camera of shooting angle more than or equal to 90 degree, to reduce cost.
As a preferred implementation of camera type touch control device of the present invention, said camera type touch control device further comprises shooting control module (figure does not show), and said shooting control module has following two kinds of mode of operations at least:
Wherein a kind of mode of operation of said shooting control module is: said shooting control module starts said the 3rd camera head and said the 4th camera head after said camera type touch control device starts; That is, after touching the detection beginning, keep the shoot function of said the 3rd camera head and said the 4th camera head to open.
Then, when said selection module 14 judges that at said subregion judge module 13 said first preliminary coordinate belongs to first subregion, obtain the touch locating information of said first subregion of said the 3rd camera head shooting; When said subregion judge module 13 judges that said first preliminary coordinate belongs to second subregion, obtain the touch locating information of said second subregion of said the 4th camera head shooting.
Because after the subregion judged result occurs, can get access to said touch locating information rapidly from said the 3rd camera head or said the 4th camera head of opening shoot function at once, so have higher locating speed.
The another kind of mode of operation of said shooting control module is: when said shooting control module judges that at said subregion judge module 13 said first preliminary coordinate belongs to first subregion; Start said the 3rd camera head; When said subregion judge module 13 judges that said first preliminary coordinate belongs to second subregion, start said the 4th camera head;
Then, when said selection module 14 judges that at said subregion judge module 13 said first preliminary coordinate belongs to first subregion, obtain the touch locating information of said first subregion of said the 3rd camera head shooting; When said subregion judge module 13 judges that said first preliminary coordinate belongs to second subregion, obtain the touch locating information of said second subregion of said the 4th camera head shooting.
Because after touching the detection beginning; The shoot function of said the 3rd camera head and said the 4th camera head is not what be held open; But after judging the subregion that said first preliminary coordinate belongs to; According to the subregion judged result; Select a ground and start said the 3rd camera head or said the 4th camera head; Therefore said the 3rd camera head or said the 4th camera head needn't remain on opening, energy savings.
Said locating information computing module 15 is according to the position coordinates of said first preliminary coordinate and the 3rd camera head; Perhaps according to the position coordinates of said first preliminary coordinate and said the 4th camera head; Can calculate the straight line of confirming through the position coordinates of said first preliminary coordinate and the 3rd camera head, perhaps calculate the straight line of confirming through the position coordinates of said first preliminary coordinate and said the 4th camera head.Thereby can be according to the angle at said straight line and edge, said touch control area; Calculate the information of shooting angles of the said the 3rd or the 4th camera head, perhaps further calculate the theoretical position information of image in the image of the said touch control area that the said the 3rd or the 4th camera head is taken of said first preliminary coordinate said first preliminary coordinate.
Said locating module 16 will calculate the theoretical value of the said touch locating information that obtains and the touch locating information of said the 3rd camera head or the shooting of said the 4th camera head compares;
If comparative result is inequality, illustrate that then the touch locating information of said first preliminary coordinate and the said the 3rd or the 4th camera head actual photographed acquisition is inconsistent, said first preliminary coordinate is an invalid coordinates.
If comparative result is identical, illustrate that then said first preliminary coordinate is consistent with the touch locating information that the said the 3rd or the 4th camera head actual photographed obtains, therefore said locating module 16 is confirmed as touch article coordinate with said first preliminary coordinate of correspondence.
Compared with prior art; In the camera type touch control device of the present invention; Said Primary Location module is at first calculated first preliminary coordinate of touch objects, and said then locating information computing module goes out the theoretical value of the said the 3rd or the 4th camera head to the touch locating information of said first preliminary coordinate shooting according to the coordinate Calculation of said first preliminary coordinate and the 3rd or the 4th camera head; Said locating module compares the theoretical value of said touch locating information with the actual value of taking acquisition, thereby said first preliminary coordinate is screened, and directly can confirm touch article coordinate according to the coordinate after the screening.Need not to carry out the calculating of twice preliminary coordinate, reduced operand the calculating of touch article coordinate, and the time-delay of location, the speed of camera type touch location improved.
And; Owing to adopted the 3rd camera head and the 4th camera head respectively said first subregion and second subregion to be taken; Therefore only definite subregion that need possibly occur according to the said first preliminary coordinate touch objects; Camera head from correspondence obtains photographic images again; Needn't obtain the photographic images of two camera heads; Simplify positioning flow, accelerated locating speed.And high performance fish eye lens need not be installed, the linear array camera that available cost is lower gets final product, and has reduced cost.
It is to be understood that coordinate of the present invention is identical or overlapping; Touch judgements such as locating information unanimity; All be the error in considering the shooting process of camera head, and define on the basis of the suitable error of computation process, and identical, overlapping or consistent on the absolute sense frequently.Should in allowing certain error range, 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: use camera type touch control method of the present invention and the device can carry out the multipoint positioning more than 3.When carrying out the multipoint positioning (for example four point locations) more than 3, the photographic images information of each camera head made up in twos find the solution, contrast obtains the touch objects actual coordinate.
In addition; Through 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 is in twos respectively found the solution; Perhaps increase captured image information through the number that increases camera head; Can make the location of this camera type touch control method of the present invention and device thereof more accurate, also can realize the multipoint positioning more than 3 more easily.
Above-described embodiment of the present invention does not constitute the qualification to protection domain of the present invention.Any modification of within spirit of the present invention and principle, being done, be equal to replacement and improvement etc., all should be included within the claim protection domain of the present invention.