Class

VNRectangleObservation

Information about projected rectangular regions detected by an image analysis request.

Declaration

@interface VNRectangleObservation : VNDetectedObjectObservation

Overview

This type of observation results from a VNDetectRectanglesRequest. It defines the four vertices of a detected rectangle.

Topics

Creating a Rectangle Observation

+ rectangleObservationWithRequestRevision:topLeft:bottomLeft:bottomRight:topRight:

A convenience initializer for creating a rectangle observation from its corner points.

Beta

Locating the Rectangle

bottomLeft

The coordinates of the lower-left corner of the observation bounding box.

bottomRight

The coordinates of the lower-right corner of the observation bounding box.

topLeft

The coordinates of the upper-left corner of the observation bounding box.

topRight

The coordinates of the upper-right corner of the observation bounding box.

Relationships

See Also

Rectangle Detection

VNDetectRectanglesRequest

An image analysis request that finds projected rectangular regions in an image.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software