Introduction - If you have any usage issues, please Google them yourself
Average method to remove the background with the background, the algorithm thought codebook than the Gaussian mixture model and a simple model for extraction of small changes in background scene. With a median filter to remove salt and pepper noise generated