What is the default value for the face recognition model when creating a new Group Person?

Jose Ismael Vasquez Mendoza 0 Reputation points
2024-04-23T14:26:57.12+00:00

I'm working with the Azure Face API service for face recognition and identification. Most of my implementation is complete, but I've encountered an issue while creating a new Person Group. I'm passing the recognitionModel parameter, but it's being assigned a value of null instead of the value I'm providing. According to the documentation, if no value is assigned, it should default to the default recognition model. Can you help me understand why this parameter is not being set correctly and also what is the default recognition model that is being assigned?

public async Task<PersonGroup> CreatePersonGroup(string personGroupId, string groupName, string userData)

{

await _faceClient.PersonGroup.CreateAsync(personGroupId: personGroupId, name: groupName, userData: userData, recognitionModel: RecognitionModel.Recognition04);

var personGroup = await _faceClient.PersonGroup.GetAsync(personGroupId);

return personGroup;

}
response body:

{ "personGroupId": "test-new", "name": "test", "userData": "test", "recognitionModel": null }

Azure Face
Azure Face
An Azure service that provides artificial intelligence algorithms that detect, recognize, and analyze human faces in images.
165 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. romungi-MSFT 46,751 Reputation points Microsoft Employee
    2024-04-30T13:00:45.0333333+00:00

    @Jose Ismael Vasquez Mendoza As per the reference it should be recognition_01

    I also see that this method takes the values 'recognition_01', 'recognition_02'

    User's image

    I think this might be the reason it returns null since recognition_04 is not accepted for person groups. I hope this helps!!

    If this answers your query, do click Accept Answer and Yes for was this answer helpful. And, if you have any further query do let us know.

    1 person found this answer helpful.

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.