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.

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

Alex Lim is a certified IT Technical Support Architect with over 15 years of experience in designing, implementing, and troubleshooting complex IT systems and networks. He has worked for leading IT companies, such as Microsoft, IBM, and Cisco, providing technical support and solutions to clients across various industries and sectors. Alex has a bachelor’s degree in computer science from the National University of Singapore and a master’s degree in information security from the Massachusetts Institute of Technology. He is also the author of several best-selling books on IT technical support, such as The IT Technical Support Handbook and Troubleshooting IT Systems and Networks. Alex lives in Bandar, Johore, Malaysia with his wife and two chilrdren. You can reach him at [email protected] or follow him on Website | Twitter | Facebook

    Ads Blocker Image Powered by Code Help Pro

    Your Support Matters...

    We run an independent site that is committed to delivering valuable content, but it comes with its challenges. Many of our readers use ad blockers, causing our advertising revenue to decline. Unlike some websites, we have not implemented paywalls to restrict access. Your support can make a significant difference. If you find this website useful and choose to support us, it would greatly secure our future. We appreciate your help. If you are currently using an ad blocker, please consider disabling it for our site. Thank you for your understanding and support.