|
|
|
|
@ -7,7 +7,7 @@ from collections import deque
|
|
|
|
|
|
|
|
|
|
import cv2
|
|
|
|
|
import numpy as np
|
|
|
|
|
|
|
|
|
|
#LXT
|
|
|
|
|
palette = (2 ** 11 - 1, 2 ** 15 - 1, 2 ** 20 - 1)
|
|
|
|
|
COLORS_10 =[(144,238,144),(178, 34, 34),(221,160,221),( 0,255, 0),( 0,128, 0),(210,105, 30),(220, 20, 60),
|
|
|
|
|
(192,192,192),(255,228,196),( 50,205, 50),(139, 0,139),(100,149,237),(138, 43,226),(238,130,238),
|
|
|
|
|
@ -37,7 +37,7 @@ def compute_color_for_labels(label):
|
|
|
|
|
else:
|
|
|
|
|
color = [int((p * (label ** 2 - label + 1)) % 255) for p in palette]
|
|
|
|
|
return tuple(color)
|
|
|
|
|
|
|
|
|
|
#LXY
|
|
|
|
|
#绘制轨迹
|
|
|
|
|
def draw_trail(img, bbox, names,object_id, identities=None, offset=(0, 0)):
|
|
|
|
|
try:
|
|
|
|
|
|