Video annotation tool for marking timed events in eye tracking research
Project description
Zarafe 
Zarafe is a video annotation tool designed for marking time events in eye tracking videos with gaze data visualization.
Overview
This tool allows users to:
- Load directories containing worldCamera.mp4 recordings and gazeData.tsv files
- View eye tracking videos with gaze position overlays
- Create, mark and manage time-based event annotations
- Save annotations to CSV files for further analysis
Data Preparation
Important: Before using Zarafe, you need to convert your eye tracking data:
Zarafe uses glassesValidator to import your eye tracking data. Some eye trackers require preprocessing before importing:
- Pupil Labs: Export from Pupil/Neon Player (disable World Video Exporter) or Pupil Cloud
- Meta Project Aria Gen 1: Process in Aria Studio with MPS eye gaze run, then use provided export script
- SMI ETG: Export raw data and scene video from BeGaze with specific settings
For detailed preprocessing instructions for your specific eye tracker, see the glassesValidator preprocessing guide.
The import process will generate the required worldCamera.mp4 and gazeData.tsv files.
Zarafe expects a specific directory structure with each recording in its own folder containing both files.
Installation
-
Clone this repository:
git clone https://github.com/mh-salari/zarafe.git cd zarafe
-
Install dependencies (choose one method):
Option A: Using uv (recommended)
# Install uv from https://docs.astral.sh/uv/getting-started/installation/ # Install dependencies uv sync
Option B: Using pip
pip install -e .
-
Run the application:
# With uv uv run python main.py # With pip python main.py
Notes
Zarafe was developed by Mohammadhossein Salari with assistance from Claude 3.7 Sonnet, an AI assistant developed by Anthropic. Please be aware that this software is primarily for internal purposes and is not thoroughly documented.
License
This project is licensed under the MIT License - see the LICENSE file for details.
Acknowledgments
Zarafe uses glassesValidator for data import. If you use this functionality, please cite:
Niehorster, D.C., Hessels, R.S., Benjamins, J.S., Nyström, M. and Hooge, I.T.C. (2023). GlassesValidator: A data quality tool for eye tracking glasses. Behavior Research Methods. doi: 10.3758/s13428-023-02105-5
This project has received funding from the European Union's Horizon Europe research and innovation funding program under grant agreement No 101072410, Eyes4ICU project.
Giraffe icon downloaded from Flaticon, created by smalllikeart
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file zarafe-1.0.1.tar.gz.
File metadata
- Download URL: zarafe-1.0.1.tar.gz
- Upload date:
- Size: 3.0 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9ca72b9df7b0c5ae46afdb233ed538d19da444872c6adb9b3a2aca3e6e0d7e26
|
|
| MD5 |
71f6a5ddb8ff41c0d61f518d497c54dc
|
|
| BLAKE2b-256 |
a81a516d7ae3fbd487a62c742e7b56892e3cd8fd96c11e0cd11a8ce039bb4200
|
File details
Details for the file zarafe-1.0.1-py3-none-any.whl.
File metadata
- Download URL: zarafe-1.0.1-py3-none-any.whl
- Upload date:
- Size: 3.1 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
77bcaff683cd63bf8f11ab52207524b759cfe34e5660da92ce6a59a47871b4b4
|
|
| MD5 |
e71a15ef875508f71266199f729d4274
|
|
| BLAKE2b-256 |
bd804c7a2be8ff017ac973aeffc896ab4a2a42998dfa06986329900b4683a26f
|