Class

VNRectangleObservation

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

Declaration

class VNRectangleObservation : VNDetectedObjectObservation

Overview

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

Topics

Locating the Rectangle

var bottomLeft: CGPoint

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

var bottomRight: CGPoint

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

var topLeft: CGPoint

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

var topRight: CGPoint

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

Relationships

Conforms To

See Also

Rectangle Detection

class VNDetectRectanglesRequest

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