use case Β· basics Β· Depth Anything V3 Small Β· WASM fp32 Β· 105.3 MB Β· Apache-2.0

Depth, Per-Pixel Confidence & Intrinsics Lab

Click or tap any pixel across the synchronized Source RGB, Predicted Depth, and Confidence maps to probe exact metric-relative depth, certainty, and camera-space 3D (X, Y, Z) coordinates β€” or switch between 280Γ—280 (fast 20Γ—20 DINOv2 patches) and 392Γ—392 (28Γ—28 high-detail patches).

1 Β· Model initialisation (auto-inits from cache)

2 Β· Choose photo, grid resolution & probe any pixel

Drop or upload any local photo β€” transparent PNGs flatten onto white and pack directly to [1, 1, 3, H, W].

Initialise Depth Anything V3 Small above to probe live pixel depth and confidence.

Source Input (click to probe)

Predicted Depth (smaller = closer)

Per-Pixel Confidence

Probed Pixel (u, v)β€”
Raw Depth (smaller=near)β€”
Relative Depth Bandβ€”
Per-Pixel Confidenceβ€”
3D Camera (X, Y, Z)β€”
Pixel RGBβ€”

3 Β· Predicted Camera Intrinsics & Field of View

Estimated Lens FoV Cone

3Γ—3 Intrinsics Matrix K & Timing

K u v 1
r0β€”β€”β€”
r1β€”β€”β€”
r2β€”β€”β€”

Run inference to inspect predicted fx, fy, principal point (cx, cy), and 35mm equivalent lens.

4 Β· Inspect the exact running code

Every line below is loaded live from the ES modules powering this page (onnxruntime-web@1.21.0 WASM + externalData, Apache-2.0):

Show the code β€” preprocessRgbaViewsTo5D() 5D [1, S, 3, H, W] ImageNet packing
Show the code β€” extractIntrinsicsInfo() focal length, FoV & 35mm equivalent
Show the code β€” runInference() ORT WASM 4-head execution & tensor disposal