Calculating distance using a single camera

[亡魂溺海] 提交于 2019-12-07 05:20:43

问题


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,

http://tech.groups.yahoo.com/group/OpenCV/message/73541

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

PS. Assuming camera is properly calibrated.


回答1:


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.



来源:https://stackoverflow.com/questions/4802659/calculating-distance-using-a-single-camera

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!