ibaiGorordo / pyKinectAzure

Python library to run Kinect Azure DK SDK functions
MIT License
454 stars 113 forks source link

Convert_2d_to_3d #53

Closed ANARKHDYD closed 2 years ago

ANARKHDYD commented 2 years ago

How to obtain 3d coordinates (x, y ,z) of a pixel (x,y) in the image.

ibaiGorordo commented 2 years ago

You can do ret, points = capture.get_pointcloud(). I haven't added the logic to transform the color also yet. If you want the colors of those 3D points you can transform the color image to the depth axis, and get the pixel colors from there.

ibaiGorordo commented 2 years ago

Added example with color 3D point cloud.