---
title: planeDetection
framework: arkit
role: symbol
role_heading: Instance Property
path: arkit/arobjectscanningconfiguration/planedetection
---

# planeDetection

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

## Declaration

```swift
var planeDetection: ARWorldTrackingConfiguration.PlaneDetection { get set }
```

## Discussion

Discussion By default, plane detection is off. If you enable horizontal or vertical plane detection, the session adds ARPlaneAnchor objects and notifies your ARSessionDelegate, ARSCNViewDelegate, or ARSKViewDelegate object whenever its analysis of captured video images detects an area that appears to be a flat surface. In an object-scanning session, you can use detected planes to help determine where the origin (anchor point) for a scanned object should be relative to its extent.

## See Also

### Enabling Plane Detection

- [ARWorldTrackingConfiguration.PlaneDetection](arkit/arworldtrackingconfiguration/planedetection-swift.struct.md)
