mirror of
https://github.com/iperov/DeepFaceLab.git
synced 2025-07-07 13:32:09 -07:00
added transparent mask to draw_landmarks
This commit is contained in:
parent
5bd3f875fa
commit
9823421a44
4 changed files with 18 additions and 11 deletions
|
@ -141,7 +141,7 @@ class ExtractSubprocessor(Subprocessor):
|
|||
continue
|
||||
|
||||
if self.debug:
|
||||
LandmarksProcessor.draw_rect_landmarks (debug_image, rect, image_landmarks, self.image_size, self.face_type)
|
||||
debug_image = LandmarksProcessor.draw_rect_landmarks (debug_image, rect, image_landmarks, self.image_size, self.face_type, transparent_mask=True)
|
||||
|
||||
output_file = '{}_{}{}'.format(str(self.output_path / filename_path.stem), str(face_idx), '.jpg')
|
||||
face_idx += 1
|
||||
|
@ -457,10 +457,10 @@ class ExtractSubprocessor(Subprocessor):
|
|||
image = cv2.warpAffine(image, mat,(w,h) )
|
||||
view_landmarks = LandmarksProcessor.transform_points (view_landmarks, mat)
|
||||
|
||||
LandmarksProcessor.draw_rect_landmarks (image, view_rect, view_landmarks, self.image_size, self.face_type)
|
||||
image = LandmarksProcessor.draw_rect_landmarks (image, view_rect, view_landmarks, self.image_size, self.face_type)
|
||||
|
||||
if self.rect_locked:
|
||||
LandmarksProcessor.draw_landmarks(image, view_landmarks, (255,255,0) )
|
||||
image = LandmarksProcessor.draw_landmarks(image, view_landmarks, (255,255,0) )
|
||||
self.redraw_needed = False
|
||||
|
||||
io.show_image (self.wnd_name, image)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue