listFaces

inline suspend fun RekognitionClient.listFaces(crossinline block: ListFacesRequest.Builder.() -> Unit): ListFacesResponse

Returns metadata for faces in the specified collection. This metadata includes information such as the bounding box coordinates, the confidence (that the bounding box contains a face), and face ID. For an example, see Listing Faces in a Collection in the Amazon Rekognition Developer Guide.

This operation requires permissions to perform the rekognition:ListFaces action.

Samples


fun main() { 
   //sampleStart 
   // This operation lists the faces in a Rekognition collection.
val resp = rekognitionClient.listFaces {
    collectionId = "myphotos"
    maxResults = 20
} 
   //sampleEnd
}