ObjectsBatch Class Reference

 Contains batched data of a detected object More...

Functions

def id (self)
 The trajectory ID.
 
def label (self)
 Object category. More...
 
def sublabel (self)
 Object sublabel. More...
 
def tracking_state (self)
 Defines the object tracking state.
 
def positions (self)
 A sample of 3d positions.
 
def position_covariances (self)
 A sample of the associated position covariance.
 
def velocities (self)
 A sample of 3d velocities.
 
def timestamps (self)
 The associated position timestamp.
 
def bounding_boxes (self)
 A sample of 3d bounding boxes.
 
def bounding_boxes_2d (self)
 2D bounding box of the person represented as four 2D points starting at the top left corner and rotation clockwise. More...
 
def confidences (self)
 A sample of object detection confidence.
 
def action_states (self)
 A sample of the object action state.
 
def keypoints_2d (self)
 A sample of 2d person keypoints. More...
 
def keypoints (self)
 A sample of 3d person keypoints. More...
 
def head_bounding_boxes_2d (self)
 Bounds the head with four 2D points. More...
 
def head_bounding_boxes (self)
 Bounds the head with eight 3D points. More...
 
def head_positions (self)
 3D head centroid. More...
 
def keypoint_confidences (self)
 Per keypoint detection confidence, cannot be lower than the sl.ObjectDetectionRuntimeParameters().detection_confidence_threshold. More...
 

Detailed Description

 Contains batched data of a detected object

Functions

◆ label()

def label (   self)

Object category.

Identifies the object type

◆ sublabel()

def sublabel (   self)

Object sublabel.

Identifies the object subclass

◆ bounding_boxes_2d()

def bounding_boxes_2d (   self)

2D bounding box of the person 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

◆ keypoints_2d()

def keypoints_2d (   self)

A sample of 2d person keypoints.

Note
Not available with DETECTION_MODEL.MULTI_CLASS_BOX*.
Warning
in some cases, eg. body partially out of the image or missing depth data, some keypoints cannot be detected, they will have non finite values.

◆ keypoints()

def keypoints (   self)

A sample of 3d person keypoints.

Note
Not available with DETECTION_MODEL.MULTI_CLASS_BOX*.
Warning
in some cases, eg. body partially out of the image or missing depth data, some keypoints cannot be detected, they will have non finite values.

◆ head_bounding_boxes_2d()

def head_bounding_boxes_2d (   self)

Bounds the head with four 2D points.

Expressed in pixels on the original image resolution.

Note
Not available with DETECTION_MODEL.MULTI_CLASS_BOX*

◆ head_bounding_boxes()

def head_bounding_boxes (   self)

Bounds the head with eight 3D points.

Defined in InitParameters.coordinate_units, expressed in RuntimeParameters.measure3D_reference_frame.

Note
Not available with DETECTION_MODEL.MULTI_CLASS_BOX*.

◆ head_positions()

def head_positions (   self)

3D head centroid.

Defined in InitParameters.coordinate_units, expressed in RuntimeParameters.measure3D_reference_frame.

Note
Not available with DETECTION_MODEL.MULTI_CLASS_BOX*.

◆ keypoint_confidences()

def keypoint_confidences (   self)

Per keypoint detection confidence, cannot be lower than the sl.ObjectDetectionRuntimeParameters().detection_confidence_threshold.

Note
Not available with DETECTION_MODEL.MULTI_CLASS_BOX*.
Warning
in some cases, eg. body partially out of the image or missing depth data, some keypoints cannot be detected, they will have non finite values.