MCPcopy Create free account
hub / github.com/modelscope/modelscope / created_boxed_image

Function created_boxed_image

modelscope/utils/cv/image_utils.py:360–365  ·  view source on GitHub ↗
(image_in, box)

Source from the content-addressed store, hash-verified

358
359
360def created_boxed_image(image_in, box):
361 image = load_image(image_in)
362 img = cv2.cvtColor(np.asarray(image), cv2.COLOR_RGB2BGR)
363 cv2.rectangle(img, (int(box[0]), int(box[1])), (int(box[2]), int(box[3])),
364 (0, 255, 0), 3)
365 return img
366
367
368def show_video_tracking_result(video_in_path, bboxes, video_save_path):

Callers 1

save_imgMethod · 0.90

Calls 1

load_imageFunction · 0.90

Tested by 1

save_imgMethod · 0.72

Used in the wild real call sites across dependent graphs

searching dependent graphs…