Add whole S3 images bucket to Amazon Rekognition collection

▼魔方 西西 提交于 2019-12-02 15:05:21

问题


In AWS CLI, I can add to a collection only a single image at a time.

Is there any way to add the whole S3 bucket to a collection?


回答1:


The IndexFaces() API call accepts only one image at a time, but can index up to 100 faces from that image.

If you wish to add faces from multiple images (eg a whole bucket or folder), you would need to call IndexFaces() multiple times (once per image). This would involve a call to Amazon S3 to list the files, then a loop to call IndexFaces().

It would be relatively simple in a scripting language like Python.



来源:https://stackoverflow.com/questions/56340903/add-whole-s3-images-bucket-to-amazon-rekognition-collection

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!