---
title: CITextFeature
framework: coreimage
role: symbol
role_heading: Class
path: coreimage/citextfeature
---

# CITextFeature

Information about a text that was detected in a still or video image.

## Declaration

```swift
class CITextFeature
```

## Overview

Overview note: In macOS 10.13, iOS 11, and tvOS 11 or later, the Vision framework replaces these classes for identifying and analyzing image features. See VNRecognizeTextRequest) A detected text feature is not necessarily rectangular in the plane of the image; rather, the feature identifies a shape that may be rectangular in space (for example a text on a sign) but which appears as a four-sided polygon in the image. The properties of a CITextFeature object identify its four corners in image coordinates. To detect text 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](coreimage/citextfeature/bounds.md)

### Locating Features Within a Detected Region

- [subFeatures](coreimage/citextfeature/subfeatures.md)

### Identifying the Corners of a Detected Text Region

- [bottomLeft](coreimage/citextfeature/bottomleft.md)
- [bottomRight](coreimage/citextfeature/bottomright.md)
- [topLeft](coreimage/citextfeature/topleft.md)
- [topRight](coreimage/citextfeature/topright.md)

## Relationships

### Inherits From

- [CIFeature](coreimage/cifeature.md)

### Conforms To

- [CVarArg](swift/cvararg.md)
- [CustomDebugStringConvertible](swift/customdebugstringconvertible.md)
- [CustomStringConvertible](swift/customstringconvertible.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [NSObjectProtocol](objectivec/nsobjectprotocol.md)

## See Also

### Image Feature Detection

- [CIDetector](coreimage/cidetector.md)
- [CIFeature](coreimage/cifeature.md)
- [CIFaceFeature](coreimage/cifacefeature.md)
- [CIRectangleFeature](coreimage/cirectanglefeature.md)
- [CIQRCodeFeature](coreimage/ciqrcodefeature.md)
