FloodTruth — LSPIV — stream discharge from video

LSPIV — stream discharge from video

LSPIV — discharge from video prototype

Record a 30-second video looking down at the water surface. The app extracts ~10 frames per second, stabilizes camera shake against the banks (Lucas–Kanade + homography), runs Farneback dense optical flow on the water, time-averages the flow field, then integrates surface velocity along a surveyed cross-section to estimate discharge $Q$.

Two camera modes (v0.2): in nadir mode the camera is assumed roughly perpendicular to the water surface and a known reference (e.g. 1-m PVC pipe) gives the pixel-to-metre scale; in orthorectified mode you tap four points that form a real-world rectangle (e.g. a piece of plywood, four buoys at known offsets, four bridge-deck corners), enter the rectangle's dimensions, and the app warps every frame to a top-down ground-plane view via a 4-point projective homography (Hartley & Zisserman 2004 §4). Manual two-point calibration is not used in ortho mode. Cross-section depths come from a separate bathymetric survey; enter them in the table below.

loading OpenCV