使用单一的相机计算距离 [英] Calculating distance using a single camera

查看:108
本文介绍了使用单一的相机计算距离的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想计算出场景中的特定对象的距离,我都知道,使用一台摄像机时,我只能计算相对距离,但我知道有些物体的坐标在现场所以理论上它应该是可以计算实际距离。据OpenCV的邮件列表,

I would like to calculate distance to certain objects in the scene, I know that I can only calculate relative distance when using a single camera but I know the coordinates of some objects in the scene so in theory it should be possible to calculate actual distance. According to the opencv mailing list archives,

<一个href=\"http://tech.groups.yahoo.com/group/OpenCV/message/73541\">http://tech.groups.yahoo.com/group/OpenCV/message/73541

cvFindExtrinsicCameraParams2是使用功能,但我不能找到如何使用呢?信息

cvFindExtrinsicCameraParams2 is the function to use, but I can't find information on how to use it?

PS。假设相机正确校准。

PS. Assuming camera is properly calibrated.

推荐答案

我的猜测是,你知道一个对象的宽度,如一个球穿过6英寸和6英寸的身高,你也可以看到它是20像素高25像素宽。你也知道球在10英尺的距离。这将是您的开始。

My guess would be, you know the width of an object, such as a ball is 6 inches across and 6 inches tall, you can also see that it is 20 pixels tall and 25 pixels wide. You also know the ball is 10 feet away. This would be your start.

外在参数也帮不了你,我不认为,因为这是相对于其他相机或原点空间相机的位置和旋转。对于一相机系统,相机是原点。

Extrinsic parameters wouldn't help you, I don't think, because that is the camera's location and rotation in space relative to another camera or an origin. For a one camera system, the camera is the origin.

内部参数可能的帮助。我不知道,我用两个相机只做到了。

Intrinsic parameters might help. I'm not sure, I've only done it using two cameras.

这篇关于使用单一的相机计算距离的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆