AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.
Implementation for accessing Rekognition
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.Amazon Rekognition Image
Amazon Rekognition Custom Labels
Amazon Rekognition Video Stored Video
Amazon Rekognition Video Streaming Video
Namespace: Amazon.Rekognition
Assembly: AWSSDK.Rekognition.dll
Version: 3.x.y.z
public class AmazonRekognitionClient : AmazonServiceClient IAmazonRekognition, IAmazonService, IDisposable
The AmazonRekognitionClient type exposes the following members
Name | Description | |
---|---|---|
![]() |
AmazonRekognitionClient() |
Constructs AmazonRekognitionClient with the credentials loaded from the application's default configuration, and if unsuccessful from the Instance Profile service on an EC2 instance. Example App.config with credentials set. <?xml version="1.0" encoding="utf-8" ?> <configuration> <appSettings> <add key="AWSProfileName" value="AWS Default"/> </appSettings> </configuration> |
![]() |
AmazonRekognitionClient(RegionEndpoint) |
Constructs AmazonRekognitionClient with the credentials loaded from the application's default configuration, and if unsuccessful from the Instance Profile service on an EC2 instance. Example App.config with credentials set. <?xml version="1.0" encoding="utf-8" ?> <configuration> <appSettings> <add key="AWSProfileName" value="AWS Default"/> </appSettings> </configuration> |
![]() |
AmazonRekognitionClient(AmazonRekognitionConfig) |
Constructs AmazonRekognitionClient with the credentials loaded from the application's default configuration, and if unsuccessful from the Instance Profile service on an EC2 instance. Example App.config with credentials set. <?xml version="1.0" encoding="utf-8" ?> <configuration> <appSettings> <add key="AWSProfileName" value="AWS Default"/> </appSettings> </configuration> |
![]() |
AmazonRekognitionClient(AWSCredentials) |
Constructs AmazonRekognitionClient with AWS Credentials |
![]() |
AmazonRekognitionClient(AWSCredentials, RegionEndpoint) |
Constructs AmazonRekognitionClient with AWS Credentials |
![]() |
AmazonRekognitionClient(AWSCredentials, AmazonRekognitionConfig) |
Constructs AmazonRekognitionClient with AWS Credentials and an AmazonRekognitionClient Configuration object. |
![]() |
AmazonRekognitionClient(string, string) |
Constructs AmazonRekognitionClient with AWS Access Key ID and AWS Secret Key |
![]() |
AmazonRekognitionClient(string, string, RegionEndpoint) |
Constructs AmazonRekognitionClient with AWS Access Key ID and AWS Secret Key |
![]() |
AmazonRekognitionClient(string, string, AmazonRekognitionConfig) |
Constructs AmazonRekognitionClient with AWS Access Key ID, AWS Secret Key and an AmazonRekognitionClient Configuration object. |
![]() |
AmazonRekognitionClient(string, string, string) |
Constructs AmazonRekognitionClient with AWS Access Key ID and AWS Secret Key |
![]() |
AmazonRekognitionClient(string, string, string, RegionEndpoint) |
Constructs AmazonRekognitionClient with AWS Access Key ID and AWS Secret Key |
![]() |
AmazonRekognitionClient(string, string, string, AmazonRekognitionConfig) |
Constructs AmazonRekognitionClient with AWS Access Key ID, AWS Secret Key and an AmazonRekognitionClient Configuration object. |
Name | Type | Description | |
---|---|---|---|
![]() |
Config | Amazon.Runtime.IClientConfig | Inherited from Amazon.Runtime.AmazonServiceClient. |
![]() |
Paginators | Amazon.Rekognition.Model.IRekognitionPaginatorFactory |
Paginators for the service |
Name | Description | |
---|---|---|
![]() |
AssociateFaces(AssociateFacesRequest) |
Associates one or more faces with an existing UserID. Takes an array of
The
If successful, an array of
The
|
![]() |
AssociateFacesAsync(AssociateFacesRequest, CancellationToken) |
Associates one or more faces with an existing UserID. Takes an array of
The
If successful, an array of
The
|
![]() |
CompareFaces(CompareFacesRequest) |
Compares a face in the source input image with each of the 100 largest faces detected in the target input image. If the source image contains multiple faces, the service detects the largest face and compares it with each face detected in the target image.
CompareFaces uses machine learning algorithms, which are probabilistic. A false negative
is an incorrect prediction that a face in the target image has a low similarity confidence
score when compared to the face in the source image. To reduce the probability of
false negatives, we recommend that you compare the target image against multiple source
images. If you plan to use You pass the input and target images either as base64-encoded image bytes or as references to images in an Amazon S3 bucket. If you use the AWS CLI to call Amazon Rekognition operations, passing image bytes isn't supported. The image must be formatted as a PNG or JPEG file. In response, the operation returns an array of face matches ordered by similarity score in descending order. For each face match, the response provides a bounding box of the face, facial landmarks, pose details (pitch, roll, and yaw), quality (brightness and sharpness), and confidence value (indicating the level of confidence that the bounding box contains a face). The response also provides a similarity score, which indicates how closely the faces match.
By default, only faces with a similarity score of greater than or equal to 80% are
returned in the response. You can change this value by specifying the
The
If the image doesn't contain Exif metadata,
If no faces are detected in the source or target images, This is a stateless API operation. That is, data returned by this operation doesn't persist. For an example, see Comparing Faces in Images in the Amazon Rekognition Developer Guide.
This operation requires permissions to perform the |
![]() |
CompareFacesAsync(CompareFacesRequest, CancellationToken) |
Compares a face in the source input image with each of the 100 largest faces detected in the target input image. If the source image contains multiple faces, the service detects the largest face and compares it with each face detected in the target image.
CompareFaces uses machine learning algorithms, which are probabilistic. A false negative
is an incorrect prediction that a face in the target image has a low similarity confidence
score when compared to the face in the source image. To reduce the probability of
false negatives, we recommend that you compare the target image against multiple source
images. If you plan to use You pass the input and target images either as base64-encoded image bytes or as references to images in an Amazon S3 bucket. If you use the AWS CLI to call Amazon Rekognition operations, passing image bytes isn't supported. The image must be formatted as a PNG or JPEG file. In response, the operation returns an array of face matches ordered by similarity score in descending order. For each face match, the response provides a bounding box of the face, facial landmarks, pose details (pitch, roll, and yaw), quality (brightness and sharpness), and confidence value (indicating the level of confidence that the bounding box contains a face). The response also provides a similarity score, which indicates how closely the faces match.
By default, only faces with a similarity score of greater than or equal to 80% are
returned in the response. You can change this value by specifying the
The
If the image doesn't contain Exif metadata,
If no faces are detected in the source or target images, This is a stateless API operation. That is, data returned by this operation doesn't persist. For an example, see Comparing Faces in Images in the Amazon Rekognition Developer Guide.
This operation requires permissions to perform the |
![]() |
CopyProjectVersion(CopyProjectVersionRequest) |
This operation applies only to Amazon Rekognition Custom Labels.
Copies a version of an Amazon Rekognition Custom Labels model from a source project to a destination project. The source and destination projects can be in different AWS accounts but must be in the same AWS Region. You can't copy a model to another AWS service. To copy a model version to a different AWS account, you need to create a resource-based policy known as a project policy. You attach the project policy to the source project by calling PutProjectPolicy. The project policy gives permission to copy the model version from a trusting AWS account to a trusted account. For more information creating and attaching a project policy, see Attaching a project policy (SDK) in the Amazon Rekognition Custom Labels Developer Guide. If you are copying a model version to a project in the same AWS account, you don't need to create a project policy. Copying project versions is supported only for Custom Labels models. To copy a model, the destination project, source project, and source model version must already exist.
Copying a model version takes a while to complete. To get the current status, call
DescribeProjectVersions and check the value of
This operation requires permissions to perform the |
![]() |
CopyProjectVersionAsync(CopyProjectVersionRequest, CancellationToken) |
This operation applies only to Amazon Rekognition Custom Labels.
Copies a version of an Amazon Rekognition Custom Labels model from a source project to a destination project. The source and destination projects can be in different AWS accounts but must be in the same AWS Region. You can't copy a model to another AWS service. To copy a model version to a different AWS account, you need to create a resource-based policy known as a project policy. You attach the project policy to the source project by calling PutProjectPolicy. The project policy gives permission to copy the model version from a trusting AWS account to a trusted account. For more information creating and attaching a project policy, see Attaching a project policy (SDK) in the Amazon Rekognition Custom Labels Developer Guide. If you are copying a model version to a project in the same AWS account, you don't need to create a project policy. Copying project versions is supported only for Custom Labels models. To copy a model, the destination project, source project, and source model version must already exist.
Copying a model version takes a while to complete. To get the current status, call
DescribeProjectVersions and check the value of
This operation requires permissions to perform the |
![]() |
CreateCollection(CreateCollectionRequest) |
Creates a collection in an AWS Region. You can add faces to the collection using the IndexFaces operation.
For example, you might create collections, one for each of your application users.
A user can then index faces using the When you create a collection, it is associated with the latest version of the face model version. Collection names are case-sensitive.
This operation requires permissions to perform the |
![]() |
CreateCollectionAsync(CreateCollectionRequest, CancellationToken) |
Creates a collection in an AWS Region. You can add faces to the collection using the IndexFaces operation.
For example, you might create collections, one for each of your application users.
A user can then index faces using the When you create a collection, it is associated with the latest version of the face model version. Collection names are case-sensitive.
This operation requires permissions to perform the |
![]() |
CreateDataset(CreateDatasetRequest) |
This operation applies only to Amazon Rekognition Custom Labels.
Creates a new Amazon Rekognition Custom Labels dataset. You can create a dataset by using an Amazon Sagemaker format manifest file or by copying an existing Amazon Rekognition Custom Labels dataset.
To create a training dataset for a project, specify
The response from
To check if any non-terminal errors occurred, call ListDatasetEntries and check
for the presence of
Dataset creation fails if a terminal error occurs ( For more information, see Creating dataset in the Amazon Rekognition Custom Labels Developer Guide.
This operation requires permissions to perform the |
![]() |
CreateDatasetAsync(CreateDatasetRequest, CancellationToken) |
This operation applies only to Amazon Rekognition Custom Labels.
Creates a new Amazon Rekognition Custom Labels dataset. You can create a dataset by using an Amazon Sagemaker format manifest file or by copying an existing Amazon Rekognition Custom Labels dataset.
To create a training dataset for a project, specify
The response from
To check if any non-terminal errors occurred, call ListDatasetEntries and check
for the presence of
Dataset creation fails if a terminal error occurs ( For more information, see Creating dataset in the Amazon Rekognition Custom Labels Developer Guide.
This operation requires permissions to perform the |
![]() |
CreateFaceLivenessSession(CreateFaceLivenessSessionRequest) |
This API operation initiates a Face Liveness session. It returns a
You can use the
You can use |
![]() |
CreateFaceLivenessSessionAsync(CreateFaceLivenessSessionRequest, CancellationToken) |
This API operation initiates a Face Liveness session. It returns a
You can use the
You can use |
![]() |
CreateProject(CreateProjectRequest) |
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 |
![]() |
CreateProjectAsync(CreateProjectRequest, CancellationToken) |
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 |
![]() |
CreateProjectVersion(CreateProjectVersionRequest) |
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
The FeatureConfig operation argument allows you to configure specific model or adapter
settings. You can provide a description to the project version by using the VersionDescription
argment. Training can take a while to complete. You can get the current status by
calling DescribeProjectVersions. Training completed successfully if the value
of the
This operation requires permissions to perform the The following applies only to projects with Amazon Rekognition Custom Labels as the chosen feature:
You can train a model in a project that doesn't have associated datasets by specifying
manifest files in the If you open the console after training a model with manifest files, Amazon Rekognition Custom Labels creates the datasets for you using the most recent manifest files. You can no longer train a model version for the project by specifying manifest files. Instead of training with a project without associated datasets, we recommend that you use the manifest files to create training and test datasets for the project. |
![]() |
CreateProjectVersionAsync(CreateProjectVersionRequest, CancellationToken) |
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
The FeatureConfig operation argument allows you to configure specific model or adapter
settings. You can provide a description to the project version by using the VersionDescription
argment. Training can take a while to complete. You can get the current status by
calling DescribeProjectVersions. Training completed successfully if the value
of the
This operation requires permissions to perform the The following applies only to projects with Amazon Rekognition Custom Labels as the chosen feature:
You can train a model in a project that doesn't have associated datasets by specifying
manifest files in the If you open the console after training a model with manifest files, Amazon Rekognition Custom Labels creates the datasets for you using the most recent manifest files. You can no longer train a model version for the project by specifying manifest files. Instead of training with a project without associated datasets, we recommend that you use the manifest files to create training and test datasets for the project. |
![]() |
CreateStreamProcessor(CreateStreamProcessorRequest) |
Creates an Amazon Rekognition stream processor that you can use to detect and recognize faces or to detect labels in a streaming video. Amazon Rekognition Video is a consumer of live video from Amazon Kinesis Video Streams. There are two different settings for stream processors in Amazon Rekognition: detecting faces and detecting labels.
Use
This operation requires permissions to perform the |
![]() |
CreateStreamProcessorAsync(CreateStreamProcessorRequest, CancellationToken) |
Creates an Amazon Rekognition stream processor that you can use to detect and recognize faces or to detect labels in a streaming video. Amazon Rekognition Video is a consumer of live video from Amazon Kinesis Video Streams. There are two different settings for stream processors in Amazon Rekognition: detecting faces and detecting labels.
Use
This operation requires permissions to perform the |
![]() |
CreateUser(CreateUserRequest) |
Creates a new User within a collection specified by
Uses a |
![]() |
CreateUserAsync(CreateUserRequest, CancellationToken) |
Creates a new User within a collection specified by
Uses a |
![]() |
DeleteCollection(DeleteCollectionRequest) |
Deletes the specified collection. Note that this operation removes all faces in the collection. For an example, see Deleting a collection.
This operation requires permissions to perform the |
![]() |
DeleteCollectionAsync(DeleteCollectionRequest, CancellationToken) |
Deletes the specified collection. Note that this operation removes all faces in the collection. For an example, see Deleting a collection.
This operation requires permissions to perform the |
![]() |
DeleteDataset(DeleteDatasetRequest) |
This operation applies only to Amazon Rekognition Custom Labels.
Deletes an existing Amazon Rekognition Custom Labels dataset. Deleting a dataset might
take while. Use DescribeDataset to check the current status. The dataset is
still deleting if the value of
You can't delete a dataset while it is creating (
This operation requires permissions to perform the |
![]() |
DeleteDatasetAsync(DeleteDatasetRequest, CancellationToken) |
This operation applies only to Amazon Rekognition Custom Labels.
Deletes an existing Amazon Rekognition Custom Labels dataset. Deleting a dataset might
take while. Use DescribeDataset to check the current status. The dataset is
still deleting if the value of
You can't delete a dataset while it is creating (
This operation requires permissions to perform the |
![]() |
DeleteFaces(DeleteFacesRequest) |
Deletes faces from a collection. You specify a collection ID and an array of face IDs to remove from the collection.
This operation requires permissions to perform the |
![]() |
DeleteFacesAsync(DeleteFacesRequest, CancellationToken) |
Deletes faces from a collection. You specify a collection ID and an array of face IDs to remove from the collection.
This operation requires permissions to perform the |
![]() |
DeleteProject(DeleteProjectRequest) |
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.
This operation requires permissions to perform the |
![]() |
DeleteProjectAsync(DeleteProjectRequest, CancellationToken) |
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.
This operation requires permissions to perform the |
![]() |
DeleteProjectPolicy(DeleteProjectPolicyRequest) |
This operation applies only to Amazon Rekognition Custom Labels.
Deletes an existing project policy. To get a list of project policies attached to a project, call ListProjectPolicies. To attach a project policy to a project, call PutProjectPolicy.
This operation requires permissions to perform the |
![]() |
DeleteProjectPolicyAsync(DeleteProjectPolicyRequest, CancellationToken) |
This operation applies only to Amazon Rekognition Custom Labels.
Deletes an existing project policy. To get a list of project policies attached to a project, call ListProjectPolicies. To attach a project policy to a project, call PutProjectPolicy.
This operation requires permissions to perform the |
![]() |
DeleteProjectVersion(DeleteProjectVersionRequest) |
Deletes a Rekognition project model or project version, like a Amazon Rekognition Custom Labels model or a custom adapter. You can't delete a project version if it is running or if it is training. To check the status of a project version, use the Status field returned from DescribeProjectVersions. To stop a project version call StopProjectVersion. If the project version is training, wait until it finishes.
This operation requires permissions to perform the |
![]() |
DeleteProjectVersionAsync(DeleteProjectVersionRequest, CancellationToken) |
Deletes a Rekognition project model or project version, like a Amazon Rekognition Custom Labels model or a custom adapter. You can't delete a project version if it is running or if it is training. To check the status of a project version, use the Status field returned from DescribeProjectVersions. To stop a project version call StopProjectVersion. If the project version is training, wait until it finishes.
This operation requires permissions to perform the |
![]() |
DeleteStreamProcessor(DeleteStreamProcessorRequest) |
Deletes the stream processor identified by |
![]() |
DeleteStreamProcessorAsync(DeleteStreamProcessorRequest, CancellationToken) |
Deletes the stream processor identified by |
![]() |
DeleteUser(DeleteUserRequest) |
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 |
![]() |
DeleteUserAsync(DeleteUserRequest, CancellationToken) |
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 |
![]() |
DescribeCollection(DescribeCollectionRequest) |
Describes the specified collection. You can use For more information, see Describing a Collection in the Amazon Rekognition Developer Guide. |
![]() |
DescribeCollectionAsync(DescribeCollectionRequest, CancellationToken) |
Describes the specified collection. You can use For more information, see Describing a Collection in the Amazon Rekognition Developer Guide. |
![]() |
DescribeDataset(DescribeDatasetRequest) |
This operation applies only to Amazon Rekognition Custom Labels.
Describes an Amazon Rekognition Custom Labels dataset. You can get information such as the current status of a dataset and statistics about the images and labels in a dataset.
This operation requires permissions to perform the |
![]() |
DescribeDatasetAsync(DescribeDatasetRequest, CancellationToken) |
This operation applies only to Amazon Rekognition Custom Labels.
Describes an Amazon Rekognition Custom Labels dataset. You can get information such as the current status of a dataset and statistics about the images and labels in a dataset.
This operation requires permissions to perform the |
![]() |
DescribeProjects(DescribeProjectsRequest) |
Gets information about your Rekognition projects.
This operation requires permissions to perform the |
![]() |
DescribeProjectsAsync(DescribeProjectsRequest, CancellationToken) |
Gets information about your Rekognition projects.
This operation requires permissions to perform the |
![]() |
DescribeProjectVersions(DescribeProjectVersionsRequest) |
Lists and describes the versions of an Amazon Rekognition project. You can specify
up to 10 model or adapter versions in
This operation requires permissions to perform the |
![]() |
DescribeProjectVersionsAsync(DescribeProjectVersionsRequest, CancellationToken) |
Lists and describes the versions of an Amazon Rekognition project. You can specify
up to 10 model or adapter versions in
This operation requires permissions to perform the |
![]() |
DescribeStreamProcessor(DescribeStreamProcessorRequest) |
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. |
![]() |
DescribeStreamProcessorAsync(DescribeStreamProcessorRequest, CancellationToken) |
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. |
![]() |
DetectCustomLabels(DetectCustomLabelsRequest) |
This operation applies only to Amazon Rekognition Custom Labels.
Detects custom labels in a supplied image by using an Amazon Rekognition Custom Labels model.
You specify which version of a model version to use by using the You pass the input image as base64-encoded image bytes or as a reference to an image in an Amazon S3 bucket. If you use the AWS CLI to call Amazon Rekognition operations, passing image bytes is not supported. The image must be either a PNG or JPEG formatted file.
For each object that the model version detects on an image, the API returns a (
To filter labels that are returned, specify a value for
If you don't specify a value for This is a stateless API operation. That is, the operation does not persist any data.
This operation requires permissions to perform the For more information, see Analyzing an image in the Amazon Rekognition Custom Labels Developer Guide. |
![]() |
DetectCustomLabelsAsync(DetectCustomLabelsRequest, CancellationToken) |
This operation applies only to Amazon Rekognition Custom Labels.
Detects custom labels in a supplied image by using an Amazon Rekognition Custom Labels model.
You specify which version of a model version to use by using the You pass the input image as base64-encoded image bytes or as a reference to an image in an Amazon S3 bucket. If you use the AWS CLI to call Amazon Rekognition operations, passing image bytes is not supported. The image must be either a PNG or JPEG formatted file.
For each object that the model version detects on an image, the API returns a (
To filter labels that are returned, specify a value for
If you don't specify a value for This is a stateless API operation. That is, the operation does not persist any data.
This operation requires permissions to perform the For more information, see Analyzing an image in the Amazon Rekognition Custom Labels Developer Guide. |
![]() |
DetectFaces(DetectFacesRequest) |
Detects faces within an image that is provided as input.
The face-detection algorithm is most effective on frontal faces. For non-frontal or obscured faces, the algorithm might not detect the faces or might detect faces with lower confidence. You pass the input image either as base64-encoded image bytes or as a reference to an image in an Amazon S3 bucket. If you use the AWS CLI to call Amazon Rekognition operations, passing image bytes is not supported. The image must be either a PNG or JPEG formatted file. This is a stateless API operation. That is, the operation does not persist any data.
This operation requires permissions to perform the |
![]() |
DetectFacesAsync(DetectFacesRequest, CancellationToken) |
Detects faces within an image that is provided as input.
The face-detection algorithm is most effective on frontal faces. For non-frontal or obscured faces, the algorithm might not detect the faces or might detect faces with lower confidence. You pass the input image either as base64-encoded image bytes or as a reference to an image in an Amazon S3 bucket. If you use the AWS CLI to call Amazon Rekognition operations, passing image bytes is not supported. The image must be either a PNG or JPEG formatted file. This is a stateless API operation. That is, the operation does not persist any data.
This operation requires permissions to perform the |
![]() |
DetectLabels(DetectLabelsRequest) |
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. For an example, see Analyzing images stored in an Amazon S3 bucket in the Amazon Rekognition Developer Guide. You pass the input image as base64-encoded image bytes or as a reference to an image in an Amazon S3 bucket. If you use the AWS CLI to call Amazon Rekognition operations, passing image bytes is not supported. The image must be either a PNG or JPEG formatted file. Optional Parameters
You can specify one or both of the
When using
When getting labels, you can specify Response Elements For each object, scene, and concept the API returns one or more labels. The API returns the following types of information about labels:
The API returns the following information regarding the image, as part of the ImageProperties structure:
The list of returned labels will include at least one label for every detected object, along with information about that label. In the following example, suppose the input image has a lighthouse, the sea, and a rock. The response includes all three labels, one for each object, as well as the confidence in the label:
The list of labels can include multiple labels for the same object. For example, if the input image shows a flower (for example, a tulip), the operation might return the following three labels.
In this example, the detection algorithm more precisely identifies the flower as a tulip. If the object detected is a person, the operation doesn't provide the same facial details that the DetectFaces operation provides. This is a stateless API operation that doesn't return any data.
This operation requires permissions to perform the |
![]() |
DetectLabelsAsync(DetectLabelsRequest, CancellationToken) |
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. For an example, see Analyzing images stored in an Amazon S3 bucket in the Amazon Rekognition Developer Guide. You pass the input image as base64-encoded image bytes or as a reference to an image in an Amazon S3 bucket. If you use the AWS CLI to call Amazon Rekognition operations, passing image bytes is not supported. The image must be either a PNG or JPEG formatted file. Optional Parameters
You can specify one or both of the
When using
When getting labels, you can specify Response Elements For each object, scene, and concept the API returns one or more labels. The API returns the following types of information about labels:
The API returns the following information regarding the image, as part of the ImageProperties structure:
The list of returned labels will include at least one label for every detected object, along with information about that label. In the following example, suppose the input image has a lighthouse, the sea, and a rock. The response includes all three labels, one for each object, as well as the confidence in the label:
The list of labels can include multiple labels for the same object. For example, if the input image shows a flower (for example, a tulip), the operation might return the following three labels.
In this example, the detection algorithm more precisely identifies the flower as a tulip. If the object detected is a person, the operation doesn't provide the same facial details that the DetectFaces operation provides. This is a stateless API operation that doesn't return any data.
This operation requires permissions to perform the |
![]() |
DetectModerationLabels(DetectModerationLabelsRequest) |
Detects unsafe content in a specified JPEG or PNG format image. Use
To filter images, use the labels returned by For information about moderation labels, see Detecting Unsafe Content in the Amazon Rekognition Developer Guide. You pass the input image either as base64-encoded image bytes or as a reference to an image in an Amazon S3 bucket. If you use the AWS CLI to call Amazon Rekognition operations, passing image bytes is not supported. The image must be either a PNG or JPEG formatted file.
You can specify an adapter to use when retrieving label predictions by providing a
|
![]() |
DetectModerationLabelsAsync(DetectModerationLabelsRequest, CancellationToken) |
Detects unsafe content in a specified JPEG or PNG format image. Use
To filter images, use the labels returned by For information about moderation labels, see Detecting Unsafe Content in the Amazon Rekognition Developer Guide. You pass the input image either as base64-encoded image bytes or as a reference to an image in an Amazon S3 bucket. If you use the AWS CLI to call Amazon Rekognition operations, passing image bytes is not supported. The image must be either a PNG or JPEG formatted file.
You can specify an adapter to use when retrieving label predictions by providing a
|
![]() |
DetectProtectiveEquipment(DetectProtectiveEquipmentRequest) |
Detects Personal Protective Equipment (PPE) worn by people detected in an image. Amazon Rekognition can detect the following types of PPE.
You pass the input image as base64-encoded image bytes or as a reference to an image in an Amazon S3 bucket. The image must be either a PNG or JPG formatted file.
For each person detected in the image the API returns an array of body parts (face, head, left-hand, right-hand). For each body part, an array of detected items of PPE is returned, including an indicator of whether or not the PPE covers the body part. The API returns the confidence it has in each detection (person, PPE, body part and body part coverage). It also returns a bounding box (BoundingBox) for each detected person and each detected item of PPE.
You can optionally request a summary of detected PPE items with the
This is a stateless API operation. That is, the operation does not persist any data.
This operation requires permissions to perform the |
![]() |
DetectProtectiveEquipmentAsync(DetectProtectiveEquipmentRequest, CancellationToken) |
Detects Personal Protective Equipment (PPE) worn by people detected in an image. Amazon Rekognition can detect the following types of PPE.
You pass the input image as base64-encoded image bytes or as a reference to an image in an Amazon S3 bucket. The image must be either a PNG or JPG formatted file.
For each person detected in the image the API returns an array of body parts (face, head, left-hand, right-hand). For each body part, an array of detected items of PPE is returned, including an indicator of whether or not the PPE covers the body part. The API returns the confidence it has in each detection (person, PPE, body part and body part coverage). It also returns a bounding box (BoundingBox) for each detected person and each detected item of PPE.
You can optionally request a summary of detected PPE items with the
This is a stateless API operation. That is, the operation does not persist any data.
This operation requires permissions to perform the |
![]() |
DetectText(DetectTextRequest) |
Detects text in the input image and converts it into machine-readable text. Pass the input image as base64-encoded image bytes or as a reference to an image in an Amazon S3 bucket. If you use the AWS CLI to call Amazon Rekognition operations, you must pass it as a reference to an image in an Amazon S3 bucket. For the AWS CLI, passing image bytes is not supported. The image must be either a .png or .jpeg formatted file.
The
A word is one or more script characters that are not separated by spaces.
A line is a string of equally spaced words. A line isn't necessarily a complete sentence.
For example, a driver's license number is detected as a line. A line ends when there
is no aligned text after it. Also, a line ends when there is a large gap between words,
relative to the length of the words. This means, depending on the gap between words,
Amazon Rekognition may detect multiple lines in text aligned in the same direction.
Periods don't represent the end of a line. If a sentence spans multiple lines, the
To determine whether a To be detected, text must be within +/- 90 degrees orientation of the horizontal axis. For more information, see Detecting text in the Amazon Rekognition Developer Guide. |
![]() |
DetectTextAsync(DetectTextRequest, CancellationToken) |
Detects text in the input image and converts it into machine-readable text. Pass the input image as base64-encoded image bytes or as a reference to an image in an Amazon S3 bucket. If you use the AWS CLI to call Amazon Rekognition operations, you must pass it as a reference to an image in an Amazon S3 bucket. For the AWS CLI, passing image bytes is not supported. The image must be either a .png or .jpeg formatted file.
The
A word is one or more script characters that are not separated by spaces.
A line is a string of equally spaced words. A line isn't necessarily a complete sentence.
For example, a driver's license number is detected as a line. A line ends when there
is no aligned text after it. Also, a line ends when there is a large gap between words,
relative to the length of the words. This means, depending on the gap between words,
Amazon Rekognition may detect multiple lines in text aligned in the same direction.
Periods don't represent the end of a line. If a sentence spans multiple lines, the
To determine whether a To be detected, text must be within +/- 90 degrees orientation of the horizontal axis. For more information, see Detecting text in the Amazon Rekognition Developer Guide. |
![]() |
DetermineServiceOperationEndpoint(AmazonWebServiceRequest) |
Returns the endpoint that will be used for a particular request. |
![]() |
DisassociateFaces(DisassociateFacesRequest) |
Removes the association between a |
![]() |
DisassociateFacesAsync(DisassociateFacesRequest, CancellationToken) |
Removes the association between a |
![]() |
Dispose() | Inherited from Amazon.Runtime.AmazonServiceClient. |
![]() |
DistributeDatasetEntries(DistributeDatasetEntriesRequest) |
This operation applies only to Amazon Rekognition Custom Labels.
Distributes the entries (images) in a training dataset across the training dataset
and the test dataset for a project. You supply the Amazon Resource Names (ARN) of a project's training dataset and test dataset. The training dataset must contain the images that you want to split. The test dataset must be empty. The datasets must belong to the same project. To create training and test datasets for a project, call CreateDataset.
Distributing a dataset takes a while to complete. To check the status call
This operation requires permissions to perform the |
![]() |
DistributeDatasetEntriesAsync(DistributeDatasetEntriesRequest, CancellationToken) |
This operation applies only to Amazon Rekognition Custom Labels.
Distributes the entries (images) in a training dataset across the training dataset
and the test dataset for a project. You supply the Amazon Resource Names (ARN) of a project's training dataset and test dataset. The training dataset must contain the images that you want to split. The test dataset must be empty. The datasets must belong to the same project. To create training and test datasets for a project, call CreateDataset.
Distributing a dataset takes a while to complete. To check the status call
This operation requires permissions to perform the |
![]() |
GetCelebrityInfo(GetCelebrityInfoRequest) |
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. For more information, see Getting information about a celebrity in the Amazon Rekognition Developer Guide.
This operation requires permissions to perform the |
![]() |
GetCelebrityInfoAsync(GetCelebrityInfoRequest, CancellationToken) |
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. For more information, see Getting information about a celebrity in the Amazon Rekognition Developer Guide.
This operation requires permissions to perform the |
![]() |
GetCelebrityRecognition(GetCelebrityRecognitionRequest) |
Gets the celebrity recognition results for a Amazon Rekognition Video analysis started by StartCelebrityRecognition.
Celebrity recognition in a video is an asynchronous operation. Analysis is started
by a call to StartCelebrityRecognition which returns a job identifier (
When the celebrity recognition operation finishes, Amazon Rekognition Video publishes
a completion status to the Amazon Simple Notification Service topic registered in
the initial call to For more information, see Working With Stored Videos in the Amazon Rekognition Developer Guide.
By default, the
The No information is returned for faces not recognized as celebrities.
Use MaxResults parameter to limit the number of labels returned. If there are more
results than specified in |
![]() |
GetCelebrityRecognitionAsync(GetCelebrityRecognitionRequest, CancellationToken) |
Gets the celebrity recognition results for a Amazon Rekognition Video analysis started by StartCelebrityRecognition.
Celebrity recognition in a video is an asynchronous operation. Analysis is started
by a call to StartCelebrityRecognition which returns a job identifier (
When the celebrity recognition operation finishes, Amazon Rekognition Video publishes
a completion status to the Amazon Simple Notification Service topic registered in
the initial call to For more information, see Working With Stored Videos in the Amazon Rekognition Developer Guide.
By default, the
The No information is returned for faces not recognized as celebrities.
Use MaxResults parameter to limit the number of labels returned. If there are more
results than specified in |
![]() |
GetContentModeration(GetContentModerationRequest) |
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.
Amazon Rekognition Video inappropriate or offensive content detection in a stored
video is an asynchronous operation. You start analysis by calling StartContentModeration
which returns a job identifier ( For more information, see Working with Stored Videos in the Amazon Rekognition Devlopers Guide.
By default, the moderated labels are returned sorted by time, in milliseconds from
the start of the video. You can also sort them by moderated label by specifying
Since video analysis can return a large number of results, use the For more information, see moderating content in the Amazon Rekognition Developer Guide. |
![]() |
GetContentModerationAsync(GetContentModerationRequest, CancellationToken) |
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.
Amazon Rekognition Video inappropriate or offensive content detection in a stored
video is an asynchronous operation. You start analysis by calling StartContentModeration
which returns a job identifier ( For more information, see Working with Stored Videos in the Amazon Rekognition Devlopers Guide.
By default, the moderated labels are returned sorted by time, in milliseconds from
the start of the video. You can also sort them by moderated label by specifying
Since video analysis can return a large number of results, use the For more information, see moderating content in the Amazon Rekognition Developer Guide. |
![]() |
GetFaceDetection(GetFaceDetectionRequest) |
Gets face detection results for a Amazon Rekognition Video analysis started by StartFaceDetection.
Face detection with Amazon Rekognition Video is an asynchronous operation. You start
face detection by calling StartFaceDetection which returns a job identifier
(
Use MaxResults parameter to limit the number of labels returned. If there are more
results than specified in
Note that for the |
![]() |
GetFaceDetectionAsync(GetFaceDetectionRequest, CancellationToken) |
Gets face detection results for a Amazon Rekognition Video analysis started by StartFaceDetection.
Face detection with Amazon Rekognition Video is an asynchronous operation. You start
face detection by calling StartFaceDetection which returns a job identifier
(
Use MaxResults parameter to limit the number of labels returned. If there are more
results than specified in
Note that for the |
![]() |
GetFaceLivenessSessionResults(GetFaceLivenessSessionResultsRequest) |
Retrieves the results of a specific Face Liveness session. It requires the
The number of audit images returned by |
![]() |
GetFaceLivenessSessionResultsAsync(GetFaceLivenessSessionResultsRequest, CancellationToken) |
Retrieves the results of a specific Face Liveness session. It requires the
The number of audit images returned by |
![]() |
GetFaceSearch(GetFaceSearchRequest) |
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.
Face search in a video is an asynchronous operation. You start face search by calling
to StartFaceSearch which returns a job identifier ( For more information, see Searching Faces in a Collection in the Amazon Rekognition Developer Guide.
The search results are retured in an array,
By default, the |
![]() |
GetFaceSearchAsync(GetFaceSearchRequest, CancellationToken) |
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.
Face search in a video is an asynchronous operation. You start face search by calling
to StartFaceSearch which returns a job identifier ( For more information, see Searching Faces in a Collection in the Amazon Rekognition Developer Guide.
The search results are retured in an array,
By default, the |
![]() |
GetLabelDetection(GetLabelDetectionRequest) |
Gets the label detection results of a Amazon Rekognition Video analysis started by StartLabelDetection.
The label detection operation is started by a call to StartLabelDetection which
returns a job identifier (
To get the results of the label detection operation, first check that the status value
published to the Amazon SNS topic is
You can select how results are aggregated by using the The returned Labels array may include the following attributes:
Timestamp and Bounding box information are returned for detected Instances, only if
aggregation is done by The version of the label model used for the detection is also returned. Note
Use If you are retrieving results while using the Amazon Simple Notification Service, note that you will receive an "ERROR" notification if the job encounters an issue. |
![]() |
GetLabelDetectionAsync(GetLabelDetectionRequest, CancellationToken) |
Gets the label detection results of a Amazon Rekognition Video analysis started by StartLabelDetection.
The label detection operation is started by a call to StartLabelDetection which
returns a job identifier (
To get the results of the label detection operation, first check that the status value
published to the Amazon SNS topic is
You can select how results are aggregated by using the The returned Labels array may include the following attributes:
Timestamp and Bounding box information are returned for detected Instances, only if
aggregation is done by The version of the label model used for the detection is also returned. Note
Use If you are retrieving results while using the Amazon Simple Notification Service, note that you will receive an "ERROR" notification if the job encounters an issue. |
![]() |
GetMediaAnalysisJob(GetMediaAnalysisJobRequest) |
Retrieves the results for a given media analysis job. Takes a |
![]() |
GetMediaAnalysisJobAsync(GetMediaAnalysisJobRequest, CancellationToken) |
Retrieves the results for a given media analysis job. Takes a |
![]() |
GetPersonTracking(GetPersonTrackingRequest) |
Gets the path tracking results of a Amazon Rekognition Video analysis started by StartPersonTracking.
The person path tracking operation is started by a call to
To get the results of the person path tracking operation, first check that the status
value published to the Amazon SNS topic is
For more information, see FaceDetail in the Amazon Rekognition Developer Guide.
By default, the array is sorted by the time(s) a person's path is tracked in the video.
You can sort by tracked persons by specifying
Use the |
![]() |
GetPersonTrackingAsync(GetPersonTrackingRequest, CancellationToken) |
Gets the path tracking results of a Amazon Rekognition Video analysis started by StartPersonTracking.
The person path tracking operation is started by a call to
To get the results of the person path tracking operation, first check that the status
value published to the Amazon SNS topic is
For more information, see FaceDetail in the Amazon Rekognition Developer Guide.
By default, the array is sorted by the time(s) a person's path is tracked in the video.
You can sort by tracked persons by specifying
Use the |
![]() |
GetSegmentDetection(GetSegmentDetectionRequest) |
Gets the segment detection results of a Amazon Rekognition Video analysis started by StartSegmentDetection.
Segment detection with Amazon Rekognition Video is an asynchronous operation. You
start segment detection by calling StartSegmentDetection which returns a job
identifier (
Use
Use the For more information, see Detecting video segments in stored video in the Amazon Rekognition Developer Guide. |
![]() |
GetSegmentDetectionAsync(GetSegmentDetectionRequest, CancellationToken) |
Gets the segment detection results of a Amazon Rekognition Video analysis started by StartSegmentDetection.
Segment detection with Amazon Rekognition Video is an asynchronous operation. You
start segment detection by calling StartSegmentDetection which returns a job
identifier (
Use
Use the For more information, see Detecting video segments in stored video in the Amazon Rekognition Developer Guide. |
![]() |
GetTextDetection(GetTextDetectionRequest) |
Gets the text detection results of a Amazon Rekognition Video analysis started by StartTextDetection.
Text detection with Amazon Rekognition Video is an asynchronous operation. You start
text detection by calling StartTextDetection which returns a job identifier
(
Each element of the array includes the detected text, the precentage confidence in the acuracy of the detected text, the time the text was detected, bounding box information for where the text was located, and unique identifiers for words and their lines.
Use MaxResults parameter to limit the number of text detections returned. If there
are more results than specified in |
![]() |
GetTextDetectionAsync(GetTextDetectionRequest, CancellationToken) |
Gets the text detection results of a Amazon Rekognition Video analysis started by StartTextDetection.
Text detection with Amazon Rekognition Video is an asynchronous operation. You start
text detection by calling StartTextDetection which returns a job identifier
(
Each element of the array includes the detected text, the precentage confidence in the acuracy of the detected text, the time the text was detected, bounding box information for where the text was located, and unique identifiers for words and their lines.
Use MaxResults parameter to limit the number of text detections returned. If there
are more results than specified in |
![]() |
IndexFaces(IndexFacesRequest) |
Detects faces in the input image and adds them to the specified collection. Amazon Rekognition doesn't save the actual faces that are detected. Instead, the underlying detection algorithm first detects the faces in the input image. For each face, the algorithm extracts facial features into a feature vector, and stores it in the backend database. Amazon Rekognition uses feature vectors when it performs face match and search operations using the SearchFaces and SearchFacesByImage operations. For more information, see Adding faces to a collection in the Amazon Rekognition Developer Guide. To get the number of faces in a collection, call DescribeCollection.
If you're using version 1.0 of the face detection model,
If you're using version 4 or later of the face model, image orientation information
is not returned in the
To determine which version of the model you're using, call DescribeCollection
and supply the collection ID. You can also get the model version from the value of
For more information, see Model Versioning in the Amazon Rekognition Developer Guide.
If you provide the optional
You can specify the maximum number of faces to index with the
The To use quality filtering, you need a collection associated with version 3 of the face model or higher. To get the version of the face model associated with a collection, call DescribeCollection.
Information about faces detected in an image, but not indexed, is returned in an array
of UnindexedFace objects,
In response, the
If you request
If you provide the same image, specify the same collection, and use the same external
ID in the The input image is passed either as base64-encoded image bytes, or as a reference to an image in an Amazon S3 bucket. If you use the AWS CLI to call Amazon Rekognition operations, passing image bytes isn't supported. The image must be formatted as a PNG or JPEG file.
This operation requires permissions to perform the |
![]() |
IndexFacesAsync(IndexFacesRequest, CancellationToken) |
Detects faces in the input image and adds them to the specified collection. Amazon Rekognition doesn't save the actual faces that are detected. Instead, the underlying detection algorithm first detects the faces in the input image. For each face, the algorithm extracts facial features into a feature vector, and stores it in the backend database. Amazon Rekognition uses feature vectors when it performs face match and search operations using the SearchFaces and SearchFacesByImage operations. For more information, see Adding faces to a collection in the Amazon Rekognition Developer Guide. To get the number of faces in a collection, call DescribeCollection.
If you're using version 1.0 of the face detection model,
If you're using version 4 or later of the face model, image orientation information
is not returned in the
To determine which version of the model you're using, call DescribeCollection
and supply the collection ID. You can also get the model version from the value of
For more information, see Model Versioning in the Amazon Rekognition Developer Guide.
If you provide the optional
You can specify the maximum number of faces to index with the
The To use quality filtering, you need a collection associated with version 3 of the face model or higher. To get the version of the face model associated with a collection, call DescribeCollection.
Information about faces detected in an image, but not indexed, is returned in an array
of UnindexedFace objects,
In response, the
If you request
If you provide the same image, specify the same collection, and use the same external
ID in the The input image is passed either as base64-encoded image bytes, or as a reference to an image in an Amazon S3 bucket. If you use the AWS CLI to call Amazon Rekognition operations, passing image bytes isn't supported. The image must be formatted as a PNG or JPEG file.
This operation requires permissions to perform the |
![]() |
ListCollections(ListCollectionsRequest) |
Returns list of collection IDs in your account. If the result is truncated, the response
also provides a For an example, see Listing collections in the Amazon Rekognition Developer Guide.
This operation requires permissions to perform the |
![]() |
ListCollectionsAsync(ListCollectionsRequest, CancellationToken) |
Returns list of collection IDs in your account. If the result is truncated, the response
also provides a For an example, see Listing collections in the Amazon Rekognition Developer Guide.
This operation requires permissions to perform the |
![]() |
ListDatasetEntries(ListDatasetEntriesRequest) |
This operation applies only to Amazon Rekognition Custom Labels.
Lists the entries (images) within a dataset. An entry is a JSON Line that contains the information for a single image, including the image location, assigned labels, and object location bounding boxes. For more information, see Creating a manifest file.
JSON Lines in the response include information about non-terminal errors found in
the dataset. Non terminal errors are reported in You can filter the response in variety of ways, such as choosing which labels to return and returning JSON Lines created after a specific date.
This operation requires permissions to perform the |
![]() |
ListDatasetEntriesAsync(ListDatasetEntriesRequest, CancellationToken) |
This operation applies only to Amazon Rekognition Custom Labels.
Lists the entries (images) within a dataset. An entry is a JSON Line that contains the information for a single image, including the image location, assigned labels, and object location bounding boxes. For more information, see Creating a manifest file.
JSON Lines in the response include information about non-terminal errors found in
the dataset. Non terminal errors are reported in You can filter the response in variety of ways, such as choosing which labels to return and returning JSON Lines created after a specific date.
This operation requires permissions to perform the |
![]() |
ListDatasetLabels(ListDatasetLabelsRequest) |
This operation applies only to Amazon Rekognition Custom Labels.
Lists the labels in a dataset. Amazon Rekognition Custom Labels uses labels to describe images. For more information, see Labeling images. Lists the labels in a dataset. Amazon Rekognition Custom Labels uses labels to describe images. For more information, see Labeling images in the Amazon Rekognition Custom Labels Developer Guide. |
![]() |
ListDatasetLabelsAsync(ListDatasetLabelsRequest, CancellationToken) |
This operation applies only to Amazon Rekognition Custom Labels.
Lists the labels in a dataset. Amazon Rekognition Custom Labels uses labels to describe images. For more information, see Labeling images. Lists the labels in a dataset. Amazon Rekognition Custom Labels uses labels to describe images. For more information, see Labeling images in the Amazon Rekognition Custom Labels Developer Guide. |
![]() |
ListFaces(ListFacesRequest) |
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 |
![]() |
ListFacesAsync(ListFacesRequest, CancellationToken) |
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 |
![]() |
ListMediaAnalysisJobs(ListMediaAnalysisJobsRequest) |
Returns a list of media analysis jobs. Results are sorted by |
![]() |
ListMediaAnalysisJobsAsync(ListMediaAnalysisJobsRequest, CancellationToken) |
Returns a list of media analysis jobs. Results are sorted by |
![]() |
ListProjectPolicies(ListProjectPoliciesRequest) |
This operation applies only to Amazon Rekognition Custom Labels.
Gets a list of the project policies attached to a project. To attach a project policy to a project, call PutProjectPolicy. To remove a project policy from a project, call DeleteProjectPolicy.
This operation requires permissions to perform the |
![]() |
ListProjectPoliciesAsync(ListProjectPoliciesRequest, CancellationToken) |
This operation applies only to Amazon Rekognition Custom Labels.
Gets a list of the project policies attached to a project. To attach a project policy to a project, call PutProjectPolicy. To remove a project policy from a project, call DeleteProjectPolicy.
This operation requires permissions to perform the |
![]() |
ListStreamProcessors(ListStreamProcessorsRequest) |
Gets a list of stream processors that you have created with CreateStreamProcessor. |
![]() |
ListStreamProcessorsAsync(ListStreamProcessorsRequest, CancellationToken) |
Gets a list of stream processors that you have created with CreateStreamProcessor. |
![]() |
ListTagsForResource(ListTagsForResourceRequest) |
Returns a list of tags in an Amazon Rekognition collection, stream processor, or Custom Labels model.
This operation requires permissions to perform the |
![]() |
ListTagsForResourceAsync(ListTagsForResourceRequest, CancellationToken) |
Returns a list of tags in an Amazon Rekognition collection, stream processor, or Custom Labels model.
This operation requires permissions to perform the |
![]() |
ListUsers(ListUsersRequest) |
Returns metadata of the User such as |
![]() |
ListUsersAsync(ListUsersRequest, CancellationToken) |
Returns metadata of the User such as |
![]() |
PutProjectPolicy(PutProjectPolicyRequest) |
This operation applies only to Amazon Rekognition Custom Labels.
Attaches a project policy to a Amazon Rekognition Custom Labels project in a trusting AWS account. A project policy specifies that a trusted AWS account can copy a model version from a trusting AWS account to a project in the trusted AWS account. To copy a model version you use the CopyProjectVersion operation. Only applies to Custom Labels projects. For more information about the format of a project policy document, see Attaching a project policy (SDK) in the Amazon Rekognition Custom Labels Developer Guide.
The response from To remove a project policy from a project, call DeleteProjectPolicy. To get a list of project policies attached to a project, call ListProjectPolicies. You copy a model version by calling CopyProjectVersion.
This operation requires permissions to perform the |
![]() |
PutProjectPolicyAsync(PutProjectPolicyRequest, CancellationToken) |
This operation applies only to Amazon Rekognition Custom Labels.
Attaches a project policy to a Amazon Rekognition Custom Labels project in a trusting AWS account. A project policy specifies that a trusted AWS account can copy a model version from a trusting AWS account to a project in the trusted AWS account. To copy a model version you use the CopyProjectVersion operation. Only applies to Custom Labels projects. For more information about the format of a project policy document, see Attaching a project policy (SDK) in the Amazon Rekognition Custom Labels Developer Guide.
The response from To remove a project policy from a project, call DeleteProjectPolicy. To get a list of project policies attached to a project, call ListProjectPolicies. You copy a model version by calling CopyProjectVersion.
This operation requires permissions to perform the |
![]() |
RecognizeCelebrities(RecognizeCelebritiesRequest) |
Returns an array of celebrities recognized in the input image. For more information, see Recognizing celebrities in the Amazon Rekognition Developer Guide.
For each celebrity recognized,
Amazon Rekognition doesn't retain information about which images a celebrity has been
recognized in. Your application must store this information and use the You pass the input image either as base64-encoded image bytes or as a reference to an image in an Amazon S3 bucket. If you use the AWS CLI to call Amazon Rekognition operations, passing image bytes is not supported. The image must be either a PNG or JPEG formatted file. For an example, see Recognizing celebrities in an image in the Amazon Rekognition Developer Guide.
This operation requires permissions to perform the |
![]() |
RecognizeCelebritiesAsync(RecognizeCelebritiesRequest, CancellationToken) |
Returns an array of celebrities recognized in the input image. For more information, see Recognizing celebrities in the Amazon Rekognition Developer Guide.
For each celebrity recognized,
Amazon Rekognition doesn't retain information about which images a celebrity has been
recognized in. Your application must store this information and use the You pass the input image either as base64-encoded image bytes or as a reference to an image in an Amazon S3 bucket. If you use the AWS CLI to call Amazon Rekognition operations, passing image bytes is not supported. The image must be either a PNG or JPEG formatted file. For an example, see Recognizing celebrities in an image in the Amazon Rekognition Developer Guide.
This operation requires permissions to perform the |
![]() |
SearchFaces(SearchFacesRequest) |
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.
You can also search faces without indexing faces by using the
The operation response returns an array of faces that match, ordered by similarity
score with the highest similarity first. More specifically, it is an array of metadata
for each face match that is found. Along with the metadata, the response also includes
a For an example, see Searching for a face using its face ID in the Amazon Rekognition Developer Guide.
This operation requires permissions to perform the |
![]() |
SearchFacesAsync(SearchFacesRequest, CancellationToken) |
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.
You can also search faces without indexing faces by using the
The operation response returns an array of faces that match, ordered by similarity
score with the highest similarity first. More specifically, it is an array of metadata
for each face match that is found. Along with the metadata, the response also includes
a For an example, see Searching for a face using its face ID in the Amazon Rekognition Developer Guide.
This operation requires permissions to perform the |
![]() |
SearchFacesByImage(SearchFacesByImageRequest) |
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.
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.
You can also call the You pass the input image either as base64-encoded image bytes or as a reference to an image in an Amazon S3 bucket. If you use the AWS CLI to call Amazon Rekognition operations, passing image bytes is not supported. The image must be either a PNG or JPEG formatted file.
The response returns an array of faces that match, ordered by similarity score with
the highest similarity first. More specifically, it is an array of metadata for each
face match found. Along with the metadata, the response also includes a
If no faces are detected in the input image, For an example, Searching for a Face Using an Image in the Amazon Rekognition Developer Guide.
The To use quality filtering, you need a collection associated with version 3 of the face model or higher. To get the version of the face model associated with a collection, call DescribeCollection.
This operation requires permissions to perform the |
![]() |
SearchFacesByImageAsync(SearchFacesByImageRequest, CancellationToken) |
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.
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.
You can also call the You pass the input image either as base64-encoded image bytes or as a reference to an image in an Amazon S3 bucket. If you use the AWS CLI to call Amazon Rekognition operations, passing image bytes is not supported. The image must be either a PNG or JPEG formatted file.
The response returns an array of faces that match, ordered by similarity score with
the highest similarity first. More specifically, it is an array of metadata for each
face match found. Along with the metadata, the response also includes a
If no faces are detected in the input image, For an example, Searching for a Face Using an Image in the Amazon Rekognition Developer Guide.
The To use quality filtering, you need a collection associated with version 3 of the face model or higher. To get the version of the face model associated with a collection, call DescribeCollection.
This operation requires permissions to perform the |
![]() |
SearchUsers(SearchUsersRequest) |
Searches for UserIDs within a collection based on a |
![]() |
SearchUsersAsync(SearchUsersRequest, CancellationToken) |
Searches for UserIDs within a collection based on a |
![]() |
SearchUsersByImage(SearchUsersByImageRequest) |
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. The operation returns an array of UserIDs that match the face in the supplied image, ordered by similarity score with the highest similarity first. It also returns a bounding box for the face found in the input image.
Information about faces detected in the supplied image, but not used for the search,
is returned in an array of |
![]() |
SearchUsersByImageAsync(SearchUsersByImageRequest, CancellationToken) |
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. The operation returns an array of UserIDs that match the face in the supplied image, ordered by similarity score with the highest similarity first. It also returns a bounding box for the face found in the input image.
Information about faces detected in the supplied image, but not used for the search,
is returned in an array of |
![]() |
StartCelebrityRecognition(StartCelebrityRecognitionRequest) |
Starts asynchronous recognition of celebrities in a stored video.
Amazon Rekognition Video can detect celebrities in a video must be stored in an Amazon
S3 bucket. Use Video to specify the bucket name and the filename of the video.
For more information, see Recognizing celebrities in the Amazon Rekognition Developer Guide. |
![]() |
StartCelebrityRecognitionAsync(StartCelebrityRecognitionRequest, CancellationToken) |
Starts asynchronous recognition of celebrities in a stored video.
Amazon Rekognition Video can detect celebrities in a video must be stored in an Amazon
S3 bucket. Use Video to specify the bucket name and the filename of the video.
For more information, see Recognizing celebrities in the Amazon Rekognition Developer Guide. |
![]() |
StartContentModeration(StartContentModerationRequest) |
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.
Amazon Rekognition Video can moderate content in a video stored in an Amazon S3 bucket.
Use Video to specify the bucket name and the filename of the video.
To get the results of the content analysis, first check that the status value published
to the Amazon SNS topic is For more information, see Moderating content in the Amazon Rekognition Developer Guide. |
![]() |
StartContentModerationAsync(StartContentModerationRequest, CancellationToken) |
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.
Amazon Rekognition Video can moderate content in a video stored in an Amazon S3 bucket.
Use Video to specify the bucket name and the filename of the video.
To get the results of the content analysis, first check that the status value published
to the Amazon SNS topic is For more information, see Moderating content in the Amazon Rekognition Developer Guide. |
![]() |
StartFaceDetection(StartFaceDetectionRequest) |
Starts asynchronous detection of faces in a stored video.
Amazon Rekognition Video can detect faces in a video stored in an Amazon S3 bucket.
Use Video to specify the bucket name and the filename of the video. For more information, see Detecting faces in a stored video in the Amazon Rekognition Developer Guide. |
![]() |
StartFaceDetectionAsync(StartFaceDetectionRequest, CancellationToken) |
Starts asynchronous detection of faces in a stored video.
Amazon Rekognition Video can detect faces in a video stored in an Amazon S3 bucket.
Use Video to specify the bucket name and the filename of the video. For more information, see Detecting faces in a stored video in the Amazon Rekognition Developer Guide. |
![]() |
StartFaceSearch(StartFaceSearchRequest) |
Starts the asynchronous search for faces in a collection that match the faces of persons detected in a stored video.
The video must be stored in an Amazon S3 bucket. Use Video to specify the bucket
name and the filename of the video. |
![]() |
StartFaceSearchAsync(StartFaceSearchRequest, CancellationToken) |
Starts the asynchronous search for faces in a collection that match the faces of persons detected in a stored video.
The video must be stored in an Amazon S3 bucket. Use Video to specify the bucket
name and the filename of the video. |
![]() |
StartLabelDetection(StartLabelDetectionRequest) |
Starts asynchronous detection of labels in a stored video. Amazon Rekognition Video can detect labels in a video. Labels are instances of real-world entities. This includes objects like flower, tree, and table; events like wedding, graduation, and birthday party; concepts like landscape, evening, and nature; and activities like a person getting out of a car or a person skiing.
The video must be stored in an Amazon S3 bucket. Use Video to specify the bucket
name and the filename of the video.
To get the results of the label detection operation, first check that the status value
published to the Amazon SNS topic is Optional Parameters
You can specify |
![]() |
StartLabelDetectionAsync(StartLabelDetectionRequest, CancellationToken) |
Starts asynchronous detection of labels in a stored video. Amazon Rekognition Video can detect labels in a video. Labels are instances of real-world entities. This includes objects like flower, tree, and table; events like wedding, graduation, and birthday party; concepts like landscape, evening, and nature; and activities like a person getting out of a car or a person skiing.
The video must be stored in an Amazon S3 bucket. Use Video to specify the bucket
name and the filename of the video.
To get the results of the label detection operation, first check that the status value
published to the Amazon SNS topic is Optional Parameters
You can specify |
![]() |
StartMediaAnalysisJob(StartMediaAnalysisJobRequest) |
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. |
![]() |
StartMediaAnalysisJobAsync(StartMediaAnalysisJobRequest, CancellationToken) |
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. |
![]() |
StartPersonTracking(StartPersonTrackingRequest) |
Starts the asynchronous tracking of a person's path in a stored video.
Amazon Rekognition Video can track the path of people in a video stored in an Amazon
S3 bucket. Use Video to specify the bucket name and the filename of the video.
To get the results of the person detection operation, first check that the status
value published to the Amazon SNS topic is |
![]() |
StartPersonTrackingAsync(StartPersonTrackingRequest, CancellationToken) |
Starts the asynchronous tracking of a person's path in a stored video.
Amazon Rekognition Video can track the path of people in a video stored in an Amazon
S3 bucket. Use Video to specify the bucket name and the filename of the video.
To get the results of the person detection operation, first check that the status
value published to the Amazon SNS topic is |
![]() |
StartProjectVersion(StartProjectVersionRequest) |
This operation applies only to Amazon Rekognition Custom Labels.
Starts the running of the version of a model. Starting a model takes a while to complete. To check the current state of the model, use DescribeProjectVersions. Once the model is running, you can detect custom labels in new images by calling DetectCustomLabels. You are charged for the amount of time that the model is running. To stop a running model, call StopProjectVersion.
This operation requires permissions to perform the |
![]() |
StartProjectVersionAsync(StartProjectVersionRequest, CancellationToken) |
This operation applies only to Amazon Rekognition Custom Labels.
Starts the running of the version of a model. Starting a model takes a while to complete. To check the current state of the model, use DescribeProjectVersions. Once the model is running, you can detect custom labels in new images by calling DetectCustomLabels. You are charged for the amount of time that the model is running. To stop a running model, call StopProjectVersion.
This operation requires permissions to perform the |
![]() |
StartSegmentDetection(StartSegmentDetectionRequest) |
Starts asynchronous detection of segment detection in a stored video.
Amazon Rekognition Video can detect segments in a video stored in an Amazon S3 bucket.
Use Video to specify the bucket name and the filename of the video.
You can use the
To get the results of the segment detection operation, first check that the status
value published to the Amazon SNS topic is For more information, see Detecting video segments in stored video in the Amazon Rekognition Developer Guide. |
![]() |
StartSegmentDetectionAsync(StartSegmentDetectionRequest, CancellationToken) |
Starts asynchronous detection of segment detection in a stored video.
Amazon Rekognition Video can detect segments in a video stored in an Amazon S3 bucket.
Use Video to specify the bucket name and the filename of the video.
You can use the
To get the results of the segment detection operation, first check that the status
value published to the Amazon SNS topic is For more information, see Detecting video segments in stored video in the Amazon Rekognition Developer Guide. |
![]() |
StartStreamProcessor(StartStreamProcessorRequest) |
Starts processing a stream processor. You create a stream processor by calling CreateStreamProcessor.
To tell
If you are using a label detection stream processor to detect labels, you need to
provide a |
![]() |
StartStreamProcessorAsync(StartStreamProcessorRequest, CancellationToken) |
Starts processing a stream processor. You create a stream processor by calling CreateStreamProcessor.
To tell
If you are using a label detection stream processor to detect labels, you need to
provide a |
![]() |
StartTextDetection(StartTextDetectionRequest) |
Starts asynchronous detection of text in a stored video.
Amazon Rekognition Video can detect text in a video stored in an Amazon S3 bucket.
Use Video to specify the bucket name and the filename of the video.
To get the results of the text detection operation, first check that the status value
published to the Amazon SNS topic is |
![]() |
StartTextDetectionAsync(StartTextDetectionRequest, CancellationToken) |
Starts asynchronous detection of text in a stored video.
Amazon Rekognition Video can detect text in a video stored in an Amazon S3 bucket.
Use Video to specify the bucket name and the filename of the video.
To get the results of the text detection operation, first check that the status value
published to the Amazon SNS topic is |
![]() |
StopProjectVersion(StopProjectVersionRequest) |
This operation applies only to Amazon Rekognition Custom Labels.
Stops a running model. The operation might take a while to complete. To check the current status, call DescribeProjectVersions. Only applies to Custom Labels projects.
This operation requires permissions to perform the |
![]() |
StopProjectVersionAsync(StopProjectVersionRequest, CancellationToken) |
This operation applies only to Amazon Rekognition Custom Labels.
Stops a running model. The operation might take a while to complete. To check the current status, call DescribeProjectVersions. Only applies to Custom Labels projects.
This operation requires permissions to perform the |
![]() |
StopStreamProcessor(StopStreamProcessorRequest) |
Stops a running stream processor that was created by CreateStreamProcessor. |
![]() |
StopStreamProcessorAsync(StopStreamProcessorRequest, CancellationToken) |
Stops a running stream processor that was created by CreateStreamProcessor. |
![]() |
TagResource(TagResourceRequest) |
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.
This operation requires permissions to perform the |
![]() |
TagResourceAsync(TagResourceRequest, CancellationToken) |
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.
This operation requires permissions to perform the |
![]() |
UntagResource(UntagResourceRequest) |
Removes one or more tags from an Amazon Rekognition collection, stream processor, or Custom Labels model.
This operation requires permissions to perform the |
![]() |
UntagResourceAsync(UntagResourceRequest, CancellationToken) |
Removes one or more tags from an Amazon Rekognition collection, stream processor, or Custom Labels model.
This operation requires permissions to perform the |
![]() |
UpdateDatasetEntries(UpdateDatasetEntriesRequest) |
This operation applies only to Amazon Rekognition Custom Labels.
Adds or updates one or more entries (images) in a dataset. An entry is a JSON Line which contains the information for a single image, including the image location, assigned labels, and object location bounding boxes. For more information, see Image-Level labels in manifest files and Object localization in manifest files in the Amazon Rekognition Custom Labels Developer Guide.
If the
You specify the changes that you want to make in the
To check if any non-terminal errors occured, call ListDatasetEntries and check
for the presence of
Dataset update fails if a terminal error occurs (
This operation requires permissions to perform the |
![]() |
UpdateDatasetEntriesAsync(UpdateDatasetEntriesRequest, CancellationToken) |
This operation applies only to Amazon Rekognition Custom Labels.
Adds or updates one or more entries (images) in a dataset. An entry is a JSON Line which contains the information for a single image, including the image location, assigned labels, and object location bounding boxes. For more information, see Image-Level labels in manifest files and Object localization in manifest files in the Amazon Rekognition Custom Labels Developer Guide.
If the
You specify the changes that you want to make in the
To check if any non-terminal errors occured, call ListDatasetEntries and check
for the presence of
Dataset update fails if a terminal error occurs (
This operation requires permissions to perform the |
![]() |
UpdateStreamProcessor(UpdateStreamProcessorRequest) |
Allows you to update a stream processor. You can change some settings and regions of interest and delete certain parameters. |
![]() |
UpdateStreamProcessorAsync(UpdateStreamProcessorRequest, CancellationToken) |
Allows you to update a stream processor. You can change some settings and regions of interest and delete certain parameters. |
Name | Description | |
---|---|---|
![]() |
AfterResponseEvent | Inherited from Amazon.Runtime.AmazonServiceClient. |
![]() |
BeforeRequestEvent | Inherited from Amazon.Runtime.AmazonServiceClient. |
![]() |
ExceptionEvent | Inherited from Amazon.Runtime.AmazonServiceClient. |
.NET:
Supported in: 8.0 and newer, Core 3.1
.NET Standard:
Supported in: 2.0
.NET Framework:
Supported in: 4.5 and newer, 3.5