Moving foreground objects detection in complex scenes is a tough job because it requires high recognition accuracy. Adaptive Gaussian mixture model (AGMM) can be used to extract the foreground objects and it shows good performance, however, the detection quality of the foreground objects under complex scenes is not excellent. In this paper, an AGMM and BP neural network hybrid method is proposed, which is used to extract the foreground objects in complex scenes such as, dynamic backgrounds, illumination changes and moving shadows. In this method, an improved BP neural network is used to post-process the images of the foreground objects that are extracted from the AGMM. The neural network has strong robustness by learning the statistical features of the images. Momentum term and adaptive learning rate are added in the BP neural network algorithm to improve the training speed and robustness of the network. The experimental results show that the proposed AGMM and BP neural network hybrid method can extract the complete foreground objects effectively when compared with some other moving objects detection algorithms.