+
23
-

回答

EyeGestures:零门槛开源眼动追踪

只需一台普通摄像头,即可把笔记本或手机变成高精度眼动仪。

项目亮点

• 开源免费:MIT 许可证,GitHub 与 PyPI 一键获取

• 零硬件门槛:720p 网络摄像头 / 手机前置相机即可运行

• 跨平台:Python 库 + JavaScript 版本,支持 Windows / macOS / Linux / Web

• 精度:MIT GazeCapture 数据集验证,误差 ≈ 0.6-1°

• 易集成:三行代码完成注视点检测

安装:pip install eyeGestures

示例代码

from eyeGestures.utils import VideoCapture
from eyeGestures import EyeGestures_v3

# Initialize gesture engine and video capture
gestures = EyeGestures_v3()
cap = VideoCapture(0)
calibrate = True
screen_width = 500
screen_height= 500

# Process each frame
while True:
  ret, frame = cap.read()
  event, cevent = gestures.step(frame,
    calibrate,
    screen_width,
    screen_height,
    context="my_context")

  if event:
    cursor_x, cursor_y = event.point[0], event.point[1]
    fixation = event.fixation
    saccades = event.saccadess # saccadess movement detector
    # calibration_radius: radius for data collection during calibration

典型应用

辅助交互:眼控鼠标、打字、翻页,残障人士可用

隐私保护:EyeFocus 应用,视线离开即自动模糊屏幕

市场&教育:EyePointer 在线平台 5 美元/月即可收集大规模眼动数据

https://github.com/NativeSensors/EyeGestures

网友回复

我知道答案,我要回答