The LABEL action uses Amazon Rekognition to identify objects, scenes, activities, concepts, and other visual elements within images.
Use this action to analyze image content and extract descriptive labels that can be used for document classification, workflow routing, content moderation, and automated business decisions. Amazon Rekognition evaluates the image and returns detected labels together with confidence scores. These results can be mapped to process variables and used by subsequent process steps.
The action returns the labels detected in the image, including label name, confidence score, and related categories and metadata, when available. The returned information can be used by gateways, forms, integrations, and other workflow elements to drive process behavior.
The action supports image files up to 15 MB in size. Images larger than 5 MB are automatically uploaded to the configured Amazon S3 bucket before analysis. To perform label detection, the configured AWS user must have access to the S3 bucket, access to Amazon Rekognition, and permission to perform the rekognition:DetectLabels operation.
The authentication for the Rekognition connector is set using the configuration parameters. For more details, see Rekognition Connector Configuration Parameters.
The IAM user configured to run the Rekognition service requires:
- Access to this bucket
- Access to the Rekognition service itself
- Permission to rekognition:DetectLabels
The input parameters of action are:
| Parameter | Type | Required | Description |
|---|---|---|---|
| file | Content | Required | The image file to analyze. The file must be provided through a variable of type Content and must contain a supported image format. |
| mediaType | String | Optional | The media type of the image being analyzed. Example: application/octet-stream. |
| maxLabels | Integer | Optional | The maximum number of labels to return in the analysis results. The default value is 10. |
| confidenceLevel | String | Optional | The minimum confidence score required for a detected label to be included in the results. Specify a value between 0 and 1. Example: 0.75. |
| timeout | Integer | Optional | The maximum time, in milliseconds, that the connector waits for the Rekognition analysis to complete. Example: 910000. |
The output parameters of the action are:
| Parameter | Type | Required | Description |
|---|---|---|---|
| awsResponse | JSON | Optional | The complete response returned by Amazon Rekognition. The contents may include detected labels, confidence scores, categories, and additional analysis metadata returned by the service. |
| labels | JSON | Optional | The labels detected in the analyzed image. The returned data may include label names, confidence scores, parent categories, and other information provided by Amazon Rekognition. |