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

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

问题描述

帮助我正在玩 ARKit 的图像检测,但我不知道为什么我放置在 AR 参考文件夹中的每个图像都有错误:

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

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

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

我该如何解决这个问题?

How do i fix this?

推荐答案

当您将 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天全站免登陆