Salta al contenuto

Backup or Export Rekognition face collection

0

Is there any way to backup or export a collection from Rekognition? or copying/duplicating a collection to a new collection?

I've been creating a face index collection. I created a WordPress plugin with the AWS PHP SDK to select images of a person and add a label (name) to index via API.

Most examples I've seen use an S3 bucket of images, which would offer a little more resiliency.

With how I've set this up, I'm concerned about my data being changed or deleted and having to start over with a new collection.

posta 4 mesi fa63 visualizzazioni
1 Risposta
0

Yes, you can manage your Amazon Rekognition face collections, though there isn't a direct "export" or "backup" feature specifically designed for collections.

For your concern about data resiliency, there are a few approaches you can consider:

  1. Store your original images in an S3 bucket: This is a best practice that would allow you to rebuild your collection if needed. Since you mentioned most examples use S3 buckets, this would provide the resiliency you're looking for.

  2. Use the ListFaces operation: This allows you to retrieve information about the faces stored in your collection, including their face IDs. While this doesn't export the actual face vectors, it gives you a record of what faces are in your collection.

  3. For collection management, you can use:

  • ListCollections: To view all your collections
  • DeleteFaces: To remove specific faces from a collection if needed

Unfortunately, there isn't a direct way to copy or duplicate a collection from one to another. If you need to create a backup or copy of your collection, you would need to:

  1. Create a new collection
  2. Re-index all the original images into the new collection

This is why storing your original images in S3 is particularly important for your use case - it would allow you to rebuild your collection if necessary.

For your WordPress plugin implementation, consider modifying your approach to store references to the images in S3 alongside your face indexing process to ensure you have the ability to recover if needed.
Sources
Managing face collections, faces, and users - Amazon Rekognition
Is it possible to delete indexfaces collection data? | AWS re:Post
Use ListCollections with an AWS SDK or CLI - Amazon Rekognition

con risposta 4 mesi fa

Accesso non effettuato. Accedi per postare una risposta.

Una buona risposta soddisfa chiaramente la domanda, fornisce un feedback costruttivo e incoraggia la crescita professionale del richiedente.