汉语宝典

双目视觉深度计算器

输入双目相机焦距 f(像素)、基线 B 与视差 d(像素),工具按 Z=f·B/d 计算物体到相机的深度,用于视觉导航、避障与三维重建中的测距。

Stereo Vision Depth Calculator

Input stereo camera focal length f (pixels), baseline B, and disparity d (pixels), compute depth Z = f·B/d for visual navigation and obstacle avoidance.

📐 计算公式
Z = f·B/d

输入焦距 f(像素)、基线 B、视差 d(像素),求深度。

📌 计算说明
  • Z = fB/d(小孔模型)。
  • f=500,B=0.1,d=25 → 2 m。

📚 深度解析:双目立体深度

💡 常见使用场景

  • 视差求物体深度。
  • 基线/焦距配置。
  • 深度相机原理。
焦距 500px、基线 0.1m、视差 25px
Z=f·B/d=500×0.1/25=2.0m。
视差减半
d=12.5 → Z=4m,视差越小越远(深度与视差成反比)。

❓ 常见问题(FAQ)

单位?
f、d 同取像素,B 取米,则 Z 为米。
近处误差大?
是;深度对视差变化敏感,近处更不稳。