Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Supported by

Mirametrix S2

edited July 2015 in PyGaze

I'm just beginning to work with the eyetracker Mirametrix S2, OpenSesame and PyGaze. The PyGaze website is incredible and I'm also trying to learn a bit of Python. Thus, sorry for the noob question...
Does PyGaze works with Mirametrix S2? If not, how hard it would be to make it work?


  • edited 7:56AM

    Hi, and welcome to the forum!

    As it currently stands, PyGaze only supports EyeLink, EyeTribe, SMI and Tobii devices. So no Mirametrix, I'm afraid.

    There is a general recipe for adding new trackers, though. So if you're up for a programming challenge, you could attempt to write a library for any tracker. Follow the steps below:

    1. Make sure that the tracker you would like to use can be commanded via Python. That is: there should either be a Python API (meaning that you can make the tracker do stuff by calling Python functions), or a DLL with functions that can make the tracker do stuff. In the case of a DLL, you can use the Python module ctypes to call DLL functions from within Python.

    2. Find the general format for PyGaze eye tracker classes. This lists all functions that you need to code for your specific tracker.

    3. Have a look at the currently existing classes; they can serve as great examples. For examples that uses a Python API to communicate with the tracker, refer to the EyeLink and Tobii classes. For an example that uses a DLL to communicate with the tracker, refer to the SMI class. For an example of something in between (a general API that can be used via Python), refer to the PyTribe class.

    4. Start writing your own library, e.g. with a class called MiraMetrixTracker. This should include all functions from the basic tracker class (see point 2), which you will have to write yourself (so that they work with your tracker).

    5. For general guidance, please do refer to this forum. GitHub is also a good resource: you can put your code on there, and we can comment on it.

    6. After writing your class, please do not forget to share it with us. We can include it in PyGaze, so it can benefit others. You will, of course, be appropriately credited!

    Sorry I can't be more helpful on the actual implementation: I'm not familiar with the MiraMetrix platform, and do not have one of their trackers present to test your code on.

    Good luck!


  • Hello, I'm not a programmer so I don't think I'd be up for this challenge (but I appreciate the info!). It has been a number of years since this question was posted...I was wondering if anyone has adapted PyGaze to be compatible with MiraMetrix S2 at this point?

  • Hello.

    Anyone have any possible solution to run PyGaze with Mirametrix S2?


Sign In or Register to comment.