ARKit Image detection Freezing camera

北战南征 提交于 2019-12-13 13:30:20

问题


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?


回答1:


This bug is occurred on below environment, I found out.

  • on Xcode 10.0
  • DeploymentTarget: iOS11.0~11.4
  • build on the device which is iOS12

I've debugged a lot of pattern of environments.

Finally, I tried on Xcode 10.1 and then found out this bug has been fixed, I thought... But this solution is not perfect. I couldn't solve the problem on iPhone XS Max.

Finally and Finally, this solution is the best.

Thanks.




回答2:


Finally, I found a workaround from the Apple Developer Forums.

Use JPEG format instead of PNG for ARReferenceImage.

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




回答3:


i have same bug.

I tryed on Xcode10.1

  • X (iOS12.0) > OK
  • 6S(iOS12.0) > OK
  • XS Max (iOS12.0.1) > NG

I tryed on Xcode10.1 and Deployment Target = 12.0 (from 11.3)

  • X (iOS12.0) > OK
  • 6S(iOS12.0) > OK
  • XS Max (iOS12.0.1) > OK!


来源:https://stackoverflow.com/questions/50917583/arkit-image-detection-freezing-camera

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!