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

BoundingBoxes3D don't render correctly when a part of it is outside the image #225

Open
Ardorax opened this issue Sep 20, 2022 · 1 comment
Assignees
Labels
aloscene aloscene bug Something isn't working invalid This doesn't seem right quick-fix

Comments

@Ardorax
Copy link
Contributor

Ardorax commented Sep 20, 2022

Under certain condition, a BoundingBoxes3D can be incorrectly draw if a part of it is outside the image.

import numpy as np
from aloscene import Frame, BoundingBoxes3D, CameraExtrinsic, CameraIntrinsic

frame = Frame(np.zeros((3, 275, 1242)))


intrisic = CameraIntrinsic(np.array([[721.5377, 0.0, 609.5593, 0.0], [0.0, 721.5377, 172.854, 0.0], [0, 0, 1, 0]]))
extrinsic = CameraExtrinsic(np.array([[1, 0, 0, 0.062169], [0, 1, 0, 0], [0, 0, 1, 0], [0, 0, 0, 1]]))
frame.append_cam_intrinsic(intrisic)
frame.append_cam_extrinsic(extrinsic)
box3d = BoundingBoxes3D([[3.577114, 0.6670290000000001, 1.436819, 1.895275, 2.195312, 5.530314, 3.1704533267948967]])
frame.append_boxes3d(box3d)

# Box3D don't render correctly
frame.get_view().render()
@Ardorax Ardorax added bug Something isn't working invalid This doesn't seem right aloscene aloscene quick-fix labels Sep 20, 2022
@Ardorax Ardorax changed the title Box3d don't render correctly when a part of the box is outside the image BoundingBoxes3D don't render correctly when a part of the box is outside the image Sep 20, 2022
@Ardorax Ardorax changed the title BoundingBoxes3D don't render correctly when a part of the box is outside the image BoundingBoxes3D don't render correctly when a part of the it is outside the image Sep 20, 2022
@Ardorax Ardorax changed the title BoundingBoxes3D don't render correctly when a part of the it is outside the image BoundingBoxes3D don't render correctly when a part of it is outside the image Nov 2, 2022
@Aurelien-VB Aurelien-VB self-assigned this Nov 17, 2022
@Aurelien-VB
Copy link
Contributor

Le bug persiste même avec tous les points dans l'image

image

import numpy as np
from aloscene import Frame, BoundingBoxes3D, CameraExtrinsic, CameraIntrinsic

frame = Frame(np.zeros((3, 1000, 1242)))


intrisic = CameraIntrinsic(np.array([[721.5377, 0.0, 309.5593, 0.0], [0.0, 721.5377, 300.854, 0.0], [0, 0, 1, 0]]))
extrinsic = CameraExtrinsic(np.array([[1, 0, 0, 0.062169], [0, 1, 0, 0], [0, 0, 1, 0], [0, 0, 0, 1]]))
frame.append_cam_intrinsic(intrisic)
frame.append_cam_extrinsic(extrinsic)
box3d = BoundingBoxes3D([[3.577114, 0.6670290000000001, 1.436819, 0.895275, 2.195312, 5.530314, 3.1704533267948967]])
frame.append_boxes3d(box3d)

# Box3D don't render correctly
frame.get_view().render()```

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
aloscene aloscene bug Something isn't working invalid This doesn't seem right quick-fix
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants