MCPcopy Create free account
hub / github.com/ModelTC/LightX2V / draw_bbox

Function draw_bbox

tools/preprocess/human_visualization.py:888–892  ·  view source on GitHub ↗
(img, bbox, color=(255, 0, 0))

Source from the content-addressed store, hash-verified

886
887
888def draw_bbox(img, bbox, color=(255, 0, 0)):
889 img = load_image(img)
890 bbox = [int(bbox_tmp) for bbox_tmp in bbox]
891 cv2.rectangle(img, (bbox[0], bbox[1]), (bbox[2], bbox[3]), color, 2)
892 return img
893
894
895def draw_kp2ds(img, kp2ds, threshold=0, color=(255, 0, 0), skeleton=None, reverse=False):

Callers

nothing calls this directly

Calls 1

load_imageFunction · 0.70

Tested by

no test coverage detected