Update app.py
Browse files
app.py
CHANGED
|
@@ -40,7 +40,7 @@ for f in os.listdir("data"):
|
|
| 40 |
continue
|
| 41 |
|
| 42 |
# Get the face encodings for the known images
|
| 43 |
-
known_image = face_recognition.load_image_file(os.path.join(
|
| 44 |
face_encoding = face_recognition.face_encodings(known_image)[0]
|
| 45 |
known_encodings.append(face_encoding)
|
| 46 |
# known_persons.append(os.path.splitext(os.path.basename(f))[0])
|
|
|
|
| 40 |
continue
|
| 41 |
|
| 42 |
# Get the face encodings for the known images
|
| 43 |
+
known_image = face_recognition.load_image_file(os.path.join("data",f))
|
| 44 |
face_encoding = face_recognition.face_encodings(known_image)[0]
|
| 45 |
known_encodings.append(face_encoding)
|
| 46 |
# known_persons.append(os.path.splitext(os.path.basename(f))[0])
|