Raspberry Pi Facial Recognition - Optimize python program , fix small error

Job ID: 35464835

Budget: $10 – $30 USD

I currently have a working python project that uses facal recognition to control a servo motor.

What works -- Facial recognition, servo motor opens when know face is detected.
Model is trained and successfully detects faces.

What I need - fix code so servo will close when no face/unknow is detected. Send an email with a picture of the face when an unknown face is deteted

All working off raspberry PI 3.

Files Attached

FacialRecServo.py - Main code
headshots.py - takes photos and registers new face
train_model.py - Trains model and created the encoding.pickle file


Can provide teamviewer access to PI if required
Related categories: Python Face Recognition Raspberry Pi