Visual-Behavior / aloception-oss

Aloception is a set of package for computer vision: aloscene, alodataset, alonet.
Other
93 stars 7 forks source link

253 labels information on boundingboxes3d #303

Closed Ardorax closed 1 year ago

Ardorax commented 1 year ago

Write Labels next to BoundingBoxes3D.

frame = Frame(np.zeros((3, 500, 500)), normalization="01") frame.append_cam_intrinsic(CameraIntrinsic(focal_length=721.0, plane_size=frame.HW)) frame.append_cam_extrinsic(CameraExtrinsic(torch.eye(4, dtype=torch.float32))) label = Labels([1, 0, 2], labels_names=["car", "person", "truck"]) label2 = Labels([1, 1, 0], labels_names=["register", "unknown"])

box3d = BoundingBoxes3D([[15, 30, 400, 20, 16, 18, 1], [0, 0, 200, 80, 46, 18, 0.5], [10, 10, 200, 80, 46, 18, 0.5]]) box3d.append_labels(label, "objects") box3d.append_labels(label2, "type") frame.append_boxes3d(box3d)

box2d = BoundingBoxes2D( [[300, 350, 50, 50], [300, 300, 200, 200], [350, 350, 200, 200]], boxes_format="xcyc", absolute=True, frame_size=(500, 500) ) box2d.append_labels(label, "objects") box2d.append_labels(label2, "type") frame.append_boxes2d(box2d)

frame.get_view().render()



* ***Labels dont render*** : #253 

_____
This pull request includes

- [x] Bug fix (non-breaking change which fixes an issue)
- [x] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
- [ ] This change requires a documentation update
Data-Iab commented 1 year ago

closing for no active changes since 2 months, feel free to reopen