I’ve been spending quite a bit of time recently getting more familiar with some of the advanced workloads in Microsoft Azure. After all, infrastructure as a service is commodity, so I’m looking at services that can be used to drive real value for my customers (more on that in another post…).
Yesterday, was our team meeting – with all but one of the risual Architects getting together, including some coaching from Microsoft around data and intelligence services. I was particularly taken with some of the demonstrations of Cognitive Services, so I set about getting some sample code to work for me…
Building the Intelligent Kiosk sample application
First up, I needed to install Visual Studio 2015 (Community Edition is fine) – it took a while, and needed admin credentials (so a visit to our support team) but eventually it installed on my PC.
Then, I downloaded the sample code for the “Intelligent Kiosk” from Github. F5 to build the solution told me that:
A project with an Output Type of Class Library cannot be started directly.
In order to debug this project, add an executable project to this solution which references the library project. Set the executable project as the startup project.
The Intelligent Kiosk sample code is a Universal Windows Platform (UWP) app, so I ignored that message, continued with the build, and tracked down the resulting IntelligentKioskSample.exe file. Trying to run that told me:
This application can only run in the context of an app container.
Installing the Intelligent Kiosk sample application
The application package comes with a PowerShell script to install it (Add-AppDevPackage.ps1), but I found I needed to follow these steps:
- Enable developer mode in Windows 10 Settings
- Restart the PC
- Open a PowerShell session as an Administrator and run:
Now the app is ready and available via the Start Menu…
Running the Intelligent Kiosk sample application
- Get some API keys (for free) from the Microsoft Cognitive Services site.
- Run the Intelligent Kiosk app.
- Go to settings and paste in your API keys.
- Have some fun with the demos!