Plugin for Pupil Capture that relays pupil and gaze data, as well as notification, to the lab streaming layer.
- Build the LSL Python bindings.
- Download liblsl-Python-1.11.zip
- Extract the zip file
- Execute
python setup.py buildin the extracted folder. This should generate abuildfolder. buildshould include another folder calledlibthat includes a folder calledpylsl.
- Copy the
pylslwith all its content to the user plugin directory*. - Copy
pupil_lsl_relay.pyto the user plugin directory*.
- Wiki link for the user plugin directory
- Start Pupil Capture.
- Open the Pupil LSL Relay plugin.
- Optional: Deselect relaying for pupil data, gaze data, or notifications.
- Now the LSL outlets are ready to provide data to other inlets in the network.
All stream outlets are of type Pupil Capture.
Primitive data streams consist of 5 channels (lsl.cf_double64):
- diameter (-1.0 for gaze streams)
- confidence
- timestamp
- norm_pos.x
- norm_pos.y
Python Representation streams consist of 1 channel containing the Python repr() string of the datum.
The plugin provides following outlets:
- When relaying pupil data:
- Pupil Primitive Data - Eye 0
- Pupil Primitive Data - Eye 1
- Pupil Python Representation - Eye 0
- Pupil Python Representation - Eye 1
- When relaying gaze data:
- Gaze Primitive Data
- Gaze Python Representation
- When relaying notifications:
- Notifications