Security camera in Python
Import Cv2 library first (pip install opencv-python) Import pygame (pip install pygame)
Replace example@gmail.com with the address you want the mail to get sent from Replace example passkey with a passkey of your email(first enable 2 factor authentication)(https://support.google.com/accounts/answer/13548313?hl=en#:~:text=Passkeys%20are%20a%20simple%20and,protection%20against%20threats%20like%20phishing) -- for more information
Replace example2@gmail.com with the address you want to receive the email
Download haarcascade_frontalface_default.xml and move it to the project folder to be able to detect faces
Download ahh.mp3 to make detecting faces more fun(plays awkward sound every time a face gets detected)
~etecnos