Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

3 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ”₯ Fire Detection Alarm System v2.0

Python OpenCV Status License

A highly optimized real-time fire detection system utilizing computer vision, HSV color masking, and dual-layer verification to eliminate false triggers. 🚨


Features

  • Dual-layer detection β€” identifies both the orange/red aura and the bright thermal core of a flame, eliminating false positives from posters or clothing.
  • Persistence guard β€” fire must be visible for 1.5 seconds continuously before the alarm triggers.
  • Auto-generated alarm β€” synthesises a fallback siren if alarm.mp3 is missing.
  • Clean HUD β€” minimal status overlay; no cluttered UI.

Requirements

Python 3.8+ and:

pip install -r requirements.txt

Usage

python3 main.py

Press q to quit.


Tuning (in main.py)

Constant Default Purpose
MIN_CONTOUR_AREA 1500 Minimum fire blob size (pxΒ²). Increase to reduce false positives.
MIN_CORE_RATIO 0.07 Fraction of blob that must be bright core.
PERSISTENCE_THRESHOLD 1.5 Seconds before alarm triggers.
HSV_AURA_LOWER/UPPER Orange/Red Outer flame colour range.
HSV_CORE_LOWER/UPPER Yellow/White Inner hotspot colour range.

License

MIT License β€” Β© 2026 Pratik Mishra. See LICENSE.

About

🚨 Python-based fire alarm detection system β€” real-time sensor monitoring with automated alert triggers and notification support

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages