SL_CustomBoxObjectData Struct Reference

Container to store the externally detected objects. The objects can be ingested using sl_ingest_custom_box_objects() functions to extract 3D information and tracking over time. More...

Data Fields

char unique_object_id [37]
 Unique ID to help identify and track AI detections. Can be either generated externally, or using generate_unique_id() or left empty.
 
struct SL_Vector2 bounding_box_2d [4]
 2D bounding box represented as four 2D points starting at the top left corner and rotation clockwise. Expressed in pixels on the original image resolution, [0,0] is the top left corner. More...
 
int label
 Object label, this information is passed-through and can be used to improve object tracking.
 
float probability
 Detection confidence. Should be [0-1]. It can be used to improve the object tracking.
 
bool is_grounded
 Provide hypothesis about the object movements(degrees of freedom) to improve the object tracking true: means 2 DoF projected alongside the floor plane, the default for object standing on the ground such as person, vehicle, etc false : 6 DoF full 3D movements are allowed.
 

Detailed Description

Container to store the externally detected objects. The objects can be ingested using sl_ingest_custom_box_objects() functions to extract 3D information and tracking over time.

Field Documentation

◆ bounding_box_2d

struct SL_Vector2 SL_CustomBoxObjectData::bounding_box_2d[4]

2D bounding box represented as four 2D points starting at the top left corner and rotation clockwise. Expressed in pixels on the original image resolution, [0,0] is the top left corner.

A ------ B
| Object |
D ------ C