Instance Property

maximumObservations

An integer specifying the maximum number of rectangles Vision returns.

Declaration

var maximumObservations: Int { get set }

Discussion

The default value is 1.

Setting this property to 0 allows Vision algorithms to return an unlimited number of observations.

See Also

Configuring Rectangle Detection

var minimumAspectRatio: VNAspectRatio

A float specifying the minimum aspect ratio of the rectangle to detect, defined as width over height.

var maximumAspectRatio: VNAspectRatio

A float specifying the maximum aspect ratio of the rectangle to detect, defined as width over height.

var quadratureTolerance: VNDegrees

A float specifying the number of degrees a rectangle corner angle can deviate from 90°.

var minimumSize: Float

A float specifying the minimum size of the rectangle to be detected, as a proportion of the smallest dimension.

var minimumConfidence: VNConfidence

A value specifying the minimum acceptable confidence level.

typealias VNAspectRatio

A type alias for expressing rectangle aspect ratios in Vision.

typealias VNConfidence

A type alias for the confidence value of an observation.

typealias VNDegrees

A typealias for expressing tolerance angles in Vision.