Recursive-learning-based moving object detection in video with dynamic environment