PyGaze supports Tobii Pro SDK

This post first appeared on, in September 2017.


Tobii is a major player in the eye-tracking world, selling devices to customers in business and science. Today, Tobii has made a major step towards supporting open science by adding support for its new SDK in PyGaze (and by extension in OpenSesame). You can review the code on GitHub, download the PyGaze package as a zip, or download a full WinPython version. Details below, and more info on downloading here.

Tobii Pro SDK


Tobii has recently updated their software development kit (SDK), which meant that new Tobii trackers were not supported by the old SDK. That was unfortunate for PyGaze users, as PyGaze only included support for the older version. When this was flagged up on GitHub by user alisdt, Magnus Smedberg from Tobii responded with good news: Tobii was interested in writing a new library to support their new SDK in PyGaze. Today, him and Pedro Alvito uploaded their code to GitHub.

What devices are supported?

The new SDK should support most devices, including devices that were sold before the new SDK was released (Tobii informs us that they retro-fitted the code to work with older devices). That means that you can try to make your old device work with the new code. However, the old Tobii SDK is still supported in PyGaze, so older devices that don’t work with the new SDK are still supported.

Tobii Pro Spectrum

Tobii Pro Spectrum. More info on the Tobii website.

How do I use the new SDK?

First, install the software that came with your tracker. Then download the new PyGaze package, and use ‘tobii’ as your TRACKERTYPE in a file (should be in the same directory as your experiment script).

Can I still use the old SDK?

Yes! You’ll have to make one tiny change to your code, though: The TRACKERTYPE in the constants needs to be set to ‘tobii-legacy’.

Can I help?

Yes, please! You can help by testing out the new code, and reporting any issues you might run into. You can do so on GitHub, on the support forum, or by commenting on this post.

Tobii Pro Glasses

Another promising Tobii development in PyGaze and OpenSesame is support for the Tobii Pro Glasses 2. This was added by Davide De Tommaso, and is currently ‘experimental’. That means it’s not supported by the core PyGaze team (because we don’t have Tobii Glasses), but maintained by Davide (and potentially other members of the PyGaze community).


  1. Ali Chughtai

    Hello, sir. I have recently bought an eye tracker known as Tobii EyeTracker 5. Without knowing that it is a commercial grade, I bought it for my final year project to extract the data, eye data, you know, as eye gaze and fixation data of a person reading a simple English paragraph and test it through the model and tell its accuracy and if a person is really dyslexic or not. The main conclusion of my project was this. But after I received this and configured it on my laptop, I received an email from Tobii that this device doesn’t support SDK, Tobii SDK, which really caused me trouble due to which I am unable to proceed this project. So now, please, you will be of very help if you tell me what to do right now. How can I extract the eye data from this device, Tobii EyeTracker 5?

    P.S : Kind sir, you can reply be at my email

    • In the past, I know Tobii offered a research license that one had to buy in order to get access to that level of data. While I haven’t checked in a while, this might well still be true. I recommend you get in touch with Tobii directly.

Leave a Reply

Your email address will not be published. Required fields are marked *