A CIDetector object uses image processing to search for and identify notable features (faces, rectangles, and barcodes) in a still image or video. Detected features are represented by CIFeature objects that provide more information about each feature. This is available in iOS 5.0 and later
CIDetector class can maintain many state variables that can impact performance. So for best performance, reuse CIDetector instances instead of creating new ones.
Example:
CIDetector* detector = [CIDetector detectorOfType:CIDetectorTypeFace
context:nil options:[NSDictionary dictionaryWithObject:CIDetectorAccuracyHigh forKey:CIDetectorAccuracy]];
Detector Types
Strings used to declare the detector for which you are interested.
Declaration
OBJECTIVE-C
NSString* const CIDetectorTypeFace;
NSString* const CIDetectorTypeRectangle;
NSString* const CIDetectorTypeQRCode;
NSString* const CIDetectorTypeText;