眼动仪 python SDK tobii_research 操作笔记

最近在使用Tobii眼动设备的时,需要使用python的SDK来启动眼动设备进行数据采集。踩了一些坑,记录一下操作流程:
在使用网口链接eye tracker的时候,我的电脑是Win10家庭版,只要同时连上WIFI就无法通信。所以建议关掉无线连接。

tobii_research库安装

按照官网指导的方法安装时,发现找不到库。

pip install tobii_research

解决方案:这个库在python3.7以上的版本不支持,需要重新建立一个3.6的python环境进行安装。

Getting_Started

官方提供了一个Getting_Started的demo演示如果通过SDK实现眼动采集的基本流程。即以下四个流程。

  1. Browsing for eye trackers or selecting an eye tracker with known address.
  2. Establishing a connection with the eye tracker.
  3. Running a calibration procedure in which the eye tracker is calibrated to the user.
  4. Setting up a subscription to gaze data, and collecting and saving the data on the computer running the application. In some cases, the data is also shown live by the application.
import tobii_research as tr
import time


found_eyetrackers = tr.find_all_eyetrackers()
my_eyetracker = found_eyetrackers[0]

print("Address: " + my_eyetracker.address)
print("Model: " + my_eyetracker.model)
print("Name (It's OK if this is empty): " + my_eyetracker.device_name)
print("Serial number: " + my_eyetracker.serial_number)

def gaze_data_callback(gaze_data):
    # Prin
  • 2
    点赞
  • 23
    收藏
    觉得还不错? 一键收藏
  • 10
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 10
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值