AI-generated Key Takeaways
-
GMLImageSourceType constants define the source type of an image, which can be a UIImage, CVPixelBuffer, or CMSampleBuffer.
-
These constants are used within the ML Kit Vision API for image processing and analysis tasks.
-
Developers can utilize these constants to specify the image source type when creating GMLImage instances for ML Kit Vision.
Constants
The following constants are available globally.
-
Image source is a
UIImage.Declaration
Swift
static let image: MLImageSourceType -
Image source is a
CVPixelBuffer.Declaration
Swift
static let pixelBuffer: MLImageSourceType -
Image source is a
CMSampleBuffer.Declaration
Swift
static let sampleBuffer: MLImageSourceType