aggressive smoothing

This commit is contained in:
harisreedhar
2026-06-09 22:46:53 +05:30
parent c70dd25f83
commit 4e13ddd0e9
@@ -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