Fire and Gun detection using yolov3 in videos as well as images. Training code, dataset and trained weight file available.
Last updated May 25, 2026
73
Stars
26
Forks
2
Issues
0
Stars/day
Attention Score
26
Topics
Language breakdown
No language data available.
โธ Files
click to expand
README
Fire and Gun Detection

How to use yolo.py:
usage: yolo.py [-h] [--webcam WEBCAM] [--playvideo PLAYVIDEO]
[--image IMAGE] [--videopath VIDEOPATH]
[--imagepath IMAGEPATH] [--verbose VERBOSE]
optional arguments: -h, --help show this help message and exit --webcam WEBCAM True/False --playvideo PLAYVIDEO Tue/False --image IMAGE Tue/False --videopath VIDEOPATH Path of video file --imagepath IMAGEPATH Path of image to detect objects --verbose VERBOSE To print statements
Weights File Backup
If the GitLFS file is not accessible - Download Weights and keep inside the project folder.
Move inside the project folder and use the following command:
python yolo.py --playvideo True --videopath videos/fire1.mp4
Training done on google collab - Jupyter notebook
Demo: Youtube
Paper
Fire and Gun Violence based Anomaly Detection System Using Deep Neural NetworksProceedings of the International conference on Electronics and Sustainable Communication Systems - ICESCS 2020
ISBN: 978-1-7281-4107-7
978-1-7281-4108-4/20/ยฉ2020 IEEE
๐ More in this category