title: Open cv 3 Python 3 AttributeError: module 'cv2' has no attribute 'VideoCapture' Windows 10
body: <p>I want to load a live video from my web cam using open cv v3 and Python 3.5 on Windows 10 but I always get this 'AttributeError: module 'cv2' has no attribute 'VideoCapture' when loaded from a file. When I import cv2 using the shell, all the modules are accessible. But when I use <code>dir(cv2)</code> and run it in a file, I only see a few modules. Here is my code</p>
  
  <pre><code>import numpy as np
  import cv2
  cap = cv2.VideoCapture(0)
  while(True):
      ret, frame = cap.read()
      gray = cv2.cvtColor(frame, cv2.COLOR_BGR2GRAY)
      cv2.imshow('frame',gray)
      if cv2.waitKey(1) &amp; 0xFF == ord('q'):
          break
  cap.release()
  cv2.destroyAllWindows()
  </code></pre>
  
  <p>How can I access the 'VideoCapture' attr from cv2? I need help please. All the solution I find on online don't seem to work. thanks</p>