An image analysis request that finds projected rectangular regions in an image.
- iOS 11.0+
- macOS 10.13+
- tvOS 11.0+
Use this type of request to find the bounding boxes of rectangles in an image. Vision returns observations for rectangles found in all orientations and sizes, along with a confidence level to indicate how likely it is that the observation contains an actual rectangle.
To further configure or restrict the types of rectangles found, set properties on the request specifying a range of aspect ratios, sizes, and quadrature tolerance.
Configuring Rectangle Detection
float specifying the minimum aspect ratio of the rectangle to detect, defined as width over height.
float specifying the maximum aspect ratio of the rectangle to detect, defined as width over height.
A float specifying the number of degrees a rectangle corner angle can deviate from 90°.
float specifying the minimum size of the rectangle to be detected, as a proportion of the smallest dimension.
A type alias for expressing rectangle aspect ratios in Vision.
A type alias for the confidence value of an observation.
A typealias for expressing tolerance angles in Vision.