Spaces:
Configuration error
Configuration error
Update segmentation.py
Browse files- segmentation.py +1 -1
segmentation.py
CHANGED
@@ -69,7 +69,7 @@ def get_blurred_mask(img: Image, body_part_id: int):
|
|
69 |
return dilated_mask_blurred
|
70 |
|
71 |
|
72 |
-
def
|
73 |
image = cv2.cvtColor(np.array(pil_image), cv2.COLOR_BGR2RGB)
|
74 |
face_casc = cv2.CascadeClassifier(cv2.data.haarcascades + 'haarcascade_frontalface_default.xml')
|
75 |
|
|
|
69 |
return dilated_mask_blurred
|
70 |
|
71 |
|
72 |
+
def get_cropped_face(pil_image : Image):
|
73 |
image = cv2.cvtColor(np.array(pil_image), cv2.COLOR_BGR2RGB)
|
74 |
face_casc = cv2.CascadeClassifier(cv2.data.haarcascades + 'haarcascade_frontalface_default.xml')
|
75 |
|