简体   繁体   English

如何从深度相机获取世界系统中的深度坐标

[英]How to get the depth coordinate in the world system from the depth camera

depth camera: intel realsense D415 language: python深度摄像头:intel realsense D415 语言:python

I am trying to get the z coordinate of a depth point in the world coordinate system.我正在尝试获取世界坐标系中深度点的 z 坐标。 I am wondering if there's an embedded method or if there is a way to obtain that?我想知道是否有嵌入式方法或者是否有办法获得它?

Thank you in advance!先感谢您!

It sounds like you want to use a separate and fixed object in the scene as a reference, eg a table supporting your objects of interest.听起来您想在场景中使用单独且固定的 object 作为参考,例如支持您感兴趣的对象的表格。

Finding the 3D plane of the table is usually easy: you use some robust fitting algorithm along with reasonable priors (eg the largest plane, or the largest plane approximately oriented in a known way with respect to the camera).找到表的 3D 平面通常很容易:您使用一些稳健的拟合算法以及合理的先验(例如,最大平面,或以已知方式相对于相机近似定向的最大平面)。

Finding a plane, however, only gives you a "z" direction orthogonal to it, plus a translation vector to a point on the plane which may not be a desirable one.然而,找到一个平面只会给你一个与其正交的“z”方向,加上一个平移矢量到平面上的一个点,这可能不是一个理想的点。 So you need a way to identify some desirable "origin" point in the point cloud.因此,您需要一种方法来识别点云中一些理想的“原点”点。 This is usually done using an object (aka "calibration jig" or "rig") of known shape that can easily be identified and precisely fit to a model. For example, a billiard ball (fit a sphere, find the center, offset by the radius to the contact point with the plane), or a cone (find the center of the base), etc. Note that using a conical jig allows to find both plane and point in one shot.这通常使用已知形状的 object(又名“校准夹具”或“钻机”)来完成,该形状可以轻松识别并精确适合 model。例如,台球(适合球体,找到中心,偏移与平面接触点的半径)或锥体(找到底座的中心)等。请注意,使用锥形夹具可以在一次拍摄中同时找到平面和点。

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

相关问题 如何从pyKinectV2 BodyGame示例获得的深度框架中获取z坐标 - How to get the z coordinate from the depth frame obtained by the pyKinectV2 BodyGame example 如何将坐标系从世界转换为相机(3D 到 2D 转换)? - How can I convert a coordinate system from world to camera (3D to 2D conversion)? 从 OpenGL 深度缓冲区获取世界坐标 - Getting world coordinates from OpenGL depth buffer 如何从USB 3.0立体相机计算深度信息? - How to calculate Depth Information from USB 3.0 Stereo Camera? 具有不同焦距的立体相机的深度 - Depth from stereo camera with different focal length 我如何将相机坐标转换为世界坐标使用 opencv - how do i transform camera coordinate to world coordinate use opencv 如何应用基本矩阵将 3D 点从相机 1 的世界坐标转换为相机 2 的世界坐标 - How to apply the essential matrix to transform a 3D point from camera 1's world coordinate to camera 2's world coordinates OpenCV – 未校准立体系统的深度图 - OpenCV – Depth map from Uncalibrated Stereo System 如何从 xgboost (XGBClassifier) 获取/返回 max_depth 参数? - How to get/return max_depth parameter from xgboost (XGBClassifier)? 将点投影到距相机一定深度的平行网格上(maya) - projecting points onto a parallel grid at a depth from camera (maya)
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM