While I was watching the below youtube clip, I was not able to control my passion to try it out. This is actually a do it yourself cheap touch pad for your computer. This is a touch pad made with a good web cam, card board box and open source touchlib library. I was trying to get it done in Ubuntu 10.04. Here is how to do it.Making of touch pad
I followed the above youtube video to get a touch pad box. What I needed was,
1. A web cam
2. A card board box
3. A glass tile
4. A white paper
5. Adhesive tape
Installing dependencies
$ sudo apt-get install cmake libcv-dev libcvaux-dev fftw-dev g++ libxmu-dev libglut3-dev subversion libhighgui-dev
Installing oscpack
Download oscpack_1_0_2.zip from http://www.audiomulch.com/~rossb/code/oscpack/
$ unzip oscpack_1_0_2.zip$ cd oscpackAdd #include <cstring> in tests/OscUnitTests.cpp, osc/OscPrintReceivedElements.cpp and examples/OscDump.cppAdd #include <cstdlib> in tests/OscSendTests.cpp, tests/OscReceiveTest.cpp, examples/OscDump.cpp$ make$ sudo make install
Installing touchlib
$ mkdir ~/touchlib$ cd ~/touchlib$ svn checkout http://touchlib.googlecode.com/svn/trunk/ .Add #include <stdio.h> in src/RectifyFilter.cpp if it is not there.$ cmake .$ make
Command to configure the device
$ cd ~/touchlib/src$ ./configapp. . . . . . .HIGHGUI ERROR: V4L2: device /dev/video0: Unable to query number of channels. . . . . . .
It seems to be my video device (cheap Gear head Web cam 093a:2620) does not support the above said feature. I am not sure about its V4L2 compatibility. If you have any clue to get rid of this, please let me know. Right now my budget not allowing me to get it tested with any other good web cam. I thought these steps may be helpful for some one else who may try to get it. Please comment here if you get it done.
