How set opencv fps
<p>How set opencv fps in Python. This code not make video from webcamera with fps = 30. Quality of video very bad.</p>

<pre><code>  cv.NamedWindow ("CamShiftDemo", 1)
    device = 0
    self.capture = cv.CaptureFromCAM(device)
    capture_size = (640,480)
    cv.SetCaptureProperty(self.capture,cv.CV_CAP_PROP_FPS,30)
    cv.SetCaptureProperty(self.capture, cv.CV_CAP_PROP_FRAME_WIDTH, capture_size[0])
    cv.SetCaptureProperty(self.capture, cv.CV_CAP_PROP_FRAME_HEIGHT, capture_size[1])
</code></pre>
