Skip to content

Commit

Permalink
fix: resolve runtime error (#61)
Browse files Browse the repository at this point in the history
Signed-off-by: ktro2828 <[email protected]>
  • Loading branch information
ktro2828 authored Dec 3, 2024
1 parent d5f2d7f commit 22463c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion t4_devkit/common/geometry.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ def is_box_in_image(
Return True if visibility condition is satisfied.
"""
corners_3d = box.corners()
corners_on_img = view_points(corners_3d, intrinsic, normalize=True)[:2, :]
corners_on_img = view_points(corners_3d.T, intrinsic, normalize=True)[:2, :]

img_w, img_h = img_size
is_visible = np.logical_and(corners_on_img[0, :] > 0, corners_on_img[0, :] < img_w)
Expand Down

0 comments on commit 22463c4

Please sign in to comment.