Spaces:
Runtime error
Runtime error
Shafeek Saleem
commited on
Commit
·
f3189f9
1
Parent(s):
0651d29
added face encodings page d
Browse files
pages/3_Face Encodings.py
CHANGED
@@ -59,6 +59,7 @@ def step3_page():
|
|
59 |
if len(images) > 0:
|
60 |
for i, img in enumerate(images):
|
61 |
face_image = face_recognition.load_image_file(os.path.join(img_dir, img))
|
|
|
62 |
my_face_encoding = face_recognition.face_encodings(face_image)[0]
|
63 |
my_bar.progress(int((i + 1) / len(images) * 100), text="Generating face encodings...")
|
64 |
face_encodings_dict[img.split("_")[1]] = my_face_encoding
|
|
|
59 |
if len(images) > 0:
|
60 |
for i, img in enumerate(images):
|
61 |
face_image = face_recognition.load_image_file(os.path.join(img_dir, img))
|
62 |
+
st.image(face_image)
|
63 |
my_face_encoding = face_recognition.face_encodings(face_image)[0]
|
64 |
my_bar.progress(int((i + 1) / len(images) * 100), text="Generating face encodings...")
|
65 |
face_encodings_dict[img.split("_")[1]] = my_face_encoding
|
pages/{4_Trying It Out.py → 4_Face Recognition.py}
RENAMED
File without changes
|