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

Function get_color

yolox/utils/visualize.py:45–49  ·  view source on GitHub ↗
(idx)

Source from the content-addressed store, hash-verified

43
44
45def get_color(idx):
46 idx = idx * 3
47 color = ((37 * idx) % 255, (17 * idx) % 255, (29 * idx) % 255)
48
49 return color
50
51
52def plot_tracking(image, tlwhs, obj_ids, scores=None, frame_id=0, fps=0., ids2=None):

Callers 1

plot_trackingFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected