mirror of
https://github.com/iperov/DeepFaceLab.git
synced 2025-07-08 14:01:46 -07:00
upd LandmarksProcessor.py
This commit is contained in:
parent
7aebfa3f7f
commit
73e91cc0b5
1 changed files with 2 additions and 2 deletions
|
@ -310,8 +310,8 @@ def draw_landmarks (image, image_landmarks, color=(0,255,0), transparent_mask=Fa
|
||||||
mask = get_image_hull_mask (image.shape, image_landmarks)
|
mask = get_image_hull_mask (image.shape, image_landmarks)
|
||||||
image[...] = ( image * (1-mask) + image * mask / 2 )[...]
|
image[...] = ( image * (1-mask) + image * mask / 2 )[...]
|
||||||
|
|
||||||
def draw_rect_landmarks (image, rect, image_landmarks, face_size, face_type, transparent_mask=False):
|
def draw_rect_landmarks (image, rect, image_landmarks, face_size, face_type, transparent_mask=False, landmarks_color=(0,255,0) ):
|
||||||
draw_landmarks(image, image_landmarks, transparent_mask=transparent_mask)
|
draw_landmarks(image, image_landmarks, color=landmarks_color, transparent_mask=transparent_mask)
|
||||||
image_utils.draw_rect (image, rect, (255,0,0), 2 )
|
image_utils.draw_rect (image, rect, (255,0,0), 2 )
|
||||||
|
|
||||||
image_to_face_mat = get_transform_mat (image_landmarks, face_size, face_type)
|
image_to_face_mat = get_transform_mat (image_landmarks, face_size, face_type)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue