---
title: "init(strategy:confidenceThreshold:)"
framework: createmlcomponents
role: symbol
role_heading: Initializer
path: "createmlcomponents/poseselector/init(strategy:confidencethreshold:)"
---

# init(strategy:confidenceThreshold:)

Creates a pose selector.

## Declaration

```swift
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.

## See Also

### Creating a selector

- [init()](createmlcomponents/poseselector/init().md)
- [init(strategy:)](createmlcomponents/poseselector/init(strategy:).md)
