altayavci commited on
Commit
f10d591
1 Parent(s): 2d7bec9

Update segmentation.py

Browse files
Files changed (1) hide show
  1. 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 get_face_crop(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
 
 
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