etiennedub / pyk4a

Python 3 wrapper for Azure-Kinect-Sensor-SDK
MIT License
288 stars 81 forks source link

Get data values from depth image #108

Closed JoeyJoy16 closed 3 years ago

JoeyJoy16 commented 3 years ago

Hello, May I ask about the coordinates of depth image? I would like to get the depth coordinates to measure the object. I know the data of depth image is in mm, but how can I get it? Thank you,

lpasselin commented 3 years ago

Hi, I'm not sure what you don't understand. To get the depth images you get a capture and then call capture.depth. The depth data is contained in the image. Each pixel corresponds to a depth measurement, in mm. See the examples folder scripts.

JoeyJoy16 commented 3 years ago

Hi, I'm not sure what you don't understand. To get the depth images you get a capture and then call capture.depth. The depth data is contained in the image. Each pixel corresponds to a depth measurement, in mm. See the examples folder scripts.

Thank you for your response! I already know how to capture color and depth images. After that I transformed the depth image to the color image to find the coordinate of point of interest from color image. I would like to get the corresponding depth values of those points from the transformed depth image. Could you help me how to call the function to do that or a sample code. Thank you,