立体视觉真实距离计算

发布于 2025-02-13 19:21:55 字数 722 浏览 2 评论 0原文

我是立体声愿景的新手。我正在尝试计算与立体声差异图和深度图的真实距离。但是我不明白我该怎么做。我有两个输出,其中一个检测到汽车,并给出X,Y,W,H坐标。第二个是带有施用colormap的立体声输出。 ”

我要找到的东西像此图片一样,汽车距离差距图或深度图的距离,

我有一个depth_map的数组,即480x640,

我如何从深度图上的图片中找到类似于上图的汽车距离?该示例是否有任何公式? 谢谢。

I am new on stereo vision. I am trying to calculate real distance from stereo's disparity map and depth map. But I don't understand how can I do that. I have two output, one of them detect cars and giving x,y,w,h coordinates. The second one is that the stereo output with applied colormap.det_stereo_img

What I am trying to find car's distance from disparity map or depth map like this picture,
ss_img

I have an array of depth_map which is 480x640,
enter image description here

How can I find car's distance like above picture from depth map? Is there any formula for that or sample example?
Thank you.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

温馨耳语 2025-02-20 19:21:55

有人在评论中已经说过,您需要两个相机的参数。换句话说,您系统的校准信息:

  • 每个相机的内在参数(包括镜头失真参数)
  • 外部参数,即在旋转矩阵和翻译向量方面,一个相对于另一个摄像机。

在那之后,是的,有一个公式。请参阅我的其他答案在这里

如果您想一个示例从差距映射到3D点,则可以在这里并在代码中遵循跟踪。

How someone has already said in the comments, you need the parameters of both cameras. In other words, the calibration information of your system:

  • Intrinsics parameters of each camera (including lens distortion params)
  • Extrinsics parameters i.e. where is one camera with respect to the other one in terms of a rotation matrix and a translation vector.

After that, yes, there is a formula. Please refer to my other answer here.

If you want an example to go from disparity map to 3D points, you can go here and follow the trail in the code.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文