Forum Discussion

🚨 This forum is archived and read-only. To submit a forum post, please visit our new Developer Forum. 🚨
Sinfonia_VR_Team's avatar
Sinfonia_VR_Team
Honored Guest
2 years ago

Regarding the Confidence property of OVREyeGaze

Hello, I am currently trying out eye tracking on the MetaQuest Pro.

I want to exclude data when my eyes are closed, so I thought of using the Confidence property of OVREyeGaze, but the value doesn't change at all.

I thought it would vary depending on the progress of the tracking, is that not the case?

I've added Debug.Log to OVREyeGaze.The value in the log remained constant.

private void Update()
{
    if (!OVRPlugin.GetEyeGazesState(OVRPlugin.Step.Render, -1, ref _currentEyeGazesState))
        return;

    var eyeGaze = _currentEyeGazesState.EyeGazes[(int)Eye];

    if (!eyeGaze.IsValid)
        return;

    Confidence = eyeGaze.Confidence;

    // ConfidenceLog
    Debug.Log($"Eye Tracking Confidence: {Confidence}");

    if (Confidence < ConfidenceThreshold)
        return;

    //~~~~~
}

 

2 Replies

Replies have been turned off for this discussion
  • mbb-vr's avatar
    mbb-vr
    Honored Guest

    Same here, the value seems to jump to 0.9960938 immediately and stay there irrespective of what they eye is actually doing. 

    I think that is pretty misleading and hopefully just a temporary shortcut/hack. 

    Is there any other way to query a confidence value of the eye tracking data? 

  • I have encountered the same problem, when trying to record eyetracking data for a behavioral science experiment. Did you ever find a solution?

    Thankful for any tips!

     

    BR

    Jens