ARImageAnchor
Information about the position and orientation of an image detected in a world-tracking AR session.
有关在世界跟踪AR Session中检测到的图像的位置和方向的信息。
Overview
When you run a world-tracking AR session and specify ARReferenceImage objects for the session configuration's detectionImages property, ARKit searches for those images in the real-world environment. When the session recognizes an image, it automatically adds to its list of anchors an ARImageAnchor for each detected image.
To find the extent of a recognized image in the scene, use the inherited transform property together with the physicalSize of the anchor's referenceImage.
概述
当您运行世界跟踪AR Session并为Session配置的detectionImages属性指定ARReferenceImage对象时,ARKit将在真实世界环境中搜索这些图像。 当会话识别图像时,会自动为每个检测到的图像添加一个ARImageAnchor给锚点列表。
要查找场景中已识别图像的范围,请将继承的transform属性与anchor的referenceImage的physicalSize一起使用。
Identifying Detected Images
referenceImage
The detected image referenced by the image anchor.
检测到的图像由图像锚点引用。
Discussion
This object is always one of the ARReferenceImage objects you provided in the detectionImages array when configuring the session.
讨论
该对象始终是您在配置Session时在detectionImages数组中提供的ARReferenceImage对象之一。
Inherits From ARAnchor