Target detection is foundation of video monitoring technology.The paper proposed two study areas to learn the video image
alternate update and detect the video using the learned code.Experiments proved the detection method based on code and alternate update can record changes of blocks effectively
eliminate interference promptly
the established background model is stable and reliable
and the foreground of extracted has good robustness.