Class

CITextFeature

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

Declaration

@interface CITextFeature : CIFeature

Overview

The properties of a CITextFeature object identify its corners in image coordinates. Use this class to locate areas of text within an image—for example, to extract and perspective-correct those portions of the image before performing your own optical character recognition or other processing tasks.

To detect rectangles in an image or video, choose the CIDetectorTypeText type when initializing a CIDetector object, and use the CIDetectorImageOrientation option to specify the desired orientation for finding upright text.

Topics

Locating a Detected Feature

bounds

A rectangle indicating the position and extent of the feature in image coordinates.

Locating Features Within a Detected Region

subFeatures

An array containing additional features detected within the feature.

Identifying the Corners of a Detected Text Region

bottomLeft

The lower-left corner of the detected text region, in image coordinates.

bottomRight

The lower-right corner of the detected text region, in image coordinates.

topLeft

The upper-left corner of the detected text region, in image coordinates.

topRight

The upper-right corner of the detected text region, in image coordinates.

Relationships

Inherits From

See Also

Image Feature Detection

CIDetector

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

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.

CIQRCodeFeature

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