YOLOv5 目标计数 | 图片上绘制计数结果

请添加图片描述
请添加图片描述


修改方法:

只需要改 detect.py

for path, im, im0s, vid_cap, s in dataset: 下新增一行 class_counts = {}

在这里插入图片描述

class_counts[int(c)] = class_counts.get(int(c

猜你喜欢

转载自blog.csdn.net/weixin_43694096/article/details/135197205