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
- PyCaffe
Others install with:
pip3 install -r requirements.txt
# 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
Flask runs API from app.py
http://127.0.0.1:5000/
for timestamphttp://127.0.0.1:5000/gaze
for eye coordshttp://127.0.0.1:5000/blinks
for blink count