当前位置:网站首页>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.3(06)
- 洛谷P5536 【XR-3】核心城市 题解
- NFT new opportunity, multimedia NFT aggregation platform okaleido will be launched soon
- Luogu p4047 [jsoi2010] tribal division solution
- Luogu p3065 [usaco12dec]first! G problem solution
- NPM install is stuck with various strange errors of node NPY
- Zzuli:1058 solving inequalities
- Convert string to decimal integer
- [combinatorics] permutation and combination (set combination, one-to-one correspondence model analysis example)
猜你喜欢
Adc128s022 ADC Verilog design and Implementation
How to color ordinary landscape photos, PS tutorial
NPM install is stuck with various strange errors of node NPY
retrofit
ConstraintLayout 的使用
Tonybot humanoid robot checks the port and corresponds to port 0701
US stock listing of polar: how can the delivery of 55000 units support the valuation of more than 20billion US dollars
创业团队如何落地敏捷测试,提升质量效能?丨声网开发者创业讲堂 Vol.03
To improve efficiency or increase costs, how should developers understand pair programming?
ShowMeBug入驻腾讯会议,开启专业级技术面试时代
随机推荐
556. 下一个更大元素 III : 简单构造模拟题
Pyqt interface production (login + jump page)
基因家族特征分析 - 染色体定位分析
Déformation de la chaîne bm83 de niuke (conversion de cas, inversion de chaîne, remplacement de chaîne)
adc128s022 ADC verilog设计实现
NOI OPENJUDGE 1.6(09)
Statistical capital consonants
Zzuli:1043 max
US stock listing of polar: how can the delivery of 55000 units support the valuation of more than 20billion US dollars
X86 assembly language - Notes from real mode to protected mode
Zzuli:1056 lucky numbers
Thread. Sleep and timeunit SECONDS. The difference between sleep
Zzuli:1041 sum of sequence 2
FPGA blocking assignment and non blocking assignment
Solr series of full-text search engines - basic principles of full-text search
Sub-GHz无线解决方案Z-Wave 800 系列ZG23 soc和ZGM230S模块
表单文本框的使用(一) 选择文本
String sort
Solve the problem that PR cannot be installed on win10 system. Pr2021 version -premiere Pro 2021 official Chinese version installation tutorial
Zzuli:1055 rabbit reproduction