When the background is changing due to lighting or leave motion, etc, simple subtraction is inadequate.We introduce a non-parametric statistical approach to modeling the background and then detect foreground pixels that are unlikely to be part of the background.