Skip to content

Commit 9bc6034

Browse files
authored
Add --source screen Usage example (#10215)
1 parent 9bf1855 commit 9bc6034

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

classify/predict.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
$ python classify/predict.py --weights yolov5s-cls.pt --source 0 # webcam
77
img.jpg # image
88
vid.mp4 # video
9+
screen # screenshot
910
path/ # directory
1011
'path/*.jpg' # glob
1112
'https://youtu.be/Zgi9g1ksQHc' # YouTube

detect.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
$ python detect.py --weights yolov5s.pt --source 0 # webcam
77
img.jpg # image
88
vid.mp4 # video
9+
screen # screenshot
910
path/ # directory
1011
'path/*.jpg' # glob
1112
'https://youtu.be/Zgi9g1ksQHc' # YouTube

segment/predict.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
$ python segment/predict.py --weights yolov5s-seg.pt --source 0 # webcam
77
img.jpg # image
88
vid.mp4 # video
9+
screen # screenshot
910
path/ # directory
1011
'path/*.jpg' # glob
1112
'https://youtu.be/Zgi9g1ksQHc' # YouTube

0 commit comments

Comments
 (0)