将整个S3图像存储桶添加到Amazon Rekognition集合 [英] Add whole S3 images bucket to Amazon Rekognition collection

查看:153
本文介绍了将整个S3图像存储桶添加到Amazon Rekognition集合的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在AWS CLI中,我一次只能将一个图像添加到集合中。

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

有没有办法将整个S3存储桶添加到集合中?

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

推荐答案

IndexFaces() API调用仅接受 ,但一次最多可以索引一张图片中的100张面孔。

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

如果您希望从多个图片中添加面孔(例如整个存储桶或文件夹),则需要调用 IndexFaces() 多次(每个图像一次)。这将涉及到调用Amazon S3列出文件,然后循环调用 IndexFaces()

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().

在像Python这样的脚本语言中,这将相对简单。

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

这篇关于将整个S3图像存储桶添加到Amazon Rekognition集合的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆