bibigone / k4a.net

K4A.Net - Three-in-one .NET library to work with Azure Kinect devices (also known as Kinect for Azure, K4A, Kinect v4). It includes sensor API, recording and playback API, body tracking API. Samples for WPF, .NET Core and Unity are included.
MIT License
164 stars 39 forks source link

Green Screen sample #4

Closed JpEncausse closed 4 years ago

JpEncausse commented 4 years ago

Hello, The installation works very well comapred to official SDK that have a lot of link error. Thanks !

Could you provide a sample to perform a "green screen" effect ? In Nutshell it's displaying all the color pixel between a given depth range.

I dig a little bit in the code but you directly call 'C' code for transformation. Is there a sample where you work on the depth array or color array (may be it require OpenCV for perf) ?

bibigone commented 4 years ago

Hello @JpEncausse,

Could you provide a sample to perform a "green screen" effect ? In Nutshell it's displaying all the color pixel between a given depth range.

Good idea for sample. I'll definitely implement it soon.

I dig a little bit in the code but you directly call 'C' code for transformation. Is there a sample where you work on the depth array or color array (may be it require OpenCV for perf) ?

Some code example you're asking about can be found in project K4AdotNet.Samples.Wpf.BodyTracker - see class ImageVisualizer.ColorBgraImageVisualizer lines 182-211

baSSiLL commented 4 years ago

Hi @JpEncausse Check out a new WPF sample named BackgroundRemover.