hsogo / psychopy_tobii_controller Goto Github PK
View Code? Open in Web Editor NEWA module to use tobii_research package with PsychoPy.
License: GNU General Public License v3.0
A module to use tobii_research package with PsychoPy.
License: GNU General Public License v3.0
Hey
My Tobii TX300 eye-tracker is working perfectly fine thanks to your package, but I still have problems to detect everyone's eyes : it works perfectly well with me, but fail to calibrate with others persons.
I plugged the LAN directly to the system unit, and I use DVI cable not VGA. I don't use any USB adapter so I don't think I have a loss of power.
Do you have any ideas where this problem can come from ?
Regards, Ilyass
When I record the data of eye movement in Psychopy, I got a negative value in TimeStamp column at the the beginning of each trial. I think there's some missing data. At your convenience, would you please tell me how to fix it. Thank you for your assistance.
My Psychopy version is 1.85.6 in win10, eye tracker is Tobii-Tx 300. Here is some of the relevant code.
`
# ------Prepare to start Routine "trial"-------
t = 0
trialClock.reset() # clock
frameN = -1
continueRoutine = True
# update component parameters for each repeat
ptc_controller_tobii_controller.subscribe()
ptc_controller_tobii_controller.record_event('Start Recording')
main_sound.setSound('sounds/' + str(sound), secs=-1)
main_image.setPos([picposition, 0])
main_image.setImage('images/' + str(image))
sec_image.setPos((picposition, 0))
main_target.setPos([dotposition, 0])
main_resp = event.BuilderKeyResponse()
sec_resp = event.BuilderKeyResponse()
# keep track of which components have finished
trialComponents = [main_fix, main_sound, main_image, sec_image, main_target, main_resp, sec_resp]
for thisComponent in trialComponents:
if hasattr(thisComponent, 'status'):
thisComponent.status = NOT_STARTED
# -------Start Routine "trial"-------
while continueRoutine:
# get current time
t = trialClock.getTime()
frameN = frameN + 1 # number of completed frames (so 0 is the first frame)
# update/draw components on each frame
# *main_fix* updates
if frameN >= 0.0 and main_fix.status == NOT_STARTED:
# keep track of start time/frame for later
main_fix.tStart = t
main_fix.frameNStart = frameN # exact frame index
main_fix.setAutoDraw(True)
ptc_controller_tobii_controller.record_event(int(str(trigger) + '0'))`
Hi,
I am facing a strange issue when trying to adapt your code to my PsychoPy Template : It recognizes my gaze well, but when I entered in calibration step, it only displays a circle at the middle of the screen, and not continuing for next one.
Do you have any insights on this problem ?
Thank you for this wonderful template you provide!
Ilyass , PhD student at Paris Brain Institute
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.