Recognize emotions in images
The Emotion API takes a facial expression in an image as an input, and returns the confidence across a set of emotions for each face in the image, as well as bounding box for the face, using the Face API. If a user has already called the Face API, they can submit the face rectangle as an optional input.
The emotions detected are anger, contempt, disgust, fear, happiness, neutral, sadness, and surprise. These emotions are understood to be cross-culturally and universally communicated with particular facial expressions.
See it in action
By uploading data for this demo you agree that Microsoft may store it and use it to improve Microsoft services, such as making this API better. To help protect your privacy, we take steps to de-identify your data and keep it secure. We won’t publish your data or let other people use it.
Want to build this?
Recognize emotions in video
The Emotion API for Video recognizes the facial expressions of people in a video, and returns a summary of their emotions. You can use this API to track how a person or a crowd responds to your content over time. The emotions detected are anger, contempt, disgust, fear, happiness, neutral, sadness, and surprise.
Recognize emotions in near real-time by extracting frames of a video and then sending those frames to the API calls of your choice. Get results faster and quickly start coding using our sample on GitHub.
Learn moreSee it in action
Want to build this?
"Because the Cognitive Services APIs harness the power of machine learning, we were able to bring advanced intelligence into our product without the need to have a team of data scientists on hand"
Aaron Edell: Chief Product Owner | GrayMeta
"Using the Cognitive Services APIs, it took us three months to develop a test pair of glasses that can translate text and images into speech, identify emotions, and describe scenery. If we had been working full time, we could have done it in two weeks"
Benoit Chirouter: R&D Director | Pivothead
"It didn’t take us long to realize Microsoft Cognitive Services had handed us a powerful set of computer-vision and artificial-intelligence tools that we could use to create great apps and new features for our customers in just a few hours"
John Fan: Cofounder and CEO | Cardinal Blue Software
Check out the other Cognitive Services APIs
Computer Vision API
Distill actionable information from images
Content Moderator
Automated image, text, and video moderation
Video API PREVIEW
Intelligent video processing
Video Indexer PREVIEW
Unlock video insights
Face API
Detect, analyze, organize, and tag faces in photos
Emotion API PREVIEW
Personalize user experiences with emotion recognition
Custom Vision Service PREVIEW
Easily customize your own state-of-the-art computer vision models for your unique use case.
Language Understanding Intelligent Service PREVIEW
Teach your apps to understand commands from your users
Bing Spell Check API
Detect and correct spelling mistakes in your app
Web Language Model API PREVIEW
Use the power of predictive language models trained on web-scale data
Text Analytics API PREVIEW
Easily evaluate sentiment and topics to understand what users want
Translator Text API
Easily conduct machine translation with a simple REST API call
Linguistic Analysis API PREVIEW
Simplify complex language concepts and parse text with the Linguistic Analysis API.
Translator Speech API
Easily conduct real-time speech translation with a simple REST API call
Bing Speech API
Convert speech to text and back again to understand user intent
Speaker Recognition API PREVIEW
Use speech to identify and authenticate individual speakers
Custom Speech Service PREVIEW
Overcome speech recognition barriers like speaking style, background noise, and vocabulary
Bing Autosuggest API
Give your app intelligent autosuggest options for searches
Bing News Search API
Search for news and get comprehensive results
Bing Web Search API
Get enhanced search details from billions of web documents
Bing Image Search API
Search for images and get comprehensive results
Bing Video Search API
Search for videos and get comprehensive results
Bing Custom Search PREVIEW
An easy-to-use, ad-free, commercial-grade search tool that lets you deliver the results you want.
Recommendations API PREVIEW
Predict and recommend items your customers want
Knowledge Exploration Service PREVIEW
Enable interactive search experiences over structured data via natural language inputs
Entity Linking Intelligence Service API PREVIEW
Power your app's data links with named entity recognition and disambiguation.
Academic Knowledge API PREVIEW
Tap into the wealth of academic content in the Microsoft Academic Graph
QnA Maker API PREVIEW
Distill information into conversational, easy-to-navigate answers.
Custom Decision Service PREVIEW
A cloud-based, contextual decision-making API that sharpens with experience
Project Prague
Gesture based controls
Project Nanjing
Isochrones calculations
Project Johannesburg
Route logistics
Project Cuzco
Event associated with Wikipedia entries
Project Abu Dhabi
Distance matrix
Project Wollongong
Location insights