So far I have followed this tutorial to install OpenCV in RaspberryPi for Python. It says simply to run:
sudo apt-get install libopencv-dev python-opencv
But I've looked around internet and I've found there are more libraries to install than that, as in these two similar tutorials:
1) http://denis.doublebuffer.net/lablog/2012/08/10/setting-everything-up-for-opencv-raspberry-pi/
2) http://eduardofv.com/read_post/185-Installing-OpenCV-on-the-Raspberry-Pi
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:
import cv2
cap = cv2.VideoCapture(0)
while True:
b,frame = cap.read()
cv2.imshow("frame", frame)
cv2.waitKey(1)
As I said above the visualization is flowing but delayed.