CIDetectorAspectRatio
An option specifying the aspect ratio (width divided by height) of rectangles to search for.
Declaration
let CIDetectorAspectRatio: StringDiscussion
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).