title: AttributeError: module 'cv2.cv2' has no attribute 'release'
body: <p>I come from RDBMS background and just starting on python. below is a simple code i written to invoke my web cam via python </p>
  
  <pre><code>import cv2
  
  vid = cv2.VideoCapture(0)
   while vid == True:
       print("Connected....");
  if cv2.waitKey(0) : break
  
  cv2.release();
  </code></pre>
  
  <p>but i am getting error </p>
  
  <pre><code>AttributeError: module 'cv2.cv2' has no attribute 'release'
  </code></pre>
  
  <p>while executing it. I am running this code using python3.5 and on linux 14.04 platform. I can see cv2 package installed via help("modules") list and it gets imported as well without error . however i dont see it in the interpreter list of pycharm. please help.</p>