Contents

VNAspectRatio

A type alias for expressing rectangle aspect ratios in Vision.

Declaration

typealias VNAspectRatio = Float

Discussion

The value is a float, but limited to a range of 0.0 to 1.0, inclusive, with the default of 0.5 indicating a square image. It defines aspect ratio as the shorter dimension over the longer dimension.

See Also

Configuring Detection