Kinect / PyKinect2

Wrapper to expose Kinect for Windows v2 API in Python
MIT License
498 stars 237 forks source link

Depth value of x, y point in colour space #54

Open sarabsethi opened 6 years ago

sarabsethi commented 6 years ago

I've seen a few questions asking similar things but with no clear solution. I'd like to get the corresponding depth from the depth sensor of a given x, y point in the colour image (MapColorFrameToDepthSpace method from the SDK).

How do I access this in python?

Thanks!

Ddylen commented 4 years ago

my get_3D_coordinates example code (included in response to https://github.com/Kinect/PyKinect2/issues/24) does this in an offline fashion (i.e first save data, then read the 3D position or depth of the relevant pixel in the saved data frame), if thats of any help