Kinect Face Detection

I want to do face detection using Microsoft Kinect, I can crop part of the RGB video and make a rectangle around the face in Skeleton View, but I canโ€™t detect the RGB (normal image) of the face in WPF. How can i do this?

+4
source share
3 answers

The good thing is that kinect identifies someone on the Xbox, that it accepts different characteristics of people's faces (using depth images), for example, I have a 1/2 inch nose, while you have 3/8 inch nose. This is determined by my depth from certain parts of the personโ€™s face. Depth Calculation Algorithm (V1.0):

DepthImageFrame depthFrame short[] rawDepthData = new short[depthFrame.PixelDataLength]; depthFrame.CopyPixelDataTo(rawDepthData); int depth = rawDepthData[depthIndex] >> DepthImageFrame.PlayerIndexBitmaskWidth; 

Then you can say things like:

 if(depth > 500) { //do something } 

See Channel 9 for more depth information. Hope this helps!

+2
source

It is possible to use WPF, I used the "Skeleton head" position and create a frame, and then cut the image of this position from the RGB frame and paste it there. It works by the way, but needs some improvements. m tries to transfer this array of images to a neural network, and then map it. let's see how much i can do.

Thanks for helping u'r in any way.

0
source

Source: https://habr.com/ru/post/1387990/


All Articles