oak深度相机入门教程-检测是否佩戴口罩

发布于:2022-11-04 ⋅ 阅读:(606) ⋅ 点赞:(0)

 系列文章目录:


说明:

  • 介绍如何检测图像上的人脸及面部是否佩戴口罩

  • 参考代码

步骤:

  • 进入目录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)

 

本文含有隐藏内容,请 开通VIP 后查看

网站公告

今日签到

点亮在社区的每一天
去签到