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
'AI > OpenCV' 카테고리의 다른 글
[설정]OpenCV - Visual Studio (0) | 2020.02.17 |
---|