MCPcopy Create free account
hub / github.com/PaddlePaddle/PaddleYOLO / draw_box

Function draw_box

deploy/python/visualize.py:116–167  ·  view source on GitHub ↗

Args: im (PIL.Image.Image): PIL image np_boxes (np.ndarray): shape:[N,6], N: number of box, matix element:[class, score, x_min, y_min, x_max, y_max] labels (list): labels:['class1', ..., 'classn'] threshold (float): threshold of box

(im, np_boxes, labels, threshold=0.5)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

visualize_box_maskFunction · 0.70

Calls 1

get_color_map_listFunction · 0.70

Tested by

no test coverage detected