给输出框编号
rect_id = 1 for *xyxy, conf, cls in reversed(det): label = f'{names[int(cls)]} {rect_id}' plot_one_box(xyxy, im0, label=label, color=colors[int(cls)], line_thickness=3) rect_id=rect_id+1
#####################
给输出框编号
rect_id = 1 for *xyxy, conf, cls in reversed(det): label = f'{names[int(cls)]} {rect_id}' plot_one_box(xyxy, im0, label=label, color=colors[int(cls)], line_thickness=3) rect_id=rect_id+1
#####################