This application claims the benefit of U.S. patent application Ser. No. 10/180,897, filed Jun. 27, 2002. The entire contents of this prior application are incorporated herein by reference.
The present invention relates generally to camera-based touch systems and in particular to synchronization of camera images in a camera-based touch system to enhance position determination of fast moving objects.
Camera-based touch systems that use cameras to acquire images of a touch surface and process the image data to determine the position of a pointer relative to the touch surface are known. For example, International PCT Application No. WO 02/03316 to Smart Technologies Inc. et al discloses a camera-based touch system including a passive touch surface and a plurality of cameras associated with the touch surface. The cameras have overlapping fields of view encompassing the touch surface. The cameras acquire images of the touch surface from different locations and generate image data. A processor receives and processes the image data generated by the cameras to determine the location of a pointer captured in the images relative to the touch surface using triangulation.
In order to triangulate the position of the pointer accurately, especially in situations where the pointer is moving quickly across the touch surface, it is necessary to synchronize the cameras. This is due to the fact that if the cameras are not synchronized, each camera will capture an image of the pointer at a different time and therefore, will see the pointer at a different position on the touch surface. This of course makes the results of triangulation unpredictable and inaccurate.
It is therefore an object of the present invention to provide a novel system and method for synchronizing camera images in a camera-based touch system to enhance position determination of fast moving objects.
According to one aspect of the present invention there is provided in a camera-based touch system including at least one pair of cameras having overlapping fields of view and a touch surface encompassed within said overlapping fields of view across which a pointer is moved, wherein the cameras of said at least one pair acquire images at intervals asynchronously, a method of synchronizing image data acquired by said at least one pair of cameras comprising the step of:
processing each acquired image to determine the position of said pointer therein and recording the position together with a timestamp representing the time elapsed between a reference point common to said cameras and the time the image was acquired; and
interpolating between pairs of recorded positions to generate interpolated positions and recording each interpolated position together with a synchronization time representing a time each image would have been acquired had said cameras been synchronized.
Preferably, the interpolating is performed between each successive pair of recorded positions. The reference point is preferably, a signal sent to each of the cameras simultaneously. A timer associated with each camera is initiated in response to the signal and the value of the timer is read when each image is acquired thereby to determine the timestamp.
According to another aspect of the present invention there is provided in a camera-based touch system including at least one pair of cameras having overlapping fields of view and a touch surface encompassed within said overlapping fields of view across which a pointer is moved, wherein the cameras of said at least one pair acquire images at intervals asynchronously, a method of estimating the position of said pointer relative to said touch surface from image data acquired by said at least one pair of cameras, said method comprising the step of:
for each camera in said pair:
determining interpolated positions generated by said cameras having equivalent associated synchronization times and triangulating the interpolated positions to estimate the position of the said pointer relative to said touch surface.
In accordance with yet another aspect of the present invention there is provided a camera-based touch system comprising:
at least one pair of cameras associated with a touch surface and having overlapping fields of view encompassing said touch surface, said at least one pair of cameras acquiring images of said touch surface from different locations and generating image data;
a processor receiving and processing the image data generated by said at least one pair of cameras to determine the location of an object relative to the touch surface by triangulation when the object is captured in images acquired by the at least one pair of cameras; and
a synchronization mechanism to synchronize image data generated by said at least one pair of cameras.
In accordance with still yet another aspect of the present invention there is provided a method of determining the position of a pointer relative to a touch surface comprising the steps of:
acquiring synchronized image data of said touch surface from different locations using cameras having overlapping fields of view; and
processing the image data to yield pointer position data; and
triangulating the pointer position data to determine the position of said pointer relative to said touch surface.
The present invention provides advantages in that since the position of the pointer is derived from synchronized camera image data, the pointer position relative to the touch surface can be accurately determined using triangulation. In the case of asynchronously captured images, the pointer position data derived from images is adjusted to approximate pointer position data that would have been derived from the images had the images been synchronously captured. In this manner, the position of the pointer can be accurately determined using triangulation notwithstanding the asynchronous image acquisition.
Embodiments of the present invention will now be described more fully with reference to the accompanying drawings in which:
Turning now to
Each digital camera 63N includes a two-dimensional CMOS image sensor 80 having an associated lens assembly, a first-in-first-out (FIFO) buffer 82 coupled to the image sensor 80 by a data bus and a digital signal processor (DSP) 84 coupled to the FIFO 82 by a data bus and to the image sensor 80 by a control bus. A boot EPROM 86 and a power supply subsystem 88 are also included.
In the present embodiment, the CMOS camera image sensor 80 is a National LM9617 image sensor configured for a 640×20 pixel subarray that can be operated to capture image frames at rates in excess of 200 frames per second. Arbitrary pixel rows of the image sensor 80 can be selected. Since the pixel rows can be arbitrarily selected, the pixel subarray can be exposed for a greater duration for a given digital camera frame rate providing for good operation in darker rooms in addition to well lit rooms. The FIFO buffer 82 is manufactured by Cypress under part number CY7C4211V and the DSP 84 is manufactured by Analog Devices under part number ADSP2185M.
The DSP 84 receives and processes image frames from the image sensor 80 to determine the x-positions of a pointer within the image frames. In addition, the DSP 84 provides control information to the image sensor 80 via the control bus. The control information allows the DSP 84 to control parameters of the image sensor 80 such as exposure, gain, array configuration, reset and initialization. The DSP 84 also provides clock signals to the image sensor 80 to control the frame rate of the image sensor 80.
The angle of the plate 66 and the optics of the digital cameras 63N are selected so that the field of view (FOV) of each digital camera 63N is slightly beyond 90°. In this way, the entire touch surface 60 is within the field of view of each digital camera 63N with the field of view of each digital camera 63N extending slightly beyond a designated peripheral edge of the touch surface 60 as shown in
Master controller 54 is best illustrated in
The master controller 54 and each digital camera 63N follow a communication protocol that enables bi-directional communications via a common serial cable similar to a universal serial bus (USB). The transmission bandwidth is divided into thirty-two (32) 16-bit channels. Of the thirty-two channels, six (6) channels are assigned to each of the DSPs 84 in the digital cameras 630 to 633 and to the DSP 90 in the master controller 54 and the remaining two (2) channels are unused. The master controller 54 monitors the twenty-four (24) channels assigned to the DSPs 84. The DSPs 84 monitor the six (6) channels assigned to the DSP 90 of the master controller 54. Communications between the master controller 54 and the digital cameras 630 to 633 are performed as background processes in response to interrupts.
The operation of the touch system 50 will now be described. Initially, a camera offset angle calibration routine is performed to determine the offset angle δ of each digital camera 63N (see
With the touch system 50 calibrated, each digital camera 63N acquires image frames of the touch surface 60 within the field of view of its image sensor 80 at a desired frame rate and processes each acquired image frame to determine if a pointer is in the acquired image frame. During this operation, the DSP 84 reads each image frame from the FIFO buffer 82 and processes the image frame.
If a pointer is in the acquired image frame, the image frame is further processed by the DSP 84 to determine the x-position of the pointer. The z-position of the pointer is also determined so that a determination can be made as to whether the pointer is contacting or hovering above the touch surface 60. The x-position data generated by the DSP 84 is then adjusted for camera synchronization purposes, as will be described. Pointer information packets (PIPs) including the pointer position information, status and/or diagnostic information are then generated by the DSP 84 and the PIPs are queued for transmission to the master controller 54. The digital cameras 630 to 633 also receive and respond to command PIPs generated by the master controller 54.
The master controller 54 polls the digital cameras 630 to 633 for PIPs in the queues. In this particular embodiment, the master controller 54 polls the digital cameras at a rate exceeding the image sensor frame rates. Upon receipt of PIPs from the digital cameras 63N, the master controller 54 examines the PIPs to determine if the PIPs include pointer location data. If the PIPs include pointer location data, the master controller 54 triangulates the pointer location data in the PIPs to determine the position of the pointer relative to the touch surface 60 in Cartesian rectangular coordinates. The master controller 54 in turn transmits calculated pointer position data, status and/or diagnostic information to the computer 56. In this manner, the pointer position data transmitted to the computer 56 can be recorded as writing or drawing or can be used to control execution of application programs executed by the computer 56. The computer 56 also updates the display output conveyed to the projector 58 so that information presented on the touch surface 60 reflects the pointer activity.
The master controller 54 also receives commands from the computer 56 and responds accordingly as well as generates and conveys command PIPs to the digital cameras 63N. Specifics of the manner in which the cameras 63N determine the pointer x and z positions from the image frame data and create PIPs is described in International PCT Application No. WO 02/03316 and therefore, will not be described herein.
When a pointer is stationary on the touch surface 60 or when the pointer is moving slowly across the touch surface 60, the triangulated positions of the pointer relative to the touch surface 60 over time are accurate. However, when the pointer moves quickly across the touch surface 60, a pair of digital cameras 63N capturing images of the pointer will see the pointer at different positions on the touch surface 60 if the digital cameras 63N are capturing images at different times.
Accordingly, to deal with the above problem, in one embodiment of the present invention the camera-based touch system 50 performs synthetic camera synchronization to maintain triangulation accuracy notwithstanding the fact that the digital cameras 63N acquire images asynchronously. In particular, during synthetic camera synchronization the DSPs 84 in the digital cameras 63N adjust the x-position data derived from captured image frames to approximate x-position data that would have been derived from the image frames had the image frames been synchronously captured by the digital cameras 63N. Specifics concerning synthetic camera synchronization will now be described with particular reference to
When the DSP 84 in a digital camera 63N receives an EOF signal from its associated image sensor 80 (step 150), signifying that a new image frame is ready to be read from the FIFO buffer 82, the DSP 84 examines the status of the digital camera 63N to determine if the digital camera has stalled (step 152). If the camera has not stalled, the value of the DSP internal timer (“TimeStamp”) is read and the image frame is processed to determine the x-position of the pointer in the image frame (step 154). The TimeStamp and the pointer x-position form an entry that is used to update a camera history table maintained by the DSP 84 (step 156).
At step 152, if the digital camera 63N has stalled (i.e. image processing for the prior image frame has not been completed by the DSP 84), to avoid losing the TimeStamp read from the DSP internal timer, the x-position is estimated by extrapolating the x-positions of the previous two entries in the camera history table (step 158). The extrapolated x-position and the TimeStamp form an entry that is used to update the camera history table (step 156). This procedure is considered as error recovery, due to the fact that problems can arise if stalled image frames become frequent or consecutive.
Once the camera history table has been updated, the DSP 84 updates a synchronization table maintained by the DSP 84 using the entries in the camera history table (step 162).
In the present embodiment, the camera history table includes six entries to ensure that triangulation can be performed even if the digital cameras 63N become out of phase by four image frames. During updating of the camera history table at step 156, whenever the DSP 84 generates a new x-position and reads the TimeStamp from the DSP internal timer in response to an EOF signal, the DSP 84 rolls the camera history table back by one position. In this manner, the oldest entry in the camera history table at position [0] is discarded and the new entry is placed in the camera history table at position [5].
Table 1 below shows camera history tables maintained by the DSPs 84 of digital cameras 630 and 631. As can be seen, each entry in each of the camera history tables including a TimeStamp and the associated x-position.
Table 2 below shows the synchronization tables that are maintained by the DSPs 84 of digital cameras 630 and 631, based on the camera history tables of Table 1.
As can be seen, each entry in the synchronization tables includes a synchronization time TS and an interpolated x-position XS. The interpolated x-positions XS are determined as follows. Assuming that the velocity of the pointer is constant as the pointer travels between two (2) points, the interpolated x-positions are calculated using the equation:
XS=((X1−X0)/(T1−T0))*(TS−T0)+X0 (1)
X0 and X1 are successive x-position entries in the camera history tables;
T1 and T0 are successive TimeStamps corresponding to the x-position entries X1 and X0; and
TS is a given synchronization time, where T0≦Ts≦T1.
For example, using the first two entries in the camera history table maintained by digital camera 630 shown in Table 1 and a synchronization time TS equal to 500, equation (1) yields:
XS=((20−10)/(700−200))*(500−200)+10=16
In order to interpolate the x-position data accurately, the DSP internal timers need to be calibrated against a common reference. This is due to the fact that the DSP internal timers, although similar, are not identical. As a result, if the DSP internal timers are not reset, a phase error will be introduced. Moreover, the maximum TimeStamp allowable for 16-bit integer math is 32767. If the TimeStamp is permitted to exceed this maximum limit, problems arise. In the present embodiment, a signal embedded in the command PIPs generated by the master controller 54, that are sent to each of the digital cameras 63N simultaneously, is used by the digital cameras 63N to reset the DSP internal timers.
Since the DSP internal timers are simultaneously reset, the TimeStamps constitute baseline data that exhibits the following known attributes:
As mentioned above, the attribute T1 >T0 does not hold true following a DSP internal timer reset. In this case when using equation (1) to calculate the interpolated x-position XS following a DSP internal timer reset, the term (T1−T0) in equation (1) yields an incorrect and unpredictable value. Thus, when the attribute T1>T0 does not hold true, the occurrence of a DSP internal timer reset can be recognized by the DSP 84 allowing TimeStamp T1 to be corrected prior to performing the interpolation calculation. Since the elapsed time between successive TimeStamps is a known constant C, following a DSP internal timer reset, the TimeStamp T1 is adjusted by assigning the TimeStamp T1 a replacement value equal to C+T0.
The synchronization times TS used by each digital camera 63N during the interpolation calculations are the same and the interval between successive synchronization times TS is constant. As a result, although the TimeStamps in the camera history tables fluctuate, the synchronization times TS in the synchronization tables do not. Since the interval between successive synchronization times TS is also a known constant, following a DSP internal timer reset, the synchronization time TS can also be corrected so that the term (TS−T0) in equation (1) yields a meaningful result during the interpolation calculation.
The interval between successive synchronization times TS should be at least the same as the elapsed time constant C for camera-based touch systems that include only include one pair of cameras. For example, if the elapsed time constant C between T1 and T0 is equal to 500, the interval between synchronization times TS should also be equal to 500. As the number of cameras in the camera-based touch system increases, the interval between synchronization times TS should be greater than the elapsed time constant C. This results in an increase in the number of non-redundant interpolated points that are generated by the digital cameras 63N and hence, an increase in touch system resolution.
When the digital cameras 63N are polled by the master controller 54, the digital cameras 63N package the interpolated x-positions Xs in the synchronization tables into PIPs and convey the PIPs to the master controller 54 (step 164). During polling, the master controller 54 sends a poll number to each digital camera 63N. The poll number signifies the synchronization time Ts for which an interpolated x-position Xs is desired. If the synchronization table maintained by the DSP 84 of the digital camera 63N includes an interpolated x-position Xs for the specified synchronization time Ts, the interpolated x-position Xs is packaged into a PIP and the PIP is conveyed to the master controller 54.
Upon receipt of the PIPs, the master controller 54 uses interpolated x-positions XS in the PIPs received from pairs of digital cameras having equivilent synchronization times to triangulate the position of the pointer. In the example of Table 2, synchronization time 2000 is the most recent synchronization time at which digital cameras 630 and 631 will return interpolated x-positions XS to the master controller 54 if polled for these interpolated x-positions. As a result, these interpolated x-positions Xs can used by the master controller 54 to triangulate the pointer position. Specifics of the triangulation methodology are described in International PCT Application No. WO 02/03316 and therefore, will not be described herein.
If desired, the camera history tables and the synchronization tables can be maintained by the DSP 90 of the master controller 54 or by the computer 56. In this case, the camera frame rates must be constant and known. Using the DSPs 84 to maintain the camera history tables and the synchronization tables allows the camera frame rates to be variable.
As an alternate solution to achieve digital camera synchronization, the DSP 84 in each of the digital cameras can be provided with synchronization logic that is responsive to a programmable high-speed signal generator that generates the horizontal and vertical synchronization signals for the camera image sensor 80. The high-speed signal generators are programmed to ensure that each of the digital cameras 63N captures an image of the touch surface 60 at the same time so that the images captured by the digital cameras are synchronized. Although this results in synchronized camera images, it is a more costly solution than that of the first embodiment due to the fact that the synchronization logic and programmable high-speed signal generators take up real estate on the digital camera boards and therefore, increase costs.
Although the equation (1) interpolates within the interval T0 to T1, those of skill in the art will appreciate that it is possible to interpolate outside of the interval T0 to T1 although the assumption that the velocity of the pointer is constant during the interpolation interval becomes less true.
Although preferred embodiments of the present invention have been described, those of skill in the art will appreciate that variations and modifications may be made without departing from the spirit and scope thereof as defined by the appended claims.
Number | Name | Date | Kind |
---|---|---|---|
4144449 | Funk et al. | Mar 1979 | A |
4507557 | Tsikos | Mar 1985 | A |
4558313 | Garwin | Dec 1985 | A |
4742221 | Sasiki et al. | May 1988 | A |
4746770 | McAvinney | May 1988 | A |
4818826 | Kimura | Apr 1989 | A |
5097516 | Amir | Mar 1992 | A |
5317140 | Dunthorn | May 1994 | A |
5483261 | Yasutake | Jan 1996 | A |
5502568 | Ogawa et al. | Mar 1996 | A |
5581276 | Cipolla et al. | Dec 1996 | A |
5638092 | Eng et al. | Jun 1997 | A |
5737740 | Henderson et al. | Apr 1998 | A |
5825352 | Bisset et al. | Oct 1998 | A |
5936615 | Waters | Aug 1999 | A |
5963199 | Kato et al. | Oct 1999 | A |
5982352 | Pryor | Nov 1999 | A |
6008798 | Mato, Jr. et al. | Dec 1999 | A |
6061177 | Fujimoto | May 2000 | A |
6100538 | Ogawa | Aug 2000 | A |
6161066 | Wright et al. | Dec 2000 | A |
6208330 | Hasegawa et al. | Mar 2001 | B1 |
6256033 | Nguyen | Jul 2001 | B1 |
6310610 | Beaton et al. | Oct 2001 | B1 |
6323846 | Westerman | Nov 2001 | B1 |
6335724 | Takekawa et al. | Jan 2002 | B1 |
6339748 | Hiramatsu | Jan 2002 | B1 |
6359612 | Peter et al. | Mar 2002 | B1 |
6414671 | Gillespie et al. | Jul 2002 | B1 |
6421042 | Omura et al. | Jul 2002 | B1 |
6429856 | Omura et al. | Aug 2002 | B1 |
6507339 | Tanaka | Jan 2003 | B1 |
6531999 | Trajkovic | Mar 2003 | B1 |
6559813 | DeLuca et al. | May 2003 | B1 |
6563491 | Omura | May 2003 | B1 |
6594023 | Omura et al. | Jul 2003 | B1 |
6674424 | Fujioka | Jan 2004 | B1 |
6710770 | Tomasi et al. | Mar 2004 | B2 |
6774889 | Zhang et al. | Aug 2004 | B1 |
6803906 | Morrison et al. | Oct 2004 | B1 |
6933981 | Kishida et al. | Aug 2005 | B1 |
7007236 | Dempski et al. | Feb 2006 | B2 |
7030861 | Westerman et al. | Apr 2006 | B1 |
20010019325 | Takekawa | Sep 2001 | A1 |
20010022579 | Hirabayashi | Sep 2001 | A1 |
20010026268 | Ito | Oct 2001 | A1 |
20010033274 | Ong | Oct 2001 | A1 |
20020036617 | Pryor | Mar 2002 | A1 |
20030001825 | Omura et al. | Jan 2003 | A1 |
20030025951 | Pollard et al. | Feb 2003 | A1 |
20030085871 | Ogawa | May 2003 | A1 |
20040021633 | Rajkowski | Feb 2004 | A1 |
20040046749 | Ikeda | Mar 2004 | A1 |
20040178997 | Gillespie et al. | Sep 2004 | A1 |
20040189720 | Wilson et al. | Sep 2004 | A1 |
20050052427 | Wu et al. | Mar 2005 | A1 |
Number | Date | Country |
---|---|---|
2493236 | Dec 2003 | CA |
198 10 | Dec 1998 | DE |
198 10 452 | Dec 1998 | DE |
57-211637 | Dec 1982 | JP |
8-240407 | Sep 1996 | JP |
9-91094 | Apr 1997 | JP |
9-319501 | Dec 1997 | JP |
WO 9940562 | Aug 1999 | WO |
0203316 | Jan 2002 | WO |
2003105074 | Dec 2003 | WO |
Number | Date | Country | |
---|---|---|---|
20040108996 A1 | Jun 2004 | US |