webgazer
Version:
> **Note:** As of February 24, 2026, WebGazer is fully functional and works as intended, but updates are no longer guaranteed. Official maintenance has ended, but community support continues via [GitHub Issues](https://github.com/brownhci/WebGazer/issues)
32 lines (29 loc) • 1.06 kB
JavaScript
const params = {
// Path to MediaPipe face_mesh solution files (WASM + model data)
faceMeshSolutionPath: './mediapipe/face_mesh',
moveTickSize: 50,
videoContainerId: 'webgazerVideoContainer',
videoElementId: 'webgazerVideoFeed',
videoElementCanvasId: 'webgazerVideoCanvas',
faceOverlayId: 'webgazerFaceOverlay',
faceFeedbackBoxId: 'webgazerFaceFeedbackBox',
gazeDotId: 'webgazerGazeDot',
videoViewerWidth: 320,
videoViewerHeight: 240,
faceFeedbackBoxRatio: 0.66,
// View options
showVideo: true,
mirrorVideo: true,
showFaceOverlay: true,
showFaceFeedbackBox: true,
showGazeDot: true,
camConstraints: { video: { width: { min: 320, ideal: 640, max: 1920 }, height: { min: 240, ideal: 480, max: 1080 }, facingMode: "user" } },
dataTimestep: 50,
showVideoPreview: true,
applyKalmanFilter: true,
saveDataAcrossSessions: true,
// Whether or not to store accuracy eigenValues, used by the calibration example file
storingPoints: false,
trackEye: 'both',
};
export default params;