This repository shows how to use the Roboflow Inference gaze detection API.
First, clone this repository and navigate to the project folder:
git clone https://github.com/roboflow/inference
cd inference/examples/gaze-detection
Next, set up a Python environment and install the required project dependencies (this assumes running these bash commands from the above terminal window install):
python3 -m venv venv
source venv/bin/activate
pip install -r ../../requirements/_requirements.txt
Next, set up a Roboflow Inference Docker container. This Docker container will manage inference for the gaze detection system. Learn how to set up an Inference Docker container.
Before running the inference script, ensure that the API_KEY
is set as an environment variable. This key provides access to the inference API.
-
For Unix/Linux:
export ROBOFLOW_API_KEY=your_api_key_here
-
For Windows:
set ROBOFLOW_API_KEY=your_api_key_here
Replace your_api_key_here
with your Roboflow API key. Learn how to retrieve your Roboflow API key.
To use the gaze detection script, run the following command:
python gaze.py