- Newest
- Most votes
- Most comments
When you index a face using Amazon Rekognition's IndexFaces operation, the face is immediately added to the collection and should be available for searching without any additional delay or synchronization. The FaceId returned by the IndexFaces operation is valid and can be used immediately for subsequent operations like SearchFaces.
However, it's important to note that Amazon Rekognition uses distributed systems, which means that in rare cases, there might be a very brief delay before the indexed face is fully searchable across all of Amazon Rekognition's servers. This delay is typically imperceptible and should not affect most use cases.
If you're experiencing issues where the face ID cannot be found immediately after indexing, it could be due to other factors:
- Ensure you're using the correct FaceId returned by the IndexFaces operation.
- Verify that you're searching in the same collection where the face was indexed.
- Check that you're using the same AWS region for both indexing and searching operations.
If you're still encountering issues, it might be worth implementing a retry mechanism with a short delay (e.g., a few seconds) between attempts. This can help mitigate any potential edge cases related to data propagation in the distributed system.
It's also worth noting that for more robust face recognition, you might want to consider using user vectors instead of individual face vectors. User vectors aggregate multiple face vectors of the same person, which can improve search accuracy significantly compared to using single face vectors.
Sources
Amazon Rekognition – frequently asked questions - AWS
Managing face collections, faces, and users - Amazon Rekognition
Relevant content
- asked 3 years ago
- asked 3 years ago
- asked 3 years ago
- AWS OFFICIALUpdated 3 years ago
- AWS OFFICIALUpdated 3 years ago
Hi, thanks for the answer, But I'd like to confirm whether we have documentation or any procedural implementation regarding this issue of the needs of delay between adding face to collection (index face) and using the generated face_id to search the face in the collection?