Spaces:
Runtime error
Runtime error
Shafeek Saleem
commited on
Commit
·
a81dca2
1
Parent(s):
f3189f9
added face encodings pagejj
Browse files
pages/3_Face Encodings.py
CHANGED
@@ -60,7 +60,10 @@ def step3_page():
|
|
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
|
66 |
my_bar.progress(100, text="Successfully encoded all the known faces!")
|
|
|
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)
|
64 |
+
st.write("test 1")
|
65 |
my_face_encoding = face_recognition.face_encodings(face_image)[0]
|
66 |
+
st.write("test 2")
|
67 |
my_bar.progress(int((i + 1) / len(images) * 100), text="Generating face encodings...")
|
68 |
face_encodings_dict[img.split("_")[1]] = my_face_encoding
|
69 |
my_bar.progress(100, text="Successfully encoded all the known faces!")
|