Skip to content

KHN190/gaze_track

Repository files navigation

Gaze Capture Server

Forward camera to OpenCV + Gaze Capture neural network, return eye track data in a local server. The initial purpose is to use it along with Unity.

Code referenced from

Dependency

  • PyCaffe

Others install with:

pip3 install -r requirements.txt

Start Tasks

# start redis
sudo service redis start

# start camera & face detection
python3 run_face_track.py &> face.log

# start gaze detection
python3 run_gaze_track.py &> gaze.log

# start server, or directly pull from redis
flask run

API

Flask runs API from app.py

  • http://127.0.0.1:5000/ for timestamp
  • http://127.0.0.1:5000/gaze for eye coords
  • http://127.0.0.1:5000/blinks for blink count