Analyze Images for Sunglasses in Charity Event | AI-900 Exam Answer

What to Use for Image Analysis in Charity Event

Question

You run a charity event that involves posting photos of people wearing sunglasses on Twitter.

You need to ensure that you only retweet photos that meet the following requirements:

-> Include one or more faces.

-> Contain at least one person wearing sunglasses.

What should you use to analyze the images?

Answers

Explanations

Click on the arrows to vote for the correct answer

A. B. C. D.

B

https://docs.microsoft.com/en-us/azure/cognitive-services/face/overview

To analyze the images and ensure that only the photos that meet the requirements are retweeted, we can use the Cognitive Services APIs provided by Microsoft Azure.

In this scenario, we need to identify the faces in the images and determine whether or not they are wearing sunglasses.

Option A - the Verify operation in the Face service: The Verify operation in the Face service is used to compare two faces to determine if they belong to the same person. It is not suitable for this scenario because we need to analyze multiple faces in an image, not compare two faces.

Option B - the Detect operation in the Face service: The Detect operation in the Face service is used to detect faces in an image and extract facial features such as age, gender, and emotions. It also returns information about whether the face is wearing glasses or not. This operation can be used to identify the faces in the images and determine if they are wearing sunglasses. Therefore, Option B is a suitable choice for this scenario.

Option C - the Describe Image operation in the Computer Vision service: The Describe Image operation in the Computer Vision service is used to generate a textual description of the contents of an image, including objects, people, and their attributes. It is not suitable for this scenario because we need to analyze whether or not people are wearing sunglasses, which is not a standard attribute returned by this operation.

Option D - the Analyze Image operation in the Computer Vision service: The Analyze Image operation in the Computer Vision service is used to extract rich information from an image, including objects, people, text, and their attributes. This operation can be used to identify the faces in the images and determine if they are wearing sunglasses. Therefore, Option D is also a suitable choice for this scenario.

In summary, both the Detect operation in the Face service (Option B) and the Analyze Image operation in the Computer Vision service (Option D) can be used to analyze the images and meet the requirements of the scenario.