MLKitObjectDetectionCommon 框架参考
-
@枚举 ObjectDetectorMode
对象检测器模式。
声明
Objective-C
typedef NSInteger MLKObjectDetectorMode
-
包含检测到的对象数组的块,如果出现错误,则返回 nil
。
声明
Objective-C
typedef void (^MLKObjectDetectionCallback)(NSArray<MLKObject *> *_Nullable,
NSError *_Nullable)
参数
objects
|
在图片中检测到的对象数组,如果出现错误,则返回 nil 。
|
error
|
|
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2024-11-08。
[null,null,["最后更新时间 (UTC):2024-11-08。"],[[["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"]]