Class containing data of a detected object such as its bounding_box, label, id and its 3D position. More...
Functions | |
int | id (self) |
Object identification number. More... | |
str | unique_object_id (self) |
Unique id to help identify and track AI detections. More... | |
int | raw_label (self) |
Object raw label. More... | |
OBJECT_CLASS | label (self) |
Object class/category to identify the object type. | |
OBJECT_SUBCLASS | sublabel (self) |
Object sub-class/sub-category to identify the object type. | |
OBJECT_TRACKING_STATE | tracking_state (self) |
Object tracking state. | |
OBJECT_ACTION_STATE | action_state (self) |
Object action state. | |
np.array[float] | position (self) |
Object 3D centroid. More... | |
np.array[float] | velocity (self) |
Object 3D velocity. More... | |
np.array[float][float] | bounding_box (self) |
3D bounding box of the object represented as eight 3D points. More... | |
np.array[int][int] | bounding_box_2d (self) |
2D bounding box of the object represented as four 2D points starting at the top left corner and rotation clockwise. More... | |
float | confidence (self) |
Detection confidence value of the object. More... | |
Mat | mask (self) |
Mask defining which pixels which belong to the object (in bounding_box_2d and set to 255) and those of the background (set to 0). More... | |
np.array[float] | dimensions (self) |
3D object dimensions: width, height, length. More... | |
np.array[float][float] | head_bounding_box (self) |
3D bounding box of the head of the object (a person) represented as eight 3D points. More... | |
np.array[int][int] | head_bounding_box_2d (self) |
2D bounding box of the head of the object (a person) represented as four 2D points starting at the top left corner and rotation clockwise. More... | |
np.array[float] | head_position (self) |
3D centroid of the head of the object (a person). More... | |
np.array[float] | position_covariance (self) |
Covariance matrix of the 3D position. More... | |
Class containing data of a detected object such as its bounding_box, label, id and its 3D position.
int id | ( | self | ) |
Object identification number.
It is used as a reference when tracking the object through the frames.
str unique_object_id | ( | self | ) |
Unique id to help identify and track AI detections.
It can be either generated externally, or by using generate_unique_id() or left empty.
int raw_label | ( | self | ) |
Object raw label.
It is forwarded from sl.CustomBoxObjectData when using sl.OBJECT_DETECTION_MODEL.CUSTOM_BOX_OBJECTS.
np.array[float] position | ( | self | ) |
Object 3D centroid.
np.array[float] velocity | ( | self | ) |
Object 3D velocity.
sl.InitParameters.coordinate_units / s
and expressed in sl.RuntimeParameters.measure3D_reference_frame. np.array[float][float] bounding_box | ( | self | ) |
3D bounding box of the object represented as eight 3D points.
np.array[int][int] bounding_box_2d | ( | self | ) |
2D bounding box of the object represented as four 2D points starting at the top left corner and rotation clockwise.
[0, 0]
is the top left corner. float confidence | ( | self | ) |
Detection confidence value of the object.
From 0 to 100, a low value means the object might not be localized perfectly or the label (sl.OBJECT_CLASS) is uncertain.
Mat mask | ( | self | ) |
Mask defining which pixels which belong to the object (in bounding_box_2d and set to 255) and those of the background (set to 0).
mask.is_init() == False
). np.array[float] dimensions | ( | self | ) |
3D object dimensions: width, height, length.
np.array[float][float] head_bounding_box | ( | self | ) |
3D bounding box of the head of the object (a person) represented as eight 3D points.
np.array[int][int] head_bounding_box_2d | ( | self | ) |
2D bounding box of the head of the object (a person) represented as four 2D points starting at the top left corner and rotation clockwise.
[0, 0]
is the top left corner. np.array[float] head_position | ( | self | ) |
3D centroid of the head of the object (a person).
np.array[float] position_covariance | ( | self | ) |
Covariance matrix of the 3D position.
position_covariance[i]