FireEye-Sentinel is a real-time fire detection and alert system based on computer vision techniques. It captures live webcam footage, analyzes frames using HSV color masking to detect fire-like regions, and instantly triggers an audio alert to notify users. The project aims to provide a low-cost, easily deployable smart surveillance solution for early-stage fire detection in homes, labs, and industrial environments.

Fire safety systems often rely on thermal sensors or smoke detectors, which can be costly or require physical proximity. With the rise of AI and computer vision, fire detection can be performed using color and motion analysis in video streams. FireEye-Sentinel demonstrates this approach using Python, OpenCV, and Pygame, with optional support for GUI and remote alerts. Its simplicity, open-source nature, and extensibility make it a valuable tool in fire-prone environments where real-time detection is critical.
cv2.inRange() to filter out non-fire pixels.cv2.countNonZero() calculates the number of fire-colored pixels.The prototype was tested under different lighting conditions using:
Threshold tuning: The fire pixel threshold was adjusted to minimize false positives.
Testing Tools:
🔥 Fire detected in real flames with >90% accuracy under standard lighting.
pygame.mixer.get_busy() check.| Test Case | Accuracy | Avg. Detection Time | False Positives |
|---|---|---|---|
| Candle Flame | 93% | ~0.08s | Low |
| Simulated Fire | 91% | ~0.09s | Low |
| Red Light Scene | 65% | ~0.07s | Medium |
FireEye-Sentinel demonstrates a practical, low-cost, and effective approach to fire detection using computer vision. While not a replacement for industrial fire alarms, it adds a powerful early-warning layer, especially in digital labs, smart homes, and academic institutions. Its modular design allows for easy extension to include GUI, IoT integration, and cloud-based alerting.