Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Opening a camera blocks if the camera is busy #144

Open
jfisteus opened this issue Oct 21, 2019 · 0 comments
Open

Opening a camera blocks if the camera is busy #144

jfisteus opened this issue Oct 21, 2019 · 0 comments

Comments

@jfisteus
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant