LabelDetection
When to use the LabelDetection Activity
A label in this context is an object, scene, or concept found in an image based on its contents. For example, a photo of people in a forest may contain labels such as Person, trees, animals, hunting gear (objects), Forest, (scene), and Outdoors (concept). This activity Generates description for all the labels in the specified image, and categorize them along with confidence scores.
Figure 1
Drag and drop an AmazonScope drop zone from the AmazonRekognition package on the canvas. Proceed to provide the AccessKeyID and SecretAccessKey in the pertaining fields. Select the RegionEndPoint from the dropdown.
DisplayName will be auto populated for all activities.
Please Note: AWS AccessKeyID and AWS SecretAccessKey will be provided at the time of registration. This is specific to the Endpoint region, which is also selected at the time of registration.
Important Point: Do not share this unique key with anyone and this is not for public viewing as well.
Figure 2
Drag and drop a LabelDetection activity inside the AmazonScope drop zone. Specify the local ImagePath to detect labels. Create a Variable in the Result field.
Drag and drop a WriteLog activity from the NotificationAutomation package. Provide the InputString and set the LogLevel.
Execute the workflow.
Figure 3
The provided image is as follows:
Figure 4
In the Output window, you can see all the objects in the image have been given a name and thus labeled. The confidence score is also provided.
Figure 5