SpatialLM icon indicating copy to clipboard operation
SpatialLM copied to clipboard

How to viz final predict bbox in video input as example given in the repo

Open Alex220284 opened this issue 1 year ago • 1 comments

Hi, I have run example using a custom video followed by https://github.com/manycore-research/SpatialLM/blob/main/EXAMPLE.md. But, I wonder how to viz final predict bbox in the input video as following pic shows. Looking forward to your reply~~

Thanks

Thanks. Image

Alex220284 avatar Jun 11 '25 09:06 Alex220284

Hi, MASt3R-SLAM predicts per-frame camera poses and intrinsics, which allows transforming the predicted 3D bounding boxes from global world coordinates into the camera view coordinates. However, the estimated poses can be somewhat unstable and exhibit noticeable jitter.

We collect the video using ARKit to obtain ground truth (GT) camera poses. We aligned MASt3R-SLAM’s per-frame poses to the ARKit poses to compute a transformation matrix between the coordinate systems. The GT ARKit poses and intrinsics were then imported into Blender as keyframes, and the bounding boxes were rendered overlaid on the original video.

If GT camera poses are not available, the MASt3R-SLAM to GT world coordinate transformation step can be skipped. You can directly import MASt3R-SLAM’s predicted poses into Blender and render the bounding box overlays. However, due to the instability of the estimated poses, the rendered bounding boxes may exhibit jitter. Some keyframe smoothing techniques in Blender can help stabilize the camera motion, but the results are generally not as reliable as when using GT poses.

Related Issue: #8

SamMaoYS avatar Jun 11 '25 13:06 SamMaoYS