brownhci / WebGazer

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

Negative viewport coordinates #313

Closed MengyuChan closed 1 year ago

MengyuChan commented 1 year ago

Hi everyone,

We integrated this library into a website and aim to collect online users' gaze locations online for subsequent analysis. I was trying to normalize these gaze coordinates in order to generate a heatmap that visualizes the gaze points from various individuals.

The comments suggest that the x and y coordinates are relative to the viewport, and there are instances of negative gaze coordinates. I am uncertain whether the origin is positioned at the top left or if this is due to a calibration problem. Has anyone encountered this before? Could anyone help us?

jeffhuang commented 1 year ago

Negative gaze coordinates are normal. People can look to the left, right, above, or below the origin. There's no hard bound preventing someone from looking off screen.