Gqcam is a program originally created to pull frames from a greyscale Connectix QuickCam, but that has grown into a frame grabber for most any Video4Linux compatible webcam- like camera. It should work with any camera that supports the read() method of grabbing frames.