PyViewXA library for communicating with eye trackers via the iViewX server software from SensoMotoric Instrume... | |
Download |
PyViewX Ranking & Summary
Advertisement
- License:
- GPL v3
- Price:
- FREE
- Publisher Name:
- Ryan Hope
- Publisher web site:
- https://github.com/RyanHope/
PyViewX Tags
PyViewX Description
PyViewX is a Python package for communicating with SensoMotoric Instruments (SMI) eye trackers via iViewX.Here's a basic example of usage:from pyviewx import iViewXClient, Dispatcherfrom twisted.internet import reactord = Dispatcher()client = iViewXClient('192.168.1.100', 4444)client.addDispatcher(d)@d.listen( 'ET_FIX' )def PyViewXEvent( inSender, inEvent, inResponse ): print 'Fixation Start', inSender, inEvent, inResponse@d.listen( 'ET_EFX' )def PyViewXEvent( inSender, inEvent, inResponse ): print 'Fixation End', inSender, inEvent, inResponse@d.listen( 'ET_SPL' )def PyViewXEvent( inSender, inEvent, inResponse ): print 'Sample', inSender, inEvent, inResponsereactor.listenUDP( 5555, client )reactor.callLater( 0, client.setDataFormat, '%TS %ET %SX %SY %DX %DY %EX %EY %EZ' )reactor.callLater( 0, client.startDataStreaming )reactor.callLater( 0, client.startFixationProcessing )reactor.run()Here's a basic example of how to use the Calibrator in the pyviewx.pygamesupport package:from pyviewx import iViewXClientfrom pyviewx.pygamesupport import Calibratorfrom twisted.internet import reactorclient = iViewXClient( '192.168.1.100', 4444 )calibrator = Calibrator( client, reactor = reactor )reactor.listenUDP( 5555, client )reactor.callLater( 0, calibrator.start )reactor.run()Product's homepage
PyViewX Related Software