Log Metadata¶
- class py123d.datatypes.metadata.LogMetadata[source]¶
Class to hold metadata information about a log.
Public Data Attributes:
datasetThe dataset name in lowercase.
splitData split name, typically
{dataset_name}_{train/val/test}.log_nameName of the log file.
locationLocation of the log data.
timestep_secondsThe time interval between consecutive frames in seconds.
vehicle_parametersThe
VehicleParametersof the ego vehicle, if available.box_detection_label_classThe box detection label class specific to the dataset, if available.
pinhole_camera_metadataDictionary of
PinholeCameraTypetoPinholeCameraMetadata.fisheye_mei_camera_metadataDictionary of
FisheyeMEICameraTypetoFisheyeMEICameraMetadata.lidar_metadataDictionary of
LiDARTypetoLiDARMetadata.map_metadataThe
MapMetadataassociated with the log, if available.versionVersion of the py123d library used to create this log metadata (not used currently).
Public Methods:
from_dict(data_dict)Create a
LogMetadatainstance from a Python dictionary.to_dict()Convert the
LogMetadatainstance to a Python dictionary.
- property vehicle_parameters: VehicleParameters | None¶
The
VehicleParametersof the ego vehicle, if available.
- property box_detection_label_class: Type[BoxDetectionLabel] | None¶
The box detection label class specific to the dataset, if available.
- property pinhole_camera_metadata: Dict[PinholeCameraType, PinholeCameraMetadata]¶
Dictionary of
PinholeCameraTypetoPinholeCameraMetadata.
- property fisheye_mei_camera_metadata: Dict[FisheyeMEICameraType, FisheyeMEICameraMetadata]¶
Dictionary of
FisheyeMEICameraTypetoFisheyeMEICameraMetadata.
- property lidar_metadata: Dict[LiDARType, LiDARMetadata]¶
Dictionary of
LiDARTypetoLiDARMetadata.
- property map_metadata: MapMetadata | None¶
The
MapMetadataassociated with the log, if available.
- property version: str¶
Version of the py123d library used to create this log metadata (not used currently).
- classmethod from_dict(data_dict)[source]¶
Create a
LogMetadatainstance from a Python dictionary.- Parameters:
data_dict (
Dict) – Dictionary containing log metadata.- Raises:
ValueError – If the dictionary is missing required fields.
- Return type:
- Returns:
A
LogMetadatainstance.
- to_dict()[source]¶
Convert the
LogMetadatainstance to a Python dictionary.- Return type:
- Returns:
A dictionary representation of the log metadata.