All about how to notify the owner if a particular face is detected. Before starting explanation of this project , i want to recommend you that first you go through my face recognition attendance repository , once you will understand that repository , you can understand this file very easily and mainly it's concept . I am very sorry that i haven't added bunch of comments with in code but i will recommend to go through the file if you have a good knowledge of python and opencv with mail in python Project in short: it captures the live video and detect all faces in that video . Then it matches these faces with the unauthorized person's face. If mathch is positive then it sends the mail to owner . Thank you.