Use veejay 1.4 to calibrate your camera against a projector or a monitor screen in order to calculate the position of a physical object.
Calibration
Press CTRL-s to bring up the setup screen:
After pressing CTRL-s, we return to our now calibrated camera image.
This image you can use to process it for motion detection. In order to have veejay pre process filters on your camera stream while playing a sample press CTRL-d

