First Headtracking Test

Finally, after some weeks of putting it off, I manged to sit down and write some code to talk to video4linux2 drivers, in order to get streaming video from a webcam.

My motivation for messing around with webcams and v4l ioctls, was a little experiment of mine. I wanted to write a program, that given video input from a webcam, is able to detect two “markers” attached to my head. This in turn is but a step in a slightly larger experiment I’m conducting, which I’m not going to go into right now.

So what this program does, is to detect the two markers in the video stream, and draw a blue rectangle around each marker. Check out this youtube video for a demonstration of my test program. Be warned: it’s rather silly :)

Also, I wrote a nice little v4l webcam library as part of this experiment. The code is available, as usual, in my subversion repository: svn://nuclear.dnsalias.com/pub/libwcam. The test program is also available here: svn://nuclear.dnsalias.com/pub/compvis/cam_test

About these ads
Posted in hacks. 4 Comments »

4 Responses to “First Headtracking Test”

  1. modal echoes Says:

    Cool Tracking!

    BTW I can’t checkout from your svn..

  2. Nuclear Says:

    Thanks :)
    Btw I fixed the subversion problem. I changed my DSL router recently, and apparently forgot to forward the svnserve port. It should work now.

  3. agorf Says:

    This is awesome.

  4. 3D VR Headtracking test « Code Laboratorium Says:

    [...] VR Headtracking test Filed under: Uncategorized — Nuclear @ 2:53 am After the first successful test of my webcam marker tracking algorithm, it’s now time for the real [...]


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.

%d bloggers like this: