AWS, Cloud Computing

3 Mins Read

Facial Recognition with Amazon Rekognition Users

Voiced by Amazon Polly

Overview

Facial recognition technology has made significant strides in accuracy and precision, with services like Amazon Rekognition that maintain collections of known users. By comparing detected faces against these user collections, the service enhances identification accuracy and minimizes the occurrence of false positives or false negatives. This approach streamlines the organization and management of facial data, particularly when dealing with extensive datasets, ensuring structured and easily accessible user information.

Pioneers in Cloud Consulting & Migration Services

  • Reduced infrastructural costs
  • Accelerated application deployment
Get Started

Introduction

Amazon Rekognition is a cloud-based service provided by Amazon Web Services (AWS) that offers advanced facial recognition capabilities. It leverages artificial intelligence and deep learning technologies to analyze images and videos for the presence of faces and to extract valuable information from them. User collections simplify handling vast facial data by providing an organized framework. Amazon Rekognition allows users to search a collection for a specific face or identify individuals by comparing a detected face against the faces stored in a collection.

Understanding Collections and User

A Collection in Amazon Rekognition is a database where you can store the faces in an image. It’s used for recognizing and searching for faces within a specific group or set of individual faces. The maximum number of faces that can be stored in a collection is 20 million.

A User can be created in the collection by passing the collection name to the API request. Users are used for person-specific recognition and authentication. When a detected face is matched to a user’s face in a collection, it verifies the identity of that individual.

Why do we use User instead of Collection?

While indexing the image with multiple faces, the IndexFaces API should be called first. The API returns the unique faceIDs for those faces in that image, and those faceIDs will be stored in the collection automatically. By default, the IndexFace API returns unique faceIDs each time for each face. So, there is a problem that comes here in this collection is to identify the faces of the individual people with the faceIDs.

To overcome the above issue, we can create the User in the same collection and store the faceIDs of the same person directly to the User by calling CreateUser API and AssociateFaceToUser API instead of a collection. With the user, we can easily identify the faces of the person by calling SearchFacesByUser API.

How to Use Amazon Rekognition on Image: Creating Collections, Indexing Faces, and Assigning Users

face

  • Create a collection with a unique name and follow the same below.
  • Create a User with the random UUID in the same collection
  • Now, Invoke the IndexFace API on the above image and upload the same image in the Amazon S3 bucket.

The above code will provide the faceIds indexed from the IndexFace API on the image having 3 faces of 3 different persons. Below is the response from the above code.

  • Follow the above 2nd step to create three different users as 3 different faces indexed of different persons and follow the below for associating the faces to each user separately.
  • We can know which faceIDs are associated with which Users by calling the ListFaces API.

In the above sample response of ListFaces API, if the faceIDs are associated with a User, then UserId will be added to the response. The UserId key won’t be in the response if it’s not associated. In this way, we can identify the person as a User with different faceIDs or different poses of the same person.

Conclusion

Facial recognition using Amazon Rekognition with Users in a collection offers a powerful way to identify and authenticate individuals in various applications.

In this approach, Users represent specific individuals’ persons, each associated with their unique facial image within a collection.

Drop a query if you have any questions regarding Amazon Rekognition and we will get back to you quickly.

Making IT Networks Enterprise-ready – Cloud Management Services

  • Accelerated cloud migration
  • End-to-end view of the cloud environment
Get Started

About CloudThat

CloudThat is an award-winning company and the first in India to offer cloud training and consulting services worldwide. As a Microsoft Solutions Partner, AWS Advanced Tier Training Partner, and Google Cloud Platform Partner, CloudThat has empowered over 850,000 professionals through 600+ cloud certifications winning global recognition for its training excellence including 20 MCT Trainers in Microsoft’s Global Top 100 and an impressive 12 awards in the last 8 years. CloudThat specializes in Cloud Migration, Data Platforms, DevOps, IoT, and cutting-edge technologies like Gen AI & AI/ML. It has delivered over 500 consulting projects for 250+ organizations in 30+ countries as it continues to empower professionals and enterprises to thrive in the digital-first world.

FAQs

1. What is the maximum number of faces that can be associated with a User?

ANS: – The maximum number of faces associated with a User is 100 faces only.

2. What about the pricing of this service?

ANS: – It follows a pay-as-you-go pricing model, and it depends on the number of API calls on images.

WRITTEN BY Sridhar Andavarapu

Sridhar Andavarapu is a Senior Research Associate at CloudThat, specializing in AWS, Python, SQL, data analytics, and Generative AI. With extensive experience in building scalable data pipelines, interactive dashboards, and AI-driven analytics solutions, he helps businesses transform complex datasets into actionable insights. Passionate about emerging technologies, Sridhar actively researches and shares insights on AI, cloud analytics, and business intelligence. Through his work, he aims to bridge the gap between data and strategy, helping enterprises unlock the full potential of their analytics infrastructure.

Share

Comments

    Click to Comment

Get The Most Out Of Us

Our support doesn't end here. We have monthly newsletters, study guides, practice questions, and more to assist you in upgrading your cloud career. Subscribe to get them all!