Structure containing data of a detected object such as its boundingBox, label, id and its 3D position. More...
Attributes | |
int | id |
Object identification number. More... | |
string | uniqueObjectId |
Unique id to help identify and track AI detections. More... | |
int | rawLabel |
Object raw label. More... | |
sl.OBJECT_CLASS | label |
Object class/category to identify the object type. More... | |
sl.OBJECT_SUBCLASS | sublabel |
Object sub-class/sub-category to identify the object type. More... | |
sl.OBJECT_TRACKING_STATE | objectTrackingState |
Object tracking state. More... | |
sl.OBJECT_ACTION_STATE | actionState |
Object action state. More... | |
Vector3 | position |
Object 3D centroid. More... | |
float | confidence |
Detection confidence value of the object. More... | |
System.IntPtr | mask |
Pointer of the sl.Mat representing the mask defining which pixels which belong to the object (in boundingBox and set to 255) and those of the background (set to 0). To access the pixels values, create a new sl.Mat from that IntPtr. Ex: sl.Mat mat = new sl.Mat(mask); More... | |
Vector2[] | boundingBox2D |
2D bounding box of the object represented as four 2D points starting at the top left corner and rotation clockwise. More... | |
Vector3 | headPosition |
3D centroid of the head of the object (a person). More... | |
Vector3 | velocity |
Object 3D velocity. More... | |
Vector3 | dimensions |
3D object dimensions: width, height, length. More... | |
Vector3[] | boundingBox |
3D bounding box of the object represented as eight 3D points. More... | |
Vector3[] | headBoundingBox |
3D bounding box of the head of the object (a person) represented as eight 3D points. More... | |
Vector2[] | headBoundingBox2D |
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... | |
float[] | positionCovariance |
Covariance matrix of the 3D position. More... | |
Structure containing data of a detected object such as its boundingBox, label, id and its 3D position.
int id |
Object identification number.
It is used as a reference when tracking the object through the frames.
string uniqueObjectId |
Unique id to help identify and track AI detections.
It can be either generated externally, or by using sl.Camera.GenerateUniqueID() or left empty.
int rawLabel |
Object raw label.
It is forwarded from sl.CustomBoxObjectData when using sl.OBJECT_DETECTION_MODEL.CUSTOM_BOX_OBJECTS.
sl.OBJECT_CLASS label |
Object class/category to identify the object type.
sl.OBJECT_SUBCLASS sublabel |
Object sub-class/sub-category to identify the object type.
sl.OBJECT_TRACKING_STATE objectTrackingState |
Object tracking state.
sl.OBJECT_ACTION_STATE actionState |
Object action state.
Vector3 position |
Object 3D centroid.
float confidence |
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.
System.IntPtr mask |
Pointer of the sl.Mat representing the mask defining which pixels which belong to the object (in boundingBox and set to 255) and those of the background (set to 0). To access the pixels values, create a new sl.Mat from that IntPtr. Ex: sl.Mat mat = new sl.Mat(mask);
Vector2 [] boundingBox2D |
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. Vector3 headPosition |
3D centroid of the head of the object (a person).
Vector3 velocity |
Object 3D velocity.
sl.InitParameters.coordinateUnits / s
and expressed in sl.RuntimeParameters.measure3DReferenceFrame. Vector3 dimensions |
3D object dimensions: width, height, length.
Vector3 [] boundingBox |
3D bounding box of the object represented as eight 3D points.
Vector3 [] headBoundingBox |
3D bounding box of the head of the object (a person) represented as eight 3D points.
Vector2 [] headBoundingBox2D |
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. float [] positionCovariance |
Covariance matrix of the 3D position.
positionCovariance[i]