QuestionQ100

Implement computer vision solutions

You are developing a test method to verify results retrieved from a call to the Azure Vision in Foundry Tools API. The call is used to analyze the existence of company logos in images, and it returns a collection of brands named brands. You have the following code segment:

Question Image

For each of the following statements, select Yes if the statement is true. Otherwise, select No.

Yes or No
StatementsYesNo
The code will display the name of each detected brand with a confidence equal to or higher than 75 percent.
The code will display coordinates for the top-left corner of the rectangle that contains the brand logo of the displayed brands.
The code will display coordinates for the bottom-right corner of the rectangle that contains the brand logo of the displayed brands.
Explanation

In the Azure Vision (Image Analysis) brand detection response, each detected brand object includes a name, a confidence score, and a rectangle object with properties x, y, w, and h. The x and y values represent the coordinates of the top-left corner of the bounding box around the logo, while w and h represent the width and height of that box — they do not represent the coordinates of the bottom-right corner. To compute the bottom-right corner, one would need to calculate x + w and y + h, which the code segment does not do; it only prints rectangle.w and rectangle.h directly. Therefore the code correctly displays each detected brand's name when confidence is at least 0.75, and correctly displays the top-left corner coordinates (x, y), but does not display the bottom-right corner coordinates.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!