ContinueTracking()在慢速移动时失败 [英] ContinueTracking() fails on slow face movement

查看:69
本文介绍了ContinueTracking()在慢速移动时失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们现在遇到的问题最好转载如下:

the problem we are facing right now can be best reproduced as follows:

- 使用FaceTrackingVisualization C ++示例

- use the FaceTrackingVisualization C++ sample

- 每当调用StartTracking()时,在FTHelper :: CheckCameraInput()中设置一个断点(换句话说,前一曲目是不成功)

- set a break point in FTHelper::CheckCameraInput() whenever the StartTracking() is called (in other words the previous track was not successful)

- 启动示例并跳过断点,直到正确跟踪您的面部

- start the sample and skip the break point until your face is properly tracked

现在,旋转你的头,非常(!)慢。您会注意到跟踪不会更新,并且在某些时候跟踪将失败。调用StartTracking并再次更新位置。

Now, rotate your head very, very (!) slow. You will notice that the tracking does not update and at some point the tracking will fail. The StartTracking is called and the position updates again.

这不会太激烈但我们正在开发一个应用程序,其中鼠标光标通过面部跟踪进行控制。这种行为使得轻微的运动变得不可能并且导致"跳跃"。当位置最终更新时,光标的位置。

This would not be drastic but we are developing an app where a mouse cursor is controlled with the face tracking. This behaviour makes slight movements impossible and leads to a "jump" of the cursor, when the position finally updates.

我们一直尝试使用StartTracking()但是每个位置变化很大帧。还有其他解决方案吗?

We have tried using StartTracking() all the time but then the position varies a lot each frame. Are there any other solutions?

谢谢,

Markus

推荐答案

唯一的选择是在"继续失败"的情况下调用"开始跟踪"。鉴于此,您是否已查看缩小动作并使用  Lerp平滑运动? 

The only option is to call StartTracking in the event Continue fails. Given that, have you looked into a scaling the movements down and using a Lerp to smooth out the movement? 


这篇关于ContinueTracking()在慢速移动时失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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