Stopped Object Detection by Learning Foreground Model in Videos