fix: bug fix in pupil dia

This commit is contained in:
Prohurtz 2023-11-24 19:10:10 -06:00
parent 3cee994366
commit 01e0c6c53b
2 changed files with 4 additions and 2 deletions

View File

@ -362,7 +362,9 @@ class EllipseBasedPupilDilation:
if maxp != 0 and not (np.isnan(pupil_area) or np.isnan(maxp)):
eyedilation = (pupil_area - maxp) / (
minp - maxp
) # for whatever reason when input and maxp are too close it outputs high
)
else:
eyedilation = 0.5
except:
eyedilation = 0.5
eyedilation = 1 - eyedilation

View File

@ -87,7 +87,7 @@ def center_overlay_calibrate(self):
if var.overlay_active != True:
dirname = os.getcwd()
overlay_path = os.path.join(dirname, "center.bat")
overlay_path = os.path.join(dirname, "Eyetrackapp/center.bat")
os.startfile(overlay_path)
var.overlay_active = True
sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)