I segment objects in a video using SAM2 in a Jupyter Notebook. I convert the segmentations into bboxes using masks_to_boxes(). Then I translate the generated bboxes into a .json file that will be ...