Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Kinseys/Regional-Detection

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Regional-Detection

Yolov5 + Deepsort + Regional detection for regional detection and tracking

For the environments:

pip install -r requirements.txt

If you want to use regional detection on video with tracking:

The default weight is yolov5/weights/yolov5s.pt you can change it by add --yolo_weights xxx.pt

run python RegionDetect.py --source xxx.mp4 --show-vid for video detection

run python RegionDetect.py --source 0 --show-vid for stream detection use your own camera

For saving the results: run python RegionDetect.py --source xxx.mp4 --show-vid --save-vid for video detection

run python RegionDetect.py --source 0 --show-vid --save-vid for stream detection use your own camera

The results are saved in inference/

If you want to change the detection region, go to RegionDetect.py line 96 to change the four points.



If you only want to use regional detection on image/video without tracking:

Go to yolov5/:

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/

If you want to change the detection region, go to detect.py line 96 to change the four points.

About

Yolov5 + Deepsort + Regional detection for regional detection and tracking

Resources

Stars

0 stars

Watchers

2 watching

Forks

Packages

 
 
 

Contributors

Languages