Class

CIDetector

An image processor that identifies notable features (such as faces and barcodes) in a still image or video.

Declaration

@interface CIDetector : NSObject

Overview

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 class can maintain many state variables that can impact performance. So for best performance, reuse CIDetector instances instead of creating new ones.

Topics

Creating a Detector Object

+ detectorOfType:context:options:

Creates and returns a configured detector.

Using a Detector Object to Find Features

- featuresInImage:

Searches for features in an image.

- featuresInImage:options:

Searches for features in an image based on the specified image orientation.

Constants

Detector Types

Strings used to declare the detector for which you are interested.

Detector Configuration Keys

Keys used in the options dictionary to configure a detector.

Detector Accuracy Options

Value options used to specify the desired accuracy of the detector.

Feature Detection Keys

Keys used in the options dictionary for featuresInImage:options:.

Relationships

Inherits From

See Also

Image Feature Detection

CIFeature

The abstract superclass for objects representing notable features detected in an image.

CIFaceFeature

Information about a face detected in a still or video image.

CIRectangleFeature

Information about a rectangular region detected in a still or video image.

CITextFeature

Information about a region likely to contain text detected in a still or video image.

CIQRCodeFeature

Information about a Quick Response code (a kind of 2D barcode) detected in a still or video image.

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