Sending Email and connecting to AWS using Face Recognition Model

Shruti Choudhary
4 min readJun 21, 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.
👉 Second it send whatsapp message to your friend.

📌 When it recognize second face, it can be your friend or family members face.
👉 Creates EC2 instance in the AWS.
👉 Creates 5 GB EBS volume and attach it to the instance.

For this task we’ll be using Computer Vision in Python and AWS.

What is cloud computing?

Cloud computing is the on-demand delivery of IT resources over the Internet with pay-as-you-go pricing. Instead of buying, owning, and maintaining physical data centers and servers, you can access technology services, such as computing power, storage, and databases, on an as-needed basis from a cloud provider like Amazon Web Services (AWS).

Cloud computing with AWS

Amazon Web Services (AWS) is the world’s most comprehensive and broadly adopted cloud platform, offering over 200 fully featured services from data centers globally. Millions of customers — including the fastest-growing startups, largest enterprises, and leading government agencies — are using AWS to lower costs, become more agile, and innovate faster.

Let’s assume for example that you own an e-commerce website that is highly variable in its demand from your customers. Perhaps you see high amounts of traffic during the daytime and lower amounts in the evenings, or maybe it varies month to month, with surges around holiday seasons. Before ‘the cloud’ existed, your only choice would have been to buy enough compute power to meet those peak loads. The issue here being that peak loads generally only last for brief periods of time, after which you may have a vast majority of your compute resources just sitting idle. Added to this, purchasing these physical machines incurs additional time and cost for both setup and security. As can be expected, the overhead for addressing scaling in this manner is high, and the sunk costs for your hardware leads to inefficiencies whereby you have a lowered pool of available funds to allocate to other areas of your business.

In cases such as this where workloads are variable, the cloud offers flexibility to both deploy and scale quickly at a fraction of the cost. This becomes especially true as advances in quantum computing continue to coalesce. It will be more economical to rent quantum compute power from a host provider far sooner than it will be to own one outright. It is for these reasons that cloud computing has become such a large industry in a relatively short period of time.

AWS (Amazon Web Services) is a comprehensive, evolving cloud computing platform provided by Amazon that includes a mixture of infrastructure as a service (IaaS), platform as a service (PaaS) and packaged software as a service (SaaS) offerings. AWS services can offer an organization tools such as compute power, database storage and content delivery services.

Amazon EC2: Secure and resizable compute capacity to support virtually any workload

Amazon Elastic Compute Cloud (Amazon EC2) is a web service that provides secure, resizable compute capacity in the cloud. It is designed to make web-scale cloud computing easier for developers. Amazon EC2’s simple web service interface allows you to obtain and configure capacity with minimal friction. It provides you with complete control of your computing resources and lets you run on Amazon’s proven computing environment.

1 ->Now according to the task , firstly we require the dataset to train the model so we’ll be capturing the images using the webcam :

2 -> Now train the model :

3 ->After training the model we will predict the face, it will also show the confidence level upon recognition

4 ->Create Functions of Sending Email and Launching EC2 Instance:

5 ->now just call the functions to see the output !!

THANKS FOR READING !!

--

--

Shruti Choudhary
Shruti Choudhary

Written by Shruti Choudhary

MLOps | Docker | Kubernetes | python | AWS | flutter

No responses yet