fix: algo crashes, frame size issues

This commit is contained in:
Prohurtz 2024-08-18 15:19:47 -05:00
parent dbda86d845
commit 6024a67fc8
2 changed files with 0 additions and 9 deletions

View File

@ -303,7 +303,6 @@ class EyeProcessor:
self.settings.ibo_filter_samples,
self.settings.ibo_average_output_samples,
)
print(self.eyeopen)
# threshold so the eye fully closes
if self.eyeopen < float(self.settings.ibo_fully_close_eye_threshold):
self.eyeopen = 0.0

View File

@ -344,13 +344,5 @@ class IntensityBasedOpeness:
self.lct = time.time()
self.prev_val = eyeopen
try:
point_hat = self.one_euro_filter(noisy_point)
eyeopenx = point_hat[0]
eyeopeny = point_hat[1]
eyeopen = (eyeopenx + eyeopeny) / 2
# print(eyeopen, eyeopenx, eyeopeny)
except:
pass
return eyeopen