BODY_TRACKING_MODEL_GEN Class Reference

Lists the generations of neural network available for the body tracking module. More...

Static Functions

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

Detailed Description

Lists the generations of neural network available for the body tracking module.

A generation is only available for some combinations of sl.BODY_TRACKING_MODEL and sl.BODY_FORMAT: when the requested one has no network for it, the ZED SDK falls back to the most recent generation it does have.

Enumerator
GEN_1 Network used up to ZED SDK 5.4. Only generation available for sl.BODY_FORMAT.BODY_38.
GEN_2 Default. Bottom-up network introduced in ZED SDK 5.5, more robust in crowded scenes and to unusual poses. Available for sl.BODY_TRACKING_MODEL.HUMAN_BODY_MEDIUM and sl.BODY_TRACKING_MODEL.HUMAN_BODY_ACCURATE with sl.BODY_FORMAT.BODY_18 or sl.BODY_FORMAT.BODY_34. sl.BODY_TRACKING_MODEL.HUMAN_BODY_FAST and sl.BODY_FORMAT.BODY_38 have GEN_1 only, and fall back to it.

Functions

◆ from_string()

def from_string (   str,
  name 
)
static

Converts a string to the corresponding BODY_TRACKING_MODEL_GEN enum value.

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