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

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:

Best,
Snehan