Skip to Content

AI-102: What is DenseCaptionsResult in Azure AI Vision?

Prepare for the Microsoft Azure AI-102 exam with our guide on ‘DenseCaptionsResult’ and its role in image analysis. Master key concepts to excel in your certification journey.

Table of Contents

Question

The Xerigon Corporation uses the Azure AI Vision service.

You want to generate one-sentence descriptions of the contents in the following image.

You want to generate one-sentence descriptions of the contents in the following image.

The Analysis 4.0 API returns the following JSON response:

{
M I S S I N G ????: {
"values": [
{
"text": "a woman in the snow",
"confidence": 0.735620927810669,
"boundingBox": {
"x": 333,
"y": 633,
"w": 470,
"h": 391
}
},
{
"text": "a rock by a tree in front of the canyon walls",
"confidence": 0.5428450107574463,
"boundingBox": {
"x": 169,
"y": 511,
"w": 93,
"h": 468
}
},
{
"text": "a blurry image of a tree",
"confidence": 0.5139822363853455,
"boundingBox": {
"x": 425,
"y": 114,
"w": 534,
"h": 380
}
},
{
"text": "a blue sky above the canyon",
"confidence": 0.35495415329933167,
"boundingBox": {
"x": 573,
"y": 2,
"w": 716,
"h": 22
}
},
]
},
"modelVersion": "2024-02-01",
"metadata": {
"width": 850,
"height": 567
}
}

What is the missing part in the features query parameter?

A. “denseCaptions”
B. “denseCaptionsResult”
C. “CaptionResult”
D. “Caption”

Answer

B. “denseCaptionsResult”

Explanation

The JSON response is parsing the string for the contents with the “denseCaptionsResult” section instead of the “CaptionResult” section. The Analyze Image API in Azure AI services provides results based on “denseCaptionsResult” and “CaptionResult”. “CaptionResult” provides a basic description of all objects in the image while “denseCaptionsResult” provides finer grained detail and segmented analysis of up to 10 regions in the image. In this scenario, the descriptions reference multiple regions in the image.

You would not use “denseCaptions” or “Caption”. Both are features that generate a detailed description of an image, with the “denseCaptions” feature providing more granular detail. The “Caption” provides the output for the “denseCaptions” feature.

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