incident_detection_yolov5
Science Score: 44.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
✓CITATION.cff file
Found CITATION.cff file -
✓codemeta.json file
Found codemeta.json file -
✓.zenodo.json file
Found .zenodo.json file -
○DOI references
-
○Academic publication links
-
○Academic email domains
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (8.1%) to scientific vocabulary
Repository
Basic Info
- Host: GitHub
- Owner: rengo540
- License: gpl-3.0
- Language: Python
- Default Branch: master
- Size: 374 KB
Statistics
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
- Releases: 0
Metadata Files
README.md
Incident Detection using YOLOv5

Table of Contents
- Description
- Dataset
- Model Training
- Live Stream and Video Processing
- Sample Results
- Installation
- Usage
- Contributing
- License
Description
Incident Detection using YOLOv5 is a project aimed at automatically detecting various incidents in images and videos. The incidents that the model is trained to detect include: - Fire - Car accidents (car crash, car damage, car flip) - Floods - Dense traffic
The project utilizes the YOLOv5 object detection framework to build the detection model and a custom segmentation model for flood detection. The model is trained on labeled datasets for fire and car accidents, and a separate dataset is used for training the flood segmentation model.
The project includes components for processing images, videos, and live streams, and it utilizes websockets to send real-time incident feeds.
Dataset
Fire and Car Accident Detection
- The fire and car accident datasets are used to train the YOLOv5 object detection model.
- click here to download
Flood Segmentation
- The flood segmentation dataset is used to train the custom segmentation model.
- The dataset is not publicly available on Roboflow click here to download
the source dataset before annotation, from MIT License see repository
Model Training
YOLOv5 Object Detection Model
- The YOLOv5 model is trained on the fire and car accident datasets.
- The model weights and evaluation results are available here. ### Custom Segmentation Model
- The custom segmentation model for flood detection is trained on the flood segmentation dataset.
- The model weights and evaluation results are available here.
YOLOv5 coco dataset weights
- for the traffic jam class, must be detect cars and then count these cars
- the model weights are available here
Live Stream and Video Processing
The project includes a detection.py file that processes live streams, videos, and images. It utilizes the YOLOv5 model for object detection and the custom segmentation model for flood detection. The incident feeds are sent using websockets, providing real-time updates on detected incidents.
Sample Results
Sample videos demonstrating the incident detection capabilities are available here. These videos showcase the model's performance in detecting fires, car accidents, floods, and dense traffic.
Installation
To set up the project and the required dependencies, follow these steps:
1. Clone this repository to your local machine.
2. Install the necessary packages and libraries using pip:
bash
pip install -r requirements.txt
3. Make sure you have the required model weights available in their respective directories
4. Make sure you work on Gpu, run :
bash
python testGpu.py
Usage
1.to run the model on video,must edit demo.py by adding your video and the weights, And you can use this command: ```bash python demo.py
Owner
- Login: rengo540
- Kind: user
- Repositories: 4
- Profile: https://github.com/rengo540
Citation (CITATION.cff)
cff-version: 1.2.0
preferred-citation:
type: software
message: If you use YOLOv5, please cite it as below.
authors:
- family-names: Jocher
given-names: Glenn
orcid: "https://orcid.org/0000-0001-5950-6979"
title: "YOLOv5 by Ultralytics"
version: 7.0
doi: 10.5281/zenodo.3908559
date-released: 2020-5-29
license: GPL-3.0
url: "https://github.com/ultralytics/yolov5"
GitHub Events
Total
- Watch event: 1
Last Year
- Watch event: 1