官方给的模型可以检测80多个类别,这里我们只检测行人,就需要将代码进行稍微修改即可:
项目路径图:
查看./data/classes/coco.names 类别的索引:
这里person为第1个,即索引为0
更改:
draw_bbox函数(将roi_index设置为你想要的索引即可,我这里为0):
效果:
只框出了行人
文章标签 jj 文章分类 JavaScript 前端开发
官方给的模型可以检测80多个类别,这里我们只检测行人,就需要将代码进行稍微修改即可:
项目路径图:
查看./data/classes/coco.names 类别的索引:
这里person为第1个,即索引为0
更改:
draw_bbox函数(将roi_index设置为你想要的索引即可,我这里为0):
效果:
只框出了行人
上一篇:qt linux 调用外部库文件 (safenet加密狗开发一)
下一篇:ssh配置免密登陆及sign_and_send_pubkey: signing failed: agent refused operation问题解决
YOLOv3(You Only Look Once version 3)是一种高效的目标检测算法,旨在实现快速而准确的对象检测
举报文章
请选择举报类型
补充说明
0/200
上传截图
格式支持JPEG/PNG/JPG,图片不超过1.9M