AWS, Cloud Computing

3 Mins Read

Facial Recognition with Amazon Rekognition Users

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.

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.

Pioneers in Cloud Consulting & Migration Services

  • Reduced infrastructural costs
  • Accelerated application deployment
Get Started

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 official AWS (Amazon Web Services) Advanced Consulting Partner and Training partner, AWS Migration Partner, AWS Data and Analytics Partner, AWS DevOps Competency Partner, Amazon QuickSight Service Delivery Partner, Amazon EKS Service Delivery Partner, and Microsoft Gold Partner, helping people develop knowledge of the cloud and help their businesses aim for higher goals using best-in-industry cloud computing practices and expertise. We are on a mission to build a robust cloud computing ecosystem by disseminating knowledge on technological intricacies within the cloud space. Our blogs, webinars, case studies, and white papers enable all the stakeholders in the cloud computing sphere.

To get started, go through our Consultancy page and Managed Services PackageCloudThat’s offerings.

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 works as a Research Associate at CloudThat. He is highly skilled in both frontend and backend with good practical knowledge of various skills like Python, Azure Services, AWS Services, and ReactJS. Sridhar is interested in sharing his knowledge with others for improving their skills too.

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!