Skip to content

Instantly share code, notes, and snippets.

View nadje's full-sized avatar

Nadia P. nadje

View GitHub Profile
@nadje
nadje / calculate_perclos_real_time.py
Last active December 13, 2025 23:04
A real-time tool for calculating and visualizing PERCLOS (Percentage of Eye Closure) using live eyelid aperture data from the Pupil Labs Neon eye tracker. To run: uv run -s calculate_perclos_real_time.py
# /// script
# requires-python = ">=3.10"
# dependencies = [
# "click",
# "matplotlib",
# "numpy",
# "opencv-python",
# "pupil-labs-realtime-api",
# "universal-pathlib",
# "rich",
@nadje
nadje / generate_scanpaths.ipynb
Created August 13, 2024 09:43
Generate_Scanpaths.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.