It work properly on local server but during deployment it through following error

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.


File "/home/appuser/venv/lib/python3.9/site-packages/streamlit/", line 354, in _run_script
    exec(code, module.__dict__)File "/app/streamlit/", line 11, in <module>
    frame = cv2.cvtColor(frame, cv2.COLOR_BGR2RGB)

Hi @Shivam_Singh, welcome to the Streamlit community!

Can you provide a link to your repo so I can take a look?


This is my repo link

open master branch

Hi @Shivam_Singh,

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: