This repository implements two kinds of gaze estimation: based on the head position and based on the irises position.
Ensure Python >= 3.7
. Note: A tagged release will automatically published to the test pypi via a GitHub action.
Install using pip install gaze-orientation-demo==6 --extra-index-url https://test.pypi.org/simple
Example code:
from gaze_orientation_demo import GazeEstimation
gaze_estimation = GazeEstimation()
gaze_estimation.webcam_live_gaze_estimation()
Tested on desktop and mobile Chrome browsers.
- Build the Dockerfile:
docker build -t gaze-demo .
- Create a container:
docker run -p 2204:2204 gaze-demo
- Access the website on the host machine via localhost (http://127.0.0.1:2204) or on other computers via the host's private IP (e.g., http://192.168.8.199:2204).