Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -57,9 +57,10 @@ if img_file_buffer is not None:
|
|
57 |
cv2.rectangle(image , (x1, y2 - 35), (x2, y2), (0, 255, 0), cv2.FILLED)
|
58 |
cv2.putText(image , name, (x1 + 6, y2 - 6), cv2.FONT_HERSHEY_COMPLEX, 1, (255, 255, 255), 2)
|
59 |
|
60 |
-
# display_image_with_overlay(image, name)
|
61 |
-
st.image(image , use_column_width=True, output_format="PNG")
|
62 |
faceMatchedflag = 1
|
|
|
|
|
|
|
63 |
|
64 |
if(faceMatchedflag == 0) :
|
65 |
st.warning("No faces detected in the image.")
|
|
|
57 |
cv2.rectangle(image , (x1, y2 - 35), (x2, y2), (0, 255, 0), cv2.FILLED)
|
58 |
cv2.putText(image , name, (x1 + 6, y2 - 6), cv2.FONT_HERSHEY_COMPLEX, 1, (255, 255, 255), 2)
|
59 |
|
|
|
|
|
60 |
faceMatchedflag = 1
|
61 |
+
|
62 |
+
st.image(image , use_column_width=True, output_format="PNG")
|
63 |
+
|
64 |
|
65 |
if(faceMatchedflag == 0) :
|
66 |
st.warning("No faces detected in the image.")
|