<div dir="ltr"><div>Hi,<br><br>I am getting a "select timeout" error when i run the following video streaming program;<br><div><br>import numpy as np<br>import cv2<br><br>cap = cv2.VideoCapture(0)<br><br>while(True):<br> #Capture frame-by-frame<br> ret, frame = cap.read()<br><br> #Our operations on the frame come here<br> gray = cv2.cvtColor(frame, cv2.COLOR_BGR2GRAY)<br><br> #Display the resulting frame<br> cv2.imshow('frame' ,gray)<br> if cv2.waitKey(1) & 0xFF == ord('q'):<br> break<br><br>#When everything is done, release the capture<br>cap.release()<br>cv2.destroyAllWindows()<br><br></div><div>When
i stop the program with Ctrl C it is having a tracback at/to ret, frame
= cap.read(). I am running the program on BBB running Debian Wheezy. The opencv installed was built from source.<br><br></div>Whats
surprising is that the program was working fine on my machine running
Ubuntu 14.04. (Though its nolonger working because of sqlite3 giving an "
ImportError: /usr/lib/libgdal.so.1: undefined symbol:
sqlite3_column_table_name " the problem started after a build of sqlite3
from source).<br><br></div><div>Can you assist please.<br></div> </div>