Package-level declarations

Types

Link copied to clipboard

This is the API Reference for Amazon Rekognition Image, Amazon Rekognition Custom Labels, Amazon Rekognition Stored Video, Amazon Rekognition Streaming Video. It provides descriptions of actions, data types, common parameters, and common errors.

Properties

Link copied to clipboard
const val SdkVersion: String
Link copied to clipboard
Link copied to clipboard
const val ServiceId: String

Functions

Link copied to clipboard

Associates one or more faces with an existing UserID. Takes an array of FaceIds. Each FaceId that are present in the FaceIds list is associated with the provided UserID. The maximum number of total FaceIds per UserID is 100.

Link copied to clipboard

Compares a face in the source input image with each of the 100 largest faces detected in the target input image.

Link copied to clipboard

This operation applies only to Amazon Rekognition Custom Labels.

Link copied to clipboard

Creates a collection in an AWS Region. You can add faces to the collection using the IndexFaces operation.

Link copied to clipboard

This operation applies only to Amazon Rekognition Custom Labels.

Link copied to clipboard

This API operation initiates a Face Liveness session. It returns a SessionId, which you can use to start streaming Face Liveness video and get the results for a Face Liveness session.

Link copied to clipboard

Creates a new Amazon Rekognition project. A project is a group of resources (datasets, model versions) that you use to create and manage a Amazon Rekognition Custom Labels Model or custom adapter. You can specify a feature to create the project with, if no feature is specified then Custom Labels is used by default. For adapters, you can also choose whether or not to have the project auto update by using the AutoUpdate argument. This operation requires permissions to perform the rekognition:CreateProject action.

Link copied to clipboard

Creates a new version of Amazon Rekognition project (like a Custom Labels model or a custom adapter) and begins training. Models and adapters are managed as part of a Rekognition project. The response from CreateProjectVersion is an Amazon Resource Name (ARN) for the project version.

Link copied to clipboard

Creates an Amazon Rekognition stream processor that you can use to detect and recognize faces or to detect labels in a streaming video.

Link copied to clipboard
inline suspend fun RekognitionClient.createUser(crossinline block: CreateUserRequest.Builder.() -> Unit): CreateUserResponse

Creates a new User within a collection specified by CollectionId. Takes UserId as a parameter, which is a user provided ID which should be unique within the collection. The provided UserId will alias the system generated UUID to make the UserId more user friendly.

Link copied to clipboard

Deletes the specified collection. Note that this operation removes all faces in the collection. For an example, see Deleting a collection.

Link copied to clipboard

This operation applies only to Amazon Rekognition Custom Labels.

Link copied to clipboard

Deletes faces from a collection. You specify a collection ID and an array of face IDs to remove from the collection.

Link copied to clipboard

Deletes a Amazon Rekognition project. To delete a project you must first delete all models or adapters associated with the project. To delete a model or adapter, see DeleteProjectVersion.

Link copied to clipboard

This operation applies only to Amazon Rekognition Custom Labels.

Link copied to clipboard

Deletes a Rekognition project model or project version, like a Amazon Rekognition Custom Labels model or a custom adapter.

Link copied to clipboard

Deletes the stream processor identified by Name. You assign the value for Name when you create the stream processor with CreateStreamProcessor. You might not be able to use the same name for a stream processor for a few seconds after calling DeleteStreamProcessor.

Link copied to clipboard
inline suspend fun RekognitionClient.deleteUser(crossinline block: DeleteUserRequest.Builder.() -> Unit): DeleteUserResponse

Deletes the specified UserID within the collection. Faces that are associated with the UserID are disassociated from the UserID before deleting the specified UserID. If the specified Collection or UserID is already deleted or not found, a ResourceNotFoundException will be thrown. If the action is successful with a 200 response, an empty HTTP body is returned.

Link copied to clipboard

Describes the specified collection. You can use DescribeCollection to get information, such as the number of faces indexed into a collection and the version of the model used by the collection for face detection.

Link copied to clipboard

This operation applies only to Amazon Rekognition Custom Labels.

Link copied to clipboard

Gets information about your Rekognition projects.

Link copied to clipboard

Lists and describes the versions of an Amazon Rekognition project. You can specify up to 10 model or adapter versions in ProjectVersionArns. If you don't specify a value, descriptions for all model/adapter versions in the project are returned.

Link copied to clipboard

Provides information about a stream processor created by CreateStreamProcessor. You can get information about the input and output streams, the input parameters for the face recognition being performed, and the current status of the stream processor.

Link copied to clipboard

This operation applies only to Amazon Rekognition Custom Labels.

Link copied to clipboard

Detects faces within an image that is provided as input.

Link copied to clipboard

Detects instances of real-world entities within an image (JPEG or PNG) provided as input. This includes objects like flower, tree, and table; events like wedding, graduation, and birthday party; and concepts like landscape, evening, and nature.

Link copied to clipboard

Detects unsafe content in a specified JPEG or PNG format image. Use DetectModerationLabels to moderate images depending on your requirements. For example, you might want to filter images that contain nudity, but not images containing suggestive content.

Link copied to clipboard

Detects Personal Protective Equipment (PPE) worn by people detected in an image. Amazon Rekognition can detect the following types of PPE.

Link copied to clipboard
inline suspend fun RekognitionClient.detectText(crossinline block: DetectTextRequest.Builder.() -> Unit): DetectTextResponse

Detects text in the input image and converts it into machine-readable text.

Link copied to clipboard

Removes the association between a Face supplied in an array of FaceIds and the User. If the User is not present already, then a ResourceNotFound exception is thrown. If successful, an array of faces that are disassociated from the User is returned. If a given face is already disassociated from the given UserID, it will be ignored and not be returned in the response. If a given face is already associated with a different User or not found in the collection it will be returned as part of UnsuccessfulDisassociations. You can remove 1 - 100 face IDs from a user at one time.

Link copied to clipboard

This operation applies only to Amazon Rekognition Custom Labels.

Link copied to clipboard

Gets the name and additional information about a celebrity based on their Amazon Rekognition ID. The additional information is returned as an array of URLs. If there is no additional information about the celebrity, this list is empty.

Link copied to clipboard

Gets the celebrity recognition results for a Amazon Rekognition Video analysis started by StartCelebrityRecognition.

Link copied to clipboard

Gets the inappropriate, unwanted, or offensive content analysis results for a Amazon Rekognition Video analysis started by StartContentModeration. For a list of moderation labels in Amazon Rekognition, see Using the image and video moderation APIs.

Link copied to clipboard

Gets face detection results for a Amazon Rekognition Video analysis started by StartFaceDetection.

Link copied to clipboard

Retrieves the results of a specific Face Liveness session. It requires the sessionId as input, which was created using CreateFaceLivenessSession. Returns the corresponding Face Liveness confidence score, a reference image that includes a face bounding box, and audit images that also contain face bounding boxes. The Face Liveness confidence score ranges from 0 to 100.

Link copied to clipboard

Gets the face search results for Amazon Rekognition Video face search started by StartFaceSearch. The search returns faces in a collection that match the faces of persons detected in a video. It also includes the time(s) that faces are matched in the video.

Link copied to clipboard

Gets the label detection results of a Amazon Rekognition Video analysis started by StartLabelDetection.

Link copied to clipboard

Retrieves the results for a given media analysis job. Takes a JobId returned by StartMediaAnalysisJob.

Link copied to clipboard

Gets the path tracking results of a Amazon Rekognition Video analysis started by StartPersonTracking.

Link copied to clipboard

Gets the segment detection results of a Amazon Rekognition Video analysis started by StartSegmentDetection.

Link copied to clipboard

Gets the text detection results of a Amazon Rekognition Video analysis started by StartTextDetection.

Link copied to clipboard
inline suspend fun RekognitionClient.indexFaces(crossinline block: IndexFacesRequest.Builder.() -> Unit): IndexFacesResponse

Detects faces in the input image and adds them to the specified collection.

Link copied to clipboard

Returns list of collection IDs in your account. If the result is truncated, the response also provides a NextToken that you can use in the subsequent request to fetch the next set of collection IDs.

Link copied to clipboard

This operation applies only to Amazon Rekognition Custom Labels.

Link copied to clipboard

This operation applies only to Amazon Rekognition Custom Labels.

Link copied to clipboard
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.

Link copied to clipboard

Returns a list of media analysis jobs. Results are sorted by CreationTimestamp in descending order.

Link copied to clipboard

This operation applies only to Amazon Rekognition Custom Labels.

Link copied to clipboard

Gets a list of stream processors that you have created with CreateStreamProcessor.

Link copied to clipboard

Returns a list of tags in an Amazon Rekognition collection, stream processor, or Custom Labels model.

Link copied to clipboard
inline suspend fun RekognitionClient.listUsers(crossinline block: ListUsersRequest.Builder.() -> Unit): ListUsersResponse

Returns metadata of the User such as UserID in the specified collection. Anonymous User (to reserve faces without any identity) is not returned as part of this request. The results are sorted by system generated primary key ID. If the response is truncated, NextToken is returned in the response that can be used in the subsequent request to retrieve the next set of identities.

Link copied to clipboard

This operation applies only to Amazon Rekognition Custom Labels.

Link copied to clipboard

Returns an array of celebrities recognized in the input image. For more information, see Recognizing celebrities in the Amazon Rekognition Developer Guide.

Link copied to clipboard

For a given input face ID, searches for matching faces in the collection the face belongs to. You get a face ID when you add a face to the collection using the IndexFaces operation. The operation compares the features of the input face with faces in the specified collection.

Link copied to clipboard

For a given input image, first detects the largest face in the image, and then searches the specified collection for matching faces. The operation compares the features of the input face with faces in the specified collection.

Link copied to clipboard

Searches for UserIDs within a collection based on a FaceId or UserId. This API can be used to find the closest UserID (with a highest similarity) to associate a face. The request must be provided with either FaceId or UserId. The operation returns an array of UserID that match the FaceId or UserId, ordered by similarity score with the highest similarity first.

Link copied to clipboard

Searches for UserIDs using a supplied image. It first detects the largest face in the image, and then searches a specified collection for matching UserIDs.

Link copied to clipboard

Starts asynchronous recognition of celebrities in a stored video.

Link copied to clipboard

Starts asynchronous detection of inappropriate, unwanted, or offensive content in a stored video. For a list of moderation labels in Amazon Rekognition, see Using the image and video moderation APIs.

Link copied to clipboard

Starts asynchronous detection of faces in a stored video.

Link copied to clipboard

Starts the asynchronous search for faces in a collection that match the faces of persons detected in a stored video.

Link copied to clipboard

Starts asynchronous detection of labels in a stored video.

Link copied to clipboard

Initiates a new media analysis job. Accepts a manifest file in an Amazon S3 bucket. The output is a manifest file and a summary of the manifest stored in the Amazon S3 bucket.

Link copied to clipboard

Starts the asynchronous tracking of a person's path in a stored video.

Link copied to clipboard

This operation applies only to Amazon Rekognition Custom Labels.

Link copied to clipboard

Starts asynchronous detection of segment detection in a stored video.

Link copied to clipboard

Starts processing a stream processor. You create a stream processor by calling CreateStreamProcessor. To tell StartStreamProcessor which stream processor to start, use the value of the Name field specified in the call to CreateStreamProcessor.

Link copied to clipboard

Starts asynchronous detection of text in a stored video.

Link copied to clipboard

This operation applies only to Amazon Rekognition Custom Labels.

Link copied to clipboard

Stops a running stream processor that was created by CreateStreamProcessor.

Link copied to clipboard

Adds one or more key-value tags to an Amazon Rekognition collection, stream processor, or Custom Labels model. For more information, see Tagging AWS Resources.

Link copied to clipboard

Removes one or more tags from an Amazon Rekognition collection, stream processor, or Custom Labels model.

Link copied to clipboard

This operation applies only to Amazon Rekognition Custom Labels.

Link copied to clipboard

Allows you to update a stream processor. You can change some settings and regions of interest and delete certain parameters.

Link copied to clipboard

Create a copy of the client with one or more configuration values overridden. This method allows the caller to perform scoped config overrides for one or more client operations.