MLKitVision Framework Reference
Constants
The following constants are available globally.
-
Image source is a UIImage
.
-
Image source is a CVPixelBuffer
.
-
Image source is a CMSampleBuffer
.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-07-10 UTC.
[null,null,["Last updated 2024-07-10 UTC."],[[["This documentation outlines globally available constants used for specifying the source type of a `GMLImage`."],["`GMLImage` source can be represented by `UIImage`, `CVPixelBuffer`, or `CMSampleBuffer`, each associated with a specific constant."],["These constants (`GMLImageSourceTypeImage`, `GMLImageSourceTypePixelBuffer`, `GMLImageSourceTypeSampleBuffer`) are primarily used within the Objective-C environment."]]],["The provided content defines three constants related to image source types in Objective-C. `GMLImageSourceTypeImage` (value 0) signifies a `UIImage` source. `GMLImageSourceTypePixelBuffer` (value 1) denotes a `CVPixelBuffer` source. `GMLImageSourceTypeSampleBuffer` (value 2) indicates a `CMSampleBuffer` source. Each constant represents a specific type of image data format that can be used. These constants are available globally.\n"]]