Microsoft Cognitive Services Emotion API with Xamarin apps

The Challenge

In this challenge, you will use one of the Microsoft Cognitive Services API's to bring intelligence to a Xamarin cross-platform application.

The goal is to use the Microsoft Cognitive Services Emotion API to get your happiness percentage after taking a picture of yourself with the device/emulator camera.

The walkthrough below should help you with the challenge, but you can also get in touch with @benjiiim or @aspenwilder with questions--both of whom are on site at Evolve and happy to help!

This challenge requires either:

  • Visual Studio 2015 Update 2 (with Xamarin tools installed)
  • Xamarin Studio with either an Android or iOS phone

Challenge Walkthrough

Get a Cognitive Service Emotion API trial key

  1. To get a trial key and be able to use the Emotion API, go to www.microsoft.com/cognitive-services, use the My account link on the top-right corner and login with a Microsoft Account (ex Live ID).

  2. Click on the "Request new trials" button, choose the Emotion API product and accept the terms of service and the privacy statement to subscribe.

  3. Keep one of the generated keys with you as you will need it later.

Build either an Android or iOS App

Android

iOS

Bonus Challenge #1 Walkthrough

Universal Windows Platform