#Windows10 – Windows Community Toolkit V 3.0 makes life incredibly easy if you need working with the camera in a #UWP App

giphy

Hi!

These are worldcup days so the posts will be short and at directly to the foot. Today I was in need to work with the camera in a UWP App; and of course, this requires a few lines of code, but I know they can be just one line of code. I remembered that the latest version of Windows Community Toolkit V 3.0 We Allowed reduce the code to the following

Xaml code:

<controls:CameraPreview x:Name=”CameraPreviewControl” />

C# code:

await CameraPreviewControl.StartAsync(); ();

CameraPreviewControl.CameraHelper.FrameArrived += CameraPreviewControl_FrameArrived;

Incredibly Easy! Some time ago I wrote about other features in previous versions. In example: we could work with Bluetooth Low Energy also with a couple of lines of code, and as in version 1.2 this Toolkit It helped us to use the correct way the pool of connections HttpClient.

Important: If you haven’t read this post, you should. The class HttpClient may give you some headaches if you do not know how it works internally.

So, today with only 3 lines I have integrated the camera to my App and I can still see the surprises that leaves the World Cup!

Happy coding!

Greetings @ Burlington

El Bruno

PS: If you are a parent, you must know Pusheen The Cat

References

My blogs on Community Toolkit

Advertisements

#Windows10 – Windows Community Toolkit v3.0 te hace la vida increíblemente fácil si necesitas trabajar con la cámara en una #UWP App

giphy

Buenas!

Son días de mundial así que los posts serán cortos y al pie. Hoy me encontraba con la necesidad de trabajar con la cámara en una UWP App; y claro, son pocas líneas de código, pero pueden ser solo una. Recordé que la última versión de Windows Community Toolkit v3.0 nos permitia reducir el código a lo siguiente

Xaml code:

<controls:CameraPreview x:Name=”CameraPreviewControl” />

C# code:

await CameraPreviewControl.StartAsync(); ();

CameraPreviewControl.CameraHelper.FrameArrived += CameraPreviewControl_FrameArrived;

Increiblemente facil! Hace un tiempo ya escribi sobre como en versiones anteriores, podíamos trabajar con BlueTooth Low Energy también con un par de líneas de código, y como en la versión 1.2 (creo) este toolkit nos ayudaba a utilizar forma correcta el pool de conexiones de HttpClient.

Importante: si no has leído este post, deberías. La clase HttpClient te puede dar algunos dolores de cabeza si no conoces como funciona internamente.

Así que, hoy con solo 3 líneas he integrado la cámara a mi App y ya puedo seguir tranquilo viendo las sorpresas que nos deja el mundial!

Happy coding!

Saludos @ Burlington

El Bruno

PD: Si eres padre, debes conocer a Pusheen The Cat

References

My blogs on Community Toolkit

#Windows10 – Using #ONNX models embedded in UWP Apps in Windows 10

ONNX_1

Hi!

I was thinking about resting a little this weekend, however after yesterday’s news, I was able to try this

get-started1

And of course, this weekend activities will include be running, tons of family time and Machine Learning in Windows 10!

You want to know more? Well the best is to read

Greetings @ Burlington

El Bruno

#Windows10 – Utilizando modelos #ONNX directamente desde UWP Apps en Windows 10

ONNX_1

Buenas!

Yo pensaba descansar un poco este fin de semana, Sin embargodespués de la noticia de ayer, pude probar esto

get-started1

Y claro, este fin de semana será de running, familia y Machine Learning en Windows 10!

Quieres saber más? pues lo mejor es leer

Saludos @ Burlington

El Bruno

#Event – Materials used on “Lessons learned building #Hololens 3D apps from a 2D app developer”

 

Hi !

Yesterday I was lucky to get invited to participate in an event, and I shared my experiences learning on how to develop Apps for Hololens. (link). I was still kind of sick, so my voice was not as good as I want, however, I think the ideas were there :D.

As always, here are the materials for the event

The UrhoSharp samples apps is available here (link)

And this are the links I talked about during the event

Greetings @ Toronto

El Bruno

#Event – Materiales del evento “Lessons learned building #Hololens 3D apps from a 2D app developer”

 

Hola !

Ayer tuve la suerte de participar en un evento sobre Hololens, donde comenté mis experiencias creando apps para Hololens (link). Mi voz no me acompañó durante el evento, sin embargo creo que pude transmitir la idea y al final pasamos un buen rato.

Como siempre aquí estan los materiales

Y el código fuente de las apps basadas en UrhoSharp se pueden descargar desde aquí (link)

Y los links que comenté durante el evento

Saludos @ Toronto

El Bruno

#Kinect – #KinectSdk is part of the #WindowsSDK on #Windows10 (almost …)

1dyg15

Hello!

When Microsoft released Windows 10 Anniversary Version, one interesting news was related to adding part of the Kinect functionalities into the core of Windows 10. In addition to the camera, features such as IR or depth sensor can now be used with own operating system APIs. (my post on this)

As well, this week is has made official the incorporation of these features. And to be part of Windows 10, you can access them using a Kinect V2 or any other compatible device. In the references section, I will add some examples that have been published on GitHub. Most of them are in the Windows Universal Samples in CameraFrames.

An example of this can be the creation of a UWP app that uses Kinect, and which can be used in the same way on a PC or XBox One. Or a UWP app that use Kinect to perform tasks of Depth, and other Computer that uses an Intel Real Sense camera to perform the same task.

Important: If you are thinking about starting to migrate apps, better leave this on hold. The bodies / skeletons detection feature still is not part of Windows 10.

Greetings @ Toronto

El Bruno

References

#HoloLens – #URHOSharp Project Template for Visual Studio 2015

Hello!

Quick post on Sunday after I finished in a a very bad shape the Niagara Falls Half Marathon. Thanks to Egor Bogatob (@egorbo) we have a specific project template to create projects UWP for Hololens with URHOSharp.

 

holo-urhosharp-vs-template-02

Even if the project type is Universal Windows Platform, the way an App starts is kind of different from the one we have in the Visual Studio UWP template. In this one, we have to create a class of type HoloApplication and instantiating it from the Main() of our app..

clipboard02

There are more details to have in has, as the model that is used to to initialize them elements 3D or animations that will use in the App for Hololens. But well, it is not time to talk about this… fast post!

Greetings @ Toronto

El Bruno

References

#HoloLens – #URHOSharp Template para proyectos en Visual Studio 2015

Hola !

Post rápido de domingo que hoy he terminado muerto después de la media maratón de las cataratas del Niágara. Gracias a Egor Bogatob (@egorbo)  ya tenemos un template específico para crear proyectos UWP para Hololens con URHOSharp.

holo-urhosharp-vs-template-02

Si bien el tipo de proyecto es Universal Windows Platform, la forma en la que se inicia el mismo es diferente a la que tenemos en la plantilla de Visual Studio. En este caso, tenemos que crear una clase de tipo HoloApplication e instanciar la misma desde el Main() de nuestra app.

clipboard02

Hay más detalles a tener en cuenta, como el modelo que se usar para poder inicializar los elementos 3D o animaciones que usaremos en la App para Hololens. Pero bueno, no es momento de hablar de esto … post rápido !

Saludos @ Toronto

El Bruno

References

#Hololens – Now #Xamarin Devs can create Hololens Apps !

Hello!

Now Xamarin is on the path to be totally cool: Now Xamarin support Hololens ! Miguel de Icaza shocked us with the following announcement:

Xamarin already allowed us to work with UrhoSharp, 2D/3D engine  with support to code in C# or F #. And now the engine supports Hololens. So let’s start from here and let’s move to  GitHub to see some sample source code.

The main 2 code samples we have for this engine are quite interesting. On the one hand we have an example which allows us to control a mutant with voice commands. This sample is quite cool.

05

The other sample, is a 100% source code sample. It follows the basic steps of a 3D app

  • Create a scene
  • Enables the user interaction with the Scene. In this case with gesture AirTap
  • Creates a cube and it positions to 1 meter of the camera
  • In each event AirTap moves the cube in front of the point of view of the camera

Clipboard02.png

The truth is that is quite simple of use and to the have also the support of Xamarin back, think that there are enough scenarios where can be a choice interesting.

Greetings @ Toronto

El Bruno

References