simonarvin / eyeloop

EyeLoop is a Python 3-based eye-tracker tailored specifically to dynamic, closed-loop experiments on consumer-grade hardware.
GNU General Public License v3.0
479 stars 68 forks source link

Eyetracking of videos #41

Open marcbue opened 1 year ago

marcbue commented 1 year ago

Hi,

I want to use eyeloop to track the pupil of an eye of a mouse. I managed to install eyeloop and can run it using the command line. The gui appears and the video is shown as well as the binarized image and another one that is black. image

After the video is processed there is no pupil detection info available in the datalog.json file. I read now that I have to add the pupil using the key 1 in the gui. I get the following error: image

Can you help me with this?

Cheers

Marc

Kim-EunKyeoung commented 1 year ago

Same Error in Ubuntu 22.04. I got the same message and the gui crashed when pressing D, or when i press Y after Z.
Anyone can help me please? thanks to you all

alex-attinger commented 1 year ago

Not sure if this is it, but here, the windows are destroyed when the loop is executed the first time: https://github.com/simonarvin/eyeloop/blob/cd22fb79e8d2c186ed23e2b15cef57887bbdeffe/eyeloop/guis/minimum/minimum_gui.py#L355 this probably also removes the mousecallback functions that are used to set variables like 'cursor'. creating the windows again (cv2.namedWindow("CONFIGURATION") and cv2.namedWindow('Tool tip")) and adding the mousecallbacks (like https://github.com/simonarvin/eyeloop/blob/cd22fb79e8d2c186ed23e2b15cef57887bbdeffe/eyeloop/guis/minimum/minimum_gui.py#L250) should fix at least this aspect.