MLKitObjectDetection Framework Reference
Type Definitions
The following type definitions are available globally.
-
@enum ObjectDetectorMode
Object detector modes.
Declaration
Objective-C
typedef NSInteger MLKObjectDetectorMode
-
Labels of objects detected by the detector.
Declaration
Objective-C
typedef NSString *MLKDetectedObjectLabel
-
Label indices of objects detected by the detector.
Declaration
Objective-C
typedef NSInteger MLKDetectedObjectLabelIndex
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."],[[["`MLKObjectDetectorMode` defines the operational modes for an object detector."],["`MLKDetectedObjectLabel` provides labels (as strings) for identified objects."],["`MLKDetectedObjectLabelIndex` uses integers to represent the labels of detected objects."]]],["The content defines three global type definitions for object detection: `MLKObjectDetectorMode`, `MLKDetectedObjectLabel`, and `MLKDetectedObjectLabelIndex`. `MLKObjectDetectorMode` is an integer representing different object detector modes. `MLKDetectedObjectLabel` is a string, serving as the label for a detected object. `MLKDetectedObjectLabelIndex` is an integer, representing the index of a detected object's label. They are used to identify and categorize detected objects.\n"]]