This commit is contained in:
henryruhs
2024-04-02 15:22:41 +02:00
parent 66afcfd83d
commit 02ed70ff88
+1 -1
View File
@@ -144,7 +144,7 @@ def create_region_mask(crop_vision_frame : VisionFrame, face_mask_regions : List
region_mask = (cv2.GaussianBlur(region_mask.clip(0, 1), (0, 0), 5).clip(0.5, 1) - 0.5) * 2
return region_mask
1
def create_mouth_mask(face_landmark_68 : FaceLandmark68) -> Mask:
convex_hull = cv2.convexHull(face_landmark_68[numpy.r_[3:14, 31:36]].astype(numpy.int32))
mouth_mask : Mask = numpy.zeros((512, 512)).astype(numpy.float32)