RuntimeError: Camera __init__ sequence did not complete. #702
8JupiterMoll8
started this conversation in
General
Replies: 1 comment
-
Hi, I think that may work OK. Maybe you could also try using a
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
I'm currently engaged in audio-video recording using Flask in a browser-based environment. I have encountered an issue where, if the camera is not properly stopped or closed during AV recording, I receive a RuntimeError stating, "Camera init sequence did not complete." This typically happens when I switch back to another route in Flask.
I'm wondering if there's a way to catch this error using an exception handler, allowing me to execute the camera.close() function. This would allow the camera to be appropriately closed and restarted. And the Flask app would not crashed.
Is this the right way to go?
Beta Was this translation helpful? Give feedback.
All reactions