<div class="gmail_quote">---------- Forwarded message ----------<br>From: "Tinashe Mudavanhu" <<a href="mailto:tinamuda@gmail.com">tinamuda@gmail.com</a>><br>Date: 28 Mar 2016 16:36<br>Subject: select timeout error.<br>To: "Adrian Rosebrock" <<a href="mailto:a.rosebrock@pyimagesearch.com">a.rosebrock@pyimagesearch.com</a>><br>Cc: <br><br type="attribution"><div dir="ltr"><div><div><br></div>Hi Adrian,<br><br></div>I am getting a "select timeout" error when i run the following video streaming program;<br><div><div><div><div><br><br><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><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.<br><br></div><div>Whats surprising is that the program is working fine on on my machine running Ubuntu 14.04. <br><br></div><div>I've also noticed that people with Ras Pi with Rasbian Wheezy are facing the same problem. Can you please assist me, i'm stuck.<br><br></div><div>Kind Regards,<br><br></div><div>Tinashe <br></div></div></div></div></div>
</div>