The pupil-helpers repository contains utility scripts and concise code examples that demonstrate how to communicate and develop your own tools with Pupil.
If you're new to Pupil, we highly recommend checking out the docs.
For documentation on Pupil's message based API, please read through the Networking section in the docs.
For more information about plugin development, check out the Plugin Guide.
python
: Example Python scripts that showcase interaction with Pupil Remote and the Pupil IPCmatlab
: Example Matlab scripts, see the folder'sREADME.md
for detailsnetwork_time_sync
: Spec and implementation for the Pupil Timesync Protocolmarkers_stickersheet
: Surface marker images and vector fileswrite_your_own_plugin
: Example Pupil plugin
Pull Requests to this repo should be revisions of existing code. New examples should be referenced in the pupil-community repository.
- Install Pupil
- Run
Pupil
- Place ArUCo markers at the corners of the screen of the target computer.
- Define a surface with the name "screen" using the
Surface Tracker
fromPupil
. python python/blinkPub.py
: register a click when user close his eyes for 2 to 3 seconds.python python/mouse_control.py
: move the mouse cursor to user gaze point, when the user gaze fixed at a position on the screen for 10 seconds.
- Ensure that the ip for both
blinkPub.py
andmouse_control.py
are set to the computer that is runningPupil
. - Ensure that the
Network API
,Surface Tracker
andBlink Detector
are enabled when runningPupil
.