Skip to content

Conversation

@Apoorv012
Copy link

  • Changed .js to .mjs
  • Changed the reference of webgazer.params to just params
  • Added a parameter, called params.faceInFrame to check if the face is inside the frame.

@jeffhuang
Copy link
Contributor

Thank you, will review this soon. Might be nice to separate the whitespace changes from code changes, but not a big deal.

@l-ouis l-ouis mentioned this pull request Feb 3, 2025
Copy link
Contributor

@l-ouis l-ouis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The style changes are nice!
It'll probably be simpler to just let users call checkEyesInValidationBox() if they can't already instead of copying the value to another value each loop call.

if( webgazer.params.showFaceFeedbackBox )
checkEyesInValidationBox();
if (webgazer.params.showFaceFeedbackBox)
params.faceInFrame = checkEyesInValidationBox();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure if the parameters is the correct place for this -- it seems more like a flag than a preset parameter. Maybe we can just let the user call checkEyesInValidationBox() freely if they can't already?

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

Successfully merging this pull request may close these issues.

3 participants