title: Module object has no attribute 'VideoCapture'
body: <pre><code>import numpy as np
  import cv2
  cap = cv2.VideoCapture(0)
  fourcc = cv2.cv.CV_FOURCC(*'XVID')
  out = cv2.VideoWriter('drop.avi', fourcc, 20.0, (640,480))
  
  while cv2.VideoCaptured('drop.avi') is True:
      # Captures frame x frame
      ret , frame = cap.read()
      #Frame operations
      gray = cv2.cvtColor(frame, cv2.COLOR_BGR2GRAY)
      name = "frame%d.jpg"%count #saves frames and a JPEG image file
      cv2.imwrite(name, frame)
  
      #Display the resulting frame
      cv2.imshow('frame', gray)
      if cv2.waitKey(30):`enter code here`
      break
  
      cv.VideoCapture.release()
  </code></pre>
  
  <p>When I want the code to strictly read the video form the file and not from my webcam. I am aware that I need to delete the <code>cap = cv2.VideoCpature(0)</code>. However, I get the error <code>'module' object has no attribute 'VideoCapture'</code>. This code was from an official OpenCV tutorial so I am not sure what is the problem. My guess is that something is not in the correct folder.</p>