AI/OpenCV
[Yolo] yolov5
하 선생
2022. 6. 10. 00:21
https://github.com/ultralytics/yolov5
pip install -r .\requirements.txt
python detect.py --source 0
-> 웹캠
python detect.py --source data/images --weights yolov5s.pt --conf 0.25
python detect.py --source c:\test --weights yolov5s.pt --conf 0.25
$ python detect.py --source 0 # webcam
file.jpg # image
file.mp4 # video
path/ # directory
path/*.jpg # glob
'https://youtu.be/NUsoVlDFqZg' # YouTube video
'rtsp://example.com/media.mp4' # RTSP, RTMP, HTTP stream