Coder Social home page Coder Social logo

mamoruhiroe / psychopy_tobii_controller Goto Github PK

View Code? Open in Web Editor NEW

This project forked from hsogo/psychopy_tobii_controller

0.0 0.0 0.0 70 KB

A module to use tobii_research package with PsychoPy.

License: GNU General Public License v3.0

Python 100.00%

psychopy_tobii_controller's Introduction

psychopy_tobii_controller

psychopy_tobii_controller is a helper module to use tobii_research package with PsychoPy.

Disclaimer: psychopy_tobii_controller is unofficial. It is NOT affiliated with Tobii.

Licence

GPLv3 (https://github.com/hsogo/psychopy_tobii_controller/blob/master/LICENCE)

Author

Hiroyuki Sogo (https://github.com/hsogo)

Requirements

PsychoPy (http://www.psychopy.org/) tobii_research (https://pypi.python.org/pypi/tobii-research)

Sample codes

sample01.py

Basic usage of tobii_controller is demonstrated in this sample.

  • Initializing tobii_controller object
  • Open/close data file
  • Showing Tobii status display
  • Performing calibration
  • Start/Stop recording
  • Getting the latest gaze position
  • Recording event data

sample02.py

  • Customizing calibation target color and size.
  • Customizing the key to start calibration procedure.
  • Controlling the order of calibration target position.

sample03.py

  • Customizing calibration procedure.

sample04.py

  • Customizing text color in the status display and calibration.
  • Using mouse in the status display and calibration.

sample05.py

  • Customizing key mapping for selecting calibration points.

builder_sample01.psyexp

Basic usage of Builder components of tobii_controller is demonstrated in this sample.

  • ptc_init: Initialize tobii_controller. This component works in any routine.
  • ptc_cal: Run calibration. Calibration is performed at the beginning of the routine where this component is placed. More preceisely, this component is equivalent to add calibration codes to "begin routine" of the Code component.
  • ptc_rec: Record gaze data in the routine where this component is placed.
  • ptc_message: Insert event during recording. ptc_rec component should be placed in the same routine.
  • ptc_getpos: Get the latest gaze position. Gaze position is stored in a variable with the same name as the 'Name' property of this component. ptc_rec component should be placed in the same routine.

Builder components are in ptc_components directory. Copy this directory anywhere you have write permissions and add this directory to component foloders of PsychoPy Preferences. For example, if you copy ptc_components directory to 'C:/Users/foo/Documents', add 'C:/Users/foo/Documents/ptc_components' to components folder and restart PsychoPy. components folder is in 'Builder' tab of PsychoPy Preference dialog.

utility_sample01.py

A sample of utility functions.

  • Loading data recorded by psychopy_tobii_controller.
  • Applying moving average to gaze data.
  • Detecting fixations.
  • Plotting gaze data.

psychopy_tobii_controller's People

Contributors

hsogo avatar

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.