**Poacher Detection & Email Alert System using Raspberry Pi 5 and Hailo AI
**
Hello Hailo Community,
I’m sharing a completed Edge AI project built using Raspberry Pi 5 and the Hailo AI accelerator, focused on real-time human detection and alerting in restricted or remote areas such as forests.
The motivation behind this project was to design a low-power, portable surveillance system that can operate entirely at the edge without relying on cloud inference, making it suitable for deployment in locations with limited connectivity.
Hardware Used:
- Raspberry Pi 5
- Hailo AI Accelerator (Hailo-8 / Hailo-8L)
- Raspberry Pi Camera Module
- GPIO-based alert output (LED / buzzer)
Software & Frameworks:
- Hailo TAPPAS SDK
- GStreamer-based detection pipeline
- Python
- OpenCV
- SMTP (email alerts using app password authentication)
How the system works:
The application runs a real-time detection pipeline using Hailo’s basic_pipelines/detection.py.
Detection Flow:
-
Live camera frames are processed on-device using the Hailo accelerator
-
When a person is detected with confidence greater than 96%, the system waits for 2 seconds to confirm persistence
-
A snapshot is captured with bounding box and timestamp
-
The snapshot is automatically sent via email as an alert
-
A 10-minute cooldown is applied to avoid repeated alerts
-
A GPIO pin is triggered to support physical alerts
-
All snapshots are stored locally for later review
Key Features:
-
Real-time person detection using Edge AI
-
No cloud dependency for inference
-
Automated email alert with image attachment
-
Cooldown mechanism to prevent alert spamming
-
GPIO-based alert trigger
-
Low power and portable deployment
-
Can be configured to run automatically on boot
**Use Cases:
**
Although designed for forest surveillance and anti-poaching, the system can also be adapted for:
-
Border and defense surveillance
-
Wildlife monitoring
-
Perimeter security
-
Restricted-area intrusion detection
-
Remote installations with limited connectivity
GitHub Repository:
Future Enhancements:
-
Pose-based animation and educational applications
-
Bluetooth-based Wi-Fi configuration for remote deployment
-
Solar-powered operation for long-term field use
-
Multi-class detection and alert prioritization
Feedback and suggestions from the community are welcome.
Thanks for checking out the project!
Media:
Hardware - RaspberryPi 5 with Hailo 8(L) AI accelerator
Terminal Screenshot
Email Screenshot


