OBJECT_CLASS Class Reference

Lists available object classes. More...

Static Functions

def from_string (str, name)
 Converts a string to the corresponding OBJECT_CLASS enum value. More...
 

Detailed Description

Lists available object classes.

OBJECT_CLASS Description
PERSON For people detection
VEHICLE For vehicle detection (cars, trucks, buses, motorcycles, etc.)
BAG For bag detection (backpack, handbag, suitcase, etc.)
ANIMAL For animal detection (cow, sheep, horse, dog, cat, bird, etc.)
ELECTRONICS For electronic device detection (cellphone, laptop, etc.)
FRUIT_VEGETABLE For fruit and vegetable detection (banana, apple, orange, carrot, etc.)
SPORT For sport-related object detection (sport ball, etc.)

Functions

◆ from_string()

def from_string (   str,
  name 
)
static

Converts a string to the corresponding OBJECT_CLASS enum value.

Parameters
name: The string representation of the OBJECT_CLASS enum value.
Returns
The corresponding OBJECT_CLASS enum value. If the string does not match any OBJECT_CLASS, OBJECT_CLASS.LAST is returned.