list_faces
¶
list_faces(
collection_id: CollectionId,
*,
config_overrides: Optional[RekognitionClientConfig] = 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/rekognition.py
3814 3815 3816 3817 3818 3819 3820 3821 3822 3823 3824 3825 3826 3827 3828 3829 3830 3831 3832 3833 3834 3835 3836 3837 3838 3839 3840 3841 3842 3843 3844 3845 3846 3847 3848 3849 3850 3851 3852 3853 3854 3855 3856 3857 3858 3859 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 | |