A basic tutorial on writing motion detection and object tracking systems with python using OpenCV. I've used it and it's remarkably usable.