Kdorlette commited on
Commit
641a529
·
1 Parent(s): e381c05

added face database

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -14,7 +14,7 @@ if input_image is not None:
14
  # This method is fairly accurate, but not as accurate as the CNN model and not GPU accelerated.
15
  # See also: find_faces_in_picture_cnn.py
16
  face_locations = face_recognition.face_locations(image)
17
-
18
  st.write("I found {} face(s) in this photograph.".format(len(face_locations)))
19
 
20
  cols= st.columns(len(face_locations))
@@ -30,5 +30,8 @@ if input_image is not None:
30
  face_image = image[top:bottom, left:right]
31
  pil_image = Image.fromarray(face_image)
32
  st.image(pil_image)
 
 
 
33
  else:
34
  st.write("Please upload an image to proceed.")
 
14
  # This method is fairly accurate, but not as accurate as the CNN model and not GPU accelerated.
15
  # See also: find_faces_in_picture_cnn.py
16
  face_locations = face_recognition.face_locations(image)
17
+ data_base = []
18
  st.write("I found {} face(s) in this photograph.".format(len(face_locations)))
19
 
20
  cols= st.columns(len(face_locations))
 
30
  face_image = image[top:bottom, left:right]
31
  pil_image = Image.fromarray(face_image)
32
  st.image(pil_image)
33
+ face_name = st.text_input('Specify name', "This is a placeholder")
34
+ st.write(face_name)
35
+ data_base.append(face_name)
36
  else:
37
  st.write("Please upload an image to proceed.")