question

Lucas-3509 avatar image
0 Votes"
Lucas-3509 asked romungi-MSFT answered

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

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
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

romungi-MSFT avatar image
0 Votes"
romungi-MSFT answered

@Lucas-3509 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.


5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.