开源代码来源:https://github.com/AIZOOTech/FaceMaskDetection
内容是检测人脸并且识别是否佩戴口罩
环境配好后激活环境:1.anaconda prompt>activate tensorflow
2.进入.py文件的目录: cd +文件夹名字
3.运行python tenforflow_infer.py --img-path img/demo2.jpg检测
提示需要下载PIL,因为python是3.x版本,所以用pillow代替
4.报错报错部分代码如上。
查资料可能是需要更新tensorflow(当前1.2)
卸载当前版本conda uninstall tensorflow==1.2.1
下载指定版本conda install tensorflow=1.8.0
5 python tenforflow_infer.py --img-path img/demo2.jpg
期间需要什么model下什么
成功运转