简体   繁体   中英

Face detection using Kinect

I want to do face detection using Microsoft Kinect, I'm able to crop a part of RGB video and able to make a rectangle around the face in Skeleton View, but I'm not able to detect the RGB (normal image) of a face, in WPF. How can I accomplish this?

Well the way that kinect identifies someone on the Xbox, is that it takes the different characteristics of a humans face (using depth images), for example I have a 1/2 inch nose, while you have a 3/8 inch nose. This is determined my the depth from certain parts of a person's face. The algorithm for calculating depth(V1.0) is:

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 details on depth. Hope this helps!

It's possible using WPF, I've used Skeleton's Head position and make a frame and then cut an image of that position from RGB frame and Paste it over there.. it's working by the way but need some improvements.. I'm trying to pass this image array to Neural network and then match it.. let's see how much i can do.

Thanks for u'r help any ways..

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM