Page Summary
-
This document lists globally available constants used in object detection within the ML Kit framework.
-
Two primary modes are defined:
MLKObjectDetectorModeSingleImagefor single image processing andMLKObjectDetectorModeStreamfor continuous stream processing. -
Several object label constants are provided, such as
MLKDetectedObjectLabelFashionGood,MLKDetectedObjectLabelHomeGood, representing different categories of detectable objects. -
Corresponding label index constants like
MLKDetectedObjectLabelIndexFashionGoodoffer numerical representations of these object labels. -
All constants are declared in Objective-C and are intended for use within iOS applications leveraging the ML Kit Object Detection API.
Constants
The following constants are available globally.
-
In single image mode, the results are returned when both tracker and detector are finished.
Declaration
Objective-C
static const MLKObjectDetectorMode MLKObjectDetectorModeSingleImage = 0 -
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.
Declaration
Objective-C
static const MLKObjectDetectorMode MLKObjectDetectorModeStream = 1 -
The fashion good object label.
Declaration
Objective-C
extern const MLKDetectedObjectLabel _Nonnull MLKDetectedObjectLabelFashionGood -
The home good object label.
Declaration
Objective-C
extern const MLKDetectedObjectLabel _Nonnull MLKDetectedObjectLabelHomeGood -
The food object label.
Declaration
Objective-C
extern const MLKDetectedObjectLabel _Nonnull MLKDetectedObjectLabelFood -
The place object label.
Declaration
Objective-C
extern const MLKDetectedObjectLabel _Nonnull MLKDetectedObjectLabelPlace -
The plant object label.
Declaration
Objective-C
extern const MLKDetectedObjectLabel _Nonnull MLKDetectedObjectLabelPlant -
The fashion good object label.
Declaration
Objective-C
static const MLKDetectedObjectLabelIndex MLKDetectedObjectLabelIndexFashionGood = 0 -
The home good object label.
Declaration
Objective-C
static const MLKDetectedObjectLabelIndex MLKDetectedObjectLabelIndexHomeGood = 1 -
The food object label.
Declaration
Objective-C
static const MLKDetectedObjectLabelIndex MLKDetectedObjectLabelIndexFood = 2 -
The place object label.
Declaration
Objective-C
static const MLKDetectedObjectLabelIndex MLKDetectedObjectLabelIndexPlace = 3 -
The plant object label.
Declaration
Objective-C
static const MLKDetectedObjectLabelIndex MLKDetectedObjectLabelIndexPlant = 4