Skip to Content

AI-900: What Azure AI service operation should you use to analyze photos for faces with sunglasses?

Learn how to use the Azure Computer Vision Analyze Image operation to detect faces wearing sunglasses in photos for event social media posts. The Analyze Image operation provides detailed image analysis capabilities.

Table of Contents

Question

You are organizing an event that involves posting photos of people wearing sunglasses on social media. You need to ensure that you only share photos that meet the following requirements:

  1. Include one or more faces.
  2. Contains at least one person wearing sunglasses.

What should you use to analyze the images?

A. the Describe Image operation in the Computer Vision service.
B. the Detect operation in the Face service.
C. the Verify operation in the Face service.
D. the Analyze Image operation in the Computer Vision service.

Answer

D. the Analyze Image operation in the Computer Vision service.

Explanation

To meet the requirements of only sharing event photos that include one or more faces with at least one person wearing sunglasses, you should use the Analyze Image operation in the Azure Computer Vision service.

The Analyze Image operation provides powerful image analysis capabilities, including the ability to detect faces and categorize facial attributes like the presence of sunglasses. By passing an image to the Analyze Image API endpoint, it will return a JSON response containing detailed information about the image contents.

Specifically, the Analyze Image operation can detect faces in the photo and indicate if any of the detected faces are wearing sunglasses via the “accessories” property in the API response. This allows you to programmatically check if an image meets your criteria of having at least one face with sunglasses.

The other options mentioned would not be suitable for this scenario:

A) The Describe Image operation generates a human-readable description of an image, but does not provide structured data about facial attributes like sunglasses.

B) The Detect operation in the Face service can detect faces, but does not directly categorize facial accessories like sunglasses. Additional analysis would be needed.

C) The Verify operation in the Face service is used for comparing two faces to determine if they belong to the same person. It is not applicable for general facial attribute detection.

Therefore, using the Analyze Image operation in the Azure Computer Vision service is the best choice for analyzing photos to detect faces wearing sunglasses before sharing on social media for your event.

The operation can provide insights about the contents of an image, including detecting objects such as sunglasses and identifying faces. This functionality will allow you to ensure that the photos meet both requirements: having one or more faces and containing at least one person wearing sunglasses.

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

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.