brownhci / WebGazer

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

Feature request: Minified version #273

Closed patricio1979 closed 1 year ago

patricio1979 commented 2 years ago

Hello, first thank you for the amazing library.

Is there a way to build a minified version of webgazer.js ? I'm working inside the p5js editor and 15mb of library is too big.

Also, is there a way to work with video feed instead of webcam?

jeffhuang commented 2 years ago

Yes you should be able to toggle the minified option. See https://github.com/brownhci/WebGazer/blob/master/webpack.config.js

For video feed, take a look at the version here: https://github.com/brownhci/WebGazer/tree/master/www/data/src

jeffhuang commented 1 year ago

this is the default build now if you use "npm run build", so closing this. if you want the uncompressed version, you can do "npm run dev" still