CloudFast-DL4PuDe: A Cloud-based Deep Learning Framework for Early Detection of Pushing at Crowded Event Entrances
This repository is for:
- The submitted paper:
Alia, Ahmed, Mohammed Maree, Mohcine Chraibi, Anas Toma, and Armin Seyfried. "A Cloud-based Deep Learning Framework for Early Detection of Pushing at Crowded Event Entrances." 2023.
- The preprint version:
Alia, Ahmed, et al. "A cloud-based deep learning system for improving crowd safety at event entrances." arXiv preprint arXiv:2302.08237 (2023).
The framework aims to early detect pushing patches automatically in running and crowded event entrances, particularly in the live camera stream of entries.
The motivation of the framework is to help organizers and security forces to intervene early and mitigate dangerous situations.
- The Architicture of CloudFast-DL4PuDe framework
- How to use CloudFast-DL4PuDe framework
- Demo
- Building and training the CNN architectures
- Trained CNN models
- Dataset
- Video experiments
- Computational time evaluation
-
File--> save a copy in drive.
-
Download the cloud-fast-system directory.
-
Upload the cloud-fast-system directory to Google Colab at the same location of the copy of CFSystem.ipynp.
--Colab NoteBooks --copy of CFSystem.ipynp --cloud-fast-system
-
For the input stream, we recommend using a virtual camera with one of the video recordings of crowded event entrances. Video experiments are available in the video directory. Kinly note that OBS studio is free and open source software for virtual camera and live streaming.
-
Run copy of CFSystem.ipynp
Client side
- How to run
- Launch the virtual camera based on the entrance2 video experiment and OBS studio software.
- Open the Jupyter Notebook (copy of CFSystem.ipynp) and entering the required inputs.
- patch=[2,4]
- roi=[107,55,669,270]
- Output example: video of the live camera stream with annotations of the predicted pushing patches, red boxes represent the predicted pushing patches.
- Clone the repository in your directory.
git clone https://github.com/abualia4/CloudFast-DL4PuDe.git
- Install the required libraries. TensorFlow is the main required library
pip install tensorflow
- Open this notebook and follow the guides.
- Thanks to the authors of RAFT repository and the corresponding paper.
- Thanks to the author of Access Webcam for Images and Video notebook .