Coder Social home page Coder Social logo

Comments (2)

esdalmaijer avatar esdalmaijer commented on August 20, 2024

Hi Jan,

Thanks for the question. Would you mind trying the following code? (I assume you have the latest version of PyGaze installed, as downloaded from this GitHub page.)

from pygaze.display import Display
from pygaze.eyetracker import EyeTracker

disp = Display()
tracker = EyeTracker(disp, trackertype='eyetribe')

tracker.calibrate()

tracker.close()
disp.close()

Your example contains syntax errors, and I can't see what you set the tracker's type to. So this is just to confirm that you are actually using the EyeTribe.

Cheers,
Edwin

from pygaze.

JanKoopman avatar JanKoopman commented on August 20, 2024

Hallo Edwin,
Thanks for your response. I'm afraid I don't completely understand your
question.
I attached the "defaults.py" routine to be sure
I coppied your syntax, but there is no difference.
When I kill the programm using CTRL-ALT-DELI see it is stuck in the
PsychoPy module

Kind regards,
Jan

On Tue, Jul 19, 2016 at 3:33 PM, Edwin Dalmaijer [email protected]
wrote:

Hi Jan,

Thanks for the question. Would you mind trying the following code? (I
assume you have the latest version of PyGaze installed, as downloaded from
this GitHub page.)

from pygaze.display import Displayfrom pygaze.eyetracker import EyeTracker

disp = Display()
tracker = EyeTracker(disp, trackertype='eyetribe')

tracker.calibrate()

tracker.close()
disp.close()

Your example contains syntax errors, and I can't see what you set the
tracker's type to. So this is just to confirm that you are actually using
the EyeTribe.

Cheers,
Edwin


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
#71 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/ATllsJyizUDj02EgAWfPwRKV9UA6PZ7sks5qXNIXgaJpZM4JPuES
.

-- coding: utf-8 --

This file is part of PyGaze - the open-source toolbox for eye tracking

PyGaze is a Python module for easily creating gaze contingent experiments

or other software (as well as non-gaze contingent experiments/software)

Copyright (C) 2012-2013 Edwin S. Dalmaijer

This program is free software: you can redistribute it and/or modify

it under the terms of the GNU General Public License as published by

the Free Software Foundation, either version 3 of the License, or

(at your option) any later version.

This program is distributed in the hope that it will be useful,

but WITHOUT ANY WARRANTY; without even the implied warranty of

MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the

GNU General Public License for more details.

You should have received a copy of the GNU General Public License

along with this program. If not, see http://www.gnu.org/licenses/

MAIN

DUMMYMODE = False # False for gaze contingent display, True for dummy mode (using mouse or joystick)
LOGFILENAME = 'default' # logfilename, without path
LOGFILE = LOGFILENAME[:] # .txt; adding path before logfilename is optional; logs responses (NOT eye movements, these are stored in a different (EDF/IDF/TXT) file!)

DISPLAY

SCREENNR = 0 # number of the screen used for displaying experiment
DISPTYPE = 'psychopy' # either 'psychopy' or 'pygame'
DISPSIZE = (1280,1024) # canvas size
SCREENSIZE = (33.8,27.1) # physical screen size in centimeters
SCREENDIST = 57.0 # centimeters; distance between screen and participant's eyes
FULLSCREEN = True # Indicates whether the experiment is executed in fullscreen
MOUSEVISIBLE = False # mouse visibility
BGC = (125,125,125) # backgroundcolour
FGC = (0,0,0) # foregroundcolour

SOUND

SOUNDOSCILLATOR = 'sine' # 'sine', 'saw', 'square' or 'whitenoise'
SOUNDFREQUENCY = 440 # Herz
SOUNDLENGTH = 100 # milliseconds (duration)
SOUNDATTACK = 0 # milliseconds (fade-in)
SOUNDDECAY = 5 # milliseconds (fade-out)
SOUNDBUFFERSIZE = 1024 # increase if playback is choppy
SOUNDSAMPLINGFREQUENCY = 48000 # samples per second
SOUNDSAMPLESIZE = -16 # determines bit depth (negative is signed
SOUNDCHANNELS = 2 # 1 = mono, 2 = stereo

INPUT

MOUSEBUTTONLIST = None # None for all mouse buttons; list of numbers for buttons of choice (e.g. [1,3] for buttons 1 and 3)
MOUSETIMEOUT = None # None for no timeout, or a value in milliseconds
KEYLIST = None # None for all keys; list of keynames for keys of choice (e.g. ['space','9',':'] for space, 9 and ; keys)
KEYTIMEOUT = 1 # None for no timeout, or a value in milliseconds
JOYBUTTONLIST = None # None for all joystick buttons; list of button numbers (start counting at 0) for buttons of choice (e.g. [0,3] for buttons 0 and 3 - may be reffered to as 1 and 4 in other programs)
JOYTIMEOUT = None # None for no timeout, or a value in milliseconds

EYETRACKER

general

TRACKERTYPE = 'eyetribe' # either 'smi', 'eyelink' or 'dummy' (NB: if DUMMYMODE is True, trackertype will be set to dummy automatically)
SACCVELTHRESH = 35 # degrees per second, saccade velocity threshold
SACCACCTHRESH = 9500 # degrees per second, saccade acceleration threshold
BLINKTHRESH = 150 # milliseconds, blink detection threshold used in PyGaze method
EVENTDETECTION = 'pygaze' # either 'pygaze' for PyGaze detection algorithms, or 'native' for manufacturer's event detection (if available)

EyeLink only

EYELINKCALBEEP = True # Calibration beep with each jump
EYELINKPUPILSIZEMODE = 'area'

EyeTribe only

EYETRIBECALIBDUR = 750
EYETRIBEPRECALIBDUR = 500

SMI only

SMIIP = '127.0.0.1'
SMISENDPORT = 4444
SMIRECEIVEPORT = 5555

from pygaze.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.