Contents

crop

An option for augmenting training data by creating cropped versions of each image.

Declaration

static let crop: MLImageClassifier.ImageAugmentationOptions

Discussion

Use this option to tell the image classifier to augment your training data set by creating cropped versions of the original images.

[Image]

The classifier creates four new images with random amounts of crop for each original.

See Also

Selecting augmentation options