简体   繁体   English

如何使用 OpenCV 找到从相机到对象/标记的距离和旋转?

[英]How to find the distance and the rotation from camera to object/marker using OpenCV?

I have done some 6D Pose estimation, and have the Oriented Bounding Box (OBB) of the detected object.我已经完成了一些 6D 姿势估计,并具有检测到的 object 的定向边界框 (OBB)。 So, now I would like to know the ground truth and get the error of the estimated orientation and the position.所以,现在我想知道基本事实并得到估计方向和 position 的误差。 The detected object is a rectangular box as shown in the image.如图所示,检测到的 object 是一个矩形框。 带有标记的对象

How can I know the distance and the rotation of a marker (black box over the red one) to the camera?我如何知道标记(红框上方的黑框)到相机的距离和旋转? The red box in the image is the object and the black one is the estimated 6DPose.图像中的红色框是 object,黑色的是估计的 6DPose。

So would like to do image postprocessing to get the error of the position and the orientation.所以想做图像后处理得到position的误差和方向。 So, how can get the error from this image, knowing the real dimensions of the box, camera parameters, and the distance from the camera to the object?那么,在知道盒子的真实尺寸、摄像头参数以及摄像头到 object 的距离的情况下,如何从该图像中得到误差? So the triangulation formula can give me the distance but then how to get the orientation?所以三角测量公式可以给我距离但是如何获得方向?

Would be OpenCV to look after?会照顾 OpenCV 吗? Any help?有什么帮助吗?

Thanks谢谢

find the marker correspondings and solvePnp is what you are looking for找到对应的标记和solvePnp就是你要找的

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何找到距华硕Xtion Pro相机OpenCV,ROS的物体距离 - how to find object distance from asus xtion pro camera opencv, ROS 如何在python中使用openCV查找摄像机和检测到的物体之间的距离? - How to finding distance between camera and detected object using openCV in python? OpenCV:如何使用图像计算相机和物体之间的距离? - OpenCV: How-to calculate distance between camera and object using image? 想法如何使用opencv为IOS测量检测到的物体与相机的距离? - Ideas how can i measure distance of an detected object from Camera using opencv for IOS? 如何使用opencv测量视频中摄像机中检测到的物体的距离? - how can i measure distance of an detected object from camera in video using opencv? 使用opencv和python计算相机到物体的距离 - camera to object distance calculation using opencv and python opencv 相机到 object 的距离按 4" 计算 - opencv distance from camera to object calculation off by 4" OpenCV + OpenGL使用SolvePnP相机姿势-对象从检测到的标记偏移 - OpenCV + OpenGL Using solvePnP camera pose - object is offset from detected marker Opencv - 如何在 Haar Classifier Cascade 中计算移动物体与相机的距离和速度? - Opencv - How to calculate moving object distance from camera and speed in Haar Classifier Cascade? 如何使用 opencv 从放置在地面的相机中找到电线的高度? - how to find height of wire from the camera placed at ground using opencv?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM