esdalmaijer / PyGaze

an open-source, cross-platform toolbox for minimal-effort programming of eye tracking experiments
www.pygaze.org
GNU General Public License v3.0
671 stars 211 forks source link

Eye tracking from recorded videos? #112

Closed dpaniukov closed 6 years ago

dpaniukov commented 6 years ago

Hello, Is it possible to use pygaze to track whether a person (an infant) looks at the screen (under the camera), using a recording from the camera? The data are already collected, so I cannot do anything else with it. Thanks for your suggestions!

esdalmaijer commented 6 years ago

Hi Dmitrii,

Eye tracking from existing videos is beyond the scope of PyGaze, but would potentially be possible with sister-project webcam-eyetracker. This offers a generic eye tracking class that can be inherited by different input classes. You could write one for video input based on the webcam input class (which also uses OpenCV VideoCapture, so essentially you just need to swap out the webcam feed for a video file name.

Please note that mapping eye orientation to gaze position will be hard without a calibration, and that matching video feed and on-screen information might be tough without markers in the video.

Good luck! Edwin

dpaniukov commented 6 years ago

Thanks a bunch for your comments! I will check out the references :)