- Newest
- Most votes
- Most comments
You're correct that SearchFacesByImage only matches the largest face in an input image, which doesn't meet your requirement to match all faces in an image against your collection.
The approach you're using (IndexFaces → SearchFaces → DeleteFaces) is a valid workaround, but as you've noticed, it has limitations with the DeleteFaces quota.
There is an alternative approach you could consider:
- Call DetectFaces on your input image to get the bounding boxes of all faces
- Use these bounding boxes to create face crops from the original image
- Call SearchFacesByImage for each face crop against your collection
This approach avoids the need to temporarily index and then delete faces from your collection, which would help you avoid hitting the DeleteFaces quota limit. Since you're processing up to 400K images daily, this approach would be more scalable.
The DetectFaces + SearchFacesByImage pattern is specifically mentioned in the Rekognition documentation as an alternative way to search for all faces in an input image.
Contact AWS Support : If you need more information about these operations, contact AWS Support. They can provide additional details about specific API operations and assist you with any questions.
Sources
SearchFacesByImage - Amazon Rekognition
Searching faces in a collection - Amazon Rekognition
Relevant content
- asked 4 years ago
- asked 2 years ago
- asked a year ago
