Nothing on the screen
joel5638 opened this issue · 7 comments
Kindly check if you have USB camera connected. Also confirm that your device assigns '0' to the webcam you are using and webcam is working fine by another application and the webcam is not being used by another application before running this application.
If it is some another number, please update the source variable in app.py line 162
detect(weights="yolov5s.pt", source='0', stframe=stframe, ...
Here in source, assign the number your device is assigning to your webcam
its a laptop and its assigned with 0 But still doesnt work. Im just checking
Check if you can use your webcam by a simple OpenCv program which reads image from webcam and displays it. If it is working in this program then it'll run in streamlit as well
Works with source as 1. Perfect man. Great work.
Thanks 🥳