moviepy.video.fx.all.headblur

moviepy.video.fx.all.headblur(clip, fx, fy, r_zone, r_blur=None)[source]

Returns a filter that will blur a moving part (a head ?) of the frames.

The position of the blur at time t is defined by (fx(t), fy(t)), the radius of the blurring by radius and the intensity of the blurring by intensity.

Requires OpenCV for the circling and the blurring. Automatically deals with the case where part of the image goes offscreen.