mirror of
https://github.com/facefusion/facefusion.git
synced 2026-06-10 06:23:58 +02:00
aggressive smoothing
This commit is contained in:
@@ -129,8 +129,8 @@ def draw_face_stabilizer(face_key : str, temp_vision_frame : VisionFrame) -> Vis
|
||||
if face_stabilizer_trail:
|
||||
raw_points = (numpy.array([ raw_point for raw_point, _ in face_stabilizer_trail ]) * [ frame_width, frame_height ]).astype(numpy.int32)
|
||||
smoothed_points = (numpy.array([ smoothed_point for _, smoothed_point in face_stabilizer_trail ]) * [ frame_width, frame_height ]).astype(numpy.int32)
|
||||
cv2.polylines(temp_vision_frame, [ raw_points ], False, raw_color, line_scale)
|
||||
cv2.polylines(temp_vision_frame, [ smoothed_points ], False, smoothed_color, line_scale)
|
||||
cv2.polylines(temp_vision_frame, [ raw_points ], False, raw_color, line_scale, cv2.LINE_AA)
|
||||
cv2.polylines(temp_vision_frame, [ smoothed_points ], False, smoothed_color, line_scale, cv2.LINE_AA)
|
||||
|
||||
return temp_vision_frame
|
||||
|
||||
|
||||
Reference in New Issue
Block a user