How to recognize a face and send a email or whatsapp message?

Anirudh Diwan
2 min readJun 24, 2021

--

Creating 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.

--

--

No responses yet