This application claims the benefit of Taiwan application Serial No. 099109255, filed Mar. 26, 2010, the subject matter of which is incorporated herein by reference.
1. Field of the Invention
The invention relates in general to a background image updating method and a touch screen, and more particularly to a background image updating method and a touch screen which provide an updating mechanism.
2. Description of the Related Art
With the rapid development of the technology, the use of touch screens is more and more common. According to the sensing principle, the touch screens can be divided into resistance touch screens, capacitance touch screens or ultrasonic touch screens. At present, optical touch screens has been further presented. Through comparing an object image and a background image, both captured by two image modules, a touch position is obtained. The background image is an image captured when no touch points or objects (including fingers or objects obstructing the light) are on the monitor, and the object image is an image captured when a touch point or an object is on the monitor. As the touch point is located in the light path, a dark point is generated in the object image. Afterwards, the background image and the object image are compared (according to the difference between the brightness thereof, for example) to determine the position of the touch point, and further to calculate the coordinate of the touch point with respect to the monitor. However, when the optical touch screen is impacted or shaken, the image modules disposed on the touch screen are moved at the same time. At this time, the images captured by the image modules may be distorted and twisted, so that other dark points may be generated or the position of the dark point is moved. Thus, the determination of the position of the touch point is inaccuracy.
For example, please refer to
Please refer to
The invention is directed to a background image updating method and a touch screen. The brightness variation is used as a mechanism to determine whether a background image is updated or not, so that the accuracy in determining the touch position can be increased.
According to the present invention, a background image updating method adapted to a touch screen is provided. The touch screen includes a display module, a first image module and a second image module. A first image is captured by the first image module as a first background image. A second image is captured by the second image module as a second background image. The background image updating method includes following steps: (a) comparing whether an absolute value of a difference between a brightness of a third image captured by the first image module and a brightness of the first background image is greater than a first predetermined value; (b) if the result of the step(a) is yes, comparing whether an absolute value of a difference between a brightness of a fourth image captured by the second image module and a brightness of the second background image is greater than a second predetermined value; (c) if the result of the step(b) is yes, using the first image module to capture a fifth image, and using the second image module to capture a sixth image; and (d) using the fifth image to replace the first image as the first background image, and using the sixth image to replace the second image as the second background image.
According to the present invention, a touch screen is further provided. The touch screen includes a display module, a first image module, a second image module and a processor. The first image module disposed at a corner of the display module is for capturing a first image as a first background image. The second image module disposed at another corner of the display module is for capturing a second image as a second background image. The processor includes a program which is for performing the background image updating method mentioned above and is not repeatedly described herein.
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.
Embodiments of a background image updating method and a touch screen according to the present invention are illustrated in detail with reference to the accompanying drawings. However, a person having ordinary skill in the art should understand that the drawings and the content are for illustration only, and the present invention is not limited thereto.
Please refer to
In the present embodiment of the invention, a background image updating method is, for example, illustrated by using a touch screen 300 in
The first image module 330 of the present embodiment includes a light source portion 331 and an image capturing portion 332, and the second image module 340 of the present embodiment includes a light source portion 341 and an image capturing portion 342. The image capturing portions 332 and 342 are used to capture the light, emitted by the light source portions 331 and 341, reflected by the reflectors 320, and thus a background image without touch points or an object image with touch points is generated. When the touch screen 300 is turned on, images are captured by the image capturing portions 332 and 342 at a predetermined capturing frequency, such as 20, 30 or 60 image/frame per second. The capturing frequency can be determined or preset according to the practical requirements.
The background image updating method of the present embodiment includes the following steps. In the step S101, when no touch points are on the display module 310, a first image is captured by the image capturing portion 332 of the first image module 330 as a first background image, and a second image is captured by the image capturing portion 342 of the second image module 340 as a second background image. Moreover, the first image and the second image are stored in a storage unit of the touch screen 300. The storage unit can be an individual component or built in the processor 350.
Then, the step S103 is preformed. In the step S103, the image capturing portions 332 and 342 continually capture images at the capturing frequency so as to respectively capture a third image and a fourth image, for example.
After that, the step S201 is performed. In the step S201, whether an absolute value of a difference between the brightness of the third image captured by the first image module 330 and the brightness of the first background image is greater than a first predetermined value is compared by the processor 350.
If the result of the step S201 is yes, the step S203 is performed. In the step S203, whether an absolute value of a difference between the brightness of the fourth image captured by the second image module 340 and the brightness of the second background image is greater than a second predetermined value is compared by the processor 350.
If the result of the step S203 is yes, the absolute value of the difference between the brightness of the third image and the brightness of the first background image is greater than the first predetermined value, and the absolute value of the difference between the brightness of the fourth image and the brightness of the second background image is greater than the second predetermined value. At this time, the step S205 is then performed by the processor 350. In the S205, the first image module 330 is controlled by the processor 350 to capture a fifth image, and the second image module 340 is controlled by the processor 350 to capture a sixth image. In detail, when the difference between the brightness of the third image and the brightness of the first background image is greater than a certain value, and the difference between the brightness of the fourth image and the second background image is greater than a certain value, the processor 350 determines that the display module 310 is under the warping state. In other words, the fifth image and the sixth image are images captured when the first image module 330 and the second image module 340 are moved or the display module 310 is under the warping state.
After the step S205, the step S207 is performed. In the step S207, through the processor 350, the fifth image is used to replace the first image as the first background image, and the sixth image is used to replace the second image as the second background image. At this time, the background image has been updated.
In addition, if the result of the step S201 is no, that is, the absolute value of the difference between the brightness of the third image and the brightness of the first background image is less than the first predetermined value, the step of updating the background image does not have to be performed. Thus, the background image updating method of the embodiment is terminated.
Similarly, if the result of the step S203 is no, that is, the absolute value of the difference between the brightness of the fourth image and the brightness of the second background image is less than the second predetermined value, the step of updating the background image does not have to be performed. Thus, the background image updating method of the embodiment is terminated.
After the background images are updated, the image capturing portions 332 and 342 continually capture new images at the capturing frequency. Through the processor 350, the new images respectively captured by the image capturing portions 332 and 342 are compared with the updated first background image (i.e. the fifth image) and the updated second background image (i.e. the sixth image) so as to calculate the position of the touch point. Due to the updated first background image (i.e. the fifth image) and the updated second background image (i.e. the sixth image) being captured when the first image module 330 or the second image module 340 is moved or the display module 10 is under the warping state, and the new images also being captured when the first image module 330 or the second image module 340 is moved or the display module 310 is under warping state, all of the images are captured and compared under the same state, so that the error rate or misjudgement can be reduced.
It is noted that the order of performing the step S201 and the step S203 can be switched, that is, the step S203 can be performed firstly, and the step S201 is performed according to the result of the step S203. In addition, the fifth image can be used to replace the first image directly after being captured, and the sixth image is then captured to replace the second image in the step S207.
As shown in the flow chart of the background image updating method, if the background images are intended to be updated, the conditions that the absolute value of the difference between the brightness of the third image and the brightness of the first background image is greater than the first predetermined value, and the absolute value of the difference between the brightness of the fourth image and the brightness of the second background image is greater than the second predetermined value have to be satisfied. In one embodiment, the conditions can be satisfied by using a finger or other objects.
When a finger or an object is, for example, positioned at the position A1 as shown in
In practice, when the user notices that the coordinate of the touch point calculated by the processor 350 of the touch screen 300 is shift or inaccurate, it may results from the move of the first image module 330 or the second image module 340 being impacted, or the warp of the display module 310. At this time, the user can manually put his fingers or objects close to the light source portions 331 and 341 to obstruct at the same time, so that the first background image and the second background image are forced to update according to the background image updating method of the present embodiment. Therefore, the accuracy in determining the coordinate of the touch point can be increased. In addition, according to the practical operation experience, when the display module 310 is impacted or shaken, the brightness of the third image is usually greater than that of the first background image (which may make the absolute value of the difference is greater than the first predetermined value), and the brightness of the fourth image is also greater than that of the second background image (which may make the absolute value of the difference is greater than the second predetermined value). In other words, the touch screen 300 can also automatically update the first background image and the second background image. In summary, the update of the first background image and the second background image can be performed either automatically or manually in the present embodiment. If the user notices that the coordinate of the touch point is shift or inaccuracy but the touch screen 300 does not update the background image automatically, the background image can be updated manually. In addition, another difference between the automatic update and the manual update is that when the background images are updated manually, the finger or the object has to be moved away from the light source portions 331 and 341 after the step S203, so that the S205 is performed successively.
An example of the background image updating method according to the present embodiment is illustrated in the following. Please refer to
Please refer to
In addition, please refer to
In one embodiment, in the step S201, the first predetermined value is set as 10%˜15% of the absolute value of the difference between a brightness summation of all pixels or pixels in a particular area of the third image and that of the first background image, and in the step S203, the second predetermined value is set as 10%˜15% of the absolute value of the difference between a brightness summation of all pixels or pixels in a particular area of the fourth image and that of the second background image. However, in the step S201, the first predetermined value for comparison can also be set as 10%˜15% of the absolute value of the difference between the average brightness of all the pixels or the pixels in the particular area of the third image and that of the first background image, and in the step S203, and the second predetermined value for comparison can also be set as 10%˜15% of the absolute value of the difference between the average brightness of all the pixels or the pixels in the particular area of the fourth image and that of the second background image. It have to be noted that the first determined value could be the same as the second determined value or different.
According to the background image updating method and the touch screen illustrated in the embodiment of the present invention, the first background image and the second background image are updated based on both the comparison between the third image and the first background image and the comparison between the fourth image and the second background image. Therefore, even the first image module and the second image module is moved to be placed in another environment, the user still can manually obstruct both the light source portions through the fingers or the object at the same time. Thus, the first background image and the second background image can timely be updated so as to increase the accuracy in determining the touch positions. In addition, as the touch screen is shaken or moved, the brightness of the third image and that of the fourth image are also increased concurrently, so that the first background image and the second background image can be updated automatically.
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 |
---|---|---|---|
099109255 | Mar 2010 | TW | national |