Exam AI-102 All QuestionsBrowse all questions from this exam
Question 70

HOTSPOT -

You are developing an application that will use the Computer Vision client library. The application has the following code.

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:

    Correct Answer:

    Box 1: No -

    Box 2: Yes -

    The ComputerVision.analyzeImageInStreamAsync operation extracts a rich set of visual features based on the image content.

    Box 3: No -

    Images will be read from a stream.

    Reference:

    https://docs.microsoft.com/en-us/java/api/com.microsoft.azure.cognitiveservices.vision.computervision.computervision.analyzeimageinstreamasync

Discussion
motu

Box 3 is Yes, the stream will be generated from a local image!

Adedoyin_Simeon

Box 3 should be Yes, a stream is only a pathway for data. and in this case the data actually comes from a local file. The correct answer would be No, Yes, Yes.

zellck

NYY is the answer. https://learn.microsoft.com/en-us/java/api/com.microsoft.azure.cognitiveservices.vision.computervision.computervision?view=azure-java-legacy#com-microsoft-azure-cognitiveservices-vision-computervision-computervision-analyzeimageinstreamasync(byte-()-analyzeimageinstreamoptionalparameter) his operation extracts a rich set of visual features based on the image content. Two input methods are supported (1) Uploading an image or (2) specifying an image URL.

Lion007

NYN Box 3: No.... because the image (whether uploaded or a URL), the CODE will read it as a An image STEAM. Please continue reading the same URL you shared.

propanther

File.OpenRead is a System.IO method and reads file from the local storage path provided as a parameter hence last one is Y as it reads file from local storage https://learn.microsoft.com/en-us/dotnet/api/system.io.file.openread?view=net-7.0

gary_cooper

The code will perform face recognition --> No The code will list tags and their associated confidence --> Yes The code will read a file from the local file system --> Yes

ninjia

Box 1: No. The code generates description and tags. See line 3,4 Box 2: Yes. The code displays tag.Name and tag.Confidence Box 3: Yes. File.OpenRead reads a local file. See https://docs.microsoft.com/en-us/dotnet/api/system.io.file.openread?view=net-6.0

sumanshu

Not A Face Recognition, But Analyze the Image (i.e. extract information from the images) Console.write shows, it will return TAG and Confidence File.Openread(localImage) - Will read from local system NO YES YES

ARM360

The code will perform face recognition. No. The code is set to analyze image descriptions and tags (VisualFeatureTypes.Description, VisualFeatureTypes.Tags), but it does not include face recognition. The code will list tags and their associated confidence. Yes. The code includes a loop that iterates through results.Tags and prints each tag's name and confidence. The code will read a file from the local file system. Yes. The code uses File.OpenRead(localImage) to open and read an image file from the local file system. So, the answers are: The code will perform face recognition. No The code will list tags and their associated confidence. Yes The code will read a file from the local file system. Yes

anntv252

No Yes Yes Image analysis Return the category and confident score Read local video streaming or streaming source

rdemontis

To me correct answers are NYY. localImage parameter is a string, that's a file path

mohamedba

Answer is NYY

hatanaoki

No Yes Yes

Eltooth

No Yes Yes

anto69

N - Y - Y

p2006

https://learn.microsoft.com/en-us/azure/ai-services/computer-vision/quickstarts-sdk/image-analysis-client-library?tabs=windows%2Cvisual-studio&pivots=programming-language-csharp#analyze-image

michaelmorar

The fact that the parameter is named 'local', might be misleading - it could be anything. HOWEVER, I'm not a C# expert, but File.OpenRead tells us that the file is on a filesystem to which the device has access. SO my vote is NYY

varinder82

Final Answer: N Y Y

gursimran_s

https://docs.microsoft.com/en-us/java/api/com.microsoft.azure.cognitiveservices.vision.computervision.computervision.analyzeimageinstreamasync?view=azure-java-legacy