<!--
{
  "availability" : [
    "iOS: 17.0.0 -",
    "iPadOS: 17.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "RealityKit",
  "identifier" : "/documentation/RealityKit/ObjectCaptureSession/startDetecting()",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "RealityKit",
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:19_RealityKit_SwiftUI20ObjectCaptureSessionC14startDetectingSbyF"
  },
  "title" : "startDetecting()"
}
-->

# startDetecting()

Requests that the session should start detecting the object in the center of the camera.

```
@MainActor func startDetecting() -> Bool
```

## Discussion

If success, the session state eventually transitions to [`ObjectCaptureSession.CaptureState.detecting`](/documentation/RealityKit/ObjectCaptureSession/CaptureState/detecting)
and switches to the bounding box selection mode UI.

This method needs be called in `.ready` state or the call will return false and the state will not change.
If there is no horizontal plane detected along the ray originating at the center of the screen it will also
return false immediately and remain in `.ready`.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)