This thread about eye tracking in PsychoJS/Pavlovia has received a lot of posts. Here is a little recap:
- I have examined some libraries for eye-tracking via webcams and selected webgazer as presently being the most suitable one. Here is a paper examining how well a relatively an old version of webgazer works in three cognitive tasks.
- The experiment demo_eyetracking2 illustrates how to use webgazer with PsychoJS. This experiment includes a calibration procedure and a gaze-tracking procedure.
- Demo_eyetracking2 can be freely cloned and modified. Researchers have already adapted the experiment for their own needs, with discussion about one such adaptation in another thread on this forum.
- An OST colleage has made a 5-step tutorial on how to customize demo_eytracking2, which can be found in this tweet.