A computer vision system that estimates real-world water depth from video using segmentation and homography.
- YOLOv8 segmentation for water detection
- Real-time waterline detection
- Depth estimation using homography
- Interactive calibration
- Optional OCR validation
Video → Segmentation → Water Mask → Waterline → Homography → Depth (meters)
pip install -r requirements.txtpython water_depth_detector.py --source sample_videos/demo.mp4 --model best.pt- Waterline overlay
- Depth in meters
- Stable predictions
- Calibration required before first run
- OCR is optional
- Works best with clear gauge
Annel Jefferson S A