Face Recognition using Computer Vision which integrates with AWS-CLI and WhatsApp

Dushyanth Desu
3 min readJun 21, 2021

In this blog, I am going to create two Deep Learning models which recognizes two person’s face. After based on upon the face it recognizes, the program either sends WhatsApp message and mail or creates an EC2 instance, EBS volume and attaches that volume to the instance.

The entire source code is available in my GitHub repository
https://github.com/dushyanthdesu/Face-Recognition-whatsapp-aws-integration

Technologies used for this program are
1. Python
2. Computer Vision
3. AWS Cloud

Libraries that are required for this program are listed here.

Before creating the models, we need to collect the datasets for training the model.

Step-1: Collecting Datasets

Here I had used one of the popular algorithm for object detection i.e., Haar Cascade for identifying the faces. For using this you need to install opencv-contrib-python library.
You can install it by using: pip install opencv-contrib-python

I have collected 100 images of two person’s face each and stored to two different folders, so that it will be useful in training the models.

Step-2: Training the model

By using the LBPH face recognizer and by using the collected datasets, I had created two Deep Learning models.

Step-3: Running Face Recognition program and integrating it with AWS and WhatsApp.

If one user’s face is recognized it sends the WhatsApp message and mail.

WhatsApp Message sent
Email Sent

If another user’s face is recognized then it launches an EC2 instance, an EBS volume and attaches the volume to that instance.

EC2 instance launched
EBS created

This is how the program works. Thank you for reading!!!

--

--