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 With 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.
Creates a new object scanning configuration.
Enabling Plane Detection plane Detection
A value specifying whether and how the session attempts to automatically detect flat surfaces in the camera-captured image.
Options for whether and how ARKit detects flat surfaces in captured images.
Managing Device Camera Behavior auto Focus Enabled
A Boolean value that determines whether the device camera uses fixed focus or autofocus 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.
A 3D object to be recognized in the real-world environment during a world-tracking AR session.
Information about the position and orientation of a real-world 3D object detected in a world-tracking AR session.