The invention provides a method and a
system for detecting moving objects. The method for detecting the moving objects comprises the following steps: acquiring video, namely acquiring video contents to obtain a scene image, and establishing a background model; preprocessing the image to eliminate the influence of the
background image on the background model; marking areas, namely partitioning a foreground from the scene image according to the background model, and marking communicated areas; maintaining a state, namely judging the current state of a moving
object detection system, performing corresponding
processing, and performing abnormal detection if necessary; enhancing the areas, namely removing the false areas of shadow, high brightness and leaf swing by using shadow detection, high brightness detection and tree filter; and splitting and merging the areas, namely splitting and merging the areas by using the restriction provided by the background model and the priori knowledge of human and vehicle models to solve the problem of over partition and mutual shading of the objects. The method and the
system detect the moving objects, and solve the problems of image
jitter, brightness change, shadow, leaf swing and the like.