Type Property

crop

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

Declaration

Discussion

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

Diagram showing how the original image results in four cropped variants.

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

See Also

Selecting Augmentation Options

static let rotation: MLImageClassifier.ImageAugmentationOptions

An option for augmenting training data by rotating each image.

static let blur: MLImageClassifier.ImageAugmentationOptions

An option for augmenting training data by blurring each image.

static let exposure: MLImageClassifier.ImageAugmentationOptions

An option for augmenting training data by lightening or darkening each image.

static let noise: MLImageClassifier.ImageAugmentationOptions

An option for augmenting training data by adding random amounts of noise to each image.

static let flip: MLImageClassifier.ImageAugmentationOptions

An option for augmenting training data by flipping each image along the horizontal and vertical axes.