diff --git a/EyeTrackApp/ellipse_based_pupil_dilation.py b/EyeTrackApp/ellipse_based_pupil_dilation.py index 8bbbf50..443b9e6 100644 --- a/EyeTrackApp/ellipse_based_pupil_dilation.py +++ b/EyeTrackApp/ellipse_based_pupil_dilation.py @@ -126,11 +126,6 @@ class EllipseBasedPupilDilation: self.eye_id = eye_id self.maxinten = 0 self.tri_filter = [] - # try: - # min_cutoff = float(self.settings.gui_min_cutoff) # 0.0004 - # beta = float(self.settings.gui_speed_coefficient) # 0.9 - # except: - print("\033[93m[WARN] OneEuroFilter values must be a legal number.\033[0m") min_cutoff = 0.00001 beta = 0.05 noisy_point = np.array([1, 1]) diff --git a/EyeTrackApp/intensity_based_openness.py b/EyeTrackApp/intensity_based_openness.py index eace897..1861168 100644 --- a/EyeTrackApp/intensity_based_openness.py +++ b/EyeTrackApp/intensity_based_openness.py @@ -147,11 +147,6 @@ class IntensityBasedOpeness: self.eye_id = eye_id self.maxinten = 0 self.tri_filter = [] - # try: - # min_cutoff = float(self.settings.gui_min_cutoff) # 0.0004 - # beta = float(self.settings.gui_speed_coefficient) # 0.9 - # except: - print("\033[93m[WARN] OneEuroFilter values must be a legal number.\033[0m") min_cutoff = 0.0004 beta = 0.9 noisy_point = np.array([1, 1]) diff --git a/EyeTrackApp/one_euro_filter.py b/EyeTrackApp/one_euro_filter.py index 603eb29..62da58f 100644 --- a/EyeTrackApp/one_euro_filter.py +++ b/EyeTrackApp/one_euro_filter.py @@ -52,5 +52,8 @@ class OneEuroFilter: self.t_prev = t return x_hat + else: + self.x_prev = x + return x except: print("\033[91m[ERROR] One Euro Filter Error. Is your system clock running properly?\033[0m") \ No newline at end of file