Referensi Framework MLKitObjectDetectionCommon
Definisi Jenis
Definisi jenis berikut tersedia secara global.
-
@enum ObjectDetectorMode
Mode detektor objek.
Pernyataan
Objective-C
typedef NSInteger MLKObjectDetectorMode
-
Blok yang berisi array objek yang terdeteksi atau nil
jika terjadi error.
Pernyataan
Objective-C
typedef void (^MLKObjectDetectionCallback)(NSArray<MLKObject *> *_Nullable,
NSError *_Nullable)
Parameter
objects
|
Array objek yang terdeteksi dalam gambar atau nil jika ada error.
|
error
|
|
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-11-08 UTC.
[null,null,["Terakhir diperbarui pada 2024-11-08 UTC."],[[["The `MLKObjectDetectorMode` type defines the modes for object detection."],["The `MLKObjectDetectionCallback` type is a block providing detected objects or an error."]]],["The document defines two key types: `MLKObjectDetectorMode`, an integer-based enum representing object detector modes, and `MLKObjectDetectionCallback`, a block type. `MLKObjectDetectionCallback` is designed to receive an array of detected objects or a `nil` value in case of errors. It also includes an optional error object. The block's parameters are the objects detected, or nil, and an error or nil.\n"]]