pygame is
Python
Simple DirectMedia Layer
 
 
pygame.org is
Site Swing
AirMouse

AirMouse

enderskill (enderskill)

Tags:

Description

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 To use: 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. Procedure: 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. Bugs: 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.

Links

Home Page: http://www.pygame.org/

Pygame.org account Comments

If you wish to leave a comment with your pygame.org account, please sign in first.

No user comments have been submitted.
spotlight

 
our projects
pygame.org welcomes all python game, art, music, sound, video and multimedia projects. If they use pygame or not.
 
recent releases
Jun 24, 2015

Jun 23, 2015

Jun 21, 2015

Jun 17, 2015

Jun 14, 2015

Jun 8, 2015

Jun 7, 2015

May 31, 2015

May 28, 2015

May 18, 2015

May 7, 2015


... more!
 
for pygame related questions, comments, and suggestions, please see help (lists, irc)