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://mutantstargoat.com/nuclear/libwcam. The test program is also available here: svn://mutantstargoat.com/nuclear/compvis/cam_test

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 to agorf Cancel reply