py123d_detection.mmcv_export.annotations2d

Per-camera 2D / mono-3D annotations, which StreamPETR’s dataset reads during training.

This mirrors get_2d_boxes in mmdetection3d’s nuScenes converter: move each box into the camera frame with that camera’s own pose, project the corners and intersect their hull with the image. Two differences follow from what 123D stores: visibilities are empty strings (123D has no nuScenes visibility bins), and distorted cameras project through 123D’s camera model instead of a bare pinhole matrix.

Functions

project_records_to_camera(records, ...[, ...])

Project a frame's global-frame records into one camera.

Classes

Camera2DAnnotations([bboxes2d, labels2d, ...])

2D / mono-3D annotation arrays of one camera at one frame.