This commit is contained in:
王庆刚
2025-03-13 15:36:29 +08:00
parent 0efe8892f3
commit 9b5b135fa3
21 changed files with 837 additions and 258 deletions

View File

@ -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):