---
title: CIDetectorAspectRatio
framework: coreimage
role: symbol
role_heading: Global Variable
path: coreimage/cidetectoraspectratio
---

# CIDetectorAspectRatio

An option specifying the aspect ratio (width divided by height) of rectangles to search for.

## Declaration

```swift
let CIDetectorAspectRatio: String
```

## Discussion

Discussion The value of this key is an NSNumber object whose value is a positive floating-point number. Use this option with the CIDetectorTypeRectangle detector type to fine-tune the accuracy of the detector. For example, to more accurately find a business card (3.5 x 2 inches) in an image, specify an aspect ratio of 1.75 (3.5 / 2).

## See Also

### Constants

- [CIDetectorImageOrientation](coreimage/cidetectorimageorientation.md)
- [CIDetectorEyeBlink](coreimage/cidetectoreyeblink.md)
- [CIDetectorSmile](coreimage/cidetectorsmile.md)
- [CIDetectorFocalLength](coreimage/cidetectorfocallength.md)
- [CIDetectorReturnSubFeatures](coreimage/cidetectorreturnsubfeatures.md)
