The present invention discloses a moving target detection method based on weighted low-rank and neighborhood group sparse
decomposition, including: first, taking the
grayscale image of each frame and normalizing the pixels to the interval [0, 1]; second, constructing an overlapping local image group for each video frame according to the circular neighborhood of the pixels and giving an expression of the neighborhood group sparse induced norm; third, decomposing D into a low-rank background matrix B, a structured sparse foreground S, and a
Gaussian noise matrix E; fourth, constructing a weight W based on the structural information of S and the modeling result of the
residual noise after
background subtraction; fifth, establishing a final weighted low-rank and neighborhood group sparse
decomposition model according to the above process; sixth, solving the model in the fifth step by the alternating direction
multiplier method, updating the weight during the
iteration process, and finally obtaining the foreground target. The present invention can detect foreground objects that are stationary for a short or long time, can
handle complex dynamic backgrounds, and enhance the integrity of
foreground detection, and is superior to the detection effects of other models in terms of the F-measure index and visual effects.