Yolov5 detection for regional detection
###For the environments:
pip install -r requirements.txt
###For running:
The default weight is yolov5s.pt
you can change it by add --weights xxx.pt
like:
python detect.py --source data/images --weights xxx.pt
run python detect.py --source data/images
for image detection
run python detect.py --source xxx.mp4
for video detection
run python detect.py --source 0
for stream detection use your own camera
The results are saved in yolov5/results/
hl1, wl1, hl2, wl2, hl3, wl3, hl4, wl4
or you can further load points for regional detection