estimate_depth
Generates a 16-bit depth map from a photo, with brighter pixels closer, to feed Blender's photo_to_scene tool for parallax scenes.
Instructions
Estimate a depth map for a photo with Depth Anything V2 small (ONNX, CPU; ~94 MB model, downloaded once and cached; override the location with the DEPTH_MODEL env var). Returns a 16-bit PNG (brighter = closer) plus its size. Feed the result to the photo_to_scene Blender tool to build a parallax scene.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"image_path": "<image_path>"
},
"name": "estimate_depth"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| blur | No | ||
| gamma | No | ||
| out_path | No | ||
| long_side | No | ||
| image_path | Yes |