Introduction - If you have any usage issues, please Google them yourself
One of the optical flow method: the BGS codebook code, reference papers Real-time foreground-background a segmentation a using codebook the model (Kyungnam Kima, Thanarat of H. Chalidabhongseb David Harwooda, Larry Davis), carried out to simplify.
Experimental results: it seems that the noise point too much.