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

查看:33
本文介绍了使用 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 的限制,8 年前 3DS 可以检测和跟踪超过 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天全站免登陆