如何为Hololens 1跟踪和保存注视光标的位置文件 [英] How to track and save head-gaze cursor position a file for Hololens 1

查看:90
本文介绍了如何为Hololens 1跟踪和保存注视光标的位置文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用 Microsoft Hololens 1 开发人员版进行增强现实的研究.我想通过应用程序跟踪头部注视光标头部注视位置信息.

I am using Microsoft Hololens 1 developer's edition for my research in augmented reality. I want to track head gaze cursor or head gaze position information through the application.

请指导为我的研究提供多少种方法来跟踪头部注视头部注视光标原始数据信息.

Please guide how many possible ways to track head gaze or head-gaze cursor raw data information for my research.

是否有可能开发用于记录带有时间戳的坐标的头目信息的应用程序?

Is there any possibility to develop the application to record head-gaze information of coordinates with timestamps?

推荐答案

请为我的研究提供多少种方法来跟踪头部注视或头部注视光标原始数据信息.

Please guide how many possible ways to track head gaze or head-gaze cursor raw data information for my research.

原始数据"指的是什么类型的数据?如果您指的是来自硬件级别的传感器的原始数据,答案是否定的.

What kind of data do you mean by "raw data"?If you mean the raw data from the sensor at the hardware level, the answer is no.

但是如果您希望获得凝视的方向和原点以及头部凝视光标的位置.您可以从 GazeProvider 在MRTK:

But if your expectation is to get the direction and origin of Gaze and the position of Head-Gaze Cursor. You can get that from GazeProvider at MRTK:

void LogGazeDirectionOrigin()
{
    Debug.Log("Position at which the gaze hit an object: "
        + CoreServices.InputSystem.GazeProvider.HitInfo.point);
    Debug.Log("Gaze is looking in direction: "
        + CoreServices.InputSystem.GazeProvider.GazeDirection);
Debug.Log("Gaze origin is: "
        + CoreServices.InputSystem.GazeProvider.GazeOrigin);
}

GazeProvider 作为输入源,因此用户可以通过使用指针与对象进行交互.上面的代码显示了如何获取匹配信息并调用字段 point 以获得光标位置.此外,MRTK没有提供一种返回带有时间戳的光标位置的方法.如果您可以忍受轻微的延迟,那么没有什么可以阻止您在自己的代码中这样做的.

The GazeProvider as an Input Source so users can interact with objects through the use of a pointer. The above code shows how to obtain hit information and call the field point in it to obtain the cursor position. In addition, MRTK does not provide a method that returns the position of the cursor with a timestamp. If you can tolerate a slight delay there's nothing preventing you from doing it in your own code.

这篇关于如何为Hololens 1跟踪和保存注视光标的位置文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆