Setup an experiment and save data
Hi
I'm new to eye tracking and pygaze . my requirement is to build an experiment to display an image or video file then record eye gaze points and fixations . I have started with pygaze temple in opensesame . I have these questions :
How can I add video file or image to the experiment , I have added using sketchpad , but for video how to make it as long as the video plays ?
After the video file is finished , how the experiment should end and save the data ?
Thanks for help
Comments
Yes, with
sketchpadsyou can add images. And with the video plugin, you can present videos. Unless you specify something else, the video will run as long as its duration.Nothing needs to be done. The experiment will stop once no further items needs to be executed. For the data to be written to file you need to add a
loggeritem to the experimentalsequence. Then every time thisloggeritem is executed, the current trials will be written to the file.When eye-tracking, the eyetracker software usually writes a seperate logfile with all the eye position samples. You can either opt for combining these two files after you recorded the data. Or you can send Opensesame variables to the eyetracker and it will be added to the eye logfile right away (at least it does so with the Eyelink eyetrackers)
Eduard
Hi, I i'm using this code below to recored data from eyetribe using pygaze .
when I run the .bat file it just shows ( press space to start calibration ) when I press space just shows a
white calibration dot and stops the program . what could be the problem ?
Hi,
I'm not sure why but your line,
kb.get_key(), is not responding to key presses. For testing purposes, try using a timeout (e.g. 2000 ms), this solved it for me. However, on the long run, you should find out how to initialize a keyboard the proper way. I don't use the pygaze functions myself, so I can't really help there.So, use this to check if your experimental sequence is alright:
kb.get_key(timeout=2000)Eduard