VNDetectRectanglesRequest
An image-analysis request that finds projected rectangular regions in an image.
Declaration
class VNDetectRectanglesRequestOverview
A rectangle detection request locates regions of an image with rectangular shape, like credit cards, business cards, documents, and signs. The request returns its observations in the form of VNRectangleObservation objects, which contain normalized coordinates of bounding boxes containing the rectangle.
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’s 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.
Topics
Configuring Detection
minimumAspectRatiomaximumAspectRatioVNAspectRatioquadratureToleranceVNDegreesminimumSizeminimumConfidenceVNConfidencemaximumObservations