Draw bbox Args: image: the input image bbox: [left, top, right, bottom]
(image, bbox)
| 650 | return output |
| 651 | |
| 652 | def 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 | |
| 663 | end_list = np.array([17, 22, 27, 42, 48, 31, 36, 68], dtype = np.int32) - 1 |
| 664 | def plot_kpts(image, kpts, color = 'r'): |
nothing calls this directly
no outgoing calls
no test coverage detected