-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathknown_faces.py
45 lines (35 loc) · 1.35 KB
/
known_faces.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
from face_recognition import load_image_file, face_encodings
# Load sample pictures and learn how to recognize it.
zeghoud_image = load_image_file("faces/zeghoud_id.jpg")
zeghoud_face_encoding = face_encodings(zeghoud_image)[0]
# bousri_image = load_image_file("faces/bousri_id.jpg")
# bousri_face_encoding = face_encodings(bousri_image)[0]
# zahar_image = load_image_file("faces/zahar_id.jpg")
# zahar_face_encoding = face_encodings(zahar_image)[0]
# khiar_image = load_image_file("faces/khiar_id.jpg")
# khiar_face_encoding = face_encodings(khiar_image)[0]
labreche_image = load_image_file("faces/labreche_id.jpg")
labreche_face_encoding = face_encodings(labreche_image)[0]
obama_image = load_image_file("faces/obama_id.jpg")
obama_face_encoding = face_encodings(obama_image)[0]
biden_image = load_image_file("faces/biden_id.jpg")
biden_face_encoding = face_encodings(biden_image)[0]
# Create arrays of known face encodings and their names
known_face_encodings = [
zeghoud_face_encoding,
# bousri_face_encoding,
# zahar_face_encoding,
# khiar_face_encoding,
labreche_face_encoding,
obama_face_encoding,
biden_face_encoding,
]
known_face_names = [
"Sofiane Zeghoud",
# "Houssam Bousri",
# "Youcef Zahar",
# "Hamza Khiar",
"Labreche Massinissa",
"Barack Obama",
"Joe Biden"
]