Detect Labels
UiPath.AmazonRekognition.Activities.DetectLabels
The Detect Labels activity uses the Amazon Rekognition DetectLabels API to detect instances of real-world objects within an input image (ImagePath or ImageURL). This includes objects like flower, tree, and table; events like wedding, graduation, and birthday party; and concepts like landscape, evening, and nature.
The output of the Detect Labels activity is an array of objects (i.e., Labels) that were detected in the image, as well as, the level of confidence that those objects are present.
Summary
Dependencies
| Dependency | Details |
|---|---|
| Packages | UiPath.Amazon.Rekognition.Activities |
| Activities | Amazon Scope |
Attributes
| Attribute |
Details |
|---|---|
| Inputs (Variables) |
|
| Outputs (Variables) |
Applies to property: Labels |
| API used |
Amazon Rekognition - DetectLabels |
| Examples |
Properties
The values for the following properties are specified when adding this activity to your project in UiPath Studio.

Common
DisplayName
The display name of the activity.
| Attributes | Details |
|---|---|
| Type | String |
| Required | Yes |
| Default value | Detect Labels |
| Allowed values | Enter a String or String variable. |
| Notes | N/A |
Input
ImagePath
The path to a local image that you want to analyze.
| Attributes |
Details |
|---|---|
| Type |
|
| Required |
Yes (if the ImageURL is empty) |
| Default value |
Empty |
| Allowed values |
Enter a String or String variable. |
| Notes |
|
ImageURL
The URL of an image that you want to analyze.
| Attributes |
Details |
|---|---|
| Type |
|
| Required |
Yes (if the ImagePath is empty) |
| Default value |
Empty |
| Allowed values |
Enter a String or String variable. |
| Notes |
|
Misc
Private
If selected, the values of variables and arguments are no longer logged at Verbose level.
| Attributes | Details |
|---|---|
| Type | Checkbox |
| Required | No |
| Default value | Not Selected |
| Allowed values | Selected or Not Selected |
| Notes | N/A |
Options
Confidence
The minimum confidence value (i.e., percentage of similarity) the image contains the detected objects.
| Attributes | Description |
|---|---|
| Type | Double |
| Required | No |
| Default value | 0.55 (not displayed in the property) |
| Allowed values | Enter a number between 0 and 1 to indicate the percentage of similarity (e.g., enter .8 if you want the similarity to be 80%). |
| Notes | If this property is set, the Labels property only returns the labels that meet or exceed the specified value |
MaxResults
The maximum number of labels you want the activity to return in the response. The activity returns the specified number of highest confidence labels.
| Attributes | Details |
|---|---|
| Type | Int32 |
| Required | No |
| Default value | Empty |
| Allowed values | Enter a Int32 or Int32 variable. |
| Notes | N/A |
Output
Labels
An array of objects (i.e. labels) that were detected within the image.
| Attributes |
Details |
|---|---|
| Type |
UiPath.Amazon.Rekognition.Models.Label[] |
| Required |
No (recommended if you plan to use the output data in subsequent activities) |
| Default value |
Empty |
| Allowed values |
Enter your value as a Label[] variable. |
| Notes |
|