MLImageSizeConstraint
A list or range of sizes that augment an image constraint’s default size.
Declaration
class MLImageSizeConstraintOverview
You use an MLImageSizeConstraint to express what image sizes of an image feature a model will accept as input or produce as output.
Use type to determine which properties describe what image sizes the model’s image feature expects as input or produces as output.
If type is:
MLImageSizeConstraintType.range, the image feature accepts any image that has a width in pixelsWideRange and a height in pixelsHighRange.
MLImageSizeConstraintType.enumerated, the image feature accepts any image size listed in enumeratedImageSizes.
MLImageSizeConstraintType.unspecified, the
MLImageSizeConstraintinstance is not configured and should be ignored. Instead, use the image feature’s default image size constraint, defined by pixelsWide and pixelsHigh.
[Image]