20250313
This commit is contained in:
@ -279,7 +279,7 @@ def yolo_resnet_tracker(
|
||||
color = colors(int(id), True)
|
||||
else:
|
||||
color = colors(19, True) # 19为调色板的最后一个元素
|
||||
# annotator.box_label(xyxy, label, color=color)
|
||||
annotator.box_label(xyxy, label, color=color)
|
||||
|
||||
'''====== Save results (image and video) ======'''
|
||||
# save_path = str(save_dir / Path(path).name) # 带有后缀名
|
||||
@ -727,8 +727,8 @@ def main():
|
||||
# p = r"D:\exhibition\images\153112511_0_seek_105.mp4"
|
||||
# p = r"D:\exhibition\images\image"
|
||||
|
||||
p = r"\\192.168.1.28\share\数据\原始数据\小物品数据\视频\82654976401_20241213-143457_front_addGood_5478c9a53bbe_40_17700000001.mp4"
|
||||
optdict["project"] = r"D:\小物品入侵检测\result"
|
||||
p = r"D:\全实时\202502\tracker\1_1740891284792.mp4"
|
||||
optdict["project"] = r"D:\全实时\202502\tracker"
|
||||
|
||||
# optdict["project"] = r"D:\exhibition\result"
|
||||
if os.path.isdir(p):
|
||||
|
Reference in New Issue
Block a user