Face Recognition

Ishita Mittal
3 min readSep 1, 2021


Task Description πŸ“„

❄️ Create a program that perform below mentioned task upon recognizing a particular face.

πŸ“Œ When it recognize your face then β€”
πŸ‘‰ It send mail to your mail id by writing this is face of your_name.
πŸ‘‰ Second it send WhatsApp message to your friend, it can be anything.

πŸ“Œ When it recognize second face, it can be your friend or family members face.
πŸ‘‰ Create EC2 instance in the AWS using CLI.
πŸ‘‰ Create 5 GB EBS volume and attach it to the instance.

Create Face Dataset :

First we need to create face dataset. The data set will contain 100 image sample of a face.

Importing Face Dataset:

Now we need to import the face dataset that we have created.

Email Function:

Here we will define a function for sending email. The email will contain the information of the face owner that is recognized by our module

WhatsApp Message Function:

Now we will define a function that will automatically send a message to a number containing the details of the face owner.

AWS EC2 Launch Function:

Here we will create a function to create a EC2 instance and attach a 5GB EBS volume to it.

Final Code:

Now we will create a program that will run the above created functions. This is the final step

So finally, we have successfully created a python program that detects our face using opencv and automatically sends a WhatsApp message, an email and launches a AWS EC2 instance and attach a 5GB EBS volume to the instance.

Thank you for your valuable time reading this article. Do comment as your review matters a lot… Until then see you next time