esdalmaijer / PyGaze

an open-source, cross-platform toolbox for minimal-effort programming of eye tracking experiments
www.pygaze.org
GNU General Public License v3.0
671 stars 211 forks source link

made the threshold for blink deteciton variable #50

Closed scattenlaeufer closed 8 years ago

scattenlaeufer commented 8 years ago

In tests we recognized, that the threshold for blink detection set for the PyGaze method was to high to securely detect blinks. As a fix for this problem I made this threshold a variable, which can be changed within a constants.py. The default value is set to be 150ms in defaults.py, as it was previously set within the code. So for everyone not caring about this feature there should be no difference in handling PyGaze, but everyone else now has the possibility to change this threshold to what ever works best.

esdalmaijer commented 8 years ago

Good addition, thanks!