Xcode错误:AR参考图像必须具有非零的正宽度 [英] Xcode Error: AR reference image must have non zero positive width

查看:154
本文介绍了Xcode错误:AR参考图像必须具有非零的正宽度的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

帮助我正在使用ARKit的图像检测功能,我不知道为什么我放置在AR Reference文件夹中的每个图像都有错误:

Help I'm playing around with ARKit's Image detection and I have no idea why every image I place in the AR Reference folder has an error:

AR参考图像名称"的正宽度必须不为零

AR reference image 'name' must have non zero positive width

我不太确定这意味着什么,我在Google上搜索时没有任何运气.

I'm not really sure what that means and I'm not having any luck when I google it.

我该如何解决?

推荐答案

将AR参考图像添加到资产目录时,需要添加物理尺寸:

When you add an AR reference image to your asset catalog, you need to add a physical size:

这对于ARKit在用户的物理环境中定位图像是必要的-否则,它无法判断图像在相机图像中看起来是否很小,因为它实际上很小并且在附近,或者因为它很大而又很远.

This is necessary for ARKit to locate the image in the user's physical environment — otherwise it can't tell whether the image appears small in the camera image because it's physically small and nearby or because it's large and far away.

这篇关于Xcode错误:AR参考图像必须具有非零的正宽度的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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