Rasleen commited on
Commit
794ffa4
·
verified ·
1 Parent(s): a346046

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -9,7 +9,7 @@ def detect_faces(image):
9
  "haarcascade_frontalface_default.xml")
10
  faces = face_cascade.detectMultiScale(gray_image, scaleFactor=1.1, minNeighbors=5, minSize=(30, 30))
11
  for (x, y, w, h) in faces:
12
- cv2.rectangle(image_np, (x, y), (x+w, y+h), (0, 255, 0), 2)
13
  return image_np
14
 
15
  iface= gr.Interface(fn=detect_faces,inputs="image",outputs="image",title="Face Detection",description="Upload an image, and the model will detect faces and draw bounding boxes around them.",)
 
9
  "haarcascade_frontalface_default.xml")
10
  faces = face_cascade.detectMultiScale(gray_image, scaleFactor=1.1, minNeighbors=5, minSize=(30, 30))
11
  for (x, y, w, h) in faces:
12
+ cv2.rectangle(image_np, (x, y), (x+w, y+h), (0, 255, 0), 9)
13
  return image_np
14
 
15
  iface= gr.Interface(fn=detect_faces,inputs="image",outputs="image",title="Face Detection",description="Upload an image, and the model will detect faces and draw bounding boxes around them.",)