brownhci / WebGazer

WebGazer.js: Scalable Webcam EyeTracking Using User Interactions
https://webgazer.cs.brown.edu
Other
3.54k stars 536 forks source link

Defining gaze prediction rate? #323

Open TA-White opened 1 year ago

TA-White commented 1 year ago

Is there a way to define the gaze prediction rate, or at least define a maximum?

Context: I am currently setting up an online experiment with Webgazer running in the background, the prediction data of which I periodically add to an experiment data .csv file, itself saved once the experiment is finished.

The catch is that I am running into some memory issues (my task lasts about 45minutes in total), with WG and its predictions getting gradually slower and more laggy with progress in the task. In an attempt to reduce the memory load, I figured setting the prediction rate to be slower than what it is currently out of the gate (which is more precision than I actually need) could be an option. I have tried to find some info relating to this in your documentation but have not found anything, apologies if I missed something.

Questions:

Thanks a lot for your help and for making this tool available to us.

Tristan A. White PhD candidate Lyon, France

jeffhuang commented 1 year ago

Hmm it seems the bigger issue here is the memory issues. I thought we had fixed the memory leak when WebGazer is running for longer than 30 minutes, but maybe there's another one. It might be a good idea for someone to investigate.