Comments (2)
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.
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)
- libsmi HOT 1
- Can PyGaze use in Tobii EyeTracker 4C(Consumer Eye Trackers)?
- Exception: The setting "TRACKERSERIALNUMBER" does not exist HOT 1
- Inescapable frozen grey screen on eyetracking examples HOT 1
- Eyelink fixations map to unexpected values with 2560x1440p display HOT 2
- Add PyGaze to Open Neuroscience
- Eyelink 1000+ feed not shown in Eyelink menu / opensesame pygaze init item HOT 3
- time.clock depreciated HOT 2
- How to produce eye data file HOT 5
- FileNotFoundError: Could not find module 'iViewXAPI.dll' (or one of its dependencies). Try using the full path with constructor syntax. HOT 1
- Does PyGaze support tobii eye tracker 5? HOT 1
- AttributeError: module 'pylink.__version__' has no attribute 'split' HOT 2
- Could not find module 'iViewXAPI.dll' (or one of its dependencies). Try using the full path with constructor syntax. HOT 1
- Log messages in OpenGaze / GazePoint HOT 5
- Working example for Mac using webcam HOT 2
- tobii eyetrackers
- PyGaze missing package lxml for GazePoint
- PyGaze error in OpenSesame using GazePoint
- Tobii eye tracker has lots of temporal noise and missing samples HOT 2
- Converting Eyelink / Pygaze coordinates to be "compatible" with OS coordinate system
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pygaze.