AirMouse - 0.5
Jason Sommer (gatoralli)
To run AirMouse, you must have installed:
VideoCapture - http://videocapture.sourceforge.net/
PIL - http://www.pythonware.com/products/pil/
Pygame - http://www.pygame.com/
Any USB Webcam or Video Input Device
Connect the webcam, start the program, then move a white emmisive object (such as a flashlight) in front of
the camera. TO STOP THE APPLICATION, PRESS Esc.
For every frame that the camera records, AirMouse reads every pixel like a book (left to right and up to down).
If a pixel is brighter than the threshold variable defined in the script, that pixel relative to the frame
defines the cursor on the computer monitor.
AirMouse is choppy. Reading 76,800 pixels every 15th of a second is hard!
When you move slowly down the screen, you eventually get a value error. This is an error in my pixel
algorithm. I have not had much time to correct it.
|AirMouse - 0.5 ||- Jan 11, 2009|
Pygame.org account Comments
If you wish to leave a comment with your pygame.org account, please sign in first.
pygame.org welcomes all python game, art, music, sound, video and multimedia projects. If they use pygame or not.
Apr 19, 2014
Apr 16, 2014
Apr 13, 2014
Apr 9, 2014
Mar 18, 2014
Mar 15, 2014
Mar 14, 2014
Mar 13, 2014
Mar 11, 2014