invalid reference image arkit 1.5

二次信任 提交于 2019-12-06 22:35:49

问题


I am running the apple sample project of ARKit 1.5 Image detection but when I place my reference image inside AR Resource folder and run the app I get following error:

Make sure all reference images are greater than 100 pixels and have a positive physical size in meters.

I don't find any predefined requirements of how should the image be, can anyone explain the required attributes of the image?


回答1:


As in Apple's documentation

For each image, use the inspector to describe the physical size of the image as you’d expect to find it in the user’s real-world environment, and optionally include a descriptive name for your own use.

Click on your image and chose size inspector to provide size. :)




回答2:


In my particular case, the dimensions were set and the image was named. But the name itself was invalid because I had another file (of a different type) named the same.

If the accepted solution cannot solve your issue, try changing the AR Resource's name.




回答3:


I had same problem. Solved by using JPEG format instead of PNG



来源:https://stackoverflow.com/questions/49006651/invalid-reference-image-arkit-1-5

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