remotewith commited on
Commit
e6d39f4
·
verified ·
1 Parent(s): 11680ba

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -25,7 +25,7 @@ def face_detect(full_image):
25
  bbox = bboxs[0]['bbox']
26
  x, y, w, h = bbox
27
 
28
- cropped_image = open_cv_image[y-10:y+h+10, x-10:x+w+10]
29
 
30
  img = cv2.cvtColor(cropped_image, cv2.COLOR_BGR2RGB)
31
  cropped_image = Image.fromarray(img)
 
25
  bbox = bboxs[0]['bbox']
26
  x, y, w, h = bbox
27
 
28
+ cropped_image = open_cv_image[y-5:y+h+5, x-5:x+w+5]
29
 
30
  img = cv2.cvtColor(cropped_image, cv2.COLOR_BGR2RGB)
31
  cropped_image = Image.fromarray(img)