Skip to content

aaronpp65/gaze_estimation

Repository files navigation

Gaze estimation

Estimate whether the person is looking to the left, right or center .

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.

git clone [email protected]:aaronpp65/gaze_estimation.git

Docker image for gaze estimation api is available at

sudo docker pull aaronpp65/gaze_estimation:v11
sudo docker run --name gaze_estimation -p 80:80 aaronpp65/gaze_estimation:v11

Prerequisites

What things you need to install and how to install them

pip install requirements.txt

Usage

To callibrate the camera first take images of chessboard using your camera and copy it to calibration/imgs folder. Then run the camera callibration file using the command

python calibration/calib.py

To perform gaze estimation on live video feed from your webcam, run

python main.py

To perform gaze estimation on a single image,

from modules.inf_image import ImageGaze
model = ImageGaze()
gaze = model.get_gaze(image_url)

Api for gaze estimation on a single image can be run using python api.py

Contributing

Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.

Authors

See also the list of contributors who participated in this project.

License

This project is licensed under the MIT License - see the LICENSE.md file for details

Acknowledgments

About

Gaze estimation

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published