I'm curious if there's a way to track a user's eye movement to check if they are looking at the screen or glancing away. This could be useful for detecting cheating. Is it possible to implement this with JavaScript? If so, what libraries or APIs should I be looking into?
2 Answers
I've heard of projects that track eye movement, but it's usually in a research context with specialized equipment. You might find it challenging to get something robust without significant engineering. Unfortunately, nothing mainstream like 'eyetrackerify' exists. But I did find a tool called WebGazer that might help!
There are definitely libraries for eye tracking in JavaScript. A quick search shows a few options. However, using this for cheat detection presents some challenges. Typically, you'd implement it client-side, but to ensure you're not dealing with untrustworthy clients, you'll need to manage this server-side, which could put a strain on your server's resources depending on how many users you have.
They probably mean for online tests and preventing cheating, right?
Yeah, WebGazer is the one! It has a pretty catchy name too.