Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Labels information on BoundingBoxes3D. #253

Open
Ardorax opened this issue Nov 17, 2022 · 6 comments
Open

Labels information on BoundingBoxes3D. #253

Ardorax opened this issue Nov 17, 2022 · 6 comments
Assignees
Labels
alobugdays aloscene aloscene enhancement New feature or request invalid This doesn't seem right

Comments

@Ardorax
Copy link
Contributor

Ardorax commented Nov 17, 2022

The BoundingBoxes3D is always the same color and there isn't any information about the Label.

import numpy as np
import torch
from aloscene import Frame, Labels, BoundingBoxes3D, CameraExtrinsic, CameraIntrinsic, BoundingBoxes2D

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], names=["name"])

box3d = BoundingBoxes3D([[10, 10, 400, 80, 46, 18, 1]], labels=label)
frame.append_boxes3d(box3d)

box2d = BoundingBoxes2D([[200, 200, 200, 300]], boxes_format="xcyc", absolute=True, frame_size=(500, 500), labels=label)
frame.append_boxes2d(box2d)

# No data about labels is displayed next to boxes3d.
frame.get_view().render()
@Ardorax Ardorax added enhancement New feature or request invalid This doesn't seem right aloscene aloscene alobugdays labels Nov 17, 2022
@anhtu293
Copy link
Contributor

it seems that this isssue is fixed ? @Ardorax

@Ardorax
Copy link
Contributor Author

Ardorax commented Nov 17, 2022

No the bug is still here.

@anhtu293
Copy link
Contributor

I can get different color and information for 3d boxe on my side with the given code.

@Ardorax
Copy link
Contributor Author

Ardorax commented Nov 17, 2022

Are you sure you are on the alobugsdays branch ? Can you send a screenshot (with the output of git log -7 in your terminal) ?

@anhtu293
Copy link
Contributor

image

@Ardorax
Copy link
Contributor Author

Ardorax commented Nov 17, 2022

The 3d bow will always be green and blue so the bug is still here. More, you can see the number next to the 3d box but not the 3d box.

@Ardorax Ardorax self-assigned this Nov 18, 2022
@Ardorax Ardorax linked a pull request Nov 18, 2022 that will close this issue
4 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
alobugdays aloscene aloscene enhancement New feature or request invalid This doesn't seem right
Projects
None yet
2 participants