title: The correct manner to install OpenCV in RaspberryPi to use it with Python
body: <p>So far I have followed this <a href="http://trevorappleton.blogspot.co.uk/2013/11/python-getting-started-with-opencv.html" rel="nofollow">tutorial</a> to install OpenCV in RaspberryPi for Python. It says simply to run:</p>
  
  <p><code>sudo apt-get install libopencv-dev python-opencv</code></p>
  
  <p>But I've looked around internet and I've found there are more libraries to install than that, as in these two similar tutorials:</p>
  
  <p>1) <a href="http://denis.doublebuffer.net/lablog/2012/08/10/setting-everything-up-for-opencv-raspberry-pi/" rel="nofollow">http://denis.doublebuffer.net/lablog/2012/08/10/setting-everything-up-for-opencv-raspberry-pi/</a></p>
  
  <p>2) <a href="http://eduardofv.com/read_post/185-Installing-OpenCV-on-the-Raspberry-Pi" rel="nofollow">http://eduardofv.com/read_post/185-Installing-OpenCV-on-the-Raspberry-Pi</a></p>
  
  <p>Doubts about my incorrect installation of OpenCV are based on the delay in the visualisation of the sequence with this following simple code. It just gets the frames from the camera (RPi camera module) and shows them:</p>
  
  <pre><code>import cv2
  
  cap = cv2.VideoCapture(0)
  while True:
      b,frame = cap.read()
      cv2.imshow("frame", frame)
      cv2.waitKey(1)
  </code></pre>
  
  <p>As I said above the visualization is flowing but delayed.</p>