Hi @iamchoudhari11,
Something to consider as you’re developing your project: The application will try and fail to open a video source with opencv on line 60 of blazepose.py: cap = cv2.VideoCapture(0)
The app will work on your local machine as the “server” and “client” are identical. However, if you deploy your app on a remote server (including Streamlit Sharing), opencv will not be able to find the video source (webcam) as none exists. Meaning, there’s no webcam for the container on Streamlit sharing to open (because there’s no video card, no “display” attached).
You will need to use a component to get your users’ webcam feed. @whitphx is the creator of the awesome streamlit-webrtc component for real-time video processing. You should be able to use streamlit-webrtc to capture frames from users’ webcam feed and then process them with tools like opencv.
Happy Streamlit-ing!
Snehan