从卫星图、航拍图或普通照片重建三维场景结构。基于 DA3Metric-Large(Depth Anything 3)深度估计模型,单张图片即可输出深度图、点云和 3D 模型。
Reconstruct 3D scenes from satellite, aerial, or regular photos. Based on DA3Metric-Large (Depth Anything 3), outputs depth maps, point clouds, and 3D models from a single image.
bash
cd ~/.openclaw/workspace/projects/image-3d-scene-reconstruction
python3 scripts/reconstruct.py --input photo.jpg --output output/
python
from depth_anything_3.api import DepthAnything3
import cv2
model = DepthAnything3.from_pretrained('depth-anything/DA3Metric-Large')
model = model.cuda().eval()
img = cv2.imread('photo.jpg')
pred = model.inference([img])
depth = pred.depth[0] # [H, W] 米制深度
extrinsics = pred.extrinsics # 相机外参
intrinsics = pred.intrinsics # 相机内参
bash
# 单张图片 → 3D 输出
python3 -m depth_anything_3.cli image photo.jpg --export-dir output/ --export-format glb
# 多张图片 → 融合场景
python3 -m depth_anything_3.cli images ./photos/ --export-dir output/
包用途depth-anything-3深度估计 + 3D 重建引擎opencv-python图像处理torch + torchvisionPyTorch 深度学习框架open3d点云处理(可选)trimeshMesh 处理(可选)
详见 ~/.openclaw/workspace/projects/image-3d-scene-reconstruction/README.md