Skip to content

Made reference changes, and import changes in files, Added a parameter to check if the face is in the frame - #322

Open
Apoorv012 wants to merge 5 commits into
brownhci:masterfrom
Apoorv012:master
Open

Made reference changes, and import changes in files, Added a parameter to check if the face is in the frame#322
Apoorv012 wants to merge 5 commits into
brownhci:masterfrom
Apoorv012:master

Conversation

@Apoorv012

Copy link
Copy Markdown
  • 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
Copy Markdown
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

@l-ouis l-ouis left a comment

Copy link
Copy Markdown
Contributor

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.

Comment thread src/index.mjs
if( webgazer.params.showFaceFeedbackBox )
checkEyesInValidationBox();
if (webgazer.params.showFaceFeedbackBox)
params.faceInFrame = checkEyesInValidationBox();

Copy link
Copy Markdown
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