Introduction - If you have any usage issues, please Google them yourself
According GMM classic paper Adaptive background mixture models for real-time tracking matlab source code written using GMM background modeling and extract the vehicle completely faithful to the original papers