当前位置:网站首页>Yolov5进阶之九 目标追踪实例1
Yolov5进阶之九 目标追踪实例1
2022-07-03 14:43:00 【宇称不守恒4.0】
在前面基础上,我们可以做一个提醒不带口罩并统计的系统了。deepsort3.0+ yolov5.0 安装好后下载 yolov56.0训练的权重文件 mask_best.pt 两个类别 face(不带口罩),mask(戴口罩)。https://download.csdn.net/download/buaaweibin/85802968
先进入yolov5 文件夹 测试yolo环境
执行
python detect.py --source 0
可以正常检测是否戴口罩
进入Yolov5_StrongSORT_OSNet-3.0文件夹。执行
python track.py
会自行下载最新的 pt 文件(如果未下载),按进阶八修正后,可以在yolov5 5.0条件下运行了。把mask_best.pt 放在olov5_StrongSORT_OSNet-3.0目录,在该目录执行
python track.py --source 0 --yolo_weights yolov5n.pt --show-vid
这样只识别 yolo5n pt 的第 0 类 也就是 person
–show-vid 是为了显示。如果需要保存视频 最后要加上–save-vid
再测试
python track.py --source 0 --yolo_weights mask_best.pt --classes 0 --show-vid
如果输入1 则追踪戴口罩的,如果输入 0空格 1 则戴口罩不戴口罩都追踪,具体统计输出、抓图、声音输出等这里暂时先不列举了,后面的实例会进一步讲解。
边栏推荐
- 从书本《皮囊》摘录的几个句子
- NOI OPENJUDGE 1.6(09)
- Niuke bm83 string deformation (case conversion, string inversion, string replacement)
- Table of mathematical constants by q779
- Puzzle (016.4) domino effect
- dllexport和dllimport
- Simulation of LS -al command in C language
- US stock listing of polar: how can the delivery of 55000 units support the valuation of more than 20billion US dollars
- NFT new opportunity, multimedia NFT aggregation platform okaleido will be launched soon
- Luogu p5536 [xr-3] core city solution
猜你喜欢

NPM install is stuck with various strange errors of node NPY

tonybot 人形机器人 首次开机 0630

C language fcntl function

ShowMeBug入驻腾讯会议,开启专业级技术面试时代

Use of form text box (I) select text
![Luogu p4047 [jsoi2010] tribal division solution](/img/7f/3fab3e94abef3da1f5652db35361df.png)
Luogu p4047 [jsoi2010] tribal division solution

Frequently asked questions: PHP LDAP_ add(): Add: Undefined attribute type in

Dllexport and dllimport

adc128s022 ADC verilog设计实现

创业团队如何落地敏捷测试,提升质量效能?丨声网开发者创业讲堂 Vol.03
随机推荐
Piwigo 2.7.1 sqli learning
创业团队如何落地敏捷测试,提升质量效能?丨声网开发者创业讲堂 Vol.03
tonybot 人形机器人 首次开机 0630
Zzuli:1055 rabbit reproduction
Add ZABBIX calculation type itemcalculated items
C language memory function
Sword finger offer 28 Symmetric binary tree
Zzuli:1042 sum of sequence 3
Fundamentals of PHP deserialization
Why is this error reported when modifying records in the database
Stop asking yourself if you are suitable for software testing
Niuke: crossing the river
Tonybot humanoid robot starts for the first time 0630
Happy capital new dual currency fund nearly 4billion yuan completed its first account closing
论文分享:Generating Playful Palettes from Images
ShowMeBug入驻腾讯会议,开启专业级技术面试时代
【7.3】146. LRU caching mechanism
关于敏捷的一些概念
Common shortcut keys in PCB
Déformation de la chaîne bm83 de niuke (conversion de cas, inversion de chaîne, remplacement de chaîne)