CN104123044B - A kind of touch identification method and system of infrared touch panel - Google Patents

A kind of touch identification method and system of infrared touch panel Download PDF

Info

Publication number
CN104123044B
CN104123044B CN201310156805.0A CN201310156805A CN104123044B CN 104123044 B CN104123044 B CN 104123044B CN 201310156805 A CN201310156805 A CN 201310156805A CN 104123044 B CN104123044 B CN 104123044B
Authority
CN
China
Prior art keywords
pixel
occlusion area
touch
light path
optical path
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201310156805.0A
Other languages
Chinese (zh)
Other versions
CN104123044A (en
Inventor
满庆奎
刘新斌
管健
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Irtouch Systems Co Ltd
Original Assignee
Beijing Unitop New Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Unitop New Technology Co Ltd filed Critical Beijing Unitop New Technology Co Ltd
Priority to CN201310156805.0A priority Critical patent/CN104123044B/en
Publication of CN104123044A publication Critical patent/CN104123044A/en
Application granted granted Critical
Publication of CN104123044B publication Critical patent/CN104123044B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Position Input By Displaying (AREA)

Abstract

The present invention provides a kind of touch identification method and system for infrared touch panel, the method finds the possible occlusion area of each touch point first in whole infrared touch panel, the scanning optical path to being blocked in possible occlusion area each described from the initial optical path image is processed so as to obtain touch point, the present invention need not be processed to each scanning optical path or pixel in infrared touch panel, substantially increase processing speed, effectively prevent in prior art based on the scanning to each light path or pixel, need each light path or pixel are processed to obtain touch point, so as to have impact on processing speed, the slow problem of processing speed.

Description

A kind of touch identification method and system of infrared touch panel
Technical field
The present invention relates to a kind of touch point recognition methodss of touch screen, more particularly, to a kind of touch for improving processing speed Point recognition methodss and system, belong to touch screen control technology field.
Background technology
With the development of touching technique, touch screen is used widely as a kind of simply and easily human-computer interaction device. At present, the species of touch screen mainly includes resistive touch screen, capacitive touch screen, surface acoustic wave touch screen, optical touch screen With infrared touch panel etc..Wherein infrared touch panel is detecting and position user using the infrared ray matrix gathered in X, Y-direction Touch operation, infrared touch panel surrounding install a circuit board housing, on circuit board housing arrange infrared transmitting tube and Infrared receiving tube, corresponds and forms the infrared ray matrix for intersecting in length and breadth anyhow.User in Touch screen, the touch objects such as finger Two infrared ray anyhow through the position are blocked, position of the touch point on screen is judged with this.Due to infrared touch panel The advantages of with electric current, voltage and static interference, suitable rugged environment condition is not received, therefore the range of application of infrared touch panel It is wider.
On infrared touch panel the recognition methodss of touch point experienced from identification a little to 2 points of identification, again to identification multiple spot Evolution, as multiple point touching not only can realize more touch functions, and can be with two handss, multiple fingers, even Many personal contents for operating screen simultaneously, convenient nature, so multiple spot technology of identification is the development trend of infrared touch panel.
Chinese patent document CN102419662A discloses a kind of multi-point recognizing method of infrared touch panel, firstly generate with The corresponding index path picture of infrared touch panel light path in an identification process;Then in index path picture extract touch point information, Wherein, generate index path as the step of in, judge whether every light path is hidden according to the light circuit-switched data of whole infrared touch panel Gear, for the light path do not blocked, generates a line segment corresponding with the light path in the relevant position of initial optical path image.
In the patent documentation based on image procossing, light path global information is used, with preferable robustness and anti- Making an uproar property, but generate index path as the step of in, need whether every light path for judging infrared touch panel is blocked, also, Light path to not blocking generates a line segment corresponding with the light path in the relevant position of initial optical path image.Touch in large scale In screen, due to the light path enormous amount in infrared touch panel, also, in infrared touch panel, there is the light path do not blocked in a large number, Generation index path picture in this way is adopted in large scale touch screen, the data volume of process is very big, so as to have impact on processing speed.
Chinese patent document CN102419663A discloses a kind of multi-point recognizing method of infrared touch panel, gathers light first Circuit-switched data;Secondly, generate the image/data structure with the infrared touch screen dimensions into preset ratio;Again, set up pixel/ The attribute that data element is associated with the light path on infrared touch panel;Then, according on pixel/data element and infrared touch panel The associated attribute of light path and the smooth circuit-switched data extract touch point information.Wherein, by record through each pixel/ The quantity of the light path of data element and position are setting up the category that pixel/data element is associated with the light path on infrared touch panel Property.
A kind of infrared touch screen multi-point recognition method based on Density Clustering is proposed in the patent documentation, by setting up figure Associating between the data element of the pixel/data structure of picture and the light path on infrared touch panel, by light circuit-switched data, change with The quantity of the associated light path of the data element of the pixel/data structure of image, when the pixel/data structure with some image Data element associated light path quantity vanishing when, the data element of the pixel/data structure of the image is labeled as into mesh Punctuate, further according to the density of the impact point of labelling, sets density threshold, impact point is clustered, and gathers the impact point for a class and is The impact point for not having to cluster is set to background by one touch point, this to sentence from the order of magnitude of image pixel or array element The method of disconnected impact point, although be capable of identify that multiple touch points.But, the prior art is setting up the pixel of image/data knot In the step of attribute that the data element of structure is associated with light path, by recording each the pixel/data element through touch screen The quantity of the light path of element and position need to process each pixel/data element of touch screen realizing, touch in large scale Touch in screen, as the number data elements of the pixel/data structure of image in infrared touch panel are huge, adopt and process in this way Pixel quantity it is too big, processing speed can be largely effected on.
Multi-touch recognition method disclosed in above-mentioned two patent documentations is scanned to every light path or each pixel Obtain the information blocked of touch screen.With the increase of touch screen, the light path and pixel quantity on touch screen progressively increases, directly Cause during identification, to need quantity of information increase to be processed, process time extends, so as to have impact on response speed.
The content of the invention
The technical problem to be solved is the touch identification method process time of prior art mid-infrared touch screen The long and slow problem of response speed, so as to providing a kind of touch identification method of infrared touch panel for improving recognition speed and being System.
To solve above-mentioned technical problem, the present invention is achieved by the following technical solutions:
A kind of touch identification method of infrared touch panel, comprises the following steps,
S1:All scanning optical paths in the case of collection no touch, form initial optical path image;
S2:Scan data when collection is touched;
S3:According to the scan data during touch for collecting, deflection axis light path or off-axis light path obtain each The horizontal boundary information and longitudinal boundary information of touch point;The horizontal boundary information is the upper end border of each touch point with End edge circle, the longitudinal boundary information are the left boundary and right boundary of each touch point;The upper end border and right with which The lower end border answered forms horizontal occlusion area, and the left boundary and the corresponding right boundary form longitudinal direction Occlusion area;
S4:According to the horizontal occlusion area and longitudinal occlusion area, possible occlusion area is obtained;
S5:For each the described possible occlusion area for obtaining, to can described in each from the initial optical path image The scanning optical path being blocked in the occlusion area of energy is processed, and other described scanning optical paths are not processed, and obtaining a width has Scanning optical path image in the case of touch objects presence;
S6:To it is described with the presence of touch objects in the case of the scanning optical path image carry out denoising, it is smooth, extract operation, Obtain the positional information and size information of touch point.
A kind of touch identification method of infrared touch panel, step S5 further include following steps:
S511, for each the described possible occlusion area for obtaining, travel through each pixel, statistics is through each described picture The light travel permit number of element, includes blocking light path through the light path of each pixel and does not block light path;
S512, for per light path is blocked described in bar, the described smooth travel permit number for blocking the pixel that light path passes through being subtracted 1;
S513, acquisition pass through the remaining scanning optical path bar number Ai of each pixel, and all pixels of Ai=0 are described The region not being blocked in possible occlusion area, all pixels of Ai ≠ 0 are the touch point in the possible occlusion area Region.
The touch identification method of described infrared touch panel, step S5 further include following steps:
S521, for each the described possible occlusion area for obtaining, travel through each pixel, statistics is through each pixel Light travel permit number, include blocking light path through the light path described in each described pixel and do not block light path;
S522, for pixel each described, deduct through blocking light described in the pixel from the light travel permit number of the pixel The bar number on road;
S523, for pixel each described, if the remaining scanning optical path bar number of the pixel is 0, the pixel is described The pixel in the interior region that is not blocked of possible occlusion area, if the remaining scanning optical path bar number of the pixel is not 0, the pixel is The pixel of occlusion area in the possible occlusion area.
The touch identification method of described infrared touch panel, determines the scanning optical path in institute using line light gated algorithm Which state in possible occlusion area by pixel.
The touch identification method of described infrared touch panel, also includes the polymerization possible blocked area in step S4 The step of domain, concrete grammar is:
One blocks light path while during by least described two longitudinal occlusion areas, for longitudinal blocked area each described Domain, compares longitudinal occlusion area and blocks the distance of other longitudinal occlusion areas that light path passes through with same, if institute The distance of longitudinal occlusion area is stated less than default longitudinal direction threshold value, is then polymerized to same longitudinal occlusion area;
One blocks light path while during by least described two horizontal occlusion areas, for horizontal blocked area each described Domain, compares the horizontal occlusion area and blocks the distance of other horizontal occlusion areas that light path passes through with same, if institute The distance of horizontal occlusion area is stated less than horizontal threshold value is preset, is then polymerized to the same horizontal occlusion area.
The touch identification method of described infrared touch panel, in step S4, further includes to be polymerized for each Region, if all vertical and horizontal through the zone of convergency block line while also passing through other at least one polymeric areas Domain, the step of the zone of convergency is removed.
A kind of touch recognition system of infrared touch panel, including
Initial optical path image forming module, gathers all scanning optical paths in the case of no touch, forms initial optical path image;
Scanning optical path acquisition module, scan data when collection is touched;
Border acquisition module, according to the scan data during touch for collecting, deflection axis light path or off-axis light Road obtains the horizontal boundary information and longitudinal boundary information of each touch point;The horizontal boundary information is the upper of each touch point End edge circle and lower end border, the longitudinal boundary information are the left boundary and right boundary of each touch point;The upper end edge Boundary and the corresponding lower end border form horizontal occlusion area, the left boundary and the corresponding right-hand member side Boundary forms longitudinal occlusion area;
Possible occlusion area acquisition module, according to the horizontal occlusion area and longitudinal occlusion area, acquisition can The occlusion area of energy;
Light path image collection module is touched, for each the described possible occlusion area for obtaining, from the initial optical path The scanning optical path in image to being blocked in possible occlusion area each described is processed, other described scanning optical paths Do not process, a width is obtained with the presence of the scanning optical path image in the case of touch objects;
Touch point acquisition module, to it is described with the presence of touch objects in the case of the scanning optical path image carry out denoising, flat Sliding, extraction operation, obtains the positional information and size information of touch point.
A kind of touch recognition system of infrared touch panel, the possible occlusion area acquisition module are further wrapped Include:
The light path statistic submodule of the first single pixel, for each the described possible occlusion area for obtaining, traversal is every Individual pixel, statistics include blocking light path through the light path of each pixel through the light travel permit number of each pixel Light path is not blocked;
Submodule of the light path by pixel is blocked in first process, for per light path is blocked described in bar, this being blocked light path and being led to The described smooth travel permit number of the pixel crossed subtracts 1;
First submodule for obtaining possible occlusion area, obtains the remaining scanning optical path bar through each pixel Number Ai, all pixels of Ai=0 are the region not being blocked in the possible occlusion area, and all pixels of Ai ≠ 0 are described Touch point region in possible occlusion area.
The touch recognition system of described infrared touch panel, the touch light path image collection module further include as follows Step:
The light path statistic submodule of the second single pixel, for each the described possible occlusion area for obtaining, traversal is every One pixel, statistics include blocking light path through the light path described in each described pixel through the light travel permit number of each pixel Light path is not blocked;
Second processing blocks submodule of the light path by pixel, for pixel each described, from the light travel permit number of the pixel In deduct bar number through light path is blocked described in the pixel;
Second submodule for obtaining possible occlusion area, for pixel each described, if the remaining scanning of the pixel Light travel permit number is 0, then the pixel is the pixel in the interior region that is not blocked of the possible occlusion area, if the pixel is remaining Scanning optical path bar number is not 0, and the pixel is the pixel of occlusion area in the possible occlusion area.
The touch recognition system of described infrared touch panel, determines the scanning optical path in institute using line light gated algorithm Which state in possible occlusion area by pixel.
The touch recognition system of described infrared touch panel, the possible occlusion area acquisition module are still further comprised Possible occlusion area aggregation module, possible occlusion area aggregation module include:
Longitudinal occlusion area polymerization submodule, one blocks light path while by least described two longitudinal occlusion areas When, for longitudinal occlusion area each described, compare longitudinal occlusion area and same block light path passes through other described in The distance of longitudinal occlusion area, if the distance of longitudinal occlusion area is polymerized to same less than default longitudinal direction threshold value One longitudinal occlusion area;
Horizontal occlusion area polymerization submodule, one blocks light path while by least described two horizontal occlusion areas When, for horizontal occlusion area each described, compare the horizontal occlusion area and same block light path passes through other described in Laterally the distance of occlusion area, if the distance of the horizontal occlusion area is less than horizontal threshold value is preset, is polymerized to same One horizontal occlusion area.
The touch recognition system of described infrared touch panel, the possible occlusion area acquisition module, further includes The pseudo- zone of convergency removes submodule, for each zone of convergency, if all vertical and horizontal through the zone of convergency hide Gear line also passes through other at least one zones of convergency simultaneously, and the zone of convergency is removed.
The above-mentioned technical proposal of the present invention has advantages below compared to existing technology:
(1)The present invention provides a kind of touch identification method and system for infrared touch panel, and the method includes following step Suddenly:All scanning optical paths in the case of collection no touch, form initial optical path image;According to the scan data for collecting, obtain The horizontal boundary information and longitudinal boundary information of each touch point;Obtain the horizontal boundary information and longitudinal boundary of each touch point Information, obtains the possible position area information of each touch point;For possible position region each described, from the initial optical path The scanning optical path in image to being blocked in possible occlusion area each described is processed, and obtaining a width has touch objects In the presence of scanning optical path image;Denoising, flat is carried out to the scanning optical path image having in the presence of touch objects The operation of sliding, touch objects contours extract, obtains the positional information and size information of touch point.Said method is first whole infrared tactile The possible occlusion area of each touch point is found in touching screen, is blocked to possible each described from the initial optical path image The scanning optical path being blocked in region is processed so as to obtain touch point, and this method greatly reduces the light path of process Bar number, it is not necessary to whole initial optical path image is processed, processing speed is improve, is based in effectively prevent prior art Scanning to each light path or pixel, needs each light path or pixel are processed to obtain touch point, so as to have impact on place Reason speed, the slow problem of processing speed.
(2)A kind of touch identification method for infrared touch panel of the present invention, for the possible position in touch point Region, only processes the light travel permit number for blocking light path, greatly reducing process through the region, improves and further increase identification Speed.
(3)A kind of touch identification method for infrared touch panel of the present invention, can be polymerized possible blocked area At least two occlusion areas are polymerized to same region by domain, obtain the zone of convergency, when touch point is more, are polymerized possible After occlusion area, for the zone of convergency, from the initial optical path image to the zone of convergency each described in be blocked described in Scanning optical path is processed, and is greatly reduced the areal of process, is further increased recognition speed.
(4)A kind of touch identification method for infrared touch panel of the present invention, if through a zone of convergency Block line while also passing through at least one other zone of convergency, the zone of convergency is removed, further reduces what is processed Number of regions, improves recognition speed.
Description of the drawings
In order that present disclosure is more likely to be clearly understood, below in conjunction with the accompanying drawings, the present invention is made further in detail Thin explanation, wherein,
Fig. 1 is a kind of recognition methodss flow chart for infrared touch panel of the present invention;
Fig. 2 be it is of the present invention horizontally and vertically will carry out phase crosslinking polymerization in direction, obtain four zone of convergency schematic diagrams;
If Fig. 3 is of the present invention to block line also while poly- through other at least one through a zone of convergency Close region, then illustrate in the zone of convergency, there is no touch point, the schematic diagram after the zone of convergency is removed;
Fig. 4 is that a region in the lower right corner in Fig. 1 of the present invention is removed the design sketch after blocking line.
Specific embodiment
Embodiment 1:
A kind of recognition methodss for infrared touch panel of the present embodiment, its flow chart is as shown in figure 1, be embodied as including Following step:
S1:All scanning optical paths in the case of collection no touch, form initial optical path image.Comprise the following steps that:
S11:A width and touch screen size are generated into the background image of preset ratio, the color of the background image is single Color.As shown in Fig. 2 the color of the background image is set to black.
The size of the touch screen can be arbitrary proportion with the size of the background image, by user according to concrete application Environment set, in the present embodiment, the preset ratio is 1:1, coordinate of such light path on the touch screen and light path are in the back of the body Respective coordinates in scape image are without the need for conversion.
Used as other embodiment, the color of the background image could be arranged to other colors, for example, Lycoperdon polymorphum Vitt.
S12:All scanning optical paths in the case of collection no touch, and all of scanning optical path is plotted in into the Background As upper, initial optical path image is formed, the color of the scanning optical path is different from the color of the background image.In this enforcement, such as Shown in Fig. 2, the color of the scanning optical path is set to white.
As other embodiment, when the initial optical path image is generated, and non-real generation index path picture, but use Primary data structure with two-dimensional matrix alignment properties is simulating initial optical path image, the element in the primary data structure Equivalent to the pixel in the initial optical path image, all elements value in the primary data structure is initialized as into first and is set Fixed number value.The data structure of the two-dimensional matrix alignment properties can be two-dimensional array, bivector or two-dimensional matrix etc..
Used as other embodiment, the color of the scanning optical path could be arranged to other different from background image color Color, for example it is, dark brown.
S2:Scan data when collection is touched.
S3:According to the scan data during touch for collecting, deflection axis light path or off-axis light path obtain each The horizontal boundary information and longitudinal boundary information of touch point;The horizontal boundary information is the upper end border of each touch point with End edge circle, the longitudinal boundary information are the left boundary and right boundary of each touch point;The upper end border and right with which The lower end border answered forms horizontal occlusion area, and the left boundary and the corresponding right boundary form longitudinal direction Occlusion area.
S4:According to the horizontal occlusion area and longitudinal occlusion area, possible occlusion area is obtained.
According to the scan data for collecting, the circumstance of occlusion of light path is obtained, using deflection axis light path or off-axis light path The horizontal boundary information and longitudinal boundary information of each touch point are obtained, such as horizontal direction obtains m horizontal boundary information, vertically Direction obtains n longitudinal boundary information, then obtain common m*n possible position region.It is shown in Figure 2, merely illustrate in figure true Real touch point, such as horizontal direction obtain 10 horizontal boundary information, and vertical direction obtains 10 longitudinal boundary information, then can be with Obtain 100 possible bands of position.
S5:For each the described possible occlusion area for obtaining, to can described in each from the initial optical path image The scanning optical path being blocked in the occlusion area of energy is processed, and other described scanning optical paths are not processed, and obtaining a width has Scanning optical path image in the case of touch objects presence.
The concrete width that obtains is with the presence of as follows the step of scanning optical path image in the case of touch objects:
S511, for each the described possible occlusion area for obtaining, travel through each pixel, statistics is through each described picture The light travel permit number of element, includes blocking light path through the light path of each pixel and does not block light path;Adopt in the present embodiment With line light gated algorithm(Such as Bresenham algorithms)Determine that the scanning optical path passes through in the possible occlusion area Which pixel;
S512, for per light path is blocked described in bar, the described smooth travel permit number for blocking the pixel that light path passes through being subtracted 1;
S513, acquisition pass through the remaining scanning optical path bar number A of each pixeli, Ai=0 all pixels for it is described can The region not being blocked in the occlusion area of energy, Ai≠ 0 all pixels are the touch point area in the possible occlusion area Domain.
Preferably, by AiThe color settings of=0 pixel are the colors different from the initial optical path image, the present embodiment In, by AiThe color settings of=0 pixel are black.As shown in figure 4, being that a region to the lower right corner in Fig. 2 is removed screening Design sketch after gear line process.
In the scanning optical path image, it is the first setting numerical value in the primary data structure not block light path, is blocked Light path is changed to the second setting numerical value in the primary data structure.
S6:To it is described with the presence of touch objects in the case of the scanning optical path image carry out denoising, it is smooth, extract operation, Obtain the positional information and size information of touch point.
The present invention provides a kind of touch identification method for infrared touch panel, and the method comprises the steps:Generate one The background image of width and touch screen size into preset ratio;All scanning optical paths in the case of collection no touch, form initial light Road image;According to the scan data for collecting, the horizontal boundary information and longitudinal boundary information of each touch point are obtained;Obtain every The horizontal boundary information and longitudinal boundary information of individual touch point, obtains the possible position area information of each touch point;For every The individual possible position region, to described in being blocked in possible occlusion area each described from the initial optical path image Scanning optical path is processed, and obtaining a width has scanning optical path image in the presence of touch objects;To described with the presence of touch objects In the case of scanning optical path image carry out denoising, the operation of smooth, touch objects contours extract, obtain touch point positional information and Size information.Said method finds the possible occlusion area of each touch point first in whole infrared touch panel, from described The scanning optical path in initial optical path image to being blocked in possible occlusion area each described is processed so as to obtain Touch point, this method greatly reduce the light travel permit number of process, it is not necessary to which whole initial optical path image is processed, and improve Processing speed, effectively prevent in prior art based on the scanning to each light path or pixel, needs to each light path or picture Element is processed to obtain touch point, so as to have impact on processing speed, the slow problem of processing speed.
A kind of touch identification method for infrared touch panel of the present invention, for the possible position area in touch point Domain, only processes the light travel permit number for blocking light path, greatly reducing process through the region, improves and further increases identification speed Degree.
Embodiment 2:
In the present embodiment, from unlike above-described embodiment 1, step S6 described in the present embodiment is for each institute for obtaining Possible occlusion area is stated, to sweeping described in being blocked in possible occlusion area each described from the initial optical path image Retouch light path to be processed, other described scanning optical paths are not processed, specifically, a width is obtained with the presence of the scanning in the case of touch objects Index path as the step of it is as follows:
S521, for each the described possible occlusion area for obtaining, travel through each pixel, statistics is through each pixel Light travel permit number, include blocking light path through the light path described in each described pixel and do not block light path;Adopt in the present embodiment Determine the scanning optical path in the possible occlusion area by which pixel with line light gated algorithm.
S522, for pixel each described, deduct through blocking light described in the pixel from the light travel permit number of the pixel The bar number on road;
S523, for pixel each described, if the remaining scanning optical path bar number of the pixel is 0, the pixel is described The pixel in the interior region that is not blocked of possible occlusion area, if the remaining scanning optical path bar number of the pixel is not 0, the pixel is The pixel of occlusion area in the possible occlusion area.Preferably, by the color of pixel that remaining scanning optical path bar number is 0 It is arranged to the colors different from the initial optical path image.
Embodiment 3:
The present embodiment, on the basis of above-described embodiment, also includes the polymerization possible blocked area in step S4 The step of domain, concrete grammar is:
One blocks light path while during by least described two longitudinal occlusion areas, for longitudinal blocked area each described Domain, compares longitudinal occlusion area and blocks the distance of other longitudinal occlusion areas that light path passes through with same, if institute The distance of longitudinal occlusion area is stated less than default longitudinal direction threshold value, is then polymerized to same longitudinal occlusion area;
One blocks light path while during by least described two horizontal occlusion areas, for horizontal blocked area each described Domain, compares the horizontal occlusion area and blocks the distance of other horizontal occlusion areas that light path passes through with same, if institute The distance of horizontal occlusion area is stated less than horizontal threshold value is preset, is then polymerized to the same horizontal occlusion area.
Referring to Fig. 2, in above-described embodiment 1,2 steps, S4 needs to process this 100 regions respectively, for more The situation of touch point, the possible position region of acquisition are more, and for same is blocked light path while through multiple possible positions In the case of putting region, need repetition to process this and block light path, therefore computing is more complicated, for further simplified operation, carries At high speed, by setting horizontal threshold value and longitudinal threshold value, for the lateral separation and fore-and-aft distance of occlusion area, if blocked area The lateral separation in domain be less than horizontal threshold value and, the fore-and-aft distance of occlusion area less than longitudinal threshold value, then by the two occlusion areas One region of synthesis, it is believed that be a zone of convergency, otherwise, belong to two regions.So through the phase in horizontally and vertically direction Crosslinking polymerization can obtain little zone of convergency, for example, if horizontally and vertically direction ECDC and after each remaining two merge after Occlusion area, then horizontally and vertically will carry out phase crosslinking polymerization in direction, four zones of convergency, all touch point positions will be obtained In this four regions, step S5 and later operation are carried out to these four zones of convergency again then.
A kind of touch identification method for infrared touch panel of the present invention, can be polymerized possible occlusion area, At least two occlusion areas are polymerized to into same region, the zone of convergency is obtained, when touch point is more, be polymerized possible blocking Behind region, for the zone of convergency, from the initial optical path image to the zone of convergency each described in the scanning that is blocked Light path is processed, and is greatly reduced the areal of process, is further increased recognition speed.
Embodiment 4:
The present embodiment in step S4, is further included for each polymeric area on the basis of above-described embodiment Domain, if all vertical and horizontal through the zone of convergency block line while also passing through other at least one zones of convergency, The step of zone of convergency is removed.
On the basis of the zone of convergency of above-described embodiment 3, if blocking line while also passing through through a zone of convergency At least one other zone of convergency, the zone of convergency is removed.In order to further improve processing speed, for each polymerization Region, if exist in line only through the zone of convergency, and without other zones of convergency through blocking for a zone of convergency, So this carries out the later operation of step S6 in embodiment 1 to the zone of convergency;If blocking line through a zone of convergency Also simultaneously through at least one other zone of convergency, then illustrate there is no touch point in the zone of convergency, by the polymeric area Domain removes, as shown in Figure 3, it is only necessary to two regions that there is true touch point that figure center wire frame goes out are processed, so When processing to the zone of convergency, the speed that improve identification is greatly improved.
A kind of touch identification method for infrared touch panel of the present invention, if through the screening of a zone of convergency Gear line also passes through at least one other zone of convergency simultaneously, and the zone of convergency is removed, the region of process is further reduced Number, improves recognition speed.
Embodiment 5:
A kind of touch recognition system of infrared touch panel, including
Initial optical path image forming module, gathers all scanning optical paths in the case of no touch, forms initial optical path image;
Scanning optical path acquisition module, scan data when collection is touched;
Border acquisition module, according to the scan data during touch for collecting, deflection axis light path or off-axis light Road obtains the horizontal boundary information and longitudinal boundary information of each touch point;The horizontal boundary information is the upper of each touch point End edge circle and lower end border, the longitudinal boundary information are the left boundary and right boundary of each touch point;The upper end edge Boundary and the corresponding lower end border form horizontal occlusion area, the left boundary and the corresponding right-hand member side Boundary forms longitudinal occlusion area;
Possible occlusion area acquisition module, according to the horizontal occlusion area and longitudinal occlusion area, acquisition can The occlusion area of energy;
Light path image collection module is touched, for each the described possible occlusion area for obtaining, from the initial optical path The scanning optical path in image to being blocked in possible occlusion area each described is processed, other described scanning optical paths Do not process, a width is obtained with the presence of the scanning optical path image in the case of touch objects;
Touch point acquisition module, to it is described with the presence of touch objects in the case of the scanning optical path image carry out denoising, flat Sliding, extraction operation, obtains the positional information and size information of touch point.
A kind of touch recognition system of infrared touch panel, the possible occlusion area acquisition module are further wrapped Include:
The light path statistic submodule of the first single pixel, for each the described possible occlusion area for obtaining, traversal is every Individual pixel, statistics include blocking light path through the light path of each pixel through the light travel permit number of each pixel Light path is not blocked;
Submodule of the light path by pixel is blocked in first process, for per light path is blocked described in bar, this being blocked light path and being led to The described smooth travel permit number of the pixel crossed subtracts 1;
First submodule for obtaining possible occlusion area, obtains the remaining scanning optical path bar through each pixel Number Ai, all pixels of Ai=0 are the region not being blocked in the possible occlusion area, and all pixels of Ai ≠ 0 are described Touch point region in possible occlusion area.
The touch recognition system of described infrared touch panel, the touch light path image collection module further include as follows Step:
The light path statistic submodule of the second single pixel, for each the described possible occlusion area for obtaining, traversal is every One pixel, statistics include blocking light path through the light path described in each described pixel through the light travel permit number of each pixel Light path is not blocked;
Second processing blocks submodule of the light path by pixel, for pixel each described, from the light travel permit number of the pixel In deduct bar number through light path is blocked described in the pixel;
Second submodule for obtaining possible occlusion area, for pixel each described, if the remaining scanning of the pixel Light travel permit number is 0, then the pixel is the pixel in the interior region that is not blocked of the possible occlusion area, if the pixel is remaining Scanning optical path bar number is not 0, and the pixel is the pixel of occlusion area in the possible occlusion area.
The touch recognition system of described infrared touch panel, determines the scanning optical path in institute using line light gated algorithm Which state in possible occlusion area by pixel.
The touch recognition system of described infrared touch panel, the possible occlusion area acquisition module are still further comprised Possible occlusion area aggregation module, possible occlusion area aggregation module include:
Longitudinal occlusion area polymerization submodule, one blocks light path while by least described two longitudinal occlusion areas When, for longitudinal occlusion area each described, compare longitudinal occlusion area and same block light path passes through other described in The distance of longitudinal occlusion area, if the distance of longitudinal occlusion area is polymerized to same less than default longitudinal direction threshold value One longitudinal occlusion area;
Horizontal occlusion area polymerization submodule, one blocks light path while by least described two horizontal occlusion areas When, for horizontal occlusion area each described, compare the horizontal occlusion area and same block light path passes through other described in Laterally the distance of occlusion area, if the distance of the horizontal occlusion area is less than horizontal threshold value is preset, is polymerized to same One horizontal occlusion area.
The touch recognition system of described infrared touch panel, the possible occlusion area acquisition module, further includes The pseudo- zone of convergency removes submodule, for each zone of convergency, if all vertical and horizontal through the zone of convergency hide Gear line also passes through other at least one zones of convergency simultaneously, and the zone of convergency is removed.
Obviously, above-described embodiment is only intended to clearly illustrate example, and the not restriction to embodiment.It is right For those of ordinary skill in the art, can also make on the basis of the above description other multi-forms change or Change.There is no need to be exhaustive to all of embodiment.And thus it is extended obvious change or Among changing still in the protection domain of the invention.

Claims (8)

1. a kind of touch identification method of infrared touch panel, it is characterised in that:Comprise the following steps,
S1:All scanning optical paths in the case of collection no touch, form initial optical path image;
S2:Scan data when collection is touched;
S3:According to the scan data during touch for collecting, deflection axis light path or off-axis light path obtain each touch The horizontal boundary information and longitudinal boundary information of point;The horizontal boundary information is the upper end border of each touch point and lower end edge Boundary, the longitudinal boundary information are the left boundary and right boundary of each touch point;The upper end border and corresponding The lower end border forms horizontal occlusion area, and the left boundary and the corresponding right boundary form longitudinal direction and block Region;
S4:According to the horizontal occlusion area and longitudinal occlusion area, possible occlusion area is obtained;
S5:For each the described possible occlusion area for obtaining, to possible each described from the initial optical path image The scanning optical path being blocked in occlusion area is processed, and other described scanning optical paths are not processed, and obtaining a width has touch Scanning optical path image in the case of thing presence;
S6:To it is described with the presence of touch objects in the case of the scanning optical path image carry out denoising, it is smooth, extract operation, obtain The positional information and size information of touch point.
2. a kind of touch identification method of infrared touch panel according to claim 1, it is characterised in that:Enter in step S5 One step comprises the steps:
S511, for each the described possible occlusion area for obtaining, travel through each pixel, statistics is through each pixel Light travel permit number, includes blocking light path through the light path of each pixel and does not block light path;
S512, for per light path is blocked described in bar, subtracting 1 by the described smooth travel permit number for blocking the pixel that light path passes through;
S513, acquisition pass through the remaining scanning optical path bar number A of each pixeli, Ai=0 all pixels are possible Occlusion area in the region that is not blocked, Ai≠ 0 all pixels are the touch point region in the possible occlusion area.
3. the touch identification method of infrared touch panel according to claim 1, it is characterised in that:Enter one in step S5 Step comprises the steps:
S521, for each the described possible occlusion area for obtaining, travel through each pixel, light of the statistics through each pixel Travel permit number, includes blocking light path through the light path described in each described pixel and does not block light path;
S522, for pixel each described, deduct through blocking light path described in the pixel from the light travel permit number of the pixel Bar number;
S523, for pixel each described, if the remaining scanning optical path bar number of the pixel is 0, the pixel is possible Occlusion area in be not blocked the pixel in region, if the remaining scanning optical path bar number of the pixel is not 0, the pixel is described The pixel of occlusion area in possible occlusion area.
4. the touch identification method of the infrared touch panel according to Claims 2 or 3, it is characterised in that:Using linear grating Changing algorithm determines the scanning optical path in the possible occlusion area by which pixel.
5. the touch recognition system of a kind of infrared touch panel, it is characterised in that:Including initial optical path image forming module, nothing is gathered All scanning optical paths in the case of touch, form initial optical path image;
Scanning optical path acquisition module, scan data when collection is touched;
Border acquisition module, obtains according to the scan data during touch for collecting, deflection axis light path or off-axis light path Take the horizontal boundary information and longitudinal boundary information of each touch point;
The horizontal boundary information is the upper end border and lower end border of each touch point, and the longitudinal boundary information is touched for each Touch left boundary a little and right boundary;The upper end border and the corresponding lower end border form horizontal blocked area Domain, the left boundary and the corresponding right boundary form longitudinal occlusion area;
Possible occlusion area acquisition module, according to the horizontal occlusion area and longitudinal occlusion area, obtains possible Occlusion area;
Light path image collection module is touched, for each the described possible occlusion area for obtaining, from the initial optical path image In the scanning optical path that is blocked in possible occlusion area each described is processed, other described scanning optical paths are not located Reason, obtains a width with the presence of the scanning optical path image in the case of touch objects;
Touch point acquisition module, to it is described with the presence of touch objects in the case of the scanning optical path image carry out denoising, smooth, carry Extract operation, obtains the positional information and size information of touch point.
6. the touch recognition system of a kind of infrared touch panel according to claim 5, it is characterised in that:It is described possible to block Region acquisition module is further included:
The light path statistic submodule of the first single pixel, for each the described possible occlusion area for obtaining, travels through each picture Element, light travel permit number of the statistics through each pixel include blocking light path and not through the light path of each pixel Block light path;
Submodule of the light path by pixel is blocked in first process, for per light path is blocked described in bar, this being blocked what light path passed through The described smooth travel permit number of the pixel subtracts 1;
First submodule for obtaining possible occlusion area, obtains the remaining scanning optical path bar number through each pixel The all pixels of Ai, Ai=0 are the region not being blocked in the possible occlusion area, and all pixels of Ai ≠ 0 are described Touch point region in possible occlusion area.
7. the touch recognition system of infrared touch panel according to claim 5, it is characterised in that:The touch index path picture Acquisition module further includes following steps:
The light path statistic submodule of the second single pixel, for each the described possible occlusion area for obtaining, travels through each Pixel, light travel permit number of the statistics through each pixel include blocking light path and not through the light path described in each described pixel Block light path;
Second processing blocks submodule of the light path by pixel, for pixel each described, subtracts from the light travel permit number of the pixel Go the bar number of light path is blocked described in the pixel;
Second submodule for obtaining possible occlusion area, for pixel each described, if the remaining scanning optical path of the pixel Bar number is 0, then the pixel is the pixel in the interior region that is not blocked of the possible occlusion area, if the remaining scanning of the pixel Light travel permit number is not 0, and the pixel is the pixel of occlusion area in the possible occlusion area.
8. the touch recognition system of the infrared touch panel according to claim 6 or 7, it is characterised in that:Using linear grating Changing algorithm determines the scanning optical path in the possible occlusion area by which pixel.
CN201310156805.0A 2013-04-28 2013-04-28 A kind of touch identification method and system of infrared touch panel Active CN104123044B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310156805.0A CN104123044B (en) 2013-04-28 2013-04-28 A kind of touch identification method and system of infrared touch panel

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310156805.0A CN104123044B (en) 2013-04-28 2013-04-28 A kind of touch identification method and system of infrared touch panel

Publications (2)

Publication Number Publication Date
CN104123044A CN104123044A (en) 2014-10-29
CN104123044B true CN104123044B (en) 2017-03-29

Family

ID=51768476

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310156805.0A Active CN104123044B (en) 2013-04-28 2013-04-28 A kind of touch identification method and system of infrared touch panel

Country Status (1)

Country Link
CN (1) CN104123044B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106775091B (en) * 2016-12-21 2022-04-01 北京汇冠触摸技术有限公司 Simulation analysis method for positioning accuracy of infrared touch screen

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101075168A (en) * 2007-06-22 2007-11-21 北京汇冠新技术有限公司 Method for discriminating multiple points on infrared touch screen
CN101320307A (en) * 2007-06-04 2008-12-10 北京汇冠新技术有限公司 Method for recognizing multiple touch points on infrared touch screen

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101320307A (en) * 2007-06-04 2008-12-10 北京汇冠新技术有限公司 Method for recognizing multiple touch points on infrared touch screen
CN101075168A (en) * 2007-06-22 2007-11-21 北京汇冠新技术有限公司 Method for discriminating multiple points on infrared touch screen

Also Published As

Publication number Publication date
CN104123044A (en) 2014-10-29

Similar Documents

Publication Publication Date Title
JP6350261B2 (en) Object operation system, object operation control program, and object operation control method
CN102156609A (en) Overlap handwriting input method
CN104951129B (en) Method and system for combining overlay data with video images and display system
CN102419663B (en) A kind of infrared touch screen multi-point recognition method and system
CN104123520A (en) Two-dimensional code scanning method and device
CN104951127A (en) System and method for generating display overlay, and display system
CN104331193A (en) Infrared precise multi-point touch platform
US9678642B2 (en) Methods of content-based image area selection
CN103399695A (en) Quadrilateral frame identification method and device used for intelligent wireless communication terminal
Chowdary et al. Image processing algorithms for gesture recognition using MATLAB
CN102184056B (en) Method and device for identifying multiple touch points
CN106778670A (en) Gesture identifying device and recognition methods
CN103399674A (en) Method and device of multi-point touch detection
CN103902105A (en) Touch recognition method and touch recognition system for infrared touch screen
CN103870071A (en) Touch source identification method and system
CN104932683A (en) Game motion sensing control method based on vision information
US20150205483A1 (en) Object operation system, recording medium recorded with object operation control program, and object operation control method
CN103345365B (en) The display packing of continuous handwriting input and the hand input device of employing the method
US20150035779A1 (en) Gesture recognition method, apparatus and device, computer program product therefor
CN104123044B (en) A kind of touch identification method and system of infrared touch panel
CN105278751A (en) Method and apparatus for implementing human-computer interaction, and protective case
CN114332794A (en) Target detection method, system, device and medium for train linear array image
CN107957845B (en) Method, device and system for triggering advertisement to be displayed on display screen
CN106201314A (en) A kind of display packing realizing handwriting input on touch screen and display device
CN103309434B (en) A kind of instruction identification method and electronic equipment

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20170418

Address after: 100000 Beijing, Haidian District, North East Road, No. 10, East Building, room No. 21, building No. 6, 101-602

Patentee after: Beijing Irtouch Systems Co.,Ltd.

Address before: 100015 Beijing Chaoyang District Jiuxianqiao East Road, building M8, block B, floor 4, layer 1

Patentee before: Beijing UNITOP New Technology Co., Ltd.

TR01 Transfer of patent right