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
January 21, 2008 at 11:19 pm
Cool Tracking!
BTW I can’t checkout from your svn..
January 22, 2008 at 6:24 am
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.
January 23, 2008 at 10:15 pm
This is awesome.
February 3, 2008 at 2:53 am
[…] 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 […]