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 }