xxorde / librekinect

Depth data from a kinect sensor! Small and fast kernel driver. Also for embedded devices like the raspberry pi!
407 stars 68 forks source link

Can not get depth stream #13

Closed npnp closed 9 years ago

npnp commented 9 years ago

Hi xxorde, thanks for the great work, I compiled and ran your driver on the Raspberry Pi B+ without a problem! Unfortunately I can not find any way to get a depth stream, either in my own code or in Camorama.

I my own experiment I made a function that converts 10bit bitstream to 8bit bytestream and I can finally see the image, however it turns out it's not depth but IR stream:(

Camorama can get color stream in 640x480 and high-res, or IR stream in 640x480 - depending on the quality setting chosen in the menu.

Could you please let us know what is the most reliable way to get the depth stream using your driver, either in Camorama or even better in an example code snippet?

best wishes and happy new year:) nesa

npnp commented 9 years ago

My bad, it turns out that I wasn't running librekinect driver but default linux driver which can access the rgb/ir stream only.

The issue was that the permissions were not right after building, and the insmod would return an error:

Invalid module format

Fixed by running:

make fix-rights

This fixed the permissions and I could load xxorde's modules. After that I can access the depth stream.