MotionBox

From XPUB & Lens-Based wiki
Revision as of 12:05, 1 June 2009 by Michael Murtaugh (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Example of feeding data from Motion into a PyGame window to display the coordinates.

To run the program, you start motion, configured to output coordinate data, then pipe the results to python. NB: the use of the -u option to make python run "unbuffered".

motion -c motionbox.conf | python -u motionbox.py