A kind of touch point locating device and methodTechnical field
The present invention relates to the electronic touch technical field, particularly a kind of touch point locating device and method.
Background technology
Existing infrared touching device be with infrared emission and infrared receiver component according to mode one to one form emission receive right, constitute an orthogonal emission receiving array along the touch screen surface edge, by detecting each whether the Infrared between infrared emission and the receiving element is blocked, has judged whether that touch event takes place.This mode has a very big shortcoming can only detect a touch point exactly, if simultaneously when two or more touch points are arranged, then can't distinguish the actual touch point.
Chinese invention patent CN101493740A discloses the method that a kind of infrared touch panel is discerned a plurality of true touch points, this method is at first carried out infrared scan to X-axis, Y-axis and Z-direction, scanning element touches analysis to touch signal, produces the touching position information of X-axis, Y-axis and Z axle; Whether controller judge to produce is effective touching position information, and during effective touching position information, controller is collected this information, and the data of collecting are carried out permutation and combination, produces all combined spot; The controller basis
Respectively all combined spot have been judged whether qualified combined spot,
Be the angle of Z axle scanning element and X-axis scanning element, the positional information of each true touch point of drawing is transferred in the computer system.The infrared scan unit is an infrared tube in this invention, the shortcoming of this method is: the luminous angle of (1) infrared tube is limited, can only increase a dip sweeping, can't carry out twice or twice above dip sweeping, therefore can't realize multi-point scanning truly; (2) infrared tube luminous energy is concentrated among a small circle, and when making dip sweeping, luminous energy is very low, and effect is bad; (3) if adopt the wide-angle infrared tube, then improved the cost of touching device, and power consumption is also higher.
At present the word line infrared laser light source because of its output power is stable, good reliability, distribute power evenly, technical parameters such as live width and the depth of field compare characteristics such as ordinary light source excellence, obtained increasing application in fields such as the detection of industrial products surface quality, guiding against false of paper currency detection, expressway surface quality detections, considered that therefore the word line infrared laser light source is applied to the touch point positioning field becomes a significant problem.
Summary of the invention
One of purpose of the present invention is to overcome above-mentioned shortcoming and defect, and a kind of touch point locating device is provided, apparatus of the present invention have accurate positioning, simple for structure, applied widely, realize that cost is low and can effectively realize advantage such as multiple point touching location.
Two of purpose of the present invention is to provide a kind of touch point localization method based on said apparatus.
One of purpose of the present invention is achieved through the following technical solutions: a kind of touch point locating device, comprise control module, infrared receiving tube array, 2 or 2 above word line infrared laser light sources, described word line infrared laser light source is installed on the diverse location of touch display screen frame, described infrared receiving tube array is installed on the frame of touch display screen, the infrared laser plane that word line infrared laser light source emission infrared laser forms covers touch display screen, and the infrared receiving tube array received on the display screen frame that is touched;
Described control module links to each other with infrared receiving tube array, word line infrared laser light source respectively, and infrared receiving tube array and word line infrared laser light source are controlled.
Purpose to better implement the present invention, the upper left corner of described touch display screen frame and the upper right corner are separately installed with the word line infrared laser light source, and the left frame of described touch display screen, lower frame and left frame are separately installed with the infrared receiving tube array.
Preferably, described touch display screen upper side frame left end, centre and right-hand member are separately installed with 1 word line infrared laser light source, and the left frame of described touch display screen, lower frame and left frame are separately installed with the infrared receiving tube array.
Preferably, the upper left corner of described touch display screen, the upper right corner and the lower right corner are separately installed with the word line infrared laser light source, and every frame of described touch display screen all is equipped with the infrared receiving tube array.
Two of purpose of the present invention is achieved through the following technical solutions: a kind of touch point localization method based on said apparatus may further comprise the steps:
(1) obtains primary data: adjust the vertical height between each word line infrared laser light source and each the infrared receiving tube array, the infrared receiving tube array received that the infrared laser that assurance word line infrared laser light source is launched can be placed on its corresponding position arrives, each infrared receiving tube is numbered and given its coordinate of the foundation own institute coordinate system of building, control module is controlled the independently unlatching successively of each word line infrared laser light source then, control module read successively unlatching the word line infrared laser light source the value of each infrared receiving tube in the corresponding infrared receiving tube array, and these values are charged in the corresponding initialization array as initialization value;
(2) position, touch point scanning: in the course of the work, control module is controlled each word line infrared laser light source and is independently opened successively, then control module read successively unlatching the word line infrared laser light source the value of each infrared receiving tube in the corresponding infrared receiving tube array, and these values and its respective value in the initialization array are compared, if the difference of the two surpasses pre-set threshold, then be judged as the touch point and blocked, write down this infrared receiving tube and word line infrared laser light source place coordinate; After treating that each word line infrared laser light source was all opened once, promptly finish a circulation, enter step (3) then;
(3) position, touch point is determined: each infrared receiving tube that finds in the step (2) is linked to each other with corresponding word line infrared laser light source coordinate, in many oblique lines that obtain, get its intersection point, if the oblique line number by this intersection point equals set word line infrared laser light source number, think that then this intersection point is the coordinate of touch point.
In the described step (2), the time that each word line infrared laser light source is independently opened must be finished more than or equal to control module and be read successively the required time of infrared receiving tube output valve that is covered in this word line LASER Light Source illumination plane.
In the described step (2), pre-set threshold is according to the angle difference of the parameter of each infrared receiving tube, arrangement position, reception light, to reduce number percent with respect to resulting each initial value signal is basis, at least reduce 15% if the initialization value that the signal value that infrared receiving tube obtains is corresponding with it is compared, then be judged as felt pen and blocked.
Compared with prior art, the present invention has following beneficial effect:
The first, accurate positioning, simple for structure: the mode of the present invention by adopting the word line LASER Light Source to combine with infrared receiving tube, adopt infrared light supply to compare merely with prior art, effectively increased emission angle, and the present invention sends is area source, light intensity is more even, also strengthened simultaneously the light intensity that infrared receiving tube receives, make that touching accurate positioning improves greatly, and structure is more succinct, safeguards more convenient.
The second, realize the multiple point touching location: the mode that the present invention can adopt a plurality of word line LASER Light Source to combine with infrared receiving tube, because each word line LASER Light Source can be placed on diverse location, be that different word line LASER Light Source is when being lighted, the source light direction that same infrared receiving tube receives is different, can effectively distinguish a plurality of touch points more, improve the resolution characteristic of touch point, real realization multiple point touching.
Three, applied widely, realize that cost is low.The present invention only needs word line LASER Light Source and infrared receiving tube, does not need to increase extra expensive parts, effectively realizes the multiple point touching location with low cost.In addition, owing to adopt the word line LASER Light Source, the light intensity of the light source that it sends is more even, has also strengthened the light intensity that infrared receiving tube receives simultaneously, therefore is applicable to that also the scope of application is wider than giant-screen.
Description of drawings
Fig. 1 is the structural representation of device among theembodiment 1;
Fig. 2 is the process flow diagram of device work among theembodiment 1;
Fig. 3 is the structural representation of device among the embodiment 2;
Fig. 4 is the structural representation of device among the embodiment 3.
Embodiment
Below in conjunction with embodiment and accompanying drawing, the present invention is described in further detail, but embodiments of the present invention are not limited thereto.
Embodiment 1
A kind of touch point locating device, as shown in Figure 1, comprisecontrol module 201, infraredreceiving tube array 202, word line infraredlaser light source 203 and word line infraredlaser light source 204,control module 201 links to each other, and respectively it is controlled with infraredreceiving tube array 202, word line infraredlaser light source 203, word line infraredlaser light source 204 respectively.
Wherein to be installed on three frames of touch display screen (be that the infrared receiving tube a+1 that installs on the left frame of touch display screen is to a+n to infraredreceiving tube array 202, the infrared receiving tube b+1 that installs on the lower frame of touch display screen is to b+n, the infrared receiving tube c+1 that installs on the left frame of touch display screen is to c+n), the two ends of touch display screen upper side frame are separately installed with word line infraredlaser light source 203 and word line infraredlaser light source 204, word line infrared laser light source (203,204) Fa She infrared laser plane can be received by the infrared receiving tube on the corresponding sides respectively.In the present embodiment, the infrared laser plane of word line infraredlaser light source 203 emission can be by the infrared receiving tube b+1 on the corresponding sides to infrared receiving tube b+n, and infrared receiving tube c+1 is received to infrared receiving tube c+n; The infrared laser plane of word line infraredlaser light source 204 emission can be by infrared receiving tube a+1 on the corresponding sides to infrared receiving tube a+n, and infrared receiving tube b+1 receives to infrared receiving tube b+n.Described infrared laser plane specifically is meant the illumination plane that word line LASER Light Source emission infrared laser forms.
A kind of touch point localization method based on said apparatus may further comprise the steps:
(1) obtains primary data: adjust the vertical height between each word line infrared laser light source and each the infrared receiving tube array, guarantee that the infrared receiving tube array received that infrared laser that each word line infrared laser light source is launched can be placed on its corresponding position arrives, each infrared receiving tube is numbered and given its coordinate of the foundation own institute coordinate system of building, control module is controlled the independently unlatching successively of each word line infrared laser light source then, control module read successively unlatching the word line infrared laser light source the value of each infrared receiving tube in the corresponding infrared receiving tube array, and these values are charged in the corresponding initialization array as initialization value.In the present embodiment, control module control word line infraredlaser light source 203 is opened, control module read successively in 203 corresponding infrared receiving tube arrays of word line infrared laser light source numbering from b+1 to b+n and c+1 to the value of the infrared receiving tube of c+n, and charge to these values in the initialization array of word line infraredlaser light source 203 correspondences as initialization value; Close word line infraredlaser light source 203 then, open word line infraredlaser light source 204, same quadrat method, read its in the corresponding infrared receiving tube array numbering from a+1 to a+n and b+1 to the value of the infrared receiving tube of b+n, and charge to these values in the initialization array of word line infraredlaser light source 204 correspondences as initialization value;
(2) position, touch point scanning: in the course of the work, control module is controlled each word line infrared laser light source and is independently opened successively, then control module read successively unlatching the word line infrared laser light source the value of each infrared receiving tube in the corresponding infrared receiving tube array, and these values and its respective value in the initialization array are compared, if the difference of the two surpasses pre-set threshold, then be judged as the touch point and blocked, write down this infrared receiving tube and word line infrared laser light source place coordinate; After treating that each word line infrared laser light source was all opened once, promptly finish a circulation, enter step (3) then.In the present embodiment, in word line LASER LightSource 203 by in the time periods of lighting,control module 201 reads infrared receiving tube b+1 successively to infrared receiving tube b+n, infrared receiving tube c+1 is to the output valve of infrared receiving tube c+n, and relatively with the output valve of the infrared receiving tube that reads and the corresponding initialization value of this infrared receiving tube, if exist the output valve of certain infrared receiving tube and the difference of the corresponding initialization value of this infrared receiving tube to surpass pre-set threshold, then be judged as and blocked; For example in Fig. 1, the output valve of infrared receiving tube b+17 and the difference of initial value are greater than pre-set threshold, andcontrol module 201 writes down this infrared receiving tube and word line infraredlaser light source 203 place coordinates so; In like manner, in word lineLASER Light Source 204 by in the time periods of lighting,control module 201 reads infrared receiving tube a+1 successively to infrared receiving tube a+n, infrared receiving tube b+1 is to the output valve of infrared receiving tube b+n, and relatively with the output valve of the infrared receiving tube that reads and the corresponding initialization value of this infrared receiving tube, if exist the output valve and the corresponding initialization value 2 of this infrared receiving tube of certain infrared receiving tube to differ, then be judged as and blocked above pre-set threshold; In Fig. 1, the output valve of infrared receiving tube b+5 and the difference of initial value are greater than pre-set threshold, andcontrol module 201 writes down this infrared receiving tube and word line infraredlaser light source 204 place coordinates so.
(3) position, touch point is determined: each infrared receiving tube that finds in the step (2) is linked to each other with corresponding word line infrared laser light source coordinate, in many oblique lines that obtain, get its intersection point, if the oblique line number by this intersection point equals set word line infrared laser light source number, think that then this intersection point is the coordinate of touch point.In the present embodiment, obtain the oblique line L1 of the line formation of word line LASERLight Source 203 and infrared receiving tube b+17 through step (2), the oblique line L2 that the line of word line LASER Light Source 204 and infrared receiving tube b+5 forms, control module is asked for the intersecting point coordinate of this two oblique line, because two word line LASER Light Source are only arranged, the intersection point of obtaining is the coordinate of touch point A.
In the described step (2), the time that each word line infrared laser light source is independently opened must be finished more than or equal to control module and be read successively the required time of infrared receiving tube output valve that is covered in this word line LASER Light Source illumination plane.
In the described step (2), pre-set threshold is according to the angle difference of the parameter of each infrared receiving tube, arrangement position, reception light, to reduce number percent with respect to resulting each initial value signal is basis, at least reduce 15% if the initialization value that the signal value that infrared receiving tube obtains is corresponding with it is compared, then be judged as felt pen and blocked.
Embodiment 2
Present embodiment except that following characteristics other structures with embodiment 1:
As shown in Figure 3, increased a word line LASER Light Source 205 on the basis of the installation drawing ofembodiment 1, this light source places the centre of word line LASER Light Source 203 and 204, is used for realizing identification location, a plurality of touch points.Its localization method is withembodiment 1.
As shown in Figure 3, when shelter D and shelter B, through word lineLASER Light Source 203, word line LASER LightSource 204 its corresponding infrared receiving tubes of scanning, can obtain oblique line L3, L4, L7, L8, can obtain B, C, these 4 intersection points of D, E by calculating, actually or but can't judge that shelter is wherein several and be all.Present embodiment is provided with a word lineLASER Light Source 205 more, so according to lighting the corresponding infrared receiving tube information that the 205 back scannings of word line LASER Light Source obtain, can obtain oblique line L5, L6, because the oblique line number by a B, D equals set word line infrared laser light source number, oblique line number by a C, E determines then that less than set word line infrared laser light source number last touch point is B and D point.
Embodiment 3
Present embodiment except that following characteristics other structures with embodiment 1: as shown in Figure 4, inembodiment 1 installation drawing, increased a word line LASER LightSource 206, this light source places and is different from the Yi Jiaochu that word line LASER Light Source 203 and 204 is provided with the position on the touch-screen, is used for realizing identification location, a plurality of touch point.Its localization method is withembodiment 1.
As shown in Figure 4, when shelter F and shelter H, through word lineLASER Light Source 203, word line LASER LightSource 204 its corresponding infrared receiving tubes of scanning, can obtain oblique line L9, L10, L11, L12, can obtain F, G, these 4 intersection points of H, J by calculating, actually or but can't judge that shelter is wherein several and be all.Present embodiment is provided with a word line LASERLight Source 206 more, so according to lighting the corresponding infrared receiving tube information that the 206 back scannings of word line LASER Light Source obtain, can obtain oblique line L13, L14, because the oblique line number by a F, H equals set word line infrared laser light source number, oblique line number by a G, J determines then that less than set word line infrared laser light source number last touch point is F and H point.
The foregoing description is a preferred implementation of the present invention; but embodiments of the present invention are not limited by the examples; other any do not deviate from change, the modification done under spirit of the present invention and the principle, substitutes, combination, simplify; all should be the substitute mode of equivalence, be included within protection scope of the present invention.