diff --git a/bob/rppg/base/utils.py b/bob/rppg/base/utils.py index 9250c421169f4fe4e75d67a732eb63707bcd3d37..0d3d4fdac7391805466e74c0946c096fc469c05c 100644 --- a/bob/rppg/base/utils.py +++ b/bob/rppg/base/utils.py @@ -57,7 +57,7 @@ def crop_face(image, bbx, facewidth): return face -def build_bandpass_filter(fs, order, plot=False): +def build_bandpass_filter(fs, order, min_freq=0.7, max_freq=4.0, plot=False): """builds a butterworth bandpass filter. Parameters @@ -66,6 +66,10 @@ def build_bandpass_filter(fs, order, plot=False): sampling frequency of the signal (i.e. framerate). order: int The order of the filter (the higher, the sharper). + min_freq: int + The order of the filter (the higher, the sharper). + order: int + The order of the filter (the higher, the sharper). plot: bool Plots the frequency response of the filter.