Rabid Geek
  • Home
  • Bio
  • Applets
    • Graphing Calculator
    • Electric Fields
    • Fourier Series
    • Motion
    • Oscillations
    • Pendulum
    • Projectile Motion
    • Snell’s Law
    • Taylor Series
    • Waves
  • Projects
    • Android
    • Linux
      • Linux Web Camera Class
    • Mathematics
    • Other
      • Mesh Triangulation
  • Contact

Linux Web Camera Class



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.

Download zip
Download tar

SHARE THIS Twitter Facebook Delicious StumbleUpon E-mail

No Comments Yet

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

*

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

*
= 5 + 9

Pages

  • Bio
  • Applets
    • Graphing Calculator
    • Electric Fields
    • Fourier Series
    • Motion
    • Oscillations
    • Pendulum
    • Projectile Motion
    • Snell’s Law
    • Taylor Series
    • Waves
  • Projects
    • Android
    • Linux
      • Linux Web Camera Class
    • Mathematics
    • Other
      • Mesh Triangulation
  • Contact

My Links

  • My Github

Blogroll

  • Raspberry Pi

Categories

  • C++
  • Linux
  • Math
  • Uncategorized
© 2004 by Rabid Geek and Gavin Lobo. All rights reserved

EvoLve theme by Theme4Press  •  Powered by WordPress Rabid Geek