Instance Property


An optional setting informing the Vision algorithm how to scale an input image.


var imageCropAndScaleOption: VNImageCropAndScaleOption { get set }


Scaling an image ensures that the entire image fits into the algorithm's input image dimensions, which may require a change in aspect ratio. Each crop and scale option transforms the input image in a different way:

A photo of a flower cropped and scaled according to Vision scaling constants

See Also

Configuring Image Options

enum VNImageCropAndScaleOption

An enumeration of different ways Vision can crop and scale an input image.