人脸识别技术中有传统机器学习算法、深度学习人脸检测、卷积神经网络人脸检测。这些算法要么精度高、速度慢,要么速度快,精度低。有没有一些比较折中的检测算法方案,既有比较高的准确率,又有较高的性能?网上有推荐BlazeFace,BlazeFace是一种非常轻量级且高度准确的人脸检测器,号称亚毫秒级的人脸检测器。其灵感来自 Single Shot MultiBox Detector (SSD) 和 MobileNetv2。Mediapipe库提供了该算法的实现,本文地址:http://www.04007.cn/article/1223.html,未经许可,不得转载.
想在我本地windows10上体验一把Mediapipe,尝试进行安装,但发现其提示 Could not find a version that satisfies the requirement mediapipe。没有找到匹配的版本,更换了一些国内常用的源和官方源,都一样。
$ python3 -m pip install mediapipe
ERROR: Could not find a version that satisfies the requirement mediapipe (from versions: none)
ERROR: No matching distribution found for mediapipe
# pypi 清华大学源:
$ python3 -m pip install mediapipe -i https://pypi.tuna.tsinghua.edu.cn/simple
# pypi 豆瓣源 :
$ python3 -m pip install mediapipe -i http://pypi.douban.com/simple/
# pypi 腾讯源:
$ python3 -m pip install mediapipe -i http://mirrors.cloud.tencent.com/pypi/simple
# pypi 阿里源:
$ python3 -m pip install mediapipe -i https://mirrors.aliyun.com/pypi
# 官方源
$ python3 -m pip install mediapipe -i https://pypi.org/simple
ERROR: Could not find a version that satisfies the requirement mediapipe (from versions: none)
ERROR: No matching distribution found for mediapipe本文地址:http://www.04007.cn/article/1223.html,未经许可,不得转载.
有建议在Python 3.11.1中通过下载mediapipe来安装,在GitHub上找到MediaPipe的项目:https://github.com/google/mediapipe 下载解压安装。
# 安装MediaPipe所需的所有Python依赖项。
python3 -m pip install -r requirements.txt
absl-py
attrs>=19.1.0
flatbuffers>=2.0
matplotlib
numpy
opencv-contrib-python
protobuf>=3.11,<4
sounddevice>=0.4.4
# 安装 mediapipe
$ python311 setup.py install
this may not work as expected with newer versions of setuptools, pip, and PyPI. Please see PEP 440 for more details。本文地址:http://www.04007.cn/article/1223.html,未经许可,不得转载.
依然没有成功,最后发现目前新的python3.11版本还没有Windows的mediapipe版本支持。本文地址:http://www.04007.cn/article/1223.html,未经许可,不得转载.
本文地址:http://www.04007.cn/article/1223.html 未经许可,不得转载. 手机访问本页请扫描右下方二维码.
![]() |
![]() |
手机扫码直接打开本页面 |