PredefinedCategory

  • PredefinedCategory lists the categories for objects detected by an ObjectDetector.

  • Detected objects will have one of the categories listed in PredefinedCategory.

  • Predefined categories include Fashion good, Food, Home good, Place, and Plant, each with a corresponding index.

public final class PredefinedCategory extends Object

Predefined categories of a DetectedObject.

An ObjectDetector created with ObjectDetectorOptions returns DetectedObjects with one of the categories here.

Constant Summary

String FASHION_GOOD
int FASHION_GOOD_INDEX
String FOOD
int FOOD_INDEX
String HOME_GOOD
int HOME_GOOD_INDEX
String PLACE
int PLACE_INDEX
String PLANT
int PLANT_INDEX

Inherited Method Summary

Constants

public static final String FASHION_GOOD

Constant Value: "Fashion good"

public static final int FASHION_GOOD_INDEX

Constant Value: 0

public static final String FOOD

Constant Value: "Food"

public static final int FOOD_INDEX

Constant Value: 2

public static final String HOME_GOOD

Constant Value: "Home good"

public static final int HOME_GOOD_INDEX

Constant Value: 1

public static final String PLACE

Constant Value: "Place"

public static final int PLACE_INDEX

Constant Value: 3

public static final String PLANT

Constant Value: "Plant"

public static final int PLANT_INDEX

Constant Value: 4