Skip to content

Depth

2026-06-23#lab#AI model

Depth 1

Depth turns your webcam into a live depth map, drawn as a heatmap that runs from black to orange as things get closer.

It uses Depth Anything V2 (small), loaded through transformers.js as onnx-community/depth-anything-v2-small. Depth estimation takes one ordinary image and guesses a distance for every pixel, based on what the network learned from many photos. The code runs it on the WASM backend, in your browser, taking one still at a time.

The result is a relative guess of near and far rather than a measurement, and the first load has to download the model.

Try it in the Lab →

END OF FILE014