How should I check whether this detected face existed in the face API storage, else add the detected face to the particular personId of the person group?
Example of List Persons in a Person Group (JSON format):
[{
"personId": "1234",
"persistedFaceIds": ["0987"],
"name": "Mary",
"userData": null
}, {
"personId": "5678",
"persistedFaceIds": ["6543", "2109"],
"name": "John",
"userData": null
}]
I tried to detect the face first then use verify. However, it only verifies the detected face id and the personId in the person group. Is there a way to verify between detected face id with each persistent face id reside in the personId, so the confidence score is 1? Else add the detected face to the person group based on the name.