totovr / SimpleOpenNI

SimpleOpenNI library for Processing 3.5.2, 3.4, 3.3.7, 3.3.6 on MacOS for V1 and V2
https://totovr.github.io/SimpleOpenNI/
MIT License
159 stars 47 forks source link

Fixed: SimpleOpenNi stops working if RGB is enabled and depthness is too close #32

Closed spacorum closed 3 years ago

spacorum commented 3 years ago

Hi, and thanks for this wonderful library. I would like to share this problem (and its quick fix) in case anyone is in this same situation.

I´ve found that (when enabling the RGB capture in the Kinect context) there´s some kind of closeness limitation: you can´t put anything too close or the sensor stops working/streaming neither pointclouds or images, or at least the Processing script stops running properly, but with no errors.

To simply fix this, you must set some values when enabling the RGB mode, like this:

//kinect.enableRGB(); kinect.enableRGB( 640, 480, 24);

Maybe other size/fps values can work too, but this setup seems to run ok. I found this on an ASUS XTION sensor, I will try to test if this happens too with a Kinect 1414 and if the fix also works.


Windows 10 SimpleOpenNI 3.4 Microsoft Kinect SDK 1.8 ASUS XTION PRO LIVE