A moving object detection algorithm which employs adaptive background subtraction algorithm and the temporal differencing algorithm to the image sequences is presented in this paper.This algorithm obtains outline of the current frame moving object by temporal differencing algorithm
and then updates background without the information inside the outline.This algorithm can avoid updating error caused by moving object.The experiment shows that this algorithm can detect moving object in the video files in real time