Method and system for moving object detection with single camera