Detect and Analyze Faces using Amazon Rekognition

 Amazon Rekognition is an AWS Machine Learning tool used to detect, analyze, and compare faces.  As a developer, facial recognition and comparison are a new challenge one will face if they are developing an employee verification system or any other software. To solve this challenge there are two ways to either develop your own machine learning model, develop an API, and manage your own infrastructure. But, this option is expensive, requires advanced knowledge, and needs more time.

The other and the most optimum way is to use this AWS tool named Amazon Rekognition which detects faces in images and videos and provides various details like the position of eyes, detect emotions such as happy or sad in near real-time.

In this article, we will learn to use Amazon Rekognition using the AWS Console. To observe the AWS Rekognition in action follow the below steps:

Step 1: Login/ Create an AWS Account.

If you are new to AWS just create a free tier account for accessing the AWS services for free for the next 12 months. After logging in AWS Dashboard will open automatically. In the top search bar type Amazon Rekognition and hit enter.

aws management console



Step 2: Open the Amazon Rekognition

Once the search is complete an Amazon Rekognition console will open. Starting with the activity, click the facial analysis feature given in the menu box at the left of the screen.

aws rekognition console

Step 3: Select the image 

After this above step, select one image of your choice. You can choose an image of your choice or can also choose the sample images given by AWS. To upload the image click the Blue Upload Button.

input image

Step 4: Look for the Results

Notice the details under the Result drop-down. Click on the Response drop-down to see the JSON results. Notice that under the emotions results there are three detected emotions: happy, confused, and calm.

analysis phaseemotion range

Through this, you can detect and analyze various features of faces. Amazon Rekognition is a great help for developers having issues in detecting faces in images and videos.

Attention reader! Don’t stop learning now. Get hold of all the important CS Theory concepts for SDE interviews with the CS Theory Course at a student-friendly price and become industry ready.

My Personal Notes arrow_drop_up

Check out this Author's contributed articles.

If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to contribute@geeksforgeeks.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.

Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.


Article Tags :

Be the First to upvote.


Please write to us at contribute@geeksforgeeks.org to report any issue with the above content.