"Face - Find Similar" returning a nonexistent "persistedFaceId"

Lucas 1 Reputation point
2021-03-25T03:39:42.76+00:00

Hey folks!
I started using the API and everything seems to be working fine, except for this small thing, every time I test the Find Similar API, it returns with confidence of over 0.90 (that is correct), but with a persistedFaceId that doesn't exist on my LargeFaceList.

Steps:

  1. I created a LargeFaceList
  2. I added a face to it
  3. I "trained" the List
  4. I run "LIST FACE" and I can see the face that I just added
  5. I use Face Detect to generate a temporary faceID
  6. With the previous ID, I run FIND SIMILAR again my LargeFaceList
  7. The result returned is a "persistedFaceId" with a confidence >0.94

But the returned "persistedFaceId" is not the same on my LargeFaceList.

Anyone ever faced this issue?
Thank you!


Additional Info:

  • All the API calls are being made from an Angular app
  • The images used in the API are stored in Firebase
  • No errors on console
Azure Face
Azure Face
An Azure service that provides artificial intelligence algorithms that detect, recognize, and analyze human faces in images.
183 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. romungi-MSFT 48,916 Reputation points Microsoft Employee Moderator
    2021-03-25T08:48:29.123+00:00

    @Lucas I think this is an expected behavior with the Detect Face API because the unique faceId of the detected face, created by detection API will expire 24 hours after the detection call. I think you should look at the persistedFaceId field of the find similar API response and check if the returned value is same as the candidate face id in the faceListId or largeFaceListId. persistedFaceId in face list/large face list is persisted and will not expire.

    You can run a quick test of this from the API console and then make required changes on your app if required.

    0 comments No comments

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.