FOVE SUPPORT CENTER

Comments

4 comments

  • Official comment
    Avatar
    Jeff

    We expose a 3D unit vector for each eye representing the direction.

    If initially the eye is looking forward, you will get a value of V0=(x=0, y=0, z=1).

    Later, let's say the eye looks right, and you get a value of V1=(x=0.7, x=0, x=0.7).

    The dot product between two vectors is the cosine of the angle between them, so lets take the dot product:

    dot = V0.x * V1.x + V0.y * V1.y + V0.z * V1.z = 0 * 0.7 + 0 * 0 + 1 * 0.7 = 0.7

    If you take the inverse cosine, you then get the angle

    angle = acos(dot) = 0.795 (radians) ~= 45 degrees

     

     

    Comment actions Permalink
  • Avatar
    jeremy

    Hi Litzhakovm

    Can you elaborate on what you're trying to do here? the angle that the eye did what?

    0
    Comment actions Permalink
  • Avatar
    Ahmed Salama

    I Have a Medical Project which is VNG and i need when they eye move to detect two things
    1- Horizontal Angle of the eye

    2- Vertical Angle of the eye

    0
    Comment actions Permalink
  • Avatar
    Jeff

    As for 2D gaze angles, and more detail: I just wrote a FAQ article on this topic.

    https://support.getfove.com/hc/en-us/articles/900005004803

    0
    Comment actions Permalink

Please sign in to leave a comment.