A library for classifying raw eye gaze data into discrete events like saccades and fixations.
Project description
pyfixation is a Python package for classifying raw eye gaze data into discrete events like saccades and fixations. This package can be used online in real-time or offline after data has been collected.
Here’s a basic example of usage:
from pyfixation import FixationProcessor px_per_mm = 3.55 fp = FixationProcessor( px_per_mm, sample_rate = 500 ) f = open( 'gazedata.txt', 'r' ) for line in f.readlines(): gaze_found, gaze_x, gaze_y = map( float, line.split( '\t' ) ) print fp.detect_fixation( gaze_found, gaze_x, gaze_y )
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
PyFixation-0.2.1.tar.gz
(3.6 kB
view hashes)
Built Distribution
PyFixation-0.2.1-py2.7.egg
(7.3 kB
view hashes)