py123detection.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 a frame's global-frame records into one camera. |
Classes
|
2D / mono-3D annotation arrays of one camera at one frame. |
- class py123detection.mmcv_export.annotations2d.Camera2DAnnotations(bboxes2d=<factory>, labels2d=<factory>, centers2d=<factory>, depths=<factory>, bboxes3d_cam=<factory>, bboxes_ignore=<factory>, visibilities=<factory>)[source]¶
Bases:
object2D / mono-3D annotation arrays of one camera at one frame.