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

Function draw_mask

deploy/python/visualize.py:79–113  ·  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] np_masks (np.ndarray): shape:[N, im_h, im_w] labels (list): labels:['class1', ..., 'classn'] t

(im, np_boxes, np_masks, 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