Hello!
New post for Azure Machine Learning Face APIs series
- Face APIs in Azure
- Hello Face: Face APIs in a Console App
- Hello Face: Face APIs in a WPF App
- Hello Face: Face APIs in a Windows 8.1 App
- Hello Face: Frame in each detected face in Windows 8.1 App
To complete yesterday-s post; I was missing a small modification to display a Frame in every detected face in the Windows 8.1 app. In the original example of WPF this stored it in a property of type Int32Rect. You cannot use this type in Windows Universal Apps, so I have created 4 new properties to store this value.
Once added these classes, this was a bit of trigonometry to adjust the value of each detected face. The source code is fairly simple
And then in a Canvas, we created a series of Rectangles with the new values
The final app will Display a new Frame in each detected face
All the source code is in GitHub, here https://github.com/elbruno/ProjectOxford
Saludos @ Madrid
/El Bruno
Resources:
– MSDN System.Windows.Int32Rect
12 comments