Depth Estimation¶
Class: DepthEstimationBlockV1
Source: inference.core.workflows.core_steps.models.foundation.depth_estimation.v1.DepthEstimationBlockV1
π― This workflow block performs depth estimation on images using Apple's DepthPro model. It analyzes the spatial relationships
and depth information in images to create a depth map where:
π Each pixel's value represents its relative distance from the camera
π Lower values (darker colors) indicate closer objects
π Higher values (lighter colors) indicate further objects
The model outputs:
1. πΊοΈ A depth map showing the relative distances of objects in the scene
2. π The camera's field of view (in degrees)
3. π¬ The camera's focal length
This is particularly useful for:
- ποΈ Understanding 3D structure from 2D images
- π¨ Creating depth-aware visualizations
- π Analyzing spatial relationships in scenes
- πΆοΈ Applications in augmented reality and 3D reconstruction
β‘ The model runs efficiently on Apple Silicon (M1-M4) using Metal Performance Shaders (MPS) for accelerated inference.
Type identifier¶
Use the following identifier in step "type" field: roboflow_core/depth_estimation@v1to add the block as
as step in your workflow.
Properties¶
| Name | Type | Description | Refs |
|---|---|---|---|
name |
str |
Enter a unique identifier for this step.. | β |
model_version |
str |
The Depth Estimation model to be used for inference.. | β |
The Refs column marks possibility to parametrise the property with dynamic values available
in workflow runtime. See Bindings for more info.
Available Connections¶
Compatible Blocks
Check what blocks you can connect to Depth Estimation in version v1.
- inputs:
Blur Visualization,Classification Label Visualization,Circle Visualization,Crop Visualization,Image Contours,Relative Static Crop,Grid Visualization,Image Preprocessing,Perspective Correction,Ellipse Visualization,Absolute Static Crop,Stitch Images,Triangle Visualization,Contrast Equalization,Stability AI Inpainting,QR Code Generator,Image Slicer,Background Color Visualization,Polygon Zone Visualization,Stability AI Image Generation,Depth Estimation,Dot Visualization,Bounding Box Visualization,Camera Focus,Line Counter Visualization,Morphological Transformation,SIFT,Reference Path Visualization,Halo Visualization,SIFT Comparison,Icon Visualization,Image Blur,Image Slicer,Polygon Visualization,Pixelate Visualization,Image Threshold,Image Convert Grayscale,Color Visualization,Label Visualization,Trace Visualization,Dynamic Crop,Model Comparison Visualization,Corner Visualization,Camera Calibration,Mask Visualization,Keypoint Visualization,Stability AI Outpainting - outputs:
VLM as Detector,Google Vision OCR,SAM 3,Classification Label Visualization,Detections Stabilizer,Circle Visualization,SIFT Comparison,Image Contours,Relative Static Crop,Image Preprocessing,LMM For Classification,VLM as Classifier,Ellipse Visualization,Stitch Images,Triangle Visualization,Stability AI Inpainting,Image Slicer,VLM as Classifier,Background Color Visualization,Segment Anything 2 Model,Template Matching,Moondream2,OCR Model,Dot Visualization,Florence-2 Model,SIFT,Morphological Transformation,EasyOCR,Gaze Detection,Halo Visualization,Reference Path Visualization,SIFT Comparison,Buffer,Polygon Visualization,Image Slicer,Florence-2 Model,Clip Comparison,Perception Encoder Embedding Model,Instance Segmentation Model,OpenAI,Byte Tracker,Color Visualization,Image Convert Grayscale,Object Detection Model,Keypoint Detection Model,Google Gemini,Label Visualization,Email Notification,Llama 3.2 Vision,Trace Visualization,QR Code Detection,YOLO-World Model,Corner Visualization,Mask Visualization,Time in Zone,CogVLM,Stability AI Outpainting,OpenAI,Detections Stitch,Barcode Detection,Blur Visualization,Dominant Color,Crop Visualization,VLM as Detector,Single-Label Classification Model,OpenAI,Perspective Correction,Clip Comparison,Single-Label Classification Model,Absolute Static Crop,Seg Preview,Contrast Equalization,Roboflow Dataset Upload,Roboflow Dataset Upload,Polygon Zone Visualization,CLIP Embedding Model,Stability AI Image Generation,Depth Estimation,Bounding Box Visualization,Camera Focus,Line Counter Visualization,Instance Segmentation Model,Multi-Label Classification Model,Icon Visualization,Image Blur,Pixelate Visualization,Image Threshold,Keypoint Detection Model,Anthropic Claude,LMM,Google Gemini,Multi-Label Classification Model,Pixel Color Count,SmolVLM2,Dynamic Crop,Qwen2.5-VL,Model Comparison Visualization,Camera Calibration,Keypoint Visualization,Object Detection Model
Input and Output Bindings¶
The available connections depend on its binding kinds. Check what binding kinds
Depth Estimation in version v1 has.
Bindings
-
input
images(image): The image to infer on..
-
output
image(image): Image in workflows.normalized_depth(numpy_array): Numpy array.
Example JSON definition of step Depth Estimation in version v1
{
"name": "<your_step_name_here>",
"type": "roboflow_core/depth_estimation@v1",
"images": "$inputs.image",
"model_version": "depth-anything-v2/small"
}