ravinder2024 commited on
Commit
9f0569d
·
verified ·
1 Parent(s): 9f2d980

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -55,8 +55,8 @@ if img_file_buffer is not None:
55
  # Draw rectangle around the face
56
  cv2.rectangle(image, (x1, y1), (x2, y2), (0, 255, 0), 2)
57
  # Optionally draw name label below face (commented out for now)
58
- # cv2.rectangle(image , (x1, y2 - 35), (x2, y2), (0, 255, 0), cv2.FILLED)
59
- # cv2.putText(image , name, (x1 + 6, y2 - 6), cv2.FONT_HERSHEY_COMPLEX, 1, (255, 255, 255), 2)
60
 
61
  # Display image with the overlay
62
  st.image(image, use_column_width=True, output_format="PNG")
 
55
  # Draw rectangle around the face
56
  cv2.rectangle(image, (x1, y1), (x2, y2), (0, 255, 0), 2)
57
  # Optionally draw name label below face (commented out for now)
58
+ cv2.rectangle(image , (x1, y2 - 35), (x2, y2), (0, 255, 0), cv2.FILLED)
59
+ cv2.putText(image , name, (x1 + 6, y2 - 6), cv2.FONT_HERSHEY_COMPLEX, 1, (255, 255, 255), 2)
60
 
61
  # Display image with the overlay
62
  st.image(image, use_column_width=True, output_format="PNG")