ignacioxd / pupil-remote-php
为 Pupil 眼动追踪软件提供的简单 PHP 远程控制客户端。
1.0.1
2017-04-11 05:14 UTC
Requires
- ext-zmq: *
This package is not auto-updated.
Last update: 2024-09-29 02:08:28 UTC
README
为 Pupil 眼动追踪 软件提供的简单 PHP 远程控制客户端。
安装
此包可在 Packagist 上找到,您可以使用 Composer 安装它
composer require ignacioxd/pupil-remote-php
依赖关系
基本用法
连接
$host = "127.0.0.1"; $port = 50020; $remote = new \Ignacioxd\PupilRemote(); $remote->connect($host, $port); // Or leave empty for defaults
获取 Pupil 的时间基
$pupilTime = $remote->getTimebase();
设置 Pupil 的时间基
$remote->setTimebase(123.456);
开始校准
if( $remote->startCalibration() ) { echo "Calibration started"; }
停止校准
if( $remote->stopCalibration() ) { echo "Calibration stopped"; }
开始录制
if( $remote->startRecording() ) { echo "Recording started"; }
停止录制
if( $remote->stopRecording() ) { echo "Recording stopped"; }