<!--
{
  "availability" : [
    "iOS: 8.0.0 -",
    "iPadOS: 8.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.10.0 -",
    "tvOS: -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreImage",
  "identifier" : "/documentation/CoreImage/CIDetectorTypeRectangle",
  "metadataVersion" : "0.1.0",
  "role" : "Global Variable",
  "symbol" : {
    "kind" : "Global Variable",
    "modules" : [
      "Core Image"
    ],
    "preciseIdentifier" : "c:@CIDetectorTypeRectangle"
  },
  "title" : "CIDetectorTypeRectangle"
}
-->

# CIDetectorTypeRectangle

A detector that searches for rectangular areas in a still image or video, returning [`CIRectangleFeature`](/documentation/CoreImage/CIRectangleFeature) objects that provide information about detected regions.

```
let CIDetectorTypeRectangle: String
```

## Discussion

The rectangle detector finds areas that are likely to represent rectangular objects that appear in perspective in the image, such as papers or books seen on a desktop.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)