MCPcopy Create free account
hub / github.com/BICLab/SpikeYOLO / rectangle

Method rectangle

ultralytics/utils/plotting.py:235–237  ·  view source on GitHub ↗

Add rectangle to image (PIL-only).

(self, xy, fill=None, outline=None, width=1)

Source from the content-addressed store, hash-verified

233 self.fromarray(self.im)
234
235 def rectangle(self, xy, fill=None, outline=None, width=1):
236 """Add rectangle to image (PIL-only)."""
237 self.draw.rectangle(xy, fill, outline, width)
238
239 def text(self, xy, text, txt_color=(255, 255, 255), anchor='top', box_style=False):
240 """Adds text to an image using PIL or cv2."""

Callers 8

plot_imagesFunction · 0.95
box_labelMethod · 0.45
textMethod · 0.45
plot_labelsFunction · 0.45
runFunction · 0.45
runFunction · 0.45
draw_bounding_boxFunction · 0.45
draw_detectionsMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected