In video surveillance system, the background modeling techniques for detecting moving objects such as pedestrians and vehicles are essential to separate foreground and background. However, extracting foreground in changing environmental condition is difficult because of the illumination change, moving background and noise. In this paper, we proposed the background modeling technique based on Codebook using the propagation of adjacent pixel. This paper compares the results of other algorithms.