title: noise in webcam frames Python + Opencv
body: <p>I'm using Opencv 2.4.5 with python 2.7 to track people in video surveillance. At the beginning I used .avi and .mpeg videos to test my code, now I want to use a hcv-m100c camera. I am using a simple difference between frames (an initial frame compared with each frame) to identify the objects in movement, It works very well with the .avi and .mpeg videos I have, but when I use the camera the results are so bad because a lot of noise and stains appear in my video. I thought that the problem was my camera, but I made an .avi video with the same camera and I tested that video with my code and it works fine. 
  Now, I'm using the cv2.BackgroundSubtractorMOG but the problem is still there.
  So, I think I need to do a pre-processing when I use the camera</p>