#AZURE Hello Face: #FaceAPIs for an App Windows 8.1 (4)


New post for Azure Machine Learning Face APIs series

  1. Face APIs in Azure
  2. Hello Face: Face APIs in a Console App
  3. Hello Face: Face APIs in a WPF App
  4. Hello Face: Face APIs in a Windows 8.1 App

After the examples of console app and WPF app, today we will see a bit of Face Tracking in an app Windows 8.1. For this app I have "simplified" a little code and within it I have to highlight.

– In the list of faces showing the result, each Face was a cutout from the original image. In Win81 we don’t have a UIElement type T:System.Windows.media.Imaging.CroppedBitmap, so taking This example code, I’ve added a class that allows me to create the cutout of each Face from the original image

– To display them in the app, to the original image and faces cuts "I keep them" in the temporary directory of the app.

– In the original image does not show a square on each Face, as have a few minutes I will be playing with a Canvas and complete it.

Always better as a video that shows the app running and then the source code

On GitHub source code can be downloaded from https://github.com/elbruno/ProjectOxford

Saludos @ Madrid

/El Bruno


How to crop bitmap in a Windows Store app (C#)

#EVENT WebCast: Windows 10 Developer Readiness by MVPs (#IOT mode ON)

Hi !

So, some great Windows Platform MVPs are hosting a great and global Windows 10 event on June 11th.

I’ve managed myself to get some time with them to share some of the news related to Windows 10 and the device world, or Internet of Things (IOT).

You can register in the webcast here > https://mvp.eventbuilder.com/event?eventid=f6j8t3

And Josue have posted more information about the event (link)

Saludos @ Madrid

/El Bruno

#VS2013 – Create all the images for your #Win8 / #Win10 app from a single image


These days are travel days. So the best tips are the ones relates to tools that will save you some time on routine tasks. In this case a simple AddIn that creates all the appropriate resources for our Windows 8 or Windows Phone 8 apps from a single initial image.

The operation of WindowsAssetResizerPackage is more than simple,

  • Display the shortcut menu on the project manifest
  • Select the option create logos
  • It defines if the generation is for Windows or Windows Phone
  • Ready! You can already see the new files in a folder Assets.

As always, the best is to see it in operation

2015 06 03 Vs2013 Generate Logos

Regards @ Madrid

/El Bruno

Download: https://visualstudiogallery.msdn.microsoft.com/b671b18d-0268-457c-9fb6-3fba7d43ebe5

ENG [#VS2015] Hello Face: #FaceAPIs in a Wpf App (3)


New post for Azure Machine Learning Face APIs series

  1. Face APIs in Azure
  2. Hello Face: Face APIs in a Console App
  3. Hello Face: Face APIs in a WPF App

In the previous post I shared the 10 sample lines that we can user as a Face APIs basic functionality in a console app to :

  • detect faces
  • detect age on each face
  • detect sex on each face

Moreover, another option that does Face APIs provide is the ability to identify the region on the original image for each detected face. In the next example, I’ve added a WPF project and I have referenced the ClientLibrary. It is based on one of the examples in the Face APIs SDKs.

This project has 2 important files

lib \ FaceApiHelper.cs. This class is the one used for image processing using Face APIs service.

UserControls \ Face.cs. Represents a User Control, with an image to show the face, and also a series of labels to show the age and sex.


The MainWindow.xaml main window features a button to select an image of the disk and by under 2 sections showing the original image with boxes on each side found and a list of the found faces. The code by pressing the button is very simple


Important: The key to use the Face API service is part of the settings of the app.

The StartFaceDetection() function returns 2 collections of Faces. One with the information age and sex of the found face, the other is a special object used to “paint” boxes on the original image.


If you’ve been able to see the code and not vomiting with error handling, you can try the application. An example of the app in operation is as follows:

2015 06 02 Face Api Wpf

If you want to see the Special transformation to paint the boxes, you can take a look at CalculateFaceRectangleForRendering() .

The code can be downloaded from https://github.com/elbruno/ProjectOxford/tree/master/Samples

Greetings @ Medrid

/El Bruno

ENG [#EVENT] Materials of the #Coding4Fun event in in #DotNetMalaga


As a couple of things

– First, I promised another event before holidays in Málaga, with the drone demo, some advanced C# and some more friki stuff

– Tons of thanks to the people who organized the event, they are amazing !

– Finally, here are the slides and source of the materials used in the session 2 days ago

The source code for the examples, as on github 😉


and as always a few tweets with the wonderful people of Málaga

Greetings @ Madrid

/El Bruno

[#HUMOR] After Malaga, now Kung Fury


Recién llegado de pasara un excelente rato con los amigos de Málaga Dot Net, y cómo es domingo hoy toca un poco de frikismo extremo. En este caso, con la película más épica de la historia: Kung Fury.

Just arrived from Malaga, and after an amazing time with Malaga Dot Net Friends, now it’s time to relax and enjoy the movie ever: Kung Fury.

Saludos @ Home

/El Bruno

ENG [#IOT] WindowsIoTCoreWatcher.exe does not start and how fix it


New post for Windows 10 and Raspberry Pi 2 series

  1. Hardware and software (1 on N)
  2. Boot from SD card in the device (2 of N)
  3. Hello World mode! (3 of N)
  4. Visual Studio deployment process and Web Management app (4 on N)
  5. Hello Blinky !!! (5 on N)
  6. Some admin tasks, like change password and change name (6 on N)
  7. List of connected devices in the Raspberry Pi 2 (7 on N)
  8. Deploy an app using the deploy package (8 on N)
  9. Different behaviors for an App based on the app architecture
  10. WindowsIoTCoreWatcher.exe does not start and how fix it

Sometimes after you install the Windows IoT core Raspberry Pi 2 SDK, you may find that the monitoring tool “Windows IoT Watcher” cannot be launched. If you start to research you’ll find the following error

Could not load file or assembly ‘ WindowsIoTCoreWatcher, Version = 10. 0. 0. 0, Culture = neutral, PublicKeyToken = 31bf3856ad364e35′ or one of its dependencies. Strong name validation failed. (Exception from HRESULT: 0x8013141A)

And of course, working with a Preview OS, with an SDK also in Preview, the most advisable to do is go to the forums to find some help.

I I found several people in the same situation and with a not so elegant solution (but it works) “remove the app certificate“.

To do this, we use SNRemove.exe, an interesting tool created 10 years ago! with the following command

snremove.exe – r WindowsIoTCoreWatcher.exe

And ready, now we can launch without a problem the app. Here is the curious Friday tip.

Greetings @ Home

/El Bruno

Foro: https://social.msdn.microsoft.com/Forums/en-US/c9fd7f9d-694e-4543-ad78-19c43430ea9c/iot-core-watcher-user-interface-not-starting?forum=WindowsIoT

SNRemove http://www.nirsoft.net/dot_net_tools/strong_name_remove.html

ENG [#VS2015] Hello Face: #FaceAPIs in a Console App (2)


New post for Azure Machine Learning Face APIs series

  1. Face APIs in Azure
  2. Hello Face: Face APIs in a Console App

After the setup of our Azure environment, we now can use Face APIs. Next step is to download the SDK and take a look at the examples. At this time the SDK contains examples for both, .Net and Android. Within the .Net sample there is a WPF app which consumes a PCL which is responsible for making the calls to the Machine Learning Face API services.


The good thing about this model is that the PCL is easily portable to other projects. The following steps show how consume Face API services in a console app, using the PCL included in the SDK.

1. Add a new console application in the solution

2. Add a reference to ClientLibrary

3. Then in the Main we need to define a variable with our subscription key, and for this example we will open a local image to be processed

4. The following function displays the steps necessary for processing an image


5. And the result is similar to the following one


6 That’s it !

As always, can always download the complete sample from GitHub https://github.com/elbruno/ProjectOxford

Greetings @ Home

/El Bruno

Face APIs SDK, http://www.projectoxford.ai/sdk

ENG [#AZURE] Face APIs with #Azure (1) #MachineLearning


Every time I perform a Coding4Fun session, I always take the opportunity to talk a little about the progress in the process of face detection, facial recognition and detection of emotions, etc. If you like Azure, now is a great time to start testing something for this topic, since using Machine Learning experiments, there are a number of features available to perform these actions.

In this series of posts I’ll show you how to configure Azure for having an instance of Face APIs, how to active and publish it as a service and finally as consume it from an .Net app.

You should start adding a Face API instance from the Azure Machine Learning Market Place Gallery . Access the Market Place and add search for Face APIs .


The wizard is fairly simple, and it’s free. For now is only available in the West US region, although that doesn’t affect us much.


Once created the instance, it will appear in our list of items for the Market Place section. The next step is very important, since it is where to generate the key that we will identify to use this service from our apps. We must Access the portal Face APIs from the option “Manage”


You will find your primary and secondary keys and also the option to regenerate them


And that’s it! We already have our Azure environment ready to use Face APis. I’ll write later about the Face APIs capabilities, however the information and the SDK can be found at the official website of the Project Oxford , where besides Face APIs, there are APIs for Speech Recognition and Computer Vision. Come on, that is a place to have some serious fun 😉

Greetings @ Home

/El Bruno

Project Oxford, http://www.projectoxford.ai/face

Face Api Machine Learning, http://gallery.azureml.net/MachineLearningAPI/b0b2598aa46c4f44a08af8891e415cc7