How To: Kinect for Windows SDK Face Recognition Series
- Posted: Aug 15, 2012 at 6:00 AM
- 25,342 Views
- 3 Comments
Loading User Information from Channel 9
Something went wrong getting user information from Channel 9
Loading User Information from MSDN
Something went wrong getting user information from MSDN
Loading Visual Studio Achievements
Something went wrong getting the Visual Studio Achievements
Today's How To series is from the one and only elbruno and walks us through the Kinect for Windows SDK Facial Recognition capability, from concept to code...
One of the innovations that were incorporated into the Kinect SDK 1.5 was the ability to detect points of the face. Be careful, some people think that this can give us the ability to perform facial recognition, then not. What we can do is to identify more than 80 points of a face and from the same…. well what we want. A model that we could have reference is as follows:
If we are lucky to have eastern ancestry, because a face recognition points will be similar to the previous photo. If on the other hand are ugly like myself, since we will see something similar to the following:
And how facial recognition? the first thing we will see is that the code is open so anyone can fiddling with it and play with it to suit your needs.
The idea is that from the position of the Joint of the head (Head) which recognizes the Kinect sensor recognizes a virtual area around the head and Face Tracing classes return us an array with points in only 2 dimensions in order to have the references as the previous model. (there is much more to explain about how to get to the 3D of the 2D, but that goes for later).
Today we will see how to use this functionality in a WPF project. To do this follow these steps:
1 Create a new WPF project. In my case I called [ElBruno.FaceTracking02] and also I added the reference to [Microsoft.Kinect].
2. From the installation folder of the Kinect SDK Developer Toolkit, add references to the assemblies in Face Tracking. The location is similar to:
C:\Program Files\Microsoft SDKs\Kinect\Developer Toolkit v1.5.2\Samples\bin
and the references should be added to
Today we will see how to modify the “network” that is drawn in our face using the example from the previous post. Reviewing a little how is it mounted, we see that the UserControl [FaceTracking.xaml] is showing the network with the face on an image which shows the output of the camera of the Kinect sensor.
To paint the network, the [SkeletonFaceTracker.cs] class uses the routine DrawFaceModel()which creates a collection of triangles and then paints them.
Project Information URL: http://elbruno.com/2012/08/01/kinect-howto-use-face-recognition-with-kinectsdk-i/, http://elbruno.com/2012/08/08/kinect-howto-use-face-recognition-with-kinectsdk-ii/, http://elbruno.com/2012/08/10/kinect-howto-use-face-recognition-with-kinectsdk-iii/