diff --git a/README.md b/README.md index 4e3a2aa5f..09cbf2e48 100644 --- a/README.md +++ b/README.md @@ -106,16 +106,16 @@ results.print() # or .show(), .save(), .crop(), .pandas(), etc. `detect.py` runs inference on a variety of sources, downloading [models](https://github.com/ultralytics/yolov5/tree/master/models) automatically from the latest YOLOv5 [release](https://github.com/ultralytics/yolov5/releases) and saving results to `runs/detect`. ```bash -python detect.py --weights yolov5s.pt --source 0 # webcam -python detect.py --weights yolov5s.pt --source img.jpg # image -python detect.py --weights yolov5s.pt --source vid.mp4 # video -python detect.py --weights yolov5s.pt --source screen # screenshot -python detect.py --weights yolov5s.pt --source path/ # directory -python detect.py --weights yolov5s.pt --source list.txt # list of images -python detect.py --weights yolov5s.pt --source list.streams # list of streams -python detect.py --weights yolov5s.pt --source 'path/*.jpg' # glob -python detect.py --weights yolov5s.pt --source 'https://youtu.be/LNwODJXcvt4' # YouTube -python detect.py --weights yolov5s.pt --source 'rtsp://example.com/media.mp4' # RTSP, RTMP, HTTP stream +python detect.py --weights yolov5s.pt --source 0 # webcam +python detect.py --weights yolov5s.pt --source img.jpg # image +python detect.py --weights yolov5s.pt --source vid.mp4 # video +python detect.py --weights yolov5s.pt --source screen # screenshot +python detect.py --weights yolov5s.pt --source path/ # directory +python detect.py --weights yolov5s.pt --source list.txt # list of images +python detect.py --weights yolov5s.pt --source list.streams # list of streams +python detect.py --weights yolov5s.pt --source 'path/*.jpg' # glob +python detect.py --weights yolov5s.pt --source 'https://youtu.be/LNwODJXcvt4' # YouTube +python detect.py --weights yolov5s.pt --source 'rtsp://example.com/media.mp4' # RTSP, RTMP, HTTP stream ```