Background subtraction for object tracking
The seminal paper on background modeling is Adaptive background mixture models for real-time tracking by Stauffer and Grimson. 

If you have Matlab and the Computer Vision System Toolbox, then you can try using vision.ForegroundDetector, which implements a version of their algorithm.