Downloads · 30 days
0
Musawer14/fight_detection_3DCNN
fight_detection_3DCNN is a machine learning model from Musawer14. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as mit.
This repository contains a dataset and a 3D CNN (Convolutional Neural Network) model trained to detect fights/violence and non-violence in videos. The model is designed to capture temporal and spatial features to iden…
Downloads · 30 days
0
Access
Public
Updated Sep 20, 2024
Repo size
2.3 MB
Likes
3
Public
Click a slice to open those files.
.h52.3 MB · 80%
From the Hugging Face model README
This repository contains a dataset and a 3D CNN (Convolutional Neural Network) model trained to detect fights/violence and non-violence in videos. The model is designed to capture temporal and spatial features to identify violent activities, making it suitable for real-time surveillance and security applications.
Dataset Classes: The dataset consists of two classes:
Data Format:
The model is developed to detect violent actions in video footage. This system can be deployed in surveillance cameras, security systems, or any environment where fight/violence detection is necessary.
requirements.txtExtract Frames from Video: The 3D CNN model expects the input as video frames. You can extract frames from videos using the following command:
ffmpeg -i <input-video> -vf fps=25 <output-frame-directory>/frame_%04d.jpg