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.

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.