brownhci / WebGazer

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

Access to the webgazer's webcam canvas #158

Closed karthik-Gopalan closed 4 years ago

karthik-Gopalan commented 4 years ago

Apologies, hit enter by mistake. Is there a way to get access to the webcam canvas being used ? I would like to position the camera in a different location than currently being shown at the top left corner.

RobinReborn commented 4 years ago

This is controlled in the init function in index.mjs

You can see the first two lines

var topDist = '0px' var leftDist = '0px'

control its position

karthik-Gopalan commented 4 years ago

ah ok got it. Thanks . Am closing this now.