oak深度相机入门教程-检测是否佩戴口罩
纠错,疑问,交流: 请进入讨论区或 请点击进入页面,扫码加入微信群或Q群进行交流
获取最新文章: 扫一扫加入“创客智造”公众号
说明:
-
介绍如何检测图像上的人脸及面部是否佩戴口罩
步骤:
-
进入目录depthai-experiments/gen2-coronamask
-
安装依赖
python3 -m pip install -r requirements.txt
- 所需要的依赖
opencv-python==4.5.1.48
depthai==2.16.0.0
- 使用相机运行程序
python3 main.py -cam
- 使用视频运行程序
python3 main.py -vid ./input.mp4

- main.py的用法
usage: main.py [-h] [-nd] [-cam] [-vid VIDEO]
optional arguments:
-h, --help show this help message and exit
-nd, --no-debug Prevent debug output
-cam, --camera Use DepthAI 4K RGB camera for inference (conflicts with -vid)
-vid VIDEO, --video VIDEO
Path to video file to be used for inference (conflicts with -cam)
演示视频
<iframe height=498 width=100% src="//player.bilibili.com/player.html?aid=517226605&bvid=BV1Fg411B7kP&cid=879805039&page=1" scrolling="no" border="0" frameborder="no" framespacing="0" allowfullscreen="true"> </iframe>纠错,疑问,交流: 请进入讨论区或 请点击进入页面,扫码加入微信群或Q群进行交流
获取最新文章: 扫一扫加入“创客智造”公众号


















