Creates and returns a configured detector.
SDKs
- iOS 5.0+
- macOS 10.7+
- Mac Catalyst 13.0+
- tvOS 9.0+
Framework
- Core Image
Declaration
Parameters
type
A string indicating the kind of detector you are interested in. See Detector Types.
context
A Core Image context that the detector can use when analyzing an image.
options
A dictionary containing details on how you want the detector to be configured. See Detector Configuration Keys.
Return Value
A configured detector.
Discussion
A CIDetector
object can potentially create and hold a significant amount of resources. Where possible, reuse the same CIDetector
instance. Also, when processing images with a detector object, your application performs better if the CIContext
used to initialize the detector is the same context used to process the ci
objects.