<!--
{
  "availability" : [
    "iOS: 16.0.0 -",
    "iPadOS: 16.0.0 -",
    "macCatalyst: 16.0.0 -",
    "macOS: 13.0.0 -",
    "tvOS: 16.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CreateMLComponents",
  "identifier" : "/documentation/CreateMLComponents/PoseSelector/init(strategy:confidenceThreshold:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "Create ML Components"
    ],
    "preciseIdentifier" : "s:18CreateMLComponents12PoseSelectorV8strategy19confidenceThresholdAcA0C17SelectionStrategyO_Sftcfc"
  },
  "title" : "init(strategy:confidenceThreshold:)"
}
-->

# init(strategy:confidenceThreshold:)

Creates a pose selector.

```
init(strategy: PoseSelectionStrategy, confidenceThreshold: Float)
```

## Parameters

`strategy`

The strategy used to choose a pose if multiple poses are detected on the same frame. Default strategy is to select a pose with maximum bounding box area.

`confidenceThreshold`

A threshold confidence between 0 to 1 for the joints to be considered valid in pose selection. The default value is 0.2.

---

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)