Motion detection and email alerts with a USB webcam My webcam is set up like this: I am performing the motion detection on the area within the green rectangle: I run scripts/detect.py as a deamon. When it detects motion, it makes a nice animated gif of the "incident" and sends me an email!