Depth Estimate

Estimate depth from a single image with machine-learning inference.

What it does

Depth Estimate reads a single image and predicts a depth map from it with an ML model, needing no camera, sensor or 3D data. The result is a greyscale image where brightness encodes distance: by default dark is near, light is far.

Quality picks the model size: fast is quickest, accurate takes longer and resolves finer detail. Metric switches the model to output depth in real metres instead of a relative near/far range. Invert flips the brightness mapping so near reads as white.

When to use it

ParameterTypeDefault
imageOneOf([FieldOf(Raster)])
qualityString"fast"
metricBooleanfalse
invertBooleanfalse
enabledBooleantrue
positionVec3(0, 0, 0)
strengthNumber1

Gotchas

Accurate quality can take roughly 5–6 times longer per frame than Fast. Use it on stills or final renders, not on a live feed being scrubbed in real time.

Worked example

  1. Add a Depth Estimate node and wire an image into Image.

  2. Leave Quality on fast while setting things up, and switch to accurate for the final look.

  3. Wire depth_map into Displace to push pixels toward camera by estimated depth, creating a 2.5D parallax effect.

  4. If the parallax reads backwards, turn on Invert to flip near/far.

See also

Normal Estimate · Object Detect · Vision Segment · Rasters (images)