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:
Click on the arrows to vote for the correct answer
A. B. C. D.Correct Answer: B
Here is the completed code
<pre>string imageUrl = "&lt;image url&gt;";
var faces = await faceClient.Face.DetectWithUrlAsync(imageUrl, true, true, recognitionModel: "recognition_01", returnRecognitionModel: true);
</pre>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:
In this scenario, you are tasked with detecting faces from a group of individuals using 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.
The code snippet provided in the question is using the Face API method DetectWithUrlAsync()
, which detects faces in an image using a specific recognition model.
To complete the code for the first model execution, you need to choose the appropriate value for the recognitionModel parameter. The available options for this parameter are:
recognition_01
recognition_02
recognition_03
recognition_04
These values represent different versions of the recognition model used by the Face service, with recognition_04
being the latest version available at the time of writing.
When choosing the appropriate value for the recognitionModel parameter, you should consider the trade-offs between accuracy and performance. Generally, newer recognition models tend to have higher accuracy but may require more processing power and time to run.
Given that the first execution is using the default recognition model, which is likely to be the oldest and most widely tested model, it is safe to assume that it would provide good performance while still delivering a reasonable level of accuracy. Therefore, the most appropriate answer choice for the first execution would be recognition_01
.
Here's the completed code for the first execution using recognition_01:
phpstring imageUrl = "<image url>"; var faces = await faceClient.Face.DetectWithUrlAsync(imageUrl, true, true, recognitionModel: "recognition_01", returnRecognitionModel: true);
Once you have run this code and assessed the accuracy of the results, you can then run the same code again but with a different recognition model value to compare the accuracy and performance of the different models.