首页 > 系统服务 > 详细

mac下安装face_recognition

时间:2019-06-09 10:24:41      阅读:264      评论:0      收藏:0      [点我收藏+]

安装依赖库:

1、安装cmake (是一个跨平台的安装工具)

 brew install cmake

2、安装boost、boost-python(C++的程序库

brew install boost
brew install boost-python --with-python2.7

3、编译dlib

git clone https://github.com/davisking/dlib.git  
cd dlib
mkdir build
cd build
cmake ..                          //以默认方式(SSE41指令)编译dlib
cmake --build .
cd ..
sudo python setup.py install

4. 安装人脸识别的python库

pip install face_recognition

5、安装opencv-python

pip install -i https://pypi.tuna.tsinghua.edu.cn/simple opencv-python

此时报错:

Cannot uninstall numpy. It is a distutils installed project and thus we cannot accurate

解决方案:强行升级

pip install numpy --ignore-installed numpy

 

mac下安装face_recognition

原文:https://www.cnblogs.com/UniqueColor/p/10992415.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!