Automate Image Labeling with Amazon Rekognition

Lab Steps

Logging in to the Amazon Web Services Console
Object Detection Context and Limitations
Create an S3 bucket
Create a new Lambda Function with an S3 trigger
Implement the Object Detection logic
Test the labeling system with new images

The hands-on lab is part of these learning paths

Applying Machine Learning and AI Services on AWS
course-steps 5 certification 1 lab-steps 2
AWS Big Data – Specialty Certification Preparation for AWS
course-steps 14 certification 1 lab-steps 4

Ready for the real environment experience?

Time Limit1h
star star star star star-half


How to automate object detection with Amazon Rekognition

Amazon Rekognition allows you to detect objects and scene details from images. It provides a stateless and secure API that simply returns a list of related labels, with a certain confidence level.

In order to automate the labels extraction process, we will build a serverless system that runs object detection on every image uploaded to S3. We will use AWS Lambda for the processing logic and save the results on a DynamoDB table.

We will see how to setup S3, DynamoDB, and AWS Lambda to automate the whole process. During this Laboratory, we will also discuss its API details, optional parameters, best practices, etc.



February 21st, 2020 - Updated instructions to clarify the need to use the provided code and the detect labels API for the lab to function correctly

January 10th, 2019 - Added a validation Lab Step to check the work you perform in the Lab

About the Author

Alex is an Italian Software Engineer with a great passion for web technologies and music.

He spent the last 5 years building web products and deepening his knowledge on full stack web development and software design, with a main focus on frontend and UX.

Despite being a passionate coder, Alex worked hard on his software and sound engineering background, which provides him the tools to deal with multimedia, signal processing, machine learning, AI and many interesting topics related to math and data science.

Indeed, he had the opportunity to study and live in a very young and motivating environment in Bologna and Milan, two of the biggest and oldest Italian Universities. These experiences lead him to work on several projects involving robotics, machine intelligence, music semantic analysis and modern web development.

Alex is currently a Senior Software Engineer at Cloud Academy, a position that gave him the possibility to discover the Cloud world and exploit its potential as a web developer and data scientist.