MCPcopy Index your code
hub / github.com/FoundationVision/ByteTrack / draw_caption

Function draw_caption

tutorials/ctracker/test.py:130–132  ·  view source on GitHub ↗
(image, box, caption, color)

Source from the content-addressed store, hash-verified

128 return matches, unmatched1, unmatched2
129
130def draw_caption(image, box, caption, color):
131 b = np.array(box).astype(int)
132 cv2.putText(image, caption, (b[0], b[1] - 8), cv2.FONT_HERSHEY_PLAIN, 2, color, 2)
133
134
135def run_each_dataset(model_dir, retinanet, dataset_path, subset, cur_dataset):

Callers 1

run_each_datasetFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected