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

Tobii Calibration Fail #114

Closed annieaitken123 closed 6 years ago

annieaitken123 commented 6 years ago

Hi,

I'm running a tobii eye tracking experiment with infants which means that calibration often fails the first try. When calibration fails, I do not get a chance to redo calibration. Instead, the experiment starts right away and eye tracking is not recorded. Is there any way to remedy this?

Thanks, Annie

scattenlaeufer commented 6 years ago

The calibrate() function returns whether it was successful or not. Just run a loop around it and check whether it worked or not. If it didn't, just let calibrate() run again.