Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Calibration and Integration of WebGazer with React #308

Open
ClawNarok opened this issue Jul 11, 2023 · 2 comments
Open

Calibration and Integration of WebGazer with React #308

ClawNarok opened this issue Jul 11, 2023 · 2 comments

Comments

@ClawNarok
Copy link

Hello! We are developing a web platform for scientific research. Unfortunately, we have had difficulties in performing the calibration and collecting the accuracy of the webgazer with react, because the calibration example is a pure HTML page, and accesses some scripts with the tag as if it was a single file. However, we can't call the functions of the same scripts by react. How can we develop the webgazer calibration page and function in react? Could anyone help us?

@JongMany
Copy link

I had the same problem...
Did you solved it?

@Divyesh-Kamalanaban
Copy link

React integration is honestly kind of messy with very little documentation. I'd suggest you to import the library via scripts tag in your index.html from the online link and use const webgazer = window.webgazer in a useeffect hook.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants