a demo of GMM in extraction of foreground and background in surveillance videos
Visual Studio 2010, OpenCV==2.4.9
three surveillance videos
Please modify videoPath, fileName, savePath in Bcakground_Video.cpp to adapt your own code and adjust the size of fileName and savePath in case of pointer boundary overflow.