Introduction - If you have any usage issues, please Google them yourself
Using the average background method to read video each frame, calculate the background, save as after difference, simulation matlab version of 2014a, the other did not test, but video reading must choose black and white video.