I had bought a new web camera because my old Logitech Quick Cam Pro was out of date, obsolete and abandoned by it’s creators. My new Creative Live Cam Chat HD is a nice upgrade. It’s plug-n-play and is Linux compatible (also plug-n-play)!
Video 4 Linux is Linux’s way of dealing with videos and video streams. I wanted a very simple way to read each video frame coming from the web camera, but I didn’t want to use a big library like OpenCV. So I wrote my own C++ class by looking at sample code provided by Video 4 Linux ( Google search: capture.c ).
The code is relatively simple, it is just a .h file that needs to be included. A bitmap image class header is included just to demonstrate how to capture the data and output it to a bitmap file.
The code is on my git hub page. Type the following in your terminal if you have git installed:
git clone git://github.com/rabidgeek/linuxWebcam
Or if you don’t have git installed you can use the direct download.