Skip to content
 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Webcam based Gaze Estimation

Estimate gaze on computer screen

Installation Guidelines

  • Set Up Python Virtual Environment

    Create a virtual Python environment to avoid dependency conflicts. To create a virtual environment (Python 3.8), use the following command or create a virtual environment with Anaconda navigator:

      conda create --name <env_name> python=3.8
    
  • Activate Virtual Environment

    Activate the newly created Python virtual environment by issuing this command:

      conda activate <env_name>
    
  • Set Up and Update PIP to the Highest Version

    Make sure pip is installed in your environment and upgrade it to the latest version by issuing the following command:

      python -m pip install --upgrade pip
    
  • Install the Package

    To install OpenVINO Development Tools into the existing environment with the deep learning framework of your choice, run the following command:

      pip install openvino-dev==2023.3.0
      pip install -r requirements.txt or conda install --file requirements.txt
    

    Additionally to OpenVino we added the demo programm from pl_gaze_estimation (https://github.com/hysts/pytorch_mpiigaze_demo), training code for the pl_gaze_estimation using MPIIGaze, MPIIFaceGaze, and ETH-XGaze are available under: https://github.com/hysts/pl_gaze_estimation/tree/main

    This model however, runs beter under Ubuntu, but it was tested under Windows as well. To use the pl_gaze_estimation model run:

      pip install -r requirements_pl_gaze.txt
    
  • Copy the file openh264-1.8.0-win64.dll into the environment path (e.g. C:\Anaconda3\envs\name_of_env). Link: https://github.com/cisco/openh264/releases/tag/v1.8.0

  • run main.py to test the application with the OpenVino model

    python src/main.py
  • run main_pl.py to test the application with the pl_gaze_estimation model (https://github.com/hysts/pytorch_mpiigaze_demo)

    python src/main_pl.py
  • in order to run main_compareWithTobii.py you need to generate a exe file that runs Tobii Eye Tracker 5, for this you need the sdk dll for Tobii Eye Tracker 5

Credits

If you use the code in the academic context, please cite:

Lucas Falch and Katrin Solveig Lohan, "Webcam-based gaze estimation for computer screen interaction", Frontiers in Robotics and AI, Volume 11 - 2024 | https://doi.org/10.3389/frobt.2024.1369566

About

Estimate gaze on computer screen

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages