FireVision is a real-time fire detection system that uses computer vision techniques to monitor live video streams and detect fire-like regions. The system processes frames from a webcam using OpenCV and identifies fire based on color detection in the HSV color space. When potential fire pixels exceed a predefined threshold, an alarm is triggered to alert users.
This system can be used for early fire detection in surveillance environments such as warehouses, offices, or public areas.
- Real-time fire detection using webcam feed
- OpenCV-based video processing
- Fire detection using HSV color thresholding
- Automatic alarm alert when fire is detected
- Lightweight and fast detection pipeline
- Capture live video feed using OpenCV.
- Process each frame from the video stream.
- Convert frame to HSV color space.
- Detect fire-like colors using HSV thresholds.
- Count fire-colored pixels in the frame.
- Trigger alarm if pixel count exceeds threshold.
- Python
- OpenCV
- NumPy
- Pygame (for alarm sound)
- Visual Studio Code
git clone https://github.com/shreya100504/firevision.gitcd firevisionpip install opencv-python numpy pygameRun the Python script:
python fire-detector.pyThe system will activate the webcam and start monitoring for fire-like regions. If fire is detected, an alarm sound will be triggered.
- Fire monitoring in industrial environments
- Warehouse safety systems
- Surveillance camera monitoring
- Early fire warning systems