Background subtraction method is usually used to detect the moving objects. But the establishment of the background
model is vulnerable due to some external environmental influences, e.g. the noise, the brightness variations and so on.
This paper presents a method based on three frame difference arithmetic of Surendra background updating algorithm to
build the background model. By difference calculation of the current frame and background model, and deal with the
binary images by applying the difference images, then make the morphology operation for removing the noises to get the
smooth images, mark the different connected regions among binary images. According to different labels in connected
regions, this paper defines different center of mass of moving objects, and analyzes the image features of moving object
area, so as to achieve the detection and track of moving objects.