Blog.phpwnage  
Blog.phpwnage > Been a While - Yet More Compiz Headtracking A blog by Kevin Lange, UIUC Class of 2013
  Been a While - Yet More Compiz Headtracking Jan 22, 2010 - klange  
  Okay, so there are still some issues with the old code in the repo, but that aside, I've gotten things running on my desktop now.



(If you are coming from the Compiz Planet, please click the Discuss link down below to see the videos)

Specs are in the video description.
I'm going to try to clean everything up and do a more professional video when I get it in top-notch shape, but the basics are working. I've also discovered that it looks terrible with two displays, so I've got some tweaking to do to fix that.

e: I see I've been reddit'd. Yes, I'm the `klange` posting in the comments. I guess a better explanation is in order!
All of the tracking seen here is done with a webcam video feed. OpenCV (Intel's computer vision library) detects the location of my face in the webcam feed using HAAR detection. This then gets run through some trig to get the final location of the head. The current code base does not detect distance to face, so it's not perfect (this is why I'm picking up the code again). The hardware I used isn't special in anyway. Any laptop with a webcam can do this - the original videos we have from a year ago were recorded on a Dell netbook with a 1.3MP camera. There is no head-attached tracking hardware, it just detects your face (specifically, your eyes).

e: And since someone always ends up asking, the code is right here. The update I just made recently removes depth-perception, primarily because it didn't work with the code I was using. I'll add it back in once it's working again.


Discuss this news post here.
(One comment)
 
  Comment on this Article  
 
cherryBlossoms Hey there.I am looking forward to do some tweaks with the headtracking plugin.Since I do not have a webcam and i do not want to be deprived of the right and pleasure to the tweaking,I was wondering whether:
1)Is there a possibility by which we can make the plugin read from a video file?Only for the sake of testing?
(I tried to change the line 'cvCaptureFromCAM' to 'cvCaptureFromFile' in the code but I cannot figure out whether it works or not)
2)I tried to include printf statements in the code to see the outputs of those tweaks,tried to print the same messages on a file but could not find the file or the place where the output of those printf and fprintf statements are being redirected.Could you help me out in this direction?For eg.where could i get access to those messages etc.

I have installed :
1)Ubuntu 9.10
2)OpenCV-2.1.0
Thanks in advance,
Regards,
Sreevani
klange Read this article here
(More Comments)
 
(C) 2010 Kevin Lange [ RSS ][ Mobile ][ PHPwnage ][ PHP 5 ]