Code Monkey home page Code Monkey logo

accident-detection-system's Introduction

Accident Detection System

Last Updated: 7 June 2022

  1. Demonstration
  2. What is Accident Detection System?
  3. Prerequisites
  4. Getting Started- How to use it?
  5. Description
  6. Future Work

1. Demonstration

Demo

2. What is Accident Detection System?

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.

3. Prerequisites

  • 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.

4. Getting Started - How to use it?

Clone this repository

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.

Run

Before running the program, you need to run the accident-classification.ipynb file which will create the model_weights.h5 file. Then, to run this python program, you need to execute the main.py python file.

5. Description

This program includes 4 things.

  1. data: Kaggle dataset on Accident Detection from CCTV footage.
  2. accident-classification.ipynb: This is a jupyter notebook that generates a model to classify the above data. This file generates two important files model.json and model_weights.h5.
  3. detection.py: This file loads the Accident Detection system with the help of model.json and model_weights.h5 files.
  4. camera.py: It packs the camera and executes the detection.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.

6. Future Work

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.

accident-detection-system's People

Contributors

krishrustagi avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.