Skip to content
Snippets Groups Projects
Commit bf082ee5 authored by Guillaume HEUSCH's avatar Guillaume HEUSCH
Browse files

[base] added the min and max frequency of the bandpass filteri as parameters

parent cba682f3
No related branches found
No related tags found
No related merge requests found
Pipeline #
......@@ -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.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment