DetectRectanglesRequest
An image-analysis request that finds projected rectangular regions in an image.
Declaration
struct DetectRectanglesRequestOverview
A rectangle-detection request locates regions of an image with a rectangular shape, like credit cards, business cards, documents, and signs. The request returns its observations in the form of RectangleObservation objects, which contain normalized coordinates of bounding boxes containing a 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 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
Creating a request
Performing a request
perform(on:orientation:)perform(on:orientation:)perform(on:orientation:)perform(on:orientation:)perform(on:orientation:)perform(on:orientation:)
Understanding the result
Configuring a request
maximumAspectRatiomaximumObservationsminimumAspectRatiominimumConfidenceminimumSizequadratureToleranceDegrees