<!--
{
  "availability" : [
    "iOS: 10.0.0 -",
    "iPadOS: 10.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.12.0 -",
    "tvOS: 10.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreImage",
  "identifier" : "/documentation/CoreImage/CIDetectorMaxFeatureCount",
  "metadataVersion" : "0.1.0",
  "role" : "Global Variable",
  "symbol" : {
    "kind" : "Global Variable",
    "modules" : [
      "Core Image"
    ],
    "preciseIdentifier" : "c:@CIDetectorMaxFeatureCount"
  },
  "title" : "CIDetectorMaxFeatureCount"
}
-->

# CIDetectorMaxFeatureCount

The key to the configuration dictionary whose value represents the maximum number of features the detector should return.

```
let CIDetectorMaxFeatureCount: String
```

## Discussion

The default value is 1.  Valid values fall between 1 and 256 inclusive.

---

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)