title: Updating code from openCV to openCV2
body: <p>I'm trying to update some code from openCV to openCV2 in python. The original code is as follows:</p>
  
  <pre><code>self.capture = cv.CaptureFromCAM(0)
  cv.SetCaptureProperty( self.capture, cv.CV_CAP_PROP_FRAME_WIDTH, 160 );
  cv.SetCaptureProperty( self.capture, cv.CV_CAP_PROP_FRAME_HEIGHT, 120 );
  </code></pre>
  
  <p>The code that I wrote for openCV2 is this:</p>
  
  <pre><code>self.capture = cv2.VideoCapture(0)
  cv2.VideoCapture.set( CV_CAP_PROP_FRAME_WIDTH, 160 );
  cv2.VideoCapture.set( CV_CAP_PROP_FRAME_HEIGHT, 120 );
  </code></pre>
  
  <p>However this does not work I'm getting an error that says:</p>
  
  <blockquote>
    <p>cv2.VideoCapture.set( CV_CAP_PROP_FRAME_WIDTH, 160 );
    AttributeError: 'builtin_function_or_method' object has no attribute 'set'</p>
  </blockquote>