Wraps an image as a value for a feature, given an image’s URL, and its width and height, in pixels.
SDKs
- iOS 13.0+
- macOS 10.15+
- Mac Catalyst 13.0+
- tvOS 13.0+
- watchOS 6.0+
Framework
- Core ML
Declaration
convenience init(imageAt url: URL, pixelsWide: Int, pixelsHigh: Int, pixelFormatType: OSType, options: [MLFeature Value.Image Option : Any]? = nil) throws