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

Project Glaze vector #30

Open
cshreyastech opened this issue May 30, 2019 · 2 comments
Open

Project Glaze vector #30

cshreyastech opened this issue May 30, 2019 · 2 comments

Comments

@cshreyastech
Copy link

Hi Seonwook,
Thanks for the project. I am trying to use your implementation in research.

I would like to find the coordinates at which the user focus. Can this the be found by the intersection points of glaze vectors of left and right eye?

Another option would be assume that the focal length of human eye is roughly a meter while staring at screen. So the glaze vector can just be extended to a meter.

Can you suggest the best approach?

Thanks
Shreyas

@lucaskyle
Copy link

theta = -np.arcsin(np.clip((i_y0 - e_y0) / eyeball_radius, -1.0, 1.0))
phi = np.arcsin(np.clip((i_x0 - e_x0) / (eyeball_radius * -np.cos(theta)),-1.0, 1.0))

i dont understand this fomula ...

@keishatsai
Copy link

@lucaskyle
Have you already discover the meaning of this formula?
I also wonder why there is a negative sign in front of the formula, and I am confused about the value I got........ it is weird, and I don't know whether it is correct or not?
I assumed the outcome is radians, so I transform it into degree. After the transformation, the degree value is not correct, however, the result shows fine to me via function draw_gaze.
All I want to get is the degree form of theta and phi, but no clues for me at this moment.

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

3 participants