This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Detect package manager | |
if command -v dnf &> /dev/null; then | |
# Fedora/RHEL based | |
sudo dnf install -y zsh curl git | |
elif command -v apt &> /dev/null; then | |
# Debian/Ubuntu based | |
sudo apt update | |
sudo apt install -y zsh curl git |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Classes | |
nc: 8 # number of classes | |
names: [ | |
'Red', | |
'RedLeft', | |
'Yellow', | |
'YellowLeft', | |
'Green', | |
'GreenLeft', | |
'False', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# YOLOv5 🚀 by Ultralytics, AGPL-3.0 license | |
""" | |
Run YOLOv5 detection inference on images, videos, directories, globs, YouTube, webcam, streams, etc. | |
Usage - sources: | |
$ python detect.py --weights yolov5s.pt --source 0 # webcam | |
img.jpg # image | |
vid.mp4 # video | |
screen # screenshot | |
path/ # directory |