Skip to content

Instantly share code, notes, and snippets.

@elbruno
Created May 22, 2019 16:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save elbruno/0e0b40f0434e656c97bbb0c134f22358 to your computer and use it in GitHub Desktop.
Save elbruno/0e0b40f0434e656c97bbb0c134f22358 to your computer and use it in GitHub Desktop.
FaceDetectionLoadFaces.py
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