简体   繁体   English

从Xbox One Kinect获取真实世界(X,Y,Z)坐标

[英]Obtain realworld (X, Y, Z) coordinates from Xbox One Kinect

I'm using an Xbox One Kinect to track an object, I'm currently able to obtain the objects Z coordinate (distance from the Kinect in mm) using the depth image. 我正在使用Xbox One Kinect来跟踪对象,目前,我能够使用深度图像获取对象的Z坐标(与Kinect的距离,单位为mm)。 The goal is to be able to also obtain the realworld X and Y coordinates in mm as well. 目标是也能够获得以mm为单位的真实世界X和Y坐标。 How would I go about that? 我将如何处理?

I've used the math from this answer , with the Xbox One Kinects FOV #'s, but it doesn't come out right. 我已经使用了Xbox One Kinects FOV#的答案中的数学公式,但是结果并不正确。

Now only with the Depth stream you cannot do it. 现在,只有深度流无法执行此操作。 You need to identify the edges using the gray scale image. 您需要使用灰度图像识别边缘。 The same object has the same gray color value so that just by getting the color change you can pin point the edges of the objects. 相同的对象具有相同的灰色值,因此只需更改颜色即可确定对象的边缘。 Like this you can calculate the edges and then take x, y points of that object. 这样,您可以计算边缘,然后获取该对象的x,y点。

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM