Class

ARObjectScanningConfiguration

A configuration you use to collect high-fidelity spatial data about real objects in the physical environment.

Declaration

@interface ARObjectScanningConfiguration : ARConfiguration

Overview

To create an app that recognizes objects in the physical environment, first you scan them during development using ARObjectScanningConfiguration. After you’ve scanned an object, call createReferenceObjectWithTransform:center:extent:completionHandler: to turn it into an ARReferenceObject that you can use to detect it again at run-time. When users run your app, you ask ARKit to look for your scanned obects by running a world tracking configuration and assigning reference objects to its detectionObjects property.

Topics

Creating a Configuration

- init

Initializes a new object scanning configuration.

+ new

Creates a new object scanning configuration.

Enabling Plane Detection

planeDetection

A value specifying whether and how the session attempts to automatically detect flat surfaces in the camera-captured image.

ARPlaneDetection

Options for whether and how ARKit detects flat surfaces in captured images.

Managing Device Camera Behavior

autoFocusEnabled

A Boolean value that determines whether the device camera uses fixed focus or autofocus behavior.

Relationships

Inherits From

See Also

Object Tracking

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.

ARReferenceObject

The description of a real-world object you want ARKit to look for in the physical environment during an AR session.

ARObjectAnchor

Information about the position and orientation of a real-world 3D object detected in a world-tracking AR session.