brownhci / WebGazer

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

Possible to figure out, if gaze outside screen? #299

Closed anurag-wecp closed 1 year ago

anurag-wecp commented 1 year ago

Thanks for the library!! Is there any way we can figure out if the gaze is outside the screen?

jeffhuang commented 1 year ago

Yes, check if the returned X or Y coordinate is less than 0 or greater than the corresponding X- or Y- resolution of the screen.