Add `--source screen` Usage example (#10215)

pull/9655/head
Glenn Jocher 2022-11-18 23:48:47 +01:00 committed by GitHub
parent 9bf18554c3
commit 9bc60349b6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 0 deletions

View File

@ -6,6 +6,7 @@ Usage - sources:
$ python classify/predict.py --weights yolov5s-cls.pt --source 0 # webcam $ python classify/predict.py --weights yolov5s-cls.pt --source 0 # webcam
img.jpg # image img.jpg # image
vid.mp4 # video vid.mp4 # video
screen # screenshot
path/ # directory path/ # directory
'path/*.jpg' # glob 'path/*.jpg' # glob
'https://youtu.be/Zgi9g1ksQHc' # YouTube 'https://youtu.be/Zgi9g1ksQHc' # YouTube

View File

@ -6,6 +6,7 @@ Usage - sources:
$ python detect.py --weights yolov5s.pt --source 0 # webcam $ python detect.py --weights yolov5s.pt --source 0 # webcam
img.jpg # image img.jpg # image
vid.mp4 # video vid.mp4 # video
screen # screenshot
path/ # directory path/ # directory
'path/*.jpg' # glob 'path/*.jpg' # glob
'https://youtu.be/Zgi9g1ksQHc' # YouTube 'https://youtu.be/Zgi9g1ksQHc' # YouTube

View File

@ -6,6 +6,7 @@ Usage - sources:
$ python segment/predict.py --weights yolov5s-seg.pt --source 0 # webcam $ python segment/predict.py --weights yolov5s-seg.pt --source 0 # webcam
img.jpg # image img.jpg # image
vid.mp4 # video vid.mp4 # video
screen # screenshot
path/ # directory path/ # directory
'path/*.jpg' # glob 'path/*.jpg' # glob
'https://youtu.be/Zgi9g1ksQHc' # YouTube 'https://youtu.be/Zgi9g1ksQHc' # YouTube