Webgazer: how to use showPredictions() #3262
Unanswered
smith-garrett
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi everyone,
I have a question about using Webgazer. I am trying to set up a very simple demo for a science outreach project. I want to give participants a feeling for how our eyes move when we read a sentence. For the project, it's not feasible to bring a full eye tracker setup, and since we're not interested in analyzing the data, I'm hoping to use jsPsych + Webgazer.
So far, I have been able to set up the camera and run the calibration as described in the documentation. Recording the eye fixation data seems to work fine as well. Where I'm stuck is in trying to use the webgazer.showPrediction() function to show where the eyes are currently fixated. (There was a similar question in #2260 a couple years ago, but it didn't seem to get an answer.)
A minimal working example is below. I have installed jsPsych locally as described here. The closest I've gotten is to embed the function call in the stimulus part of
item
, but it doesn't seem to be working. Any help would be greatly appreciated! :)Beta Was this translation helpful? Give feedback.
All reactions