AWS - 根据集合搜索图像中的所有面孔
AWS - Search all faces in an image against collection
SearchFacesByImage API 仅获取图像中最大的人脸并根据 collectionId 进行搜索。我想根据 collectionId
搜索输入图像中的所有面孔
在SearchFacesByImage的API上写着:"To search for all faces in an input image, you might first call the operation, and then use the face IDs returned in subsequent calls to the operation."
但是我不明白我必须做什么。
您正在阅读的文档似乎缺少函数名称。
例如,search_faces_by_image()
的 boto3 文档与您引用的完全一致。
幸好官方SearchFacesByImage
API documentation有该段全文:
To search for all faces in an input image, you might first call the IndexFaces
operation, and then use the face IDs returned in subsequent calls to the SearchFaces
operation.
这更有意义!
据说可以调用IndexFaces
将一张图片中的多张人脸转换成Face ID列表。然后,您可以遍历每个 Face ID 并调用 SearchFaces
,传入 Face ID。
SearchFacesByImage API 仅获取图像中最大的人脸并根据 collectionId 进行搜索。我想根据 collectionId
搜索输入图像中的所有面孔在SearchFacesByImage的API上写着:"To search for all faces in an input image, you might first call the operation, and then use the face IDs returned in subsequent calls to the operation." 但是我不明白我必须做什么。
您正在阅读的文档似乎缺少函数名称。
例如,search_faces_by_image()
的 boto3 文档与您引用的完全一致。
幸好官方SearchFacesByImage
API documentation有该段全文:
To search for all faces in an input image, you might first call the
IndexFaces
operation, and then use the face IDs returned in subsequent calls to theSearchFaces
operation.
这更有意义!
据说可以调用IndexFaces
将一张图片中的多张人脸转换成Face ID列表。然后,您可以遍历每个 Face ID 并调用 SearchFaces
,传入 Face ID。