使用ARKit 3.0一次只能检测和跟踪多达4张图像 [英] Only able to detect and track up to 4 images at a time with ARKit 3.0

查看:244
本文介绍了使用ARKit 3.0一次只能检测和跟踪多达4张图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用下面的代码,在使用ARKit时,我一次只能检测和跟踪多达4张图像.

Using the code below I'm only able to detect and track up to 4 images at any one time when using ARKit.

ARImageTrackingConfiguration *configuration = [ARImageTrackingConfiguration new];  
configuration.trackingImages = [ARReferenceImage referenceImagesInGroupNamed:@"AR Resources" bundle:nil];  
configuration.maximumNumberOfTrackedImages = 100;  
[self.sceneView.session runWithConfiguration:configuration]; 

有人能够确认我所看到的吗?我需要能够跟踪更多的图像/标记,当我在ARKit 3公告中看到它时感到很兴奋.

Is anyone able to confirm what I'm seeing? I need to be able to track a larger number of images/markers and was excited when I saw this offered in the ARKit 3 announcement.

如果有人能够复制它,那就太好了,所以我知道我没有想象中的事情^^

Would be great if someone is able to replicate this so I know I'm not imagining things ^^

我希望这不是Apple的限制,因为3DS可以在8年前检测并跟踪超过4张图像.

I hope this isn't an Apple limitation, the 3DS could detect and track more than 4 images over 8 years ago.

推荐答案

在对ARImageTrackingConfiguration的评论中找到了官方答案:

Found the official answer in a comment made to ARImageTrackingConfiguration:

@discussion Image tracking provides 6 degrees of freedom tracking of known images. Four images may be tracked simultaneously.

在ARConfiguration.h的336行中找到

Found in ARConfiguration.h, line 336

这篇关于使用ARKit 3.0一次只能检测和跟踪多达4张图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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