Box Detections¶
- class py123d.datatypes.BoxDetectionsSE3[source]¶
Container for a list of SE3 box detections.
Provides indexed access, iteration, lookup by track token, and a 2D occupancy map.
Public Data Attributes:
box_detectionsList of
BoxDetectionSE3instances.timestampThe
Timestampof the box detections.metadataThe metadata for the box detections modality.
Inherited from
BaseModalitytimestampReturns the timestamp associated with this modality data, if available.
metadataReturns the metadata associated with this modality data.
modality_typeConvenience property to access the modality type directly from the modality data.
modality_idConvenience property to access the modality id directly from the modality data.
modality_keyConvenience property to access the modality key directly from the modality data.
Public Methods:
get_detection_by_track_token(track_token)Retrieve a box detection by its track token.
occupancy_map_2dThe
OccupancyMap2Drepresenting the 2D occupancy of all box detections.
- property box_detections: List[BoxDetectionSE3]¶
List of
BoxDetectionSE3instances.
- property metadata: BoxDetectionsSE3Metadata¶
The metadata for the box detections modality.
- get_detection_by_track_token(track_token)[source]¶
Retrieve a box detection by its track token.
- Parameters:
track_token (
str) – The track token of the box detection.- Return type:
- Returns:
The
BoxDetectionSE3with the given track token, or None if not found.
- property occupancy_map_2d: OccupancyMap2D¶
The
OccupancyMap2Drepresenting the 2D occupancy of all box detections.
- property modality_id: str | SerialIntEnum | None¶
Convenience property to access the modality id directly from the modality data.
- property modality_key: str¶
Convenience property to access the modality key directly from the modality data.
- property modality_type: ModalityType¶
Convenience property to access the modality type directly from the modality data.
- class py123d.datatypes.BoxDetectionSE3[source]¶
Detected, tracked, and oriented bounding box 3D space.
Public Data Attributes:
attributesThe
BoxDetectionAttributesof the detection.bounding_box_se3The
BoundingBoxSE3of the detection.bounding_box_se2The SE2 projection
BoundingBoxSE2of the SE3 bounding box.velocity_3dThe
Vector3Drepresenting the velocity in global frame.velocity_2dThe 2D projection
Vector2Dof the 3D velocity vector in global frame.center_se3The
PoseSE3representing the center of the bounding box.center_se2The
PoseSE2representing the center of the SE2 bounding box.box_detection_se2The
BoxDetectionSE2projection of this SE3 box detection.shapely_polygonThe shapely polygon of the bounding box in 2D space.
- property attributes: BoxDetectionAttributes¶
The
BoxDetectionAttributesof the detection.
- property bounding_box_se3: BoundingBoxSE3¶
The
BoundingBoxSE3of the detection.
- property bounding_box_se2: BoundingBoxSE2¶
The SE2 projection
BoundingBoxSE2of the SE3 bounding box.
- property velocity_2d: Vector2D | None¶
The 2D projection
Vector2Dof the 3D velocity vector in global frame.
- property box_detection_se2: BoxDetectionSE2¶
The
BoxDetectionSE2projection of this SE3 box detection.
- property shapely_polygon: Polygon¶
The shapely polygon of the bounding box in 2D space.
- class py123d.datatypes.BoxDetectionAttributes[source]¶
Stores data about the box detection, including its label, track token, and number of Lidar points.
Public Data Attributes:
labelThe
BoxDetectionLabel, from the original dataset's label set.track_tokenThe unique track token of the detection, consistent across frames.
num_lidar_pointsOptionally, the number of Lidar points associated with the detection.
default_labelThe unified
DefaultBoxDetectionLabelcorresponding to the detection's label.
- property label: BoxDetectionLabel¶
The
BoxDetectionLabel, from the original dataset’s label set.
- property num_lidar_points: int | None¶
Optionally, the number of Lidar points associated with the detection.
- property default_label: DefaultBoxDetectionLabel¶
The unified
DefaultBoxDetectionLabelcorresponding to the detection’s label.
- class py123d.datatypes.BoxDetectionsSE2[source]¶
Container for a list of SE2 box detections.
Provides indexed access, iteration, lookup by track token, and a 2D occupancy map.
Public Data Attributes:
box_detectionsList of
BoxDetectionSE2instances.timestampThe
Timestampof the box detections.Public Methods:
get_detection_by_track_token(track_token)Retrieve a box detection by its track token.
occupancy_map_2dThe
OccupancyMap2Drepresenting the 2D occupancy of all box detections.
- property box_detections: List[BoxDetectionSE2]¶
List of
BoxDetectionSE2instances.
- get_detection_by_track_token(track_token)[source]¶
Retrieve a box detection by its track token.
- Parameters:
track_token (
str) – The track token of the box detection.- Return type:
- Returns:
The
BoxDetectionSE2with the given track token, or None if not found.
- property occupancy_map_2d: OccupancyMap2D¶
The
OccupancyMap2Drepresenting the 2D occupancy of all box detections.
- class py123d.datatypes.BoxDetectionSE2[source]¶
Detected, tracked, and oriented bounding box 2D space.
Public Data Attributes:
attributesThe
BoxDetectionAttributesof the detection.bounding_box_se2The
BoundingBoxSE2of the detection.velocity_2dThe
Vector2Drepresenting the velocity in global frame.center_se2The
PoseSE2representing the center of the bounding box.shapely_polygonThe shapely polygon of the bounding box in 2D space.
box_detection_se2Returns self to maintain interface consistency.
- property attributes: BoxDetectionAttributes¶
The
BoxDetectionAttributesof the detection.
- property bounding_box_se2: BoundingBoxSE2¶
The
BoundingBoxSE2of the detection.
- property shapely_polygon: Polygon¶
The shapely polygon of the bounding box in 2D space.
- property box_detection_se2: BoxDetectionSE2¶
Returns self to maintain interface consistency.