gpt4 book ai didi

ios - 视觉框架提供不精确的滚动和偏航值

转载 作者:搜寻专家 更新时间:2023-11-01 06:54:01 24 4
gpt4 key购买 nike

我正在使用 Vision Framework 来尝试获取面部的滚动和偏转。

我在我的 CVPixelBuffer 上使用了一个 VNSequenceRequestHandler 并且能够同时使用 VNDetectFaceLandmarksRequest 和/或 VNDetectFaceRectanglesRequest 成功取回包括地标的人脸(对于地标请求)。到目前为止一切顺利。

但是,当我尝试获取 rollyaw 值时,我将它们作为一个离散值集而不是连续值范围反射(reflect)面部的确切方向。

roll 的 iOS 文档和 yaw声明:

The roll/yaw is reported in radians. A positive angle corresponds to counterclockwise roll. The range is [-Pi, Pi). A nil value indicates that the roll/yaw angle hasn't been computed.

但是,当我查看该值时,虽然显然正在计算 roll,但我得到的只是离散值,即当我的脸从正上方旋转到倒置时,我得到:

0 - face is upright

0.524 (Pi/6) - face starts rotating

1.047

1.571 (Pi/2) - face is now landscape

2.094

2.618

-3.142 (-Pi) - face is now upside-down

换句话说,似乎只有 12 个可能的 roll 值。

这肯定是不正确的?

yaw 更糟,我在任一方向上只能得到 0.785-0.785

最佳答案

Apple 现已确认这实际上是设计行为:https://forums.developer.apple.com/thread/113601

The yaw and roll properties of a VNFaceObservation return a limited, discrete set of values, not a continuous range.

If you would like a higher degree of precision in these values, you should file an enhancement request!

关于ios - 视觉框架提供不精确的滚动和偏航值,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55022279/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com