Vuforia Ground Plane Detection doesn't work when using webcam (IP webcam using Iriun Webcam in android phone)

huangapple go评论76阅读模式
英文:

Vuforia Ground Plane Detection doesn't work when using webcam (IP webcam using Iriun Webcam in android phone)

问题

使用Vuforia作为它允许使用网络摄像头进行测试的思路。因此,我下载了Iriun Webcam(适用于Android的IP Webcam),并成功地在Unity编辑器中通过按下“播放”按钮获取了视频流。
我创建了一个最小的AR示例,我的应用程序应该能够检测平面,然后轻点可以放置一个对象。
我的问题是,当我构建apk并在手机上测试时,一切都正常,但当我在编辑器内使用播放按钮时,虽然捕获了视频流,但不会执行任何AR操作(如本应执行的平面检测)。

请帮助我找出可能的原因,因为我无法找到其他人面临类似问题的情况。

英文:

Thought of using Vuforia as it allows testing using a webcam. So, i downloaded Iriun Webcam (IP Webcam for android), and succesfully got the video stream inside the Unity Editor when i press "Play".
I created a minimal AR example, where my app would detect a plane and a tap would place an object.
My issue is that when I Build the apk and test it on my phone it works perfectly as it should, but when i do it using the play button inside the editor, the video stream is captured, but it won't do any AR stuff (like plane detection as it was supposed to do)

Please help me with any possible reason there could be, as I couldn't find any such issues faced by anyone else

I created a minimal AR example, where my app would detect a plane and a tap would place an object.
My issue is that when I Build the apk and test it on my phone it works perfectly as it should, but when i do it using the play button inside the editor, the video stream is captured, but it won't do any AR stuff (like plane detection as it was supposed to do)

答案1

得分: 1

如此提及:https://library.vuforia.com/unity-extension/vuforia-play-mode-unity 在使用Unity Play Mode时,不支持使用网络摄像头的平面跟踪。平面跟踪依赖于强大的设备跟踪器,在使用网络摄像头时无法使用。然而,为了帮助开发,可以在设备上记录一个序列,然后在播放模式中使用:https://library.vuforia.com/platform-support/recording-and-playback。另一种选择是使用图像目标来模拟平面行为,详情请参考:https://library.vuforia.com/ground-plane/introduction-ground-plane-unity。

英文:

As mentioned here https://library.vuforia.com/unity-extension/vuforia-play-mode-unity Ground Plane is not supported when using a webcam in Unity Play Mode. Ground plane relies on a robust device tracker and this is not available when using a webcam. However, to help development, it is possible to record a sequence on a device and then using this in play mode https://library.vuforia.com/platform-support/recording-and-playback. The other option is to emulate the Ground Plane behavior using an Image Target as discussed here https://library.vuforia.com/ground-plane/introduction-ground-plane-unity.

huangapple
  • 本文由 发表于 2023年2月16日 17:32:32
  • 转载请务必保留本文链接:https://go.coder-hub.com/75470262.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定