mirror of
https://github.com/EyeTrackVR/EyeTrackVR.git
synced 2025-11-04 14:39:42 +08:00
fix: bug fix in pupil dia
This commit is contained in:
parent
3cee994366
commit
01e0c6c53b
@ -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
|
||||
|
||||
@ -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)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user