MotionBox: Difference between revisions

From XPUB & Lens-Based wiki
No edit summary
(No difference)

Revision as of 12:05, 1 June 2009

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