You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The call to cv2.VideoCapture(camera_id) blocks when the camera is busy. It returns once it has been released and can be acquired by the current call.
The OpenCV API doesn't seem to have any way of avoiding blocking. Perhaps calling this function from another thread, and timeout it, could solve the problem. Explore also threading.Timer.
The text was updated successfully, but these errors were encountered:
The call to
cv2.VideoCapture(camera_id)
blocks when the camera is busy. It returns once it has been released and can be acquired by the current call.The OpenCV API doesn't seem to have any way of avoiding blocking. Perhaps calling this function from another thread, and timeout it, could solve the problem. Explore also
threading.Timer
.The text was updated successfully, but these errors were encountered: