MLKitObjectDetection Framework Reference
Stay organized with collections
Save and categorize content based on your preferences.
Constants
The following constants are available globally.
-
In single image mode, the results are returned when both tracker and detector are finished.
-
In stream mode, tracker and detector run in parallel. The results are returned when tracker
processing is finished. Detection may still be in progress at that time.
-
The fashion good object label.
-
The home good object label.
-
-
-
-
The fashion good object label.
-
The home good object label.
-
-
-
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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-07-10 UTC."],[[["\u003cp\u003eThis document lists globally available constants used in object detection within the ML Kit framework.\u003c/p\u003e\n"],["\u003cp\u003eTwo primary modes are defined: \u003ccode\u003eMLKObjectDetectorModeSingleImage\u003c/code\u003e for single image processing and \u003ccode\u003eMLKObjectDetectorModeStream\u003c/code\u003e for continuous stream processing.\u003c/p\u003e\n"],["\u003cp\u003eSeveral object label constants are provided, such as \u003ccode\u003eMLKDetectedObjectLabelFashionGood\u003c/code\u003e, \u003ccode\u003eMLKDetectedObjectLabelHomeGood\u003c/code\u003e, representing different categories of detectable objects.\u003c/p\u003e\n"],["\u003cp\u003eCorresponding label index constants like \u003ccode\u003eMLKDetectedObjectLabelIndexFashionGood\u003c/code\u003e offer numerical representations of these object labels.\u003c/p\u003e\n"],["\u003cp\u003eAll constants are declared in Objective-C and are intended for use within iOS applications leveraging the ML Kit Object Detection API.\u003c/p\u003e\n"]]],["The document defines global constants for object detection within the ML Kit framework. There are two modes: `MLKObjectDetectorModeSingleImage`, where results are returned after the tracker and detector finish, and `MLKObjectDetectorModeStream`, where the tracker and detector run in parallel, and results return when the tracker is done. There are object label constants: `MLKDetectedObjectLabelFashionGood`, `HomeGood`, `Food`, `Place`, `Plant` and their indexed counterparts `MLKDetectedObjectLabelIndexFashionGood`, `HomeGood`, `Food`, `Place`, `Plant` , that are used to classify detected objects.\n"],null,["# MLKitObjectDetection Framework Reference\n\nConstants\n=========\n\nThe following constants are available globally.\n- `\n ``\n ``\n `\n\n ### [MLKObjectDetectorModeSingleImage](#/c:MLKCommonObjectDetectorOptions.h@MLKObjectDetectorModeSingleImage)\n\n `\n ` \n In single image mode, the results are returned when both tracker and detector are finished. \n\n #### Declaration\n\n Objective-C \n\n static const /ml-kit/reference/ios/mlkitobjectdetection/api/reference/Type-Definitions#/c:MLKCommonObjectDetectorOptions.h@T@MLKObjectDetectorMode MLKObjectDetectorModeSingleImage = 0\n\n- `\n ``\n ``\n `\n\n ### [MLKObjectDetectorModeStream](#/c:MLKCommonObjectDetectorOptions.h@MLKObjectDetectorModeStream)\n\n `\n ` \n In stream mode, tracker and detector run in parallel. The results are returned when tracker\n processing is finished. Detection may still be in progress at that time. \n\n #### Declaration\n\n Objective-C \n\n static const /ml-kit/reference/ios/mlkitobjectdetection/api/reference/Type-Definitions#/c:MLKCommonObjectDetectorOptions.h@T@MLKObjectDetectorMode MLKObjectDetectorModeStream = 1\n\n- `\n ``\n ``\n `\n\n ### [MLKDetectedObjectLabelFashionGood](#/c:@MLKDetectedObjectLabelFashionGood)\n\n `\n ` \n The fashion good object label. \n\n #### Declaration\n\n Objective-C \n\n extern const /ml-kit/reference/ios/mlkitobjectdetection/api/reference/Type-Definitions#/c:MLKObjectDetectorOptions.h@T@MLKDetectedObjectLabel _Nonnull MLKDetectedObjectLabelFashionGood\n\n- `\n ``\n ``\n `\n\n ### [MLKDetectedObjectLabelHomeGood](#/c:@MLKDetectedObjectLabelHomeGood)\n\n `\n ` \n The home good object label. \n\n #### Declaration\n\n Objective-C \n\n extern const /ml-kit/reference/ios/mlkitobjectdetection/api/reference/Type-Definitions#/c:MLKObjectDetectorOptions.h@T@MLKDetectedObjectLabel _Nonnull MLKDetectedObjectLabelHomeGood\n\n- `\n ``\n ``\n `\n\n ### [MLKDetectedObjectLabelFood](#/c:@MLKDetectedObjectLabelFood)\n\n `\n ` \n The food object label. \n\n #### Declaration\n\n Objective-C \n\n extern const /ml-kit/reference/ios/mlkitobjectdetection/api/reference/Type-Definitions#/c:MLKObjectDetectorOptions.h@T@MLKDetectedObjectLabel _Nonnull MLKDetectedObjectLabelFood\n\n- `\n ``\n ``\n `\n\n ### [MLKDetectedObjectLabelPlace](#/c:@MLKDetectedObjectLabelPlace)\n\n `\n ` \n The place object label. \n\n #### Declaration\n\n Objective-C \n\n extern const /ml-kit/reference/ios/mlkitobjectdetection/api/reference/Type-Definitions#/c:MLKObjectDetectorOptions.h@T@MLKDetectedObjectLabel _Nonnull MLKDetectedObjectLabelPlace\n\n- `\n ``\n ``\n `\n\n ### [MLKDetectedObjectLabelPlant](#/c:@MLKDetectedObjectLabelPlant)\n\n `\n ` \n The plant object label. \n\n #### Declaration\n\n Objective-C \n\n extern const /ml-kit/reference/ios/mlkitobjectdetection/api/reference/Type-Definitions#/c:MLKObjectDetectorOptions.h@T@MLKDetectedObjectLabel _Nonnull MLKDetectedObjectLabelPlant\n\n- `\n ``\n ``\n `\n\n ### [MLKDetectedObjectLabelIndexFashionGood](#/c:MLKObjectDetectorOptions.h@MLKDetectedObjectLabelIndexFashionGood)\n\n `\n ` \n The fashion good object label. \n\n #### Declaration\n\n Objective-C \n\n static const /ml-kit/reference/ios/mlkitobjectdetection/api/reference/Type-Definitions#/c:MLKObjectDetectorOptions.h@T@MLKDetectedObjectLabelIndex\n MLKDetectedObjectLabelIndexFashionGood = 0\n\n- `\n ``\n ``\n `\n\n ### [MLKDetectedObjectLabelIndexHomeGood](#/c:MLKObjectDetectorOptions.h@MLKDetectedObjectLabelIndexHomeGood)\n\n `\n ` \n The home good object label. \n\n #### Declaration\n\n Objective-C \n\n static const /ml-kit/reference/ios/mlkitobjectdetection/api/reference/Type-Definitions#/c:MLKObjectDetectorOptions.h@T@MLKDetectedObjectLabelIndex MLKDetectedObjectLabelIndexHomeGood = 1\n\n- `\n ``\n ``\n `\n\n ### [MLKDetectedObjectLabelIndexFood](#/c:MLKObjectDetectorOptions.h@MLKDetectedObjectLabelIndexFood)\n\n `\n ` \n The food object label. \n\n #### Declaration\n\n Objective-C \n\n static const /ml-kit/reference/ios/mlkitobjectdetection/api/reference/Type-Definitions#/c:MLKObjectDetectorOptions.h@T@MLKDetectedObjectLabelIndex MLKDetectedObjectLabelIndexFood = 2\n\n- `\n ``\n ``\n `\n\n ### [MLKDetectedObjectLabelIndexPlace](#/c:MLKObjectDetectorOptions.h@MLKDetectedObjectLabelIndexPlace)\n\n `\n ` \n The place object label. \n\n #### Declaration\n\n Objective-C \n\n static const /ml-kit/reference/ios/mlkitobjectdetection/api/reference/Type-Definitions#/c:MLKObjectDetectorOptions.h@T@MLKDetectedObjectLabelIndex MLKDetectedObjectLabelIndexPlace = 3\n\n- `\n ``\n ``\n `\n\n ### [MLKDetectedObjectLabelIndexPlant](#/c:MLKObjectDetectorOptions.h@MLKDetectedObjectLabelIndexPlant)\n\n `\n ` \n The plant object label. \n\n #### Declaration\n\n Objective-C \n\n static const /ml-kit/reference/ios/mlkitobjectdetection/api/reference/Type-Definitions#/c:MLKObjectDetectorOptions.h@T@MLKDetectedObjectLabelIndex MLKDetectedObjectLabelIndexPlant = 4"]]