brownhci / WebGazer

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

Calibration FPS drop #240

Closed HanZhang-psych closed 2 years ago

HanZhang-psych commented 3 years ago

Hello!

I'm trying to implement a mouseless calibration for my study. My plan is to ask subjects to track a moving dot that updates its (x, y) position on every frame. On each frame, I will call recordScreenPosition to pass the current data to the ridge regression model. However, I noticed a substantial fps drop (60 --> ~ 20) when recordScreenPosition was added to each frame. My guess is that I'm passing too much data in a short time for webgazer to handle? A potential fix I can think of is to call recordScreenPosition every 5 frames. But I wonder if people have better ideas.

Thanks!