mirror of
https://github.com/EyeTrackVR/EyeTrackVR.git
synced 2025-09-26 23:09:28 +08:00
fix: algo crashes, frame size issues
This commit is contained in:
parent
dbda86d845
commit
6024a67fc8
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user