def draw_bbox_rectangle(ax: plt.Axes, box: Bbox): """Draws a green rectangle around the specified Bbox""" rect = Rectangle(xy=(box.x0, box.y0), width=box.width, height=box.height, transform=ax.get_transform(), clip_on=False, color="green", fill=False) rect.set_in_layout(False) ax.add_patch(rect)