list_faces
async
¶
list_faces(
collection_id: CollectionId,
*,
config_overrides: Optional[AsyncRekognitionClientConfig] = None,
next_token: Optional[PaginationToken] = None,
max_results: Optional[PageSize] = None,
user_id: Optional[UserId] = None,
face_ids: Optional[FaceIdList] = None,
) -> 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.
Parameters:
-
collection_id(CollectionId) –ID of the collection from which to list the faces.
-
next_token(Optional[PaginationToken], default:None) –If the previous response was incomplete (because there is more data to retrieve), Amazon Rekognition returns a pagination token in the response. You can use this pagination token to retrieve the next set of faces.
-
max_results(Optional[PageSize], default:None) –Maximum number of faces to return.
-
user_id(Optional[UserId], default:None) –An array of user IDs to filter results with when listing faces in a collection.
-
face_ids(Optional[FaceIdList], default:None) –An array of face IDs to filter results with when listing faces in a collection.
Raises:
-
AccessDeniedException–You are not authorized to perform the action.
-
InternalServerError–Amazon Rekognition experienced a service issue. Try your call again.
-
InvalidPaginationTokenException–Pagination token in the request is not valid.
-
InvalidParameterException–Input parameter violated a constraint. Validate your parameter before calling the API operation again.
-
ProvisionedThroughputExceededException–The number of requests exceeded your throughput limit. If you want to increase this limit, contact Amazon Rekognition.
-
ResourceNotFoundException–The resource specified in the request cannot be found.
-
ThrottlingException–Amazon Rekognition is temporarily unable to process the request. Try your call again.
-
UnknownServiceError–The service returned an error code this client does not model.
Examples:
To list the faces in a collection This operation lists the faces in a Rekognition collection.
Source code in docs_src/capo_rekognition/_services/async_rekognition.py
3860 3861 3862 3863 3864 3865 3866 3867 3868 3869 3870 3871 3872 3873 3874 3875 3876 3877 3878 3879 3880 3881 3882 3883 3884 3885 3886 3887 3888 3889 3890 3891 3892 3893 3894 3895 3896 3897 3898 3899 3900 3901 3902 3903 3904 3905 3906 3907 3908 3909 3910 3911 3912 3913 3914 3915 3916 3917 3918 3919 3920 3921 3922 3923 3924 3925 3926 3927 3928 3929 3930 3931 3932 3933 3934 | |