AI-102 Question 119
Select 3You are designing a solution that uses Azure Cognitive Services' Computer Vision API to analyze images uploaded to a storage account. The solution must identify objects in the images and provide the associated confidence scores. After processing an image, the response JSON contains the following snippet:
{ "objects": [ { "object": "dog", "confidence": 0.85, "rectangle": { "x": 150, "y": 200, "w": 120, "h": 90 } }, { "object": "cat", "confidence": 0.75, "rectangle": { "x": 300, "y": 400, "w": 100, "h": 80 } } ] }
What conclusions can you draw from this response?
- A
The image contains both a dog and a cat with their respective locations indicated by bounding rectangles.
- B
The confidence score for the presence of a dog in the image is higher than the confidence score for the cat.
- C
The rectangle dimensions represent the physical size of the objects in real-world units.
- D
The x and y values in the rectangle represent the center of the bounding box for each object.
- E
The API has identified the objects with confidence scores above 0.5, indicating a high level of certainty.
Show answer and explanation
Correct answers: A, B, E
Explanation
The Azure Computer Vision API response provides detailed information about objects detected in an image, including object names, confidence scores, and bounding box coordinates. This question tests the ability to correctly interpret the structure and meaning of the response JSON, which is essential for designing AI solutions using Azure Cognitive Services.
- A. Correct.
Correct: The response clearly indicates that a dog and a cat were detected, and their bounding rectangles (x, y, w, h) describe their positions in the image.
- B. Correct.
Correct: The confidence score for the dog (0.85) is higher than the confidence score for the cat (0.75), as clearly shown in the JSON snippet.
- C. Incorrect.
Incorrect: The rectangle dimensions (w and h) represent pixel dimensions in the image, not physical real-world units.
- D. Incorrect.
Incorrect: The x and y values in the rectangle represent the top-left corner of the bounding box, not the center.
- E. Correct.
Correct: The confidence scores for both the dog and the cat are above 0.5, which typically indicates a high level of certainty in object detection results.