Activities
latest
false
Banner background image
Classic Integrations Activities
Last updated Apr 22, 2024

Safe Search

UiPath.AmazonRekognition.Activities.SafeSearch

The Safe Search activity uses the Amazon Rekognition DetectModerationLabels API to detect unsafe content such as explicit nudity and suggestive material within your provided image (ImagePath or ImageURL).

The Safe Search activity returns a boolean value for nudity (ExplicitNudity) and suggestive content (Suggestive). The activity also returns an array of the unsafe content categories and explanations (Result) that were applied to the image (e.g., Revealing Clothes). For a complete list of the possible categories, see the Result property in the Output section below.

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

Outputs(Variables)

UnsafeContent[]

Applies to property: Result

Boolean

Applies to property: ExplicitNudity and Suggestive

API used

Amazon Rekognition - DetectModerationLabels

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

Safe Search

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 that the unsafe content was correctly detected.

Attributes

Description

Type

Double

Required

No

Default value

0.50 (not displayed in the property)

Allowed values

Enter a number between 0 and 1 to indicate the percentage of confidence (e.g., enter .9 if you want the confidence to be 90%).

Notes

If this property is set, the Words and Lines properties only return the words and lines that meet or exceed the specified value

Output

ExplicitNudity

Specifies (True/False) that the image contains explicit nudity.

Attributes

Details

Type

Boolean

Required

No (recommended if you plan to use the output data in subsequent activities)

Default value

Empty

Allowed values

Enter your value as a Boolean variable.

Notes

The following are the explanations that fall under the explicit nudity category. These values are returned in Result property when specified.

  • Nudity
  • Graphic Male Nudity
  • Graphic Female Nudity
  • Sexual Activity
  • Illustrated Nudity Or Sexual Activity
  • Adult Toys

Result

An array of all unsafe categories and explanations found in the image.

Attributes

Details

Type

UnsafeContent[]

Required

No (recommended if you plan to use the output data in subsequent activities)

Default value

Empty

Allowed values

Enter your value as a UnsafeContent[]variable.

Notes

The following are the possible values that may be returned when the Category property is requested from the UnsafeContent datatype:
  • Explicit Nudity
  • Suggestive
  • Safe
The following are the possible values that may be returned when the Explanation property is requested from UnsafeContent datatype:
  • Nudity
  • Graphic Male Nudity
  • Graphic Female Nudity
  • Sexual Activity
  • Illustrated Nudity Or Sexual Activity
  • Adult Toys
  • Female Swimwear Or Underwear
  • Male Swimwear Or Underwear
  • Partial Nudity
  • Revealing Clothes

Suggestive

Specifies (True/False) that the image contains suggestive content.

Attributes

Details

Type

Boolean

Required

No (recommended if you plan to use the output data in subsequent activities)

Default value

Empty

Allowed values

Enter your value as a Boolean variable.

Notes

The following are the explanations that fall under the suggestive content category. These values are returned in Result property when specified.

  • Female Swimwear Or Underwear
  • Male Swimwear Or Underwear
  • Partial Nudity
  • Revealing Clothes
  • 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.