#AZURE Hello Face: #FaceAPIs en una App Windows 8.1 (4)

Hola!

Nuevo post para la serie de Face Api en Azure

  1. Face APIs en Azure
  2. Hello Face: Face APIs en una Console App
  3. Hello Face: Face APIs en una WPF App

Después de los ejemplos de app de consola y app WPF, hoy veremos un poco de Face Tracking en una app Windows 8.1. Para esta app he “simplificado” un poco el código y dentro del mismo tengo que destacar

– En la lista de caras que se muestra del resultado, cada Face era un recorte de la imagen original. En Win81 no tenemos un UIElement de tipo CroppedBitmap, así que tomando este ejemplo de código he agregado una clase que me permite crear el recorte de cada Face a partir de la imagen original

– Para mostrarlas en la app, a la imagen original y los recortes de faces los “guardo” en el directorio temporal de la app.

– En la imagen original no muestro un cuadrado sobre cada Face, en cuanto tenga unos minutos me pondré a jugar con un Canvas y lo completaré.

Como siempre mejor un video que muestre la app en funcionamiento y a continuación el source code

El código fuente en GitHub se puede descargar desde https://github.com/elbruno/ProjectOxford

Saludos @ Madrid

/El Bruno

Resources:

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

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

Hello!

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 .

Clipboard01

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.

Clipboard02

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”

Clipboard02

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

Clipboard02

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

[#KINECT] #Kinect Adapter for Windows

Hello!

One of the big differences between Kinect V1 and V2 is that in version 2 we can use XBox One Kinect with our computer without any problems. If we go back a little, with the Kinect V1 we used to had 2 versions

  • Kinect for Windows
  • Kinect for XBox

Officially, you could use the Kinect for XBox to develop apps, but then the production stage you should use the version for Windows.

With version 2, this has changed, and if you have a XBox One with Kinect, you can use it with Windows. And of course, you need this adapter: Adapter Kinect for Windows.

When I get the box I got scared a bit, since it is quite big

k01

Then quickly startle is passed, there are lots of air inside the box and 4 wires of rigor for the Kinect

k02

In 4 minutes, connected to the Surface and running!

Greetings @ Home

/El Bruno

[#KINECT] Adaptador #Kinect para Windows

Hola!

Una de las grandes diferencias entre Kinect V1 y V2 es que en la versión 2 podemos usar la Kinect de la XBox One con nuestro ordenador sin problemas. Si hacemos un poco de memoria, con la Kinect V1 teníamos 2 versiones

  • Kinect for Windows
  • Kinect for XBox

Oficialmente podías utilizar la Kinect de XBox para desarrollar apps, pero luego en producción solo podías usar la versión para Windows.

Con la version 2 esto ha cambiado, y si tienes una XBox One con Kinect, la puedes usar con Windows. Eso sí, necesitas este adaptador: Adaptador Kinect para Windows.

Cuando me llego la caja me asusté un poco, ya que la misma es bastante grande

k01

Luego el susto se pasa enseguida, hay MUCHO AIRE dentro de la caja y los 4 cables de rigor para la Kinect

k02

En 4 minutos, conectado al Surface y funcionando !

Saludos @ Home

/El Bruno

[#KINECT] Kinect V1? Ends on 2015

0101

Hello!

I still remember the time when, after a few very hards days at work, we leave with Edu to download some tensions outside and we also purchase a couple of Kinect for XBox 360 sensors. This version, which was a 100% free game control experience after the proposal of the Nintendo Wii and it included the great Kinect Adventures game.

When I saw that the Kinect had a USB port, as I believe that it took me 2 seconds until I connected it to Windows 7 (or Vista :S) and I started to see what I could do with the sensor. According to my backup, my first official about Kinect post was on November 26, 2010. Great experience trying to .. move the camera engine .

From there, it was to work with OpenNi friends, follow the release of the official SDK, large updates such as version 1.5, the Kinect V2 and we reach 2015.

A few weeks ago,

Kinect blog friends announced that Kinect V1 will no longer be sold during the 2015.

That means that this “toy / device” will not be more available (I is that I seized him affection). Nor is it worth to have it now, with much more powerful alternatives. However I think I’ll buy one or two to have the boxes along with that of the iPod 1st, 1st iFon and others to sell later when my children are 18 years ;)

Bye Bye Kinect V1!

Greetings @ Home

/El Bruno

Source: http://blogs.msdn.com/b/kinectforwindows/archive/2014/12/30/original-kinect-for-windows-sensor-sales-to-end-in-2015.aspx

[#KINECT] Kinect V1 ? Se acaba en el 2015

0101

Hola !

Todavía recuerdo con cariño la época en la que, después de unos días infernales de trabajo, salimos con el Edu a descargar tensiones por medio de la compra de un Kinect V1 para XBox 360. Esa versión traía el juego Kinect Adventures y la verdad, que después de la propuesta de la Nintendo Wii era una experiencia 100% libre de mandos.

Cuando vi que el Kinect tenía un puerto USB, pues creo que pasaron 2 segundos hasta que lo conecté a Windows 7 (o Vista) y comencé a ver que podía hacer con el mismo. Según lo que veo, mi primer post oficial sobre Kinect fue el 26 de Noviembre de 2010. Gran experiencia la de … mover el motor de la cámara.

A partir de allí, fue colaborar con los amigos de OpenNi, seguir el lanzamiento del SDK Oficial, las grandes actualizaciones como la versión 1.5, el Kinect V2 y llegamos al 2015.

Hace unas semanas,

los amigos del blog de Kinect anunciaron que el Kinect V1 dejará de venderse durante el 2015.

Eso significa que este “juguete / device” no estará más disponible (yo es que le he agarrado cariño). Tampoco es que valga la pena tenerlo ahora, con otras opciones mucho más potentes. Sin embargo creo que compraré uno o dos para tener las cajas junto con la del 1er iPod, 1er iFon y otras más para vender más adelante cuando mis niños tengan 18 años ;)

Bye Bye Kinect V1 !!!

Saludos @ Home

/El Bruno

Fuente: http://blogs.msdn.com/b/kinectforwindows/archive/2014/12/30/original-kinect-for-windows-sensor-sales-to-end-in-2015.aspx

[#KINECTSDK] Beware of the array of bodies, not all bodies are tracked by defaultK in #KinectV2

Hello!

When you work with apps on Kinect that require a special code for each body recognized by the sensor, the entry point tends to be the collection of bodies returning to us in the line 15 of the first block in the following code example

The problem with these lines is the collection of bodies it is usually complete by 6 elements, however there are no 6 people in front of the Kinect. The following image shows the collection and at the same, the 6th element is a correct body, but with the property IsTracked = False .

KV2NotTrackedBdies

The solution is quite simple, a small array preprocessing, filtering by the bodies that are correctly identified. In line 16 of the second block of code we obtain the total number of bodies where IsTracked == True and from there to be processed.

Happy Codding

Greetings @ Home

/El Bruno