An api that runs the gaze tracker model, Takes post request with a frame as body of request. To test the api you should use a kivy python app found also in this repository
- Create a virtual environment
python3 -m venv name_of_your_environment - Install all the dependencies
pip install -r requirements.txt - Activate the environment
source activate name_of_your_environment/bin/activate - Run the api
python3 api/app/api.py
API should be running at http://127.0.0.1:4000
Access the routes documentation from http://127.0.0.1:4000/docs
This kivy app capture a frame from the camera and send the frame as a request to the API. The API does some prediction and returns an array of face landmarks. To set up the app run the following commands:
- Open a new terminal window.
- Activate your environment from above steps
- Navigate to the kivy_app directory
cd kivy_app - Run the app
python3 main.pyThis will open a GUI window. Make sure the API is running. Happy testing!