ReacTIVision can process image data recorded as PGM files.
First acquire some video from the webcam with
mencoder tv:// -tv driver=v4l2:width=640:height=480:device=/dev/video0 -nosound -ovc lavc -o myvideo.avi
This was taken from an article on linux.com. I’ve found that
v4l2 works but
v4l doesn’t. Replace
video0 with your video device.
To convert the avi to a series of PGM files use
mplayer -vo pnm:pgm myvideo.avi