A real-time disaster detection and rescue system made with β€οΈ using Python, OpenCV & AI models π€
DRAMS is an AI-powered system to detect disasters like fire π₯ and flood π in real-time. It helps rescue teams respond faster by sending automatic alerts π’ with snapshots πΈ. The project also provides Grad-CAM visualizations π§ for model interpretability.
πΊ Watch the walkthrough here:
π Click the image or watch on YouTube
- π₯ Real-time fire detection
- π Real-time flood detection
- π₯οΈ Web streaming interface for live monitoring
- πΈ Automatic alert snapshots on disaster detection
- π§ Grad-CAM visualizations for AI predictions
- ποΈ Stores data & metadata in MongoDB
- π± Fully responsive web interface
- β‘ Quick AI predictions for emergency response
Disaster-Relief-and-Rescue-System/
βββ DRAMS/ # Web app files (Django/Flask)
βββ Dataset/ # Fire & flood images/videos
βββ firedetector/ # Fire prediction scripts
βββ flooddetector/ # Flood prediction scripts
βββ alert_snapshots/ # Captured alert images
βββ output/ # Prediction outputs
βββ templates/ # HTML templates
βββ static/ # CSS / JS / assets
βββ gradcam_visualizer.py # Grad-CAM visualizer
βββ predict_fire.py # Fire prediction script
βββ predict_flood.py # Flood prediction script
βββ train.py # AI model training script
βββ webstreaming.py # Web streaming interface
βββ requirements.txt # Python dependencies
βββ venv/ # Virtual environment
πΈ Real views of DRAMS in action:
πΈ Real Outputs & Model Visualizations from DRAMS (Disaster Relief and Management System)
| Fire Detection (Grad-CAM) | Flood Detection Outputs | Flood Detection Variants |
|---|---|---|
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
| Model Training Visuals | LR Finder Curve | Color Plot |
|---|---|---|
![]() |
![]() |
![]() |
| Raw Output Frame | Grad-CAM (Alt Frame) |
|---|---|
![]() |
![]() |
π¦ Install Dependencies
Copy code
git clone https://github.com/Shristirajpoot/Disaster-Relief-and-Rescue-System.git
cd Disaster-Relief-and-Rescue-System
python -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate
pip install -r requirements.txtCopy code
python webstreaming.pyπ Open http://127.0.0.1:5000 to see live disaster detection
-
π Python 3
-
π Django / Flask
-
πΌοΈ OpenCV for video processing
-
π€ TensorFlow / PyTorch for AI models
-
ποΈ MongoDB for dataset storage
-
π¨ HTML5 + CSS3 for web interface
- π§ Email: [email protected]
- π GitHub: @Shristirajpoot
This project is licensed under the MIT License.











