내용으로 건너뛰기

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.

질문됨 4달 전63회 조회
1개 답변
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

답변함 4달 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

관련 콘텐츠