How nandakumar005/wild-animal-intrusion-detection-using-yolov8 works
This Flask wildlife-monitoring application starts from a browser-selected video source, analyzes frames with a configured YOLO model, displays a live annotated feed, and records detections for review; detections can also trigger email alerts. The main runtime is concentrated in app.py, with config.py providing model, storage, and alert settings. README documents CCTV and uploaded-video support and archived media; the sampled implementation shows image saving, not clip generation. The graph reflects the inspected app.py and config.py plus documented capabilities.
Main entry points: app.py Flask routes · index.html Browser interface · config.py Runtime configuration · detections.html Detection history page
Components 14
Web interface
- Browser interface
templates/index.html - Detection history page
templates/detections.html - Settings page
templates/settings.html - Flask routes
app.py
Detection runtime
- Camera or video
- Frame stream
app.py - Wildlife detector
app.py - YOLO weights
best.pt - Runtime configuration
config.py
Alerts and records
- Detection history
app.py - Saved detection images
app.py - Email alerts
app.py
Other components
- Operator
- SMTP service
Connections 17
- Operator → Browser interface: uses
README.md - Browser interface → Flask routes: submits requests
app.py - Flask routes → Browser interface: renders dashboard
app.py - Flask routes → Detection history page: renders history
app.py - Flask routes → Settings page: renders settings
app.py - Operator → Camera or video: selects source
README.md - Flask routes → Camera or video: opens source
app.py - Camera or video → Frame stream: provides frames
app.py - Frame stream → Wildlife detector: processes frames
app.py - Wildlife detector → YOLO weights: loads weights
app.py - Flask routes → Runtime configuration: imports settings
app.py - Frame stream → Detection history: updates detections
app.py - Flask routes → Detection history: reads detections
app.py - Frame stream → Saved detection images: writes images
app.py - Frame stream → Email alerts: dispatches alert
app.py - Email alerts → SMTP service: sends email
app.py - Flask routes → Runtime configuration: updates threshold
app.py