Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hpc203/FaceMaskDetection-dnn
用opencv的dnn模块实现人脸口罩检测,包含C++和Python两种版本的实现
https://github.com/hpc203/FaceMaskDetection-dnn
deep-learning dnn facemask-detection opencv
Last synced: 13 days ago
JSON representation
用opencv的dnn模块实现人脸口罩检测,包含C++和Python两种版本的实现
- Host: GitHub
- URL: https://github.com/hpc203/FaceMaskDetection-dnn
- Owner: hpc203
- Created: 2020-03-10T04:46:43.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2021-04-01T02:31:42.000Z (over 3 years ago)
- Last Synced: 2024-08-01T03:44:20.318Z (3 months ago)
- Topics: deep-learning, dnn, facemask-detection, opencv
- Language: Python
- Homepage:
- Size: 16.3 MB
- Stars: 53
- Watchers: 3
- Forks: 17
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# FaceMaskDetection-dnn
这个项目是基于原始的人脸口罩检测https://github.com/AIZOOTech/FaceMaskDetection
本项目是属于它的延伸,在AIZOOTech的项目里,提供了pytorch,tensorflow,caffe,keras,mxnet这五种深度学习框架的前向推理,检测人脸并判断是否佩戴了口罩。在本项目中,使用opencv里的dnn模块做深度学习前向推理,从而摆脱了在前向推理时对深度学习框架的依赖。在本项目中,只需要opencv,numpy,PIL,argparse这4个库,即可完成人脸口罩检测的深度学习前向推理任务,不再需要额外安装任何深度学习框架了。假如你的机器上的python环境里没有opencv,那你在终端输入
pip install opencv-python完成opencv的安装,然后运行python opencv_dnn_infer.py用SSD网络检测人脸是否佩戴口罩
C++版本的主程序是main.cpp,如果运行程序时在readNet这一句出错,那很有可能是你的opencv版本问题,这时需要升级opencv的版本