How nico31415/drowning-detector works
Drowning-Detector is a webcam-based drowning-alert prototype. Its implemented workflow captures frames, detects objects, tracks the first detected box’s centre over time, flags prolonged stillness, and annotates and displays the frame. The README also describes above-water clearing and posture-ratio analysis, but these are not evident in the sampled implementation, so they are shown as documented concepts rather than implemented stages. The detection library downloads model files on demand. Edges reflect calls visible in the excerpts; no other source was inspected.
Main entry points: DrownDetect.py Drowning detector · __init__.py cvlib API · object_detection.py YOLO detection · utils.py File downloader
Components 13
Alert workflow
- Drowning detector
DrownDetect.py - Frame capture
DrownDetect.py - Stillness tracker
DrownDetect.py - Alert overlay
cvlib/object_detection.py - Live display
DrownDetect.py - Waterline handling
README.md - Posture analysis
README.md
Object detection
- cvlib API
cvlib/__init__.py - YOLO detection
cvlib/object_detection.py
Model support
- File downloader
cvlib/utils.py
Other components
- Pool operator
- Webcam
- Model file hosts
Connections 12
- Pool operator → Drowning detector: starts
README.md - Drowning detector → Frame capture: opens camera
DrownDetect.py - Webcam → Frame capture: provides frames
DrownDetect.py - Drowning detector → cvlib API: calls detection
DrownDetect.py - cvlib API → YOLO detection: exports
cvlib/__init__.py - Drowning detector → Stillness tracker: tracks centre
DrownDetect.py - Drowning detector → Alert overlay: draws boxes
DrownDetect.py - Drowning detector → Live display: shows frame
DrownDetect.py - YOLO detection → File downloader: downloads files
cvlib/object_detection.py - File downloader → Model file hosts: fetches files
cvlib/utils.py - Drowning detector → Waterline handling: documents concept
README.md - Drowning detector → Posture analysis: documents concept
README.md