MCPcopy Create free account
hub / github.com/chenfei-wu/TaskMatrix / show_box

Method show_box

visual_chatgpt.py:849–853  ·  view source on GitHub ↗
(self, box, ax, label)

Source from the content-addressed store, hash-verified

847 return image
848
849 def show_box(self, box, ax, label):
850 x0, y0 = box[0], box[1]
851 w, h = box[2] - box[0], box[3] - box[1]
852 ax.add_patch(plt.Rectangle((x0, y0), w, h, edgecolor='green', facecolor=(0,0,0,0), lw=2))
853 ax.text(x0, y0, label)
854
855
856 def get_mask_with_boxes(self, image_pil, image, boxes_filt):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected