ARKit 图像检测 冻结相机 [英] ARKit Image detection Freezing camera

查看:25
本文介绍了ARKit 图像检测 冻结相机的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在 ARKit 1.5 中的图像检测工作正常,但在 ARKit 2.0 中,每当我启动我的应用程序时,它会在看起来像 1 帧相机后冻结.我仍然可以与自动生成在屏幕上的对象交互,但相机停止更新.我正在使用 Unity 插件,每次我在 Unity AR 相机管理器脚本中更改图像跟踪下的字段时,我似乎都遇到了这个问题.有没有其他人遇到过这种情况?

I had image detection working properly in ARKit 1.5, but in ARKit 2.0 whenever I launch my application it freezes after what looks like 1 frame of the camera. I can still interact with an object that automatically spawns on the screen, but the camera stops updating. I am using the Unity plugin and every time I change the fields under Image Tracking in the Unity AR Camera Manager script I seem to have this problem. Has anyone else experienced this?

推荐答案

最后,我从 Apple 开发者论坛.

为 ARReferenceImage 使用 JPEG 格式而不是 PNG.

就是这样.我试过了,甚至在 XS Max (iOS12.0.1) 上也修复了它.

That's it. I tried this and fixed it even on XS Max (iOS12.0.1).

这篇关于ARKit 图像检测 冻结相机的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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