-------- Forwarded Message --------
Subject: Re: 【Inquiry】Using eye tracker by Expyriment
Date: Fri, 16 Oct 2015 16:58:37 +0200
From: Oliver Lindemann <
oliver.l...@uni-potsdam.de>
To: Ryo TACHIBANA <
ryotachi...@gmail.com>
Does this help?
https://www.reddit.com/r/expyriment/comments/3j8dbr/expyriment_and_eyetracking/
Oliver
On 16.10.2015 14:55, Ryo TACHIBANA wrote:
> Dear Mr. Oliver,
>
> Sorry for the sudden email.
> I am Ryo Tachibana, a Ph.D student at Tohoku university in japan.
>
> I would like to ask you a question about using eye tracker by Expyriment.
> Please see the forwarded mail below.
>
> I sent Mr. Florian the same inquiry about two weeks ago, but have not
> heard from him.
> Probably he is very busy now, so he does not have time to reply.
>
> I would appreciate it if you have any ideas about my question.
>
> Beat regards,
>
> Ryo
>
> ---------- Forwarded message ----------
> From: *Ryo TACHIBANA* <
ryotachi...@gmail.com
> <mailto:
ryotachi...@gmail.com>>
> Date: 2015-10-04 18:40 GMT+09:00
> Subject: Using eye tracker
> To: Florian Krause <
flo...@expyriment.org
> <mailto:
flo...@expyriment.org>>
>
>
> Dear Florian,
>
> Thank you for your great help.
>
> The question is about using eye tracker by Expyriment.
>
> I try to use an eye tracker (EyeLink) by Expyriment.
>
> Controlling the experiment by Expyriment, I try to send some trigger
> (time, trial, stimuli onset/offset...) by Pygaze
> (
http://www.pygaze.org/) to my eye tracker for the data analysis of
> eye movements.
>
> But, a display problem occurs.
> Pygaze has also its display setting (libscreen), so my program doesn't
> work.
> When I asked this problem to the developers of Pygaze, he answered it
> is possible to do a bit of hacking as below.
>
>
> import pygaze
> from pygaze import EyeTracker
> from expyriment import control
>
> # EXAMPLE initialisation of expyriment
> exp = control.initialize()
>
> # get the active PyGame Surface
> window = exp.screen._surface
>
> # define a custom Display class
> # the parent is the actual Display class,
> # but we're going to overwrite the initialisation function
> class Display(pygaze.display):
>
> def __init__(self, pygamewindow):
>
> # use the passed handle to the active surface
> pygaze.expdisplay = window
> self.dispsize = window.get_size()
> self.fgc = (0, 0, 0)
> self.bgc = (128, 128, 128)
> self.mousevis = False
>
> # now initialise a dummy Display,
> # and pass the active PyGame window
> disp = Display(window)
>
> # and initialise an EyeTracker object
> tracker = EyeTracker(disp)
>
> # REST OF YOUR SCRIPT
>
>
> This script causes an error,
> class Display(pygaze.display): TypeError: Error when calling the
> metaclass bases module.init() takes at most 2 arguments (3 given)
>
> Do you have any ideas?
>
> All the best,
>
> Ryo
>
> *―――――――――――――――――――――――*
> *Ryo TACHIBANA*
>
> Ph.D Student
>
> Department of Psychology,
> Graduate School of Arts and Letters, Tohoku University
> 27-1 Kawauchi, Aobaku, Sendai, 980-8576, JAPAN
> Tel:
+81-(0)22-795-6048 <tel:%2B81-%280%2922-795-6048>
> Email-1:
ryo...@dc.tohoku.ac.jp <mailto:
ryo...@dc.tohoku.ac.jp>
> Email-2:
ryotachi...@gmail.com <mailto:
ryotachi...@gmail.com>
> *―――――――――――――――――――――――*
>
>
--
/*Dr. Oliver Lindemann*
Division of Cognitive Science
University of Potsdam/
Karl - Liebknecht Str. 24/25, Building 14, 14476 Potsdam, Germany
Tel:
+49 - 331 - 977 2915, Fax:
+49 - 331 - 977 2794
Room: 6.24, Building 14,
http://www.cognitive-psychology.eu/lindemann