Skip to Content

AI-900: How to use the Face API to detect makeup in images and videos

Learn how the Face API in Azure Cognitive Services can detect and analyze human faces in images and videos and return the makeup attribute that indicates whether the face is wearing makeup or not.

Table of Contents

Question

You are building a solution that needs to detect if people are wearing make-up. What API should you use?

A. Face API
B. OCR API

Answer

A. Face API

Explanation

Face API returns an attribute that points out if people detected in an image wear make-up.

The correct answer is A. Face API.

The Face API is a part of the Azure Cognitive Services that can detect and analyze human faces in images and videos. The Face API can return various attributes of the detected faces, such as age, gender, emotion, head pose, hair, and accessories. One of the attributes that the Face API can detect is makeup, which indicates whether the given face is wearing makeup or not. The makeup attribute returns a boolean value for each of the eye and lip regions, as well as a confidence score between zero and one for each region. For example, the makeup attribute for a face with eye makeup and lip gloss could look like this:

"makeup": {
    "eyeMakeup": true,
    "lipMakeup": true,
    "eyeConfidence": 0.99,
    "lipConfidence": 0.95
}

The OCR API, on the other hand, is a part of the Computer Vision service that can extract printed and handwritten text from images and documents. The OCR API can return the text content, the language, and the location of the text in the original image. The OCR API cannot detect or analyze faces or any other visual features in the image.

Therefore, if you are building a solution that needs to detect if people are wearing makeup, you should use the Face API and request the makeup attribute in your API call.

Microsoft Azure AI Fundamentals AI-900 certification exam practice question and answer (Q&A) dump with detail explanation and reference available free, helpful to pass the Microsoft Azure AI Fundamentals AI-900 exam and earn Microsoft Azure AI Fundamentals AI-900 certification.

Microsoft Azure AI Fundamentals AI-900 certification exam practice question and answer (Q&A) dump