Facerecgnition using computer vision

VidyaMai S
2 min readJun 24, 2021

--

In this task we will send message in whatsapp and gmail messages once the recognised face is identified. If the face is not yours then it will create aws instance and attach a volume to it.

using cv2 module we click 100 pictures of the face and crop the face and using haarcascade we detect the face.

once the samples are collected we store those samples in a folder where the path of the folder should be mentioned in the code

it will give the output as collecting samples completed once it is over the model gets trained.

the main function we use here is LBPHfacerecognizer which helps us to detect the face by training the model.

using smtplib library we send message in the mail

and using pywhatkit library we send whatsapp message

if the face is others it will create aws instance and we will attach volume to it.

if other no face is detected it will print no face found and looking for face.

thank you!!

--

--