Last Updated: 7 June 2022
- Demonstration
- What is Accident Detection System?
- Prerequisites
- Getting Started- How to use it?
- Description
- Future Work
An accident Detection System is designed to detect accidents via video or CCTV footage. Road accidents are a significant problem for the whole world. Many people lose their lives in road accidents. We can minimize this issue by using CCTV accident detection. This repository majorly explores how CCTV can detect these accidents with the help of Deep Learning.
- To use this project Python Version > 3.6 is recommended.
- To contribute to this project, knowledge of basic python scripting, Machine Learning, and Deep Learning will help.
https://github.com/krishrustagi/Accident-Detection-System.git
To install all the packages required to run this python program
pip install -r requirements.txt
Note: This project requires a camera. So make sure you have a connected camera to your device. You can also use a downloaded video if not using a camera.
To run this python program, you need to execute the camera.py
python file.
This program includes 4 things.
data
: Kaggle dataset on Accident Detection from CCTV footage.accident-classification.ipynb
: This is a jupyter notebook that generates a model to classify the above data. This file generates two important filesmodel.json
andmodel_weights.h5
.detection.py
: This file loads the Accident Detection system with the help ofmodel.json
andmodel_weights.h5
files.camera.py
: It packs the camera and executes thedetection.py
file on the video dividing it frame by frame and displaying the percentage of the prediction in the accident (if present) in the frame.
We can use an alarm system that can call the nearest police station in case of an accident and also alert them of the severity of the accident.