Unity Arcore对象跟踪和转移问题

发布于 2025-02-08 21:25:50 字数 870 浏览 2 评论 0原文

我一直在从事以下项目: 我有一个与Arfoundation Librairy + Arcore插件团结起来的Android应用程序,目标是扫描QRCODE(带有Zxing)(Zxing),并在其位置召唤一个架子。


为了实例化架子,我启动了一个射线广播,直到我扫描的Qrcode的中心,当它碰到AR点时,它应该实例化架子。
它实际上有效,但是当AR架子实例化时,它倾向于转向另一个方向而不是保持不动。这意味着AR架子不再与真实的架子叠加。

经过一些研究,我发现它发生了变化,因为弧形无法在该区域实例化点云,这意味着算法不知道他在哪里,并尝试使Ar架子保持不动。


它可能是由以下原因引起的:光,相机质量,环境(例如一个人移动),用户与AR对象之间的距离甚至ARFOUNDATION AI FAILE。

默认情况下,没有错误消息或此类错误消息当AR对象移动时(据我所知),因为算法每次调整位置是“正常”的。但是,当未检测到AR点云时,它会发疯。

因此,我想知道是否有任何方法可以检测到这些转变,甚至更好地阻止它们。任何帮助都将受到赞赏。我希望我的要求很明确,并且可以帮助其他与我同样问题的人。不要犹豫,问我任何问题,我很高兴回答他们。祝你今天过得愉快!

技术信息:

  • UNITY版本:2020.3.27F1
  • arfoundation + Arcore XR插件版本:4.1.9
  • Android版本:11
  • 设备型号:Samsung Galaxy Tab A7 SM-T500
  • 架子测量:H:1.85m,L: 0.80m,D:
  • 距AR架子的平均距离为0.60m:0.3m〜

I've been working on the following project:
I have an android app made with unity with the ARfoundation librairy + ARCore plugin, the goal is to scan a QRCode (with Zxing) and summon a shelf at its position.
To instantiate the shelf, I launch a raycast right to the center of the qrcode I've scanned and when it hits an AR point, it should instantiate the shelf.
It actually works, but when the AR shelf is instantiated, it tends to shift to an other direction instead of staying immobile. It means that the AR shelf is not superimposed anymore with the real shelf.
After some researches, I found it shifts because ARfoundation is not able to instantiate point clouds in the area anymore, which means the algorythm doesn't know where he is and try desesperatly to keep the AR shelf immobile.
It might be caused by: light, camera quality, environnement (like a person moving), the distance between the user and the AR object or even ARfoundation AI failure.

By default there is no error message or such kind (to my knowledge) when the ar objects shifts, because it's "normal" for the algorythm to adjust its position everytime. But when no AR point cloud are detected, it goes crazy.

So I'm wondering if there's any way to detect those shifts, or even better, prevent them. Any help is appreciated. I hope my request is clear and might help other people that have the same issue as me. Don't hesitate to ask me any questions, I'll be glad to answer them. Have a nice day!

Technical informations:

  • Unity version : 2020.3.27f1
  • ARFoundation + ARCore XR Plugin version : 4.1.9
  • Android version : 11
  • Device model: Samsung Galaxy Tab A7 SM-T500
  • Shelf measurement : h:1.85m, l: 0.80m, d: 0.60m
  • Average distance to the AR shelf: 0.3m~

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

梦魇绽荼蘼 2025-02-15 21:25:50

假设您正在使用AR Foundation的图像识别来识别QR码。您是否尝试在全息图中添加锚?

IVE成功完成了图像相似的图像识别,而没有提及的问题。

Assuming that you are using AR Foundation's image recognition to recognize the QR code. Have you tried adding an anchor to your hologram?

Ive successfully done image similar image recognition without the problems you mention.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文