
Metric monocular depth from Depth Anything V2: turns each Image into a deploy-time-resolved greyscale depth Image or a MetricDepthMap in metres (near small, far large), capped to a fine-tuned maximum range.
A live image stream is turned into a normalised greyscale depth view and streamed to the browser for inspection.
Metric depth from recorded frames is shipped as structured data over HTTP for downstream measurement or logging.
Depth is expensive and changes slowly, so a gate thins the live stream to a sparse cadence the GPU recomputes on, and a fuse holds that slow depth map and re-presents it alongside every live frame at the full input rate.
encoder backbone name accepts only vits, vitb, vitl, or vitg; any other value aborts startup, and the encoder size must match the architecture of the checkpoint weights or the network loads silently and produces garbage depth.release_memory true (the default) the model and CUDA cache are freed after each inference and lazily reloaded on the next frame; the worker runs depth on every frame it receives, so thin the input with an upstream gate and hold the slow map at the upstream rate with a downstream fuse. Set it false to keep the model resident for lowest latency when depth runs every frame.Image is min-max normalised per frame, so absolute brightness is not comparable across frames; use the MetricDepthMap for any measurement or thresholding.Automated release