当前位置:网站首页>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 则戴口罩不戴口罩都追踪,具体统计输出、抓图、声音输出等这里暂时先不列举了,后面的实例会进一步讲解。
边栏推荐
- 基因家族特征分析 - 染色体定位分析
- Sword finger offer 28 Symmetric binary tree
- Zzuli:1052 sum of sequence 4
- Talking about part of data storage in C language
- Optical cat super account password and broadband account password acquisition
- Qt development - scrolling digital selector commonly used in embedded system
- Zhonggan micro sprint technology innovation board: annual revenue of 240million, net loss of 17.82 million, proposed to raise 600million
- puzzle(016.4)多米诺效应
- Zzuli: sum of 1051 square roots
- 洛谷P5194 [USACO05DEC]Scales S 题解
猜你喜欢
Dllexport and dllimport
Creation of data table of Doris' learning notes
Zzuli:1053 sine function
Use of constraintlayout
puzzle(016.3)千丝万缕
Why is this error reported when modifying records in the database
基因家族特征分析 - 染色体定位分析
Tonybot humanoid robot infrared remote control play 0630
Sword finger offer 28 Symmetric binary tree
Sub GHz wireless solution Z-Wave 800 Series zg23 SOC and zgm230s modules
随机推荐
Some concepts about agile
Sub GHz wireless solution Z-Wave 800 Series zg23 SOC and zgm230s modules
puzzle(016.3)千丝万缕
NOI OPENJUDGE 1.5(23)
Protobuf and grpc
Luogu p5194 [usaco05dec]scales s solution
7-9 one way in, two ways out (25 points)
J-luggage lock of ICPC Shenyang station in 2021 regional games (simple code)
Thread. Sleep and timeunit SECONDS. The difference between sleep
Tonybot humanoid robot starts for the first time 0630
To improve efficiency or increase costs, how should developers understand pair programming?
ConstraintLayout 的使用
创业团队如何落地敏捷测试,提升质量效能?丨声网开发者创业讲堂 Vol.03
Stop asking yourself if you are suitable for software testing
Bucket sorting in C language
Zzuli:1040 sum of sequence 1
Pyqt interface production (login + jump page)
SSH access control, blocking the IP when logging in repeatedly to prevent brute force cracking
Luogu p5018 [noip2018 popularization group] symmetric binary tree problem solution
从书本《皮囊》摘录的几个句子