Referensi Framework MLKitTextRecognitionCommon
Protokol
Protokol berikut tersedia secara global.
-
Protokol untuk menunjukkan gambar yang kompatibel dengan ML Kit.
Jangan menerapkan protokol ini sendiri; sebagai gantinya, gunakan MLImage
untuk membuat
MLKitCompatibleImage
.
Pernyataan
Objective-C
@protocol MLKCompatibleImage <NSObject>
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-09-20 UTC.
[null,null,["Terakhir diperbarui pada 2024-09-20 UTC."],[[["The `MLKCompatibleImage` protocol signifies images compatible with ML Kit, and developers should utilize `MLImage` for creation instead of direct implementation."],["Developers should not directly implement the `MLKCompatibleImage` protocol but rather use `MLImage` to create compatible images."]]],["The `MLKCompatibleImage` protocol indicates images compatible with ML Kit. It should not be implemented directly. Instead, users should utilize `MLImage` to generate an `MLKitCompatibleImage`. This protocol, declared in Objective-C as `@protocol MLKCompatibleImage \u003cNSObject\u003e`, is globally available and serves as a marker for ML Kit-ready images.\n"]]