<!--
{
  "availability" : [
    "iOS: 18.0.0 -",
    "iPadOS: 18.0.0 -",
    "macOS: 15.0.0 -",
    "tvOS: 18.0.0 -",
    "visionOS: 2.0.0 -",
    "watchOS: 27.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Vision",
  "identifier" : "/documentation/Vision/ClassificationObservation/hasMinimumRecall(_:forPrecision:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Vision"
    ],
    "preciseIdentifier" : "s:6Vision25ClassificationObservationV16hasMinimumRecall_12forPrecisionSbSf_SftF"
  },
  "title" : "hasMinimumRecall(_:forPrecision:)"
}
-->

# hasMinimumRecall(_:forPrecision:)

Determines whether the observation has a minimum recall value for a specific precision.

```
func hasMinimumRecall(_ minimumRecall: Float, forPrecision precision: Float) -> Bool
```

## Parameters

`minimumRecall`

The minimum desired percentage of all positive classifications that the algorithm correctly classifies.

`precision`

The percentage of correct positive classifications.

## Return Value

A Boolean value that indicates whether the classification observation achieves a minimum recall value for a specific precision.

## Discussion

The following example uses the `hasMinimumRecall(_:forPrecision)` method to perform a high-precision filter on the results of a `ClassifyImageRequest`.

```swift
let results = try await request.perform(on: image)
    .filter { $0.hasMinimumRecall(0.01, forPrecision: 0.9) }
```

A high-precision filter retains a smaller number of observations, with less chance to contain false positives. Testing can help determine the balance point between the `minimumRecall` and `precision` values to return the best results for a specific use case.

---

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)