Hi !

Among the new APIs that brings Windows 10 to work with images we found one quite interesting: Windows.Media.FaceAnalysis. The name already tells us the functionality of this API: face detection.

Using this library, we have several ways of working with it. For example, in the FaceDetector class, we have a DetectFacesAsync() operation that using a SoftwareBitmap, performs an analysis on this image and returns an array with the collection of detected faces.

Another way of using it is to associate it with an instance of MediaCapture(), which is the class that we usually use to access the camera in Windows 8 / 8.1 / 10. The following example shows as a time to initialize the MediaCapture, we can add a new ‘effect’ (line 75) with a FaceDetectionEffectDefinition, for the detection of faces.

 

image

Then we can set other options as the frequency in which we want to perform the analysis, and subscribe to an event for each detected face (line 80).

In upcoming posts I will share an example use of a Universal Windows App using this feature.

Saludos @ Madrid

-El Bruno

References

3 responses to “#VS2015 – #Windows10 native API for #FaceDetection”

  1. […] #VS2015 – #Windows10 native API for #FaceDetection by El Bruno […]

    Like

  2. […] El Bruno Windows 10 native API for Face Detection […]

    Like

Leave a reply to Visual Studio – Developer Top Ten for Jan 4th, 2016 – Dmitry Lyalin Cancel reply

Discover more from El Bruno

Subscribe now to keep reading and get access to the full archive.

Continue reading