Created
May 22, 2019 16:03
-
-
Save elbruno/0e0b40f0434e656c97bbb0c134f22358 to your computer and use it in GitHub Desktop.
FaceDetectionLoadFaces.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def LoadFaces(): | |
bruno_image = face_recognition.load_image_file("d:\Faces\Bruno1.jpg") | |
bruno_face_encoding = face_recognition.face_encodings(bruno_image)[0] | |
valentino_image = face_recognition.load_image_file("d:\Faces\Valen1.jpg") | |
valentino_face_encoding = face_recognition.face_encodings(valentino_image)[0] | |
known_face_encodings = [ | |
bruno_face_encoding, | |
valentino_face_encoding | |
] | |
known_face_names = [ | |
"Bruno", | |
"Valentino" | |
] | |
return known_face_encodings, known_face_names; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment