medusa.crop.base#

Module Contents#

class medusa.crop.base.BaseCropModel(*args, **kwargs)[source]#

Base crop model, from which all crop models inherit.

crop_faces_video(vid, batch_size=32, save_imgs=False)[source]#

Utility function to crop all faces in each frame of a video.

Parameters:

vid (str, Path) – Path to video (or, optionally, a VideoLoader object)

Returns:

results – A BatchResults object with all crop information/results

Return type:

BatchResults