🔭 Cylinder Volume Estimator

YOLO-seg detects objects → Depth Anything V2 measures metric depth →
Pinhole geometry computes real-world Height, Diameter & Volume.

V = π × (D/2)² × H      H = (H_px / fy) × Z      D = (W_px / fy) × Z

Tip: For best accuracy set Focal length fy from your camera spec,
or use the VFOV slider for auto-estimation.

30 120
0.2 0.9
0.2 0.8
YOLO inference size (px) — lower = faster
0.8 3
0.1 0.7

Measurements


Formula reference

Symbol Meaning
fy Vertical focal length in pixels
Z Metric depth from Depth-Anything-V2 (metres)
H_px Pixel height of the detected cylinder
D_px Pixel diameter (minor axis of fitted ellipse)
H Real height = (H_px / fy) × Z
D Real diameter = (D_px / fy) × Z
V Volume = π × (D/2)² × H

Upright : bbox H/W ≥ aspect threshold → long axis = cylinder height
On-side : bbox H/W < aspect threshold → long axis = cylinder length