AWS SDK Version 3 for .NET
API Reference

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.

This is the response object from the DetectCustomLabels operation.

Inheritance Hierarchy

System.Object
  Amazon.Runtime.AmazonWebServiceResponse
    Amazon.Rekognition.Model.DetectCustomLabelsResponse

Namespace: Amazon.Rekognition.Model
Assembly: AWSSDK.Rekognition.dll
Version: 3.x.y.z

Syntax

C#
public class DetectCustomLabelsResponse : AmazonWebServiceResponse

The DetectCustomLabelsResponse type exposes the following members

Constructors

Properties

NameTypeDescription
Public Property ContentLength System.Int64 Inherited from Amazon.Runtime.AmazonWebServiceResponse.
Public Property CustomLabels System.Collections.Generic.List<Amazon.Rekognition.Model.CustomLabel>

Gets and sets the property CustomLabels.

An array of custom labels detected in the input image.

Public Property HttpStatusCode System.Net.HttpStatusCode Inherited from Amazon.Runtime.AmazonWebServiceResponse.
Public Property ResponseMetadata Amazon.Runtime.ResponseMetadata Inherited from Amazon.Runtime.AmazonWebServiceResponse.

Examples

Detects custom labels in an image with an Amazon Rekognition Custom Labels model

To detect custom labels in an image with an Amazon Rekognition Custom Labels model


var client = new AmazonRekognitionClient();
var response = client.DetectCustomLabels(new DetectCustomLabelsRequest 
{
    Image = new Image { S3Object = new S3Object {
        Bucket = "custom-labels-console-us-east-1-1111111111",
        Name = "assets/flowers_1_test_dataset/camellia4.jpg"
    } },
    MaxResults = 100,
    MinConfidence = 50,
    ProjectVersionArn = "arn:aws:rekognition:us-east-1:111122223333:project/my-project/version/my-project.2023-07-31T11.49.37/1690829378219"
});

List<CustomLabel> customLabels = response.CustomLabels;

            

Version Information

.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