How To Create Microsoft Cognitive Service Emotion API On Azure Portal

Prerequisites

  • Azure account.

Microsoft Cognitive Services provide us the ability to build apps with powerful algorithms, using just a few lines of code. These services work across devices and platforms, such as iOS, Android, and Windows, keep improving, and are easy to set up.

APIs, given below, are available under Microsoft Azure Cognitive Services.

  • Face API
  • Emotion API
  • Computer Vision API
  • Bing Speech API
  • Speaker Recognition API
  • Language Understanding Intelligent Service
  • Text Analytics API
  • Web Language Model API
  • Bing Spell Check API
  • Recommendations API
  • Academic Knowledge API
  • Bing Search APIs
  • Bing Autosuggest API

Now, let's discuss about the Emotion API and how to create an Emotion API Service on Azure Portal.

Emotion API

The Emotion API beta takes an image as an input, and returns a set of emotions for each face in the image, as well as a binding box for the face, from the Face API. The emotions detected are happiness, sadness, surprise, anger, fear, contempt, disgust or neutral. These emotions are communicated cross-culturally and universally via the same basic facial expressions, which are identified by Emotion API.

Create a new Emotion API in Azure Portal

Now, let's get started with the following steps.

Step 1

Sign in to the online Microsoft Azure Portal.

Step 2

Click “+NEW” and choose “Intelligence + Analytics”. Select “Cognitive Service API”.



Step 3

In the new account blade, enter the Account Name, select Subscription and select API type as Emotion API from the list of available API's.



Step 4

Next, we need to choose Location, Pricing tier, and Resource group.



Step 5

Next, we need to "Accept" the license term.



Step 6

Finally, click "Create" button to create a Cognitive Service.



A few minutes later, we will see that the Emotion API dashboard appears. Then, we can download the Emotion APIs and use them in our project.



Summary

So, this is how we create Emotion APIs on Microsoft Azure Portal.

Up Next
    Ebook Download
    View all
    Learn
    View all