GazeML icon indicating copy to clipboard operation
GazeML copied to clipboard

Project Glaze vector

Open cshreyastech opened this issue 5 years ago • 2 comments

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

cshreyastech avatar May 30 '19 17:05 cshreyastech

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 ...

lucaskyle avatar Jul 05 '19 02:07 lucaskyle

@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.

keishatsai avatar Aug 22 '19 08:08 keishatsai