I've been working for quite a while with Kinect V2 in WPF. Currently, I've written a module to extract the contours of the face from the colour stream via HighDefinitionFaceFrameSource
and HighDefinitionFaceFrameReader
. Essentially, I am using the faceModel
and faceAllignment
properties from the HightDefinitionFaceFrameResult
to calculate the path around the face. I then map it to the colour stream, which gives me an image of the person's face. I then draw the colour stream to an WriteableBitmap
, which I display in my XAML window. The path data is discarded for now.
This method works great for a single person. However, when I tried to expand it to six people, it slowed down the rendering of my visualization to a halt! It seems like only the rendering is affected, as the face frames seem to be arriving as usual, the CPU and memory usage is unaffected as well. This seems to happen once I process more than one High Definition face frame.
I also noticed that Microsoft SDK examples only tracks one face with HighDefinitionFaceFrameSource
. Perhaps, there is a limitation in the SDK?
Has anyone managed to have six people tracked with HignDefinitionFaceFrameSource
& Reader
?