Moving object detection based on enhanced frame difference

Aiming at the problem that frame difference method will deal with the moving target incorrectly when the target moves slowly or stops for some times, a novel method based on frame difference for moving object detection is proposed. Firstly, the algorithm confirms the number of frames used to generate background by comparing the binary frame difference of the current frame with the initial binary frame difference and establishes the background model using the determined frame; Then the background subtraction method is utilized to detect the moving object through the established background. Relevant experiments show that the algorithm can better deal with the detection of slow-moving targets.