HOTSPOT (Drag and Drop is not supported)You develop an application that uses the Face API. You need to add multiple images to a person group.How should you complete the code? To answer, select the appropriate options in the answer area.NOTE: Each correct selection is worth one point.Hot Area:
Answer(s): A
Box 1: Stream The File.OpenRead(String) method opens an existing file for reading.Example: Open the stream and read it back. using (FileStream fs = File.OpenRead(path))Box 2: CreateAsyncCreate the persons for the PersonGroup. Persons are created concurrently. Example:await faceClient.PersonGroupPerson.CreateAsync(personGroupId, personName);
https://docs.microsoft.com/en-us/azure/cognitive-services/face/face-api-how-to-topics/how-to-add-faces
Your company uses an Azure Cognitive Services solution to detect faces in uploaded images. The method to detect the faces uses the following code.You discover that the solution frequently fails to detect faces in blurred images and in images that contain sideways faces.You need to increase the likelihood that the solution can detect faces in blurred images and images that contain sideways faces.What should you do?
Answer(s): D
Evaluate different models. The best way to compare the performances of the detection models is to use them on a sample dataset. We recommend calling the Face - Detect API on a variety of images, especially images of many faces or of faces that are difficult to see, using each detection model. Pay attention to the number of faces that each model returns.The different face detection models are optimized for different tasks. See the following table for an overview of the differences.
https://docs.microsoft.com/en-us/azure/cognitive-services/face/face-api-how-to-topics/specify-detection-model
You have the following Python function for creating Azure Cognitive Services resources programmatically.def create_resource (resource_name, kind, account_tier, location) : parameters = CognitiveServicesAccount(sku=Sku(name=account_tier), kind=kind, location=location, properties={}) result = client.accounts.create(resource_group_name, resource_name, parameters)You need to call the function to create a free Azure resource in the West US Azure region. The resource will be used to generate captions of images automatically.Which code should you use?
https://docs.microsoft.com/en-us/python/api/overview/azure/cognitive-services?view=azure-python
You are developing a method that uses the Computer Vision client library. The method will perform optical character recognition (OCR) in images. The method has the following code.During testing, you discover that the call to the GetReadResultAsync method occurs before the read operation is complete.You need to prevent the GetReadResultAsync method from proceeding until the read operation is complete.Which two actions should you perform? Each correct answer presents part of the solution.NOTE: Each correct selection is worth one point.
Answer(s): B,D
HOTSPOT (Drag and Drop is not supported)You are building an app that will enable users to upload images. The solution must meet the following requirements: •Automatically suggest alt text for the images. •Detect inappropriate images and block them. •Minimize development effort. You need to recommend a computer vision endpoint for each requirement. What should you recommend? To answer, select the appropriate options in the answer area. NOTE: Each correct selection is worth one point.
Box 1: https://westus.api.cognitive.microsoft.com/customvision/v3.1/prediction/projectid/classify/iterations/publishName/imageBox 2: https://westus.api.cognitive.microsoft.com/vision/v3.2/analyze/?visualFeatures=Adult,DescriptionComputer Vision can detect adult material in images so that developers can restrict the display of these images in their software. Content flags are applied with a score between zero and one so developers can interpret the results according to their own preferences.You can detect adult content with the Analyze Image API. When you add the value of Adult to the visualFeatures query parameterIncorrect:Use the Image Moderation API in Azure Content Moderator to scan image content. The moderation job scans your content for profanity, and compares it against custom and shared blocklists.
https://docs.microsoft.com/en-us/azure/cognitive-services/computer-vision/concept-detecting-adult-contenthttps://docs.microsoft.com/en-us/azure/cognitive-services/content-moderator/try-image-apihttps://docs.microsoft.com/en-us/legal/cognitive-services/custom-vision/custom-vision-cvs-transparency-note
Post your Comments and Discuss Microsoft AI-102 exam prep with other Community members:
Our website is free, but we have to fight against AI bots and content theft. We're sorry for the inconvenience caused by these security measures. You can access the rest of the AI-102 content, but please register or login to continue.