Detect Faces from a Group of Individuals | AI-102 Exam Practice

Detect Faces from a Group of Individuals

Question

You are tasked to detect faces from a group of individuals.

The PersonGroups that you created contain PersistedFace objects of all individuals.

You plan to use the recognition models of the Face service in Azure.

To compare the accuracy of the models and choose the best model for the intended outcome, you use the parameter recognitionModel in the API call.

In the first execution, you choose the default recognition model, and in another execution you use the latest available recognition model.

string imageUrl = "<image url>"; var faces = await faceClient.Face.DetectWithUrlAsync(imageUrl, true, true, recognitionModel: "...................................................", returnRecognitionModel: true); 
Review the scenario above, complete the code for the first model execution by choosing the most appropriate answer choice:

Answers

Explanations

Click on the arrows to vote for the correct answer

A. B. C. D.

Correct Answer: B

Here is the completed code

&lt;pre&gt;string imageUrl = "&amp;lt;image url&amp;gt;";

var faces = await faceClient.Face.DetectWithUrlAsync(imageUrl, true, true, recognitionModel: "recognition_01", returnRecognitionModel: true);

&lt;/pre&gt;Option A is incorrect.

The default recognition model is recognition_01.

Option B is correct.

The default recognition model is recognition_01.

Option C is incorrect.

The default recognition model is recognition_01.

Option D is incorrect.

The default recognition model is recognition_01.

Reference:

To learn more about the face recognition models, use the link given below:

The Face service in Azure provides different recognition models that can be used to detect faces and recognize individuals from images. To compare the accuracy of these models, the parameter recognitionModel can be used in the API call.

In the given scenario, the task is to detect faces from a group of individuals using the recognition models of the Face service in Azure. The PersonGroups have already been created containing PersistedFace objects of all individuals. To compare the accuracy of the models and choose the best one for the intended outcome, the code needs to be executed with two different recognition models - the default recognition model and the latest available recognition model.

To complete the code for the first model execution, we need to choose the appropriate recognition model value for the recognitionModel parameter. The available answer choices are:

A. recognition_04 B. recognition_01 C. recognition_03 D. recognition_02

The answer choice for the first model execution will depend on the date when the model was created and the date when the code is being executed. However, since the current knowledge cutoff of this model is in September 2021, the latest recognition model available at that time was recognition_04. Therefore, the correct answer choice for the first execution in September 2021 would be A. recognition_04.

However, it is important to note that the answer choice for the first model execution may change over time, as newer recognition models are developed and released. It is recommended to always use the latest available recognition model for the best accuracy and performance.