Instance Property

minimumAspectRatio

A float specifying the minimum aspect ratio of the rectangle to detect, defined as the shorter dimension over the longer dimension.

Declaration

@property(readwrite, nonatomic, assign) VNAspectRatio minimumAspectRatio;

Discussion

The value should range from 0.0 to 1.0, inclusive. The default value is 0.5.

See Also

Configuring Rectangle Detection

maximumAspectRatio

A float specifying the maximum aspect ratio of the rectangle to detect, defined as the shorter dimension over the longer dimension.

quadratureTolerance

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

minimumSize

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

minimumConfidence

A value specifying the minimum acceptable confidence level.

maximumObservations

An integer specifying the maximum number of rectangles Vision returns.

VNAspectRatio

A type alias for expressing rectangle aspect ratios in Vision.

VNConfidence

A type alias for the confidence value of an observation.

VNDegrees

A typealias for expressing tolerance angles in Vision.