Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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-
|
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)
|