def get_face_mask(self,img,landmarks): for group in self.OVERLAY_POINTS: hull = cv2.convexHull(landmarks[group]) cv2.fillConvexPoly(img, hull, 0)