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

[Question] Scaling/Shifting Calculations in Horizontal/Vertical Ratio? #58

Open
devanshanker opened this issue Jun 17, 2021 · 0 comments

Comments

@devanshanker
Copy link

devanshanker commented Jun 17, 2021

Thank you very much for this helpful repo. In eye_tracker.py, what is the source/purpose of the
(...) * 2 - 10
operations on each pupil?

# horizontal_ratio(self)
pupil_left = self.eye_left.pupil.x / (self.eye_left.center[0] * 2 - 10)
pupil_right = self.eye_right.pupil.x / (self.eye_right.center[0] * 2 - 10)
# vertical_ratio(self)
pupil_left = self.eye_left.pupil.y / (self.eye_left.center[1] * 2 - 10)
pupil_right = self.eye_right.pupil.y / (self.eye_right.center[1] * 2 - 10)
@devanshanker devanshanker changed the title Scaling/Shifting Calculations in Horizontal/Vertical Ratio? [Question] Scaling/Shifting Calculations in Horizontal/Vertical Ratio? Jun 17, 2021
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

1 participant