cv2.error: This app has encountered an error. The original error message is redacted to prevent data leaks. Full error details have been recorded in the logs.
Traceback:
File "/home/appuser/venv/lib/python3.9/site-packages/streamlit/script_runner.py", line 354, in _run_script
exec(code, module.__dict__)File "/app/streamlit/main.py", line 11, in <module>
frame = cv2.cvtColor(frame, cv2.COLOR_BGR2RGB)
The issue arises as you’re trying to capture webcam input with OpenCV for an app deployed to Streamlit Cloud. I’ve explained why this isn’t possible and what you can do about it in these threads: