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 utils.py #6

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

Update utils.py #6

wants to merge 1 commit into from

Conversation

yingj4
Copy link

@yingj4 yingj4 commented Aug 18, 2020

Add the function to get the center of the pupils and the corresponding explanations

Comment on lines +183 to +186
xMin = min(pupilPixel[0]) # This is the left-most pixel of the pupil.
xMax = max(pupilPixel[0]) # This is the right-most pixel of the pupil.
yMin = min(pupilPixel[1]) # This is the upper-most pixel of the pupil.
yMax = max(pupilPixel[1]) # This is the lower-most pixel of the pupil.
Copy link
Member

Choose a reason for hiding this comment

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

Can you do the indexing pupilPixel[0][i] instead of min or max this makes it easier to understand what you are doing.

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