exam questions

Exam AI-102 All Questions

View all questions & answers for the AI-102 exam

Exam AI-102 topic 2 question 14 discussion

Actual exam question from Microsoft's AI-102
Question #: 14
Topic #: 2
[All AI-102 Questions]

HOTSPOT -
You develop a test method to verify the results retrieved from a call to the Computer Vision API. The call is used to analyze the existence of company logos in images. The call returns a collection of brands named brands.
You have the following code segment.

For each of the following statements, select Yes if the statement is true. Otherwise, select No.
NOTE: Each correct selection is worth one point.
Hot Area:

Show Suggested Answer Hide Answer
Suggested Answer:
Box 1: Yes -

Box 2: Yes -
Coordinates of a rectangle in the API refer to the top left corner.

Box 3: No -
Reference:
https://docs.microsoft.com/en-us/azure/cognitive-services/computer-vision/concept-brand-detection

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
halfway
Highly Voted 2 years, 1 month ago
Maybe I take it too literally, but I think the third one is "NO": the response returns Width and Height, which can be used to calculate the coordinates of bottom right corner, but it does not include them directly.
upvoted 13 times
...
M25
Highly Voted 1 year, 3 months ago
Y, Y, N https://learn.microsoft.com/en-us/azure/ai-services/computer-vision/how-to/shelf-analyze#bounding-box-api-model x Left-coordinate of the top left point of the area, in pixels. y Top-coordinate of the top left point of the area, in pixels. w Width measured from the top-left point of the area, in pixels. h Height measured from the top-left point of the area, in pixels.
upvoted 12 times
rdemontis
1 year, 1 month ago
thanks for posting the documentation
upvoted 2 times
...
...
mrg998
Most Recent 3 months ago
yes yes no
upvoted 1 times
...
EngT
4 months, 3 weeks ago
I cant see anythig related to corner position in the api. Then its Y, Y, Y
upvoted 1 times
EngT
4 months, 3 weeks ago
Nop , based on documentation its top left - so its Y Y N
upvoted 2 times
...
...
taiwan_is_not_china
6 months, 2 weeks ago
The correct sequence is Yes Yes No.
upvoted 3 times
...
nanaw770
6 months, 3 weeks ago
This is the same question as Topic2 #29.
upvoted 2 times
...
takaimomoGcup
6 months, 3 weeks ago
Yes Yes No
upvoted 3 times
...
takaimomoGcup
6 months, 3 weeks ago
Yes Yes No
upvoted 2 times
...
michaelmorar
7 months, 2 weeks ago
The brand_confidence variable is not declared in the snippet. Perhaps they meant brand.confidence? Same with rectangle_x . As it stands, the answers should be N,N,N.
upvoted 2 times
...
[Removed]
8 months ago
The Python syntax for working with Python dictionaries is wrong. Remember we are calling the API which returns a JSON object. brand.rectangle_x - WRONG - it should be brand.rectangle.x brand_confidence - WRONG - should be brand.confidence So the answer should be N for all!
upvoted 1 times
...
varinder82
8 months, 3 weeks ago
Final Answer: Yes Yes No
upvoted 2 times
...
RAN_L
1 year, 9 months ago
The code will return the name of each detected brand with a confidence equal to or higher than 75 percent. Yes, the code will return the name of each detected brand with a confidence equal to or higher than 75 percent. 2. The code will return coordinates for the top-left corner of the rectangle that contains the brand logo of the displayed brands. Yes, the code will return the coordinates for the top-left corner of the rectangle that contains the brand logo of the displayed brands. 3. The code will return coordinates for the bottom-right corner of the rectangle that contains the brand logo of the displayed brands. No, the code will not return coordinates for the bottom-right corner of the rectangle that contains the brand logo of the displayed brands. The code is printing the width and height of the rectangle instead.
upvoted 2 times
...
VinnieG
1 year, 11 months ago
it could be a trap : so yes, no (it is rectangle.x and not _x) , no (should be x + w as the service returns the width and top left corner : Console.WriteLine("Brands:"); foreach (var brand in results.Brands) { Console.WriteLine($"Logo of {brand.Name} with confidence {brand.Confidence} at location {brand.Rectangle.X}, " + $"{brand.Rectangle.X + brand.Rectangle.W}, {brand.Rectangle.Y}, {brand.Rectangle.Y + brand.Rectangle.H}"); } Console.WriteLine(); https://learn.microsoft.com/en-us/azure/cognitive-services/computer-vision/how-to/call-analyze-image?tabs=csharp
upvoted 2 times
TJ001
6 months, 3 weeks ago
hope it is a typo. explanation is spot on
upvoted 1 times
...
rober13
9 months, 2 weeks ago
it is true, it is a trick. Yes,No,No
upvoted 1 times
...
...
rafael0
2 years ago
its' yes yes no The coordinates are always regarding the top left point of the rectangle
upvoted 3 times
...
oliverio
2 years, 2 months ago
Y Y Y the code will return the coordinates for any position
upvoted 1 times
...
Anulf
2 years, 2 months ago
yes yes yes
upvoted 1 times
Davard
2 years, 2 months ago
What makes the third one "yes"?
upvoted 2 times
Anulf
2 years, 2 months ago
According to the microsoft Documetn, Ithought so. What makes yu think it is No ?
upvoted 2 times
GigaCaster
2 years, 1 month ago
if you look at the code it is _x and not .x
upvoted 2 times
AzureJobsTillRetire
1 year, 10 months ago
I think that is a typo
upvoted 2 times
...
...
...
...
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago