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

update eye-tracking to v1.1.2 #4

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

yingj4
Copy link

@yingj4 yingj4 commented Jun 2, 2020

I included the vector of eye-camera.

Comment on lines +195 to +199
xMin = min(pupilPixel[0])
xMax = max(pupilPixel[0])
yMin = min(pupilPixel[1])
yMax = max(pupilPixel[1])
delta = (xMax - xMin) - (yMax - yMin)
Copy link
Member

Choose a reason for hiding this comment

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

I'm confused as to how this block works. Wouldn't this always be 0 or is pupilPixel a non-integer value?

yMax = max(pupilPixel[1])
delta = (xMax - xMin) - (yMax - yMin)

if delta >= 0:
Copy link
Member

Choose a reason for hiding this comment

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

An explanation of this math in a comment or a link to where you found the math for this would be helpful.

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.

2 participants