Skip to content

Commit

Permalink
Fix backslashes in arkitscene rigid transformation path
Browse files Browse the repository at this point in the history
Should be fixed properly by #1937
  • Loading branch information
Wumpf committed Apr 19, 2023
1 parent 3f08dae commit 9c79efc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion examples/python/arkitscenes/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,7 @@ def project_3d_bboxes_to_2d_keypoints(
# nViews irrelevant, squeeze out
bboxes_2d = bboxes_2d[0]


# Filter out keypoints that are not within the frame
mask_x = (bboxes_2d[:, :, 0] >= 0) & (bboxes_2d[:, :, 0] < img_width)
mask_y = (bboxes_2d[:, :, 1] >= 0) & (bboxes_2d[:, :, 1] < img_height)
Expand Down Expand Up @@ -251,7 +252,7 @@ def log_camera(

rr.log_rigid3(
# pathlib makes it easy to get the parent, but log_rigid requires a string
str(Path(entity_id).parent),
str(Path(entity_id).parent).replace("\\", "/"),
child_from_parent=camera_from_world,
xyz="RDF", # X=Right, Y=Down, Z=Forward
)
Expand Down

0 comments on commit 9c79efc

Please sign in to comment.