Referensi Framework MLKitVision
Konstanta
Konstanta berikut tersedia secara global.
-
Sumber gambar adalah UIImage
.
-
Sumber gambar adalah CVPixelBuffer
.
-
Sumber gambar adalah CMSampleBuffer
.
Kecuali dinyatakan lain, konten di halaman ini dilisensikan berdasarkan Lisensi Creative Commons Attribution 4.0, sedangkan contoh kode dilisensikan berdasarkan Lisensi Apache 2.0. Untuk mengetahui informasi selengkapnya, lihat Kebijakan Situs Google Developers. Java adalah merek dagang terdaftar dari Oracle dan/atau afiliasinya.
Terakhir diperbarui pada 2024-08-20 UTC.
[null,null,["Terakhir diperbarui pada 2024-08-20 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"]]