Thameur Portfolio
Fire Detection and Response System π₯
June 15, 2022 (2y ago)
π₯ A real-time fire detection system powered by a CNN model for classification and a robotic system designed to detect and respond to fires using sensors and actuators.
π Abstract
The Fire Detection and Response System is designed to monitor and respond to fire incidents in real-time. The system leverages a Convolutional Neural Network (CNN) for fire classification and a robotic system equipped with sensors and actuators to detect and act upon fire events. The CNN model is trained to classify images into two categories: "fire" and "no fire." The robotic system is capable of responding to fire detection by activating various components, such as a water pump, buzzer, and robotic arm, to mitigate potential fire hazards.
π Features
- Real-Time Fire Detection: Detects and classifies fire from live video feeds.
- CNN Model for Image Classification: Uses a deep learning model for accurate fire detection.
- Robotic Response System: A robotic arm with sensors and actuators responds to detected fire events.
- SMS Notification: Sends SMS alerts to users when fire is detected.
- Customizable Parameters: Adjust the detection thresholds for optimal performance.
- Ease of Use: Run the Python scripts for both fire detection and robotic response with minimal setup.
π Getting Started
Prerequisites
Before you can run this project, ensure the following packages are installed:
- TensorFlow
- Keras
- OpenCV
- Twilio
- Geocoder
- Raspberry Pi GPIO
Installation
- Clone the repository:
git clone https://github.com/verus56/bk-fire.git cd fire-detection-system
- Install required dependencies:
pip install tensorflow keras opencv-python twilio geocoder
- Set up your Raspberry Pi with the necessary sensors (flame, smoke, etc.) and actuators (water pump, buzzer, LED, servo motor).
Running the App
To test the model with the webcam:
python firewithtsms.py
To detect fire and send SMS alerts:
python fire-with-all.py
To run the robotic system:
python robot.py
π€ How It Works
- Fire Detection: The CNN model analyzes the video stream or images to detect fire and classify them.
- Robotic System: Once fire is detected, the robotic system is activated to respond using sensors, a water pump, buzzer, and a servo-controlled robotic arm.
- SMS Alerts: Twilio is used to send SMS notifications to the designated users when fire is detected.
π Technical Stack
- AI Engine: Convolutional Neural Network (CNN)
- Image Processing: OpenCV
- Data Processing: NumPy
- Robotic System: Raspberry Pi GPIO, Servo Motor, Water Pump
- Cloud API: Twilio (SMS Alerts)
- Geocoding: Geocoder
π οΈ Deployment
This system can be deployed on a Raspberry Pi or other compatible hardware for real-time fire detection and response.
π License
Released under the MIT License.
π² Contact
Made with β€οΈ by Hamzaoui Thameur
- GitHub: Hamzaoui Thameur
- Email: thameurhameaoui9@gmail.com