MCPcopy Create free account
hub / github.com/Pixel-Talk/EHM-Tracker / plot_bbox

Function plot_bbox

src/modules/pixie/utils/util.py:652–661  ·  view source on GitHub ↗

Draw bbox Args: image: the input image bbox: [left, top, right, bottom]

(image, bbox)

Source from the content-addressed store, hash-verified

650 return output
651
652def plot_bbox(image, bbox):
653 ''' Draw bbox
654 Args:
655 image: the input image
656 bbox: [left, top, right, bottom]
657 '''
658 image = cv2.rectangle(image.copy(), (bbox[1], bbox[0]), (bbox[3], bbox[2]),
659 [0,255,0], thickness=3)
660 # image = draw_rectangle(image, bbox, bbox_color=[0,255,0])
661 return image
662
663end_list = np.array([17, 22, 27, 42, 48, 31, 36, 68], dtype = np.int32) - 1
664def plot_kpts(image, kpts, color = 'r'):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected