def update_boxes(self, box_pos, box_size):
        """Set the box bounds from specified box positions and sizes."""
        assert box_pos.shape == (self.n_boxes, 2)
        assert len(box_size) == 2
        self.box_bounds = _get_boxes(box_pos,
                                     size=box_size,
                                     keep_aspect_ratio=self.keep_aspect_ratio,
                                     )
def update_boxes ( self , box_pos , box_size ) : assert box_pos . shape == ( self . n_boxes , 2 ) assert len ( box_size ) == 2 self . box_bounds = _get_boxes ( box_pos , size = box_size , keep_aspect_ratio = self . keep_aspect_ratio , )
Set the box bounds from specified box positions and sizes.