-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Gaze direction plotting #1100
Comments
Have you checked "
|
Thank you for that! I've used this code (translated to R) but it still doesn't give me the same results as the videos generated as open face output. Most of the time the direction is similar but a little bit off, but in some frames is completely wrong, even though on the open face videos it seems ok-ish. I created these two functions to plot a frame from a video (all frames are in video_ppt_folder) and the gaze direction from open face output (video_df). The ideas is to plot the gaze and a circle (manually adjusted per participant in later steps) to decide when a participant is looking at the screen (i.e., the gaze end position is within the circle). I include the code here in case someone can double-check this with their data:
|
Hi! I am trying to figure out if my participants are looking at the screen or not. For this, I will need to manually decide where the screen actually is (the camera may be above/below, etc.) which can be done manually, but I first need to understand where they are looking. However, I am having issues plotting gaze direction on video frames. I want to reproduce the green rays seen in the OpenFace output videos, but I think I am missing a piece of information about the gaze direction (gaze_0/1_x/y/z) scale.
I understand that it's in world coordinates (=camera coordinates) relative to the centre of the screen (= centre of the camera) on scale [-1 1], so I need to multiply it by some scaling factor. Yet, however I do it, the gaze plotted on the video frames does not seem to correspond to the gaze of the participant.
To Reproduce
Here is what I do:
Code in R:
Expected behavior
I hope to reproduce the green gaze lines as seen in the video outputs of OpenFace, but this is not working. For some frames it's ok, for some the gaze is completely wrong, that is, pointing in a different direction than where the eyes in the video are clearly looking.
Screenshots
I cannot add a screenshot due to data protection and identifiable faces.
Desktop (please complete the following information):
Linux (can't check the version at the moment)
Any help would be appreciated! Thank you.
The text was updated successfully, but these errors were encountered: