使用ARKit 3.0一次只能检测和跟踪多达4张图像

Ell*_*one 6 objective-c augmented-reality ios arkit

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

ARImageTrackingConfiguration *configuration = [ARImageTrackingConfiguration new];  
configuration.trackingImages = [ARReferenceImage referenceImagesInGroupNamed:@"AR Resources" bundle:nil];  
configuration.maximumNumberOfTrackedImages = 100;  
[self.sceneView.session runWithConfiguration:configuration]; 
Run Code Online (Sandbox Code Playgroud)

有人可以确认我所看到的吗?我需要能够跟踪更多的图像/标记,当我在ARKit 3公告中看到这一点时感到非常兴奋。

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

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

Ell*_*one 2

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

@discussion Image tracking provides 6 degrees of freedom tracking of known images. Four images may be tracked simultaneously.
Run Code Online (Sandbox Code Playgroud)

编辑:在 ARConfiguration.h 中找到,第 336 行