人臉檢測基於dlib,dlib依賴Boost和cmakehtml
在windows中若是要使用dlib仍是比較麻煩的,若是想省時間能夠在anaconda中安裝 python
conda install -c conda-forge dlib=19.4
1 $ sudo apt-get install build-essential cmake 2 $ sudo apt-get install libgtk-3-dev 3 $ sudo apt-get install libboost-all-dev
其餘重要的包git
$ pip3 install numpy $ pip3 install scipy $ pip3 install opencv-python $ pip3 install dlib
安裝 face_recognitiongithub
# 安裝 face_recognition
$ pip3 install face_recognition
# 安裝face_recognition過程當中會自動安裝 numpy、scipy 等
安裝過程比較慢,我足足安裝了2個多小時,固然也跟網絡速度有關,可是沒有出錯,一切正常!windows
先給你們安利幾個不錯的博客和github項目:網絡
Face Recognition基於Python的人臉識別庫在github上地址以下: https://github.com/ageitgey/face_recognition
Github人臉識別項目地址: https://github.com/MiChongGET/face_collection
Ubuntu下使用face_recognition進行人臉識別: http://www.javashuo.com/article/p-epjcpffx-br.html
Python人臉識別技術face_recognition模塊: https://blog.csdn.net/qq_31673689/article/details/79370412