Search code examples
amazon-web-servicesamazon-rekognition

AWS Rekognition - How to index multiple images belonging to the same face?


This document - https://docs.aws.amazon.com/rekognition/latest/dg/recommendations-facial-input-images.html recommends indexing 5 faces of a person straight-on.

But indexFaces takes 1 image at a time.

After indexing first image, when indexing the second image, how do I tell rekognition that it belongs to the same person?

How do I tell rekognition that these 5 images belong to the same person?


Solution

  • From the documentation

    To associate faces with an image, specify an image ID in the ExternalImageId request parameter. The image ID can be the file name or another ID that you create.

    Basically you can upload multiple faces of the same person and give them the same ExternalImageId, this way all those images "point" to the same person