问题
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