title: Python 3 Opencv set up problem: "cannot find reference 'VideoCapture' in __init__.py" on Pycharm IDE
body: <p>I am trying to install OpenCv and run some code on PyCharm on Mac.</p>
  <p>I have installed the opencv package as well as numpy but when I run the code this error shows up:</p>
  <blockquote>
  <p>&quot;cannot find reference 'VideoCapture' in <strong>init</strong>.py&quot; on Pycharm IDE</p>
  </blockquote>
  <p>In fact, every time I write <code>example_variable = cv2.</code> , PyCharm is not giving me any option to autocomplete with a function attached to cv2. Why is this happening?</p>
  <p>Here's the code I am trying to run. I tried also running other codes but the same error displays:</p>
  <pre><code>import cv2
  import numpy as np
  
  cap = cv2.VideoCapture();
  
  while(True):
      ret, frame = cap.read()
      gray = cv2.cvtColor(frame, cv2.COLOR_BGR2GRAY)
      cv2.imshow('frame',gray)
  
      if cv2.waitKey(1) &amp; OxFF == ord('q'):
          break
  
  cap.release
  cv2.destroyAllWindows()
  </code></pre>
  <p>Any tips on how to run this code smoothly? The end goal is to have my front webcam capture live video and react to it.</p>