A tool to automate custom events using the Pupil Cloud API and GPT-4o.
- OpenAI subscription and OpenAI API token: Set up yours using OpenAI's quick start guide
- Pupil Cloud API token: Click here to obtain yours.
In order to download the package, you can simply run the following command from the terminal:
git clone https://github.com/pupil-labs/automate_custom_events.git
Optional, but highly recommended: Create a virtual environment!
python3.11 -m venv venv source venv/bin/activate
Go to the folder directory and install the dependencies
cd your_directory/automate_custom_events pip install -e .
pl-automate-custom-events
A GUI will appear prompting you to select recording details and enter your desired prompts. To enter the recording details, click on the top button "Select Recording".
There you need to add the following information:
- Recording Link: Right click to your recording on Pupil Cloud > Share > Copy native recording data link
- Cloud API token
- OpenAI API Key
- Download Path: Select the path where you want to download the raw recording.
- Frame batch: The tool applies binary search within batches of frames (e.g., binary search within every 20 frames)
- Start (s) / End (s): Define the temporal period of interest (e.g., in which timeframe should the tool look for the prompted activities)
Once this information has been added, define your prompts and events. Separate your prompts/events with semicolon. For example:
- Prompts: "the driver looks at the rear mirror; the driver turns left"
- Events: "looking_at_mirror; turning_left"
For any questions/bugs, reach out to our Discord server or send us an email to [email protected].