Type Method


Creates and returns a configured detector.


+ (CIDetector *)detectorOfType:(NSString *)type context:(CIContext *)context options:(NSDictionary<NSString *,id> *)options;



A string indicating the kind of detector you are interested in. See Detector Types.


A Core Image context that the detector can use when analyzing an image.


A dictionary containing details on how you want the detector to be configured. See Detector Configuration Keys.

Return Value

A configured detector.


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 CIImage objects.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software