A real-time fire detection application built using Python, OpenCV, and YOLOv8. The system opens your webcam, detects fire in real time, draws bounding boxes, and plays an alert sound when fire is detected.
- Real-time fire detection (YOLOv8)
- Webcam live feed
- Bounding boxes on fire regions
- Alert sound on detection
- Simple Tkinter user interface
- Easy to replace model weights
Python, YOLOv8, OpenCV, Tkinter, Pillow, Pygame
fire-detection-app/ ├── assets/alert_sound.mp3 ├── models/fire_yolov8.pt ├── src/ │ ├── app.py │ ├── ui/ │ ├── detection/ │ └── utils/ └── requirements.txt
pip install -r requirements.txt
Place your model at: models/fire_yolov8.pt
Place your alert sound at: assets/alert_sound.mp3
python src/app.py
- Adjust detection confidence in fire_detector.py
- Replace YOLO model anytime
- Works offline
Sunil Biriya