prisonerjohn / ofxAzureKinect

An openFrameworks addon for the Azure Kinect.
MIT License
73 stars 24 forks source link

No Depth Camera and Limited IR Camera Streaming #9

Closed danielleamya closed 10 months ago

danielleamya commented 4 years ago

Hi,

I am having an issue with getting the depth camera to work in the stream example. I have not edited the original code in any way. Upon running the example, I can clearly see the RGB camera capture clearly. However I can barely see the IR camera feed (does not appear the same way it does in the Azure Kinect Viewer application, and cannot see the depth camera at all.

To reproduce, navigate to the example-streams folder, and run the example-streams VS solution. Expected is that the live feed would look identical to the live feed from the Azure Kinect Viewer application, but this is not the case.

OF vs Azure Kinect Viewer:

Screenshot 2020-01-29 11 38 35 Screenshot 2020-01-29 11 39 00

Running: Windows 10, of_v0.11.0, Visual Studio 2019

digitalcoleman commented 4 years ago

I can confirm this issue. Running Windows 10, OF 0.11.0, and VS 2017

digitalcoleman commented 4 years ago

Ok, I spent a lot of time on this and realized it is a 16bit color issue. Basically, the IR and Depth images are captured and stored in ofShortPixels for 16bit greyscale. But then they are drawn to 8-bit monitors and essentially show nothing. Would need to add a conversion to get them to show up, and from what I see, that requires a lookup table and likely a shader to do it efficiently? (Way beyond my skill). That is to say that the example is "working," it just is not currently useful.

aaronsherwood commented 1 year ago

Any update on this? I'm also having the same problem. I just need the depth image. I'm using oF 0.12.0 and Visual Studio 2019.

prisonerjohn commented 10 months ago

Hello, and sorry for the ridiculous delay on this. Like @digitalcoleman said, it looks to me like everything is working fine. You just can't see the depth image very well because I'm sending the raw depth which has a huge range, and whatever is near the camera is very close to black. I just added an example called example-scaled-depth that shows how you can remap the depth data into a range that is easier to see. I hope this helps! image