OpenKinect / libfreenect2

Open source drivers for the Kinect for Windows v2 device
2.08k stars 752 forks source link

Get Raw depth data in python #1100

Open mattiaottoborgo opened 4 years ago

mattiaottoborgo commented 4 years ago

hi, i was tinkering with the kinect sensor with python and opencv. Is there a way to get the distance from the sensor in millimeters? I ask because i don't find any examples or documentation of it in python, thanks

floe commented 4 years ago

The data in the depth image is in mm. See here: https://openkinect.github.io/libfreenect2/classlibfreenect2_1_1Frame.html#a1d1cfd8ffb84e947f82999c682b666a7

tavishm commented 4 years ago

You can try using freenect2, it worked for me on ubuntu 14.04 and raspberry pi 4 with python. It's pretty simple to use and gives color and depth pics. It's based on libfreenect2. It has good documentation.