* Update detect.py Usage examples

* Inside Ultralytics at https://youtu.be/Zgi9g1ksQHc
This commit is contained in:
Glenn Jocher authored and GitHub committed 2021-11-06 20:34:54 +01:00
1 parent 3f64ad1760
commit b8f979bafa
3 files changed
+13 -7

No files matched your search

+7 -1
View File
@@ -3,7 +3,13 @@
Run inference on images, videos, directories, streams, etc.
Usage:
$ python path/to/detect.py --source path/to/img.jpg --weights yolov5s.pt --img 640
$ python path/to/detect.py --weights yolov5s.pt --source 0 # webcam
img.jpg # image
vid.mp4 # video
path/ # directory
path/*.jpg # glob
'https://youtu.be/Zgi9g1ksQHc' # YouTube
'rtsp://example.com/media.mp4' # RTSP, RTMP, HTTP stream
"""
import argparse