This application claims the benefit of Taiwan application Serial No. 99128322, filed Aug. 24, 2010, the subject matter of which is incorporated herein by reference.
1. Field of the Invention
The invention relates in general to an optical touch system and method, and more particularly to a simple-structured and cost-down optical touch system and a method thereof.
2. Description of the Related Art
Due to the convenience and intuitiveness of operation, touch screen has been widely used in various electronic products. The touch module can be further divided in resistive type touch module, capacitive type touch module, ultra-sonic type touch module and optical type touch module according to the principles of sensing. The optical touch module, which mainly includes two video cameras, three reflective bars, and two infra-red LED, is mounted on a glass plate to form a product. The optical touch module detects the position of an object in the touch region according to the principle that when the user palaces an object such as a finger or a stylus in the touch region, the light emitted by the infra-red LED will be blocked by the object. Thus, according to the image captured by the cameras and the use of algorithm, the position of the object in the touch region will be obtained. However, the optical touch module which uses an entire piece of glass incurs more cost and requires higher assembly precision, hence making the manufacturing of the optical touch module more complicated.
The invention is directed to an optical touch system and a method thereof, which use a simple structure to reduce manufacturing cost and complexity, further use related algorithms to reduce the occurrence of erroneous action in the non-touch region.
According to a first aspect of the present invention, an optical touch system including a substrate, a glass module, two light sources, three reflective clothes, two image sensors and a processing module is provided. The glass module is disposed at one side of the substrate. The two light sources are respectively disposed at two terminals of the glass module. The three reflective clothes are disposed on the edges of the substrate contiguously. A touch region is formed among the three reflective clothes and the glass module for reflecting the light emitted from the two light sources. The two image sensors are disposed respectively next to the two light sources and used for capturing images in the touch region. The processing module is used for determining whether a touch action is performed according to the images in the touch region.
According to a second aspect of the present invention, an optical touch method used in an optical touch system is provided. The optical touch system includes a substrate, a glass module, two light sources, three reflective clothes, two image sensors and a processing module. The glass module is disposed at one side of the substrate. The two light sources are respectively disposed at two terminals of the glass module. The three reflective clothes are disposed on the edges of the substrate contiguously. A touch region is formed among the three reflective clothes and the glass module. The two image sensors are disposed respectively next to the two light sources. The optical touch method includes the following steps. The two image sensors capture a background image from the touch region. The processing module defines a left boundary and a right boundary on the background image to obtain an effective region. The two image sensors capture a current image from the touch region. The processing module, based on the non-zero pixels on the left boundary and the right boundary, defines a window-of-interest region image of the current image, and further compares the window-of-interest region image with a golden image to determine whether the glass module is strain offset.
The above and other aspects of the invention will become better understood with regard to the following detailed description of the preferred but non-limiting embodiment (s). The following description is made with reference to the accompanying drawings.
a shows a golden image at time point t according to a preferred embodiment of the invention;
b shows a window-of-interest region image at time point (t+1) according to a preferred embodiment of the invention;
a and
a shows a discontinuous segment of edge points;
b shows a compensated segment of edge points;
The invention provides an optical touch system and a method thereof, which use a simple structure to reduce manufacturing cost and complexity and use related algorithms to reduce the occurrence of erroneous action in the non-touch region.
Referring to
The three reflective clothes 142, 144 and 146 are disposed on the edges of the substrate contiguously 110. A touch region 170 is formed among the three reflective clothes 142, 144 and 146 and the glass module 120 for reflecting the light emitted from the two light sources 132 and 134. The invention replaces the conventional reflective bars with three reflective clothes 142, 144 and 146, not only largely increasing the amount of reflected light and the overall average gray value to resolve the problem of insufficient illumination at the corners, but also largely saving cost. Besides, the reflective clothes 142, 144 and 146 used in the invention have a larger width, hence increasing the tolerance for the strain offset caused by the glass module 120 when receiving a force. The two image sensors 152 and 154 are disposed respectively next to the two light sources 132 and 134 and used for capturing images in the touch region 170. The processing module 160 is used for determining whether a touch action is performed according to the images captured in the touch region 170.
Referring to
Next, the process proceeds to step S210, the processing module 160 divides similar data into a number of clusters according to the distribution of the data by clustering algorithms and further analyzes the clusters to reduce the likelihood of erroneous actions. The processing module 160 initially detects whether the glass module 120 is strain offset by a received force. Firstly, the two image sensors 152 and 154 capture a current image from the touch region 170. Then, the processing module 160 starts to locate more than n continuous non-zero pixel points in the left boundary bl and the right boundary br of the current image until m zero pixel points appear. Thus, the processing module 160 defines a window of interest region image on the current image, wherein n and m are pre-determined positive integers.
Then, the processing module 160 compares the window-of-interest region image with a golden image to determine whether the glass module 120 is strain offset. Referring to
Each captured image may contain random noises, which are divided into two types, namely, the Gaussian noises and the salt and pepper noises. If it is determined that the glass module 120 is not strain offset, then the processing module 160 can perform a low-pass filtering to the current image with a Gaussian smoothing filter to remove high-frequency noises and enhance the edges of the object. The Gaussian smoothing filter can be expressed as a two-dimensional Gaussian function in formula (1) so that each direction has the same level of smoothness.
Wherein, x denotes pixel value.
In reality, the Gaussian smoothing filter can be realized by a 3×3 mask (mask 1). Referring to
Referring to
Then, the processing module 160 performs a binarizing process to the obtained edge boundary. If the pixel value on the edge boundary is larger than a predetermined threshold, then the pixel value is set as the maximum pixel value (such as 255), otherwise the original pixel value is maintained. Since the above method may generate isolated dark spot noises, the processing module 160 performs a median filtering process to the binarized edge boundary to remove dark spot noises and maintain image sharpness and the illumination of the pixels on the peripheral. The process of median filtering is to sort the pixels on the binarized edge boundary and replace the pixel value with the median of the sorted pixels.
After that, the processing module 160 performs a first derivative high-pass filtering to each pixel on the edge boundary with a Sobel filter to obtain the energy magnitude and the gradient direction of the pixels, wherein the first derivative ∇f is expressed as formula (3), the energy magnitude ∇f (x, y) is expressed as formula (4), and the gradient direction α (x, y) is expressed as formula (5).
Furthermore, the processing module 160 quantifies the gradient direction α (x, y) into such as four directions. For example, the gradient direction α (x, y) smaller than 22.5° or larger than 157.5° is quantified as θ (x, y)=0°, the gradient direction α (x, y) ranging from 22.5° to 67.5° is quantified as θ (x, y)=45°, the gradient direction α (x, y) ranging from 67.5° to 112.5° is quantified as θ (x, y)=90°, and the gradient direction α (x, y) ranging from 112.5° to 157.5° is quantified as θ (x, y)=135°.
After quantifying the gradient direction, the processing module 160 further performs a regional energy evaluation process to each pixel in a corresponding gradient direction to determine whether to maintain the pixel. The above step mainly applies non-maximum suppression to the energy magnitude according to the gradient direction. That is, a local maximum is located in the same gradient direction to suppress the occurrence of other unreal edge points as indicated in
Then, the processing module 160 performs a hysteresis thresholding process to the pixels according to a first threshold Th and a second threshold Tl to determine whether the maintained pixel are edge points, wherein the first threshold Th is larger than the second threshold Tl. Any pixel whose energy magnitude being larger than the first threshold Th is determined as an edge point, and its adjacent pixels whose energy magnitude being larger than the second threshold Tl are also determined as edge points. However, discontinuity may still occur to part of the pixels. Thus, with respect to the discontinuous edge points, the processing module 160 estimates the slope between the points from the obtained gradient direction, and, based on the slope, further compensates the discontinuous edge points to establish a complete edge segment. Referring to
Next, the process proceeds to step S220, the processing module 160 determines whether the touch action is generated according to whether the difference between the current image and a previous image reaches a third threshold and whether an extended region centered at the complete edge segment is touched. If the difference exceeds the third threshold and the extended region is touched, this implies that an object enters the touch region 170, and a touch action is determined. If the touch action is not generated, then the process returns to step S200.
After a touch action is generated, the corresponding image of the touch action of object is represented as a Gaussian distribution in the window-of-interest region image, and the process proceeds to step S230. In step S230, the processing module 160 executes a gravity center estimation computation to determine the pixels corresponding to the touch action. The gravity center Wp is expressed as formula (6), wherein F (i) denotes the pixel value of a current image, and bg (i) denotes the pixel value of a background image.
Then, referring to
The optical touch system and method disclosed in the above embodiments of the invention has many advantages exemplified below:
The optical touch system and the method thereof disclosed in the invention replace conventional reflective bars with reflective clothes, not only increasing the overall average gray values but also resolving the problem of insufficient illumination at the corners. Besides, the invention adopts a simplified structure of glass module to reduce manufacturing complexity and the troubles during assembly, packaging and delivery. Thus, the cost can be further reduced. Also, the invention also uses related algorithm to reduce of likelihood of erroneous action before the object enters the touch region.
While the invention has been described by way of example and in terms of the preferred embodiment (s), it is to be understood that the invention is not limited thereto. On the contrary, it is intended to cover various modifications and similar arrangements and procedures, and the scope of the appended claims therefore should be accorded the broadest interpretation so as to encompass all such modifications and similar arrangements and procedures.
Number | Date | Country | Kind |
---|---|---|---|
99128322 A | Aug 2010 | TW | national |
Number | Name | Date | Kind |
---|---|---|---|
4710760 | Kasday | Dec 1987 | A |
4894540 | Komatsu | Jan 1990 | A |
5936613 | Jaeger et al. | Aug 1999 | A |
6232957 | Hinckley | May 2001 | B1 |
6898331 | Tiana | May 2005 | B2 |
6911972 | Brinjes | Jun 2005 | B2 |
7119924 | Prabhakar et al. | Oct 2006 | B2 |
7420155 | Mizota et al. | Sep 2008 | B2 |
7538759 | Newton | May 2009 | B2 |
7576767 | Lee et al. | Aug 2009 | B2 |
RE41447 | Tiana | Jul 2010 | E |
8218909 | Khamene et al. | Jul 2012 | B2 |
8248662 | Seo | Aug 2012 | B2 |
20030063097 | Prabhakar et al. | Apr 2003 | A1 |
20060103624 | Ishito et al. | May 2006 | A1 |
20090200453 | Lieberman et al. | Aug 2009 | A1 |
20090219256 | Newton | Sep 2009 | A1 |
20100117990 | Yahata | May 2010 | A1 |
20100194711 | Tsai et al. | Aug 2010 | A1 |
20100207872 | Chen et al. | Aug 2010 | A1 |
20100295821 | Chang et al. | Nov 2010 | A1 |
20100321342 | Lee | Dec 2010 | A1 |
20100328267 | Chen | Dec 2010 | A1 |
20110018822 | Lin et al. | Jan 2011 | A1 |
20110050644 | Su et al. | Mar 2011 | A1 |
20110052095 | Deever | Mar 2011 | A1 |
20110122076 | Herman | May 2011 | A1 |
20110199339 | Briden et al. | Aug 2011 | A1 |
20120038588 | Li et al. | Feb 2012 | A1 |
20120280941 | Hu | Nov 2012 | A1 |
Number | Date | Country |
---|---|---|
200510877 | Mar 2005 | TW |
200512499 | Apr 2005 | TW |
200943139 | Oct 2009 | TW |
201005606 | Feb 2010 | TW |
201030284 | Aug 2010 | TW |
Number | Date | Country | |
---|---|---|---|
20120050224 A1 | Mar 2012 | US |