Activities
latest
false
Classic Integrations Activities
Last updated Jul 17, 2024

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

Attributes

Attribute

Details

Inputs (Variables)

String

  • Applies to property: ImagePath or ImageURL

Double

  • Applies to property: Confidence

Int32

  • Applies to property: MaxResults

Outputs (Variables)

Labels[]

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

String

Required

Yes (if the ImageURL is empty)

Default value

Empty

Allowed values

Enter a String or String variable.

Notes

  • Either the ImagePath or ImageURL property is required.
  • If you enter values for both the ImagePath and ImageURL, the Image Path value is used.

ImageURL

The URL of an image that you want to analyze.

Attributes

Details

Type

String

Required

Yes (if the ImagePath is empty)

Default value

Empty

Allowed values

Enter a String or String variable.

Notes

  • Either the ImagePath or ImageURL property is required.
  • If you enter values for both the ImagePath and ImageURL, the Image Path value is used.

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

Label[]

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

  • The output data includes the Name and Confidence of each label. For more information see the, Label datatype in the Amazon Rekognition API documentation.
  • If the Confidence value is set, the array only includes the labels that meet or exceed the specified level of similarity.
  • If you plan to use the For Each activity to process the array output, select UiPath.Amazon.Rekognition.Models.Label as the TypeArgument.
  • Summary
  • Dependencies
  • Attributes
  • Properties
  • Common
  • Input
  • Misc
  • Options
  • Output

Was this page helpful?

Get The Help You Need
Learning RPA - Automation Courses
UiPath Community Forum
Uipath Logo White
Trust and Security
© 2005-2024 UiPath. All rights reserved.