Spaces:
Runtime error
Runtime error
Kdorlette commited on
Commit ·
641a529
1
Parent(s): e381c05
added face database
Browse files13 unmodified lines141516171819209 unmodified lines303132333413 unmodified lines# This method is fairly accurate, but not as accurate as the CNN model and not GPU accelerated.# See also: find_faces_in_picture_cnn.pyface_locations = face_recognition.face_locations(image)st.write("I found {} face(s) in this photograph.".format(len(face_locations)))cols= st.columns(len(face_locations))9 unmodified linesface_image = image[top:bottom, left:right]pil_image = Image.fromarray(face_image)st.image(pil_image)else:st.write("Please upload an image to proceed.")13 unmodified lines141516171819209 unmodified lines303132333435363713 unmodified lines# This method is fairly accurate, but not as accurate as the CNN model and not GPU accelerated.# See also: find_faces_in_picture_cnn.pyface_locations = face_recognition.face_locations(image)data_base = []st.write("I found {} face(s) in this photograph.".format(len(face_locations)))cols= st.columns(len(face_locations))9 unmodified linesface_image = image[top:bottom, left:right]pil_image = Image.fromarray(face_image)st.image(pil_image)face_name = st.text_input('Specify name', "This is a placeholder")st.write(face_name)data_base.append(face_name)else:st.write("Please upload an image to proceed.")
app.py+4-1