From 12317f704a67ade3eeb899fdda784c7879e869df Mon Sep 17 00:00:00 2001 From: Glenn Jocher Date: Sun, 23 Mar 2025 11:26:47 +0100 Subject: [PATCH] Update README.md Signed-off-by: Glenn Jocher --- README.md | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index f16154bb9..4e3a2aa5f 100644 --- a/README.md +++ b/README.md @@ -107,15 +107,15 @@ results.print() # or .show(), .save(), .crop(), .pandas(), etc. ```bash python detect.py --weights yolov5s.pt --source 0 # webcam -img.jpg # image -vid.mp4 # video -screen # screenshot -path/ # directory -list.txt # list of images -list.streams # list of streams -'path/*.jpg' # glob -'https://youtu.be/LNwODJXcvt4' # YouTube -'rtsp://example.com/media.mp4' # RTSP, RTMP, HTTP stream +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 ```