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

Ensure cv2.VideoCapture is only called once #3619

Merged
merged 2 commits into from
Aug 28, 2024
Merged

Conversation

rodja
Copy link
Member

@rodja rodja commented Aug 28, 2024

In #2321 we saw that on some systems reload=True and a top-level cv2.VideoCapture(0) will interfere. This PR fixes this by wrapping all code into a app.on_startup function. It also updates and extends the explanations in the example.

@rodja rodja added the bug Something isn't working label Aug 28, 2024
@rodja rodja added this to the 1.4.37 milestone Aug 28, 2024
@falkoschindler falkoschindler merged commit 53cedb1 into main Aug 28, 2024
6 checks passed
@falkoschindler falkoschindler deleted the webcam-startup branch August 28, 2024 05:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants