Class ARObject Scanning Configuration
A configuration that uses the back-facing camera to collect high-fidelity spatial data for use in scanning 3D objects for later detection.
To detect a real-world 3D object in an AR experience, your
needs a high-fidelity 3D scan of that object—an ARWorld Tracking Configuration . Running a session with ARReference Object
enables the high-fidelity data collection needed for object scanning. After you’ve scanned an object in a session with this configuration, call
ARObject Scanning Configuration to extract a region of the session’s internal spatial-mapping data for use as a reference object. create Reference Object(transform: center: extent: completion Handler:)
is for use only in development scenarios. High-fidelity spatial mapping has a high performance and energy cost, and disables ARKit features not necessary for reference object scanning. To produce AR experiences for end users, use
ARObject Scanning Configuration . ARWorld Tracking Configuration
Aside from the object scanning capability,
is similar to
ARObject Scanning Configuration : both track device position and orientation with six degrees of freedom (6DOF) and support plane detection and hit testing. To enable higher-fidelity object scanning, object-scanning sessions omit other features of world-tracking sessions. ARWorld Tracking Configuration Topics Creating a Configuration init ()
Initializes a new object scanning configuration.
Managing Device Camera Behavior See Also Object Detection Scanning and Detecting 3D Objects
Record spatial features of real-world objects, then use the results to find those objects in the user’s environment and trigger AR content.
class ARReference Object
A 3D object to be recognized in the real-world environment during a world-tracking AR session.
class ARObject Anchor
Information about the position and orientation of a real-world 3D object detected in a world-tracking AR session.